Вход Регистрация
Файл: adultscript-2.0.3-pro/files/admin/templates/default/pornstar_search.tpl.php
Строк: 180
<?php defined('_VALID') or die('Restricted Access!'); ?>
                <?php if (!isset($this->option)):
                    if (isset(
$_SESSION['search_model_option'])):
                        
$this->option $_SESSION['search_model_option'];
                    else:
                        
$this->option = array(
                            
'name' => '''description' => '''gender' => '',
                            
'sort' => 'm.model_id''order' => 'DESC''display' => 10
                        
);
                    endif;
                endif; 
?>
                <div id="search_advanced" style="display: none;">
                <form id="search-pornstars-form" method="post" action="<?php echo ADMIN_URL?>/index.php?q=pornstar/manage">
                  <fieldset>
                      <legend>Advanced Search</legend>
                    <table width="100%" border="0" cellspacing="2" cellpadding="1" class="search">
                    <tr>
                        <td>
                            <div class="optional">
                                <label for="name" class="search">Name</label>
                                <input name="name" type="text" id="name" class="medium" value="<?php echo e($this->option['name']); ?>" />
                            </div>
                        </td>
                        <td>
                            <div class="optional">
                                <label for="description" class="search">Description</label>
                                <input name="description" type="text" id="description" class="medium" value="<?php echo e($this->option['description']); ?>" />
                            </div>
                        </td>
                        <td>
                            <div class="optional">
                                <label for="gender" class="search">Gender</label>
                                <select name="gender" id="gender">
                                    <option value="">All</option>
                                    <option value="female"<?php if ($this->option['gender'] == 'female'): echo ' selected="selected"'; endif; ?>>Female</option>
                                    <option value="male"<?php if ($this->option['gender'] == 'male'): echo ' selected="selected"'; endif; ?>>Male</option>
                                    <option value="tranny"<?php if ($this->option['gender'] == 'tranny'): echo ' selected="selected"'; endif; ?>>Tranny</option>
                                </select>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <div class="optional">
                                <label for="sort" class="search">Sort</label>
                                <select name="sort" id="sort">
                                <option value="m.model_id"<?php if ($this->option['sort'] == 'm.model_id'): echo ' selected="selected"'; endif; ?>>Id</option>
                                <option value="m.name"<?php if ($this->option['sort'] == 'm.name'): echo ' selected="selected"'; endif; ?>>Name</option>
                                <option value="m.gender"<?php if ($this->option['sort'] == 'm.gender'): echo ' selected="selected"'; endif; ?>>Gender</option>
                                <option value="m.add_date"<?php if ($this->option['sort'] == 'm.add_date'): echo ' selected="selected"'; endif; ?>>Add Date</option>
                                <option value="m.total_views"<?php if ($this->option['sort'] == 'm.total_views'): echo ' selected="selected"'; endif; ?>>Total Views</option>                                
                                <option value="m.total_videos"<?php if ($this->option['sort'] == 'm.total_videos'): echo ' selected="selected"'; endif; ?>>Total Videos</option>
                                <?php if (VModule::enabled('photo')): ?><option value="m.total_albums"<?php if ($this->option['sort'] == 'm.total_albums'): echo ' selected="selected"'; endif; ?>>Total Albums</option><?php endif; ?>
                                <option value="m.total_comments"<?php if ($this->option['sort'] == 'm.total_comments'): echo ' selected="selected"'; endif; ?>>Total Comments</option>
                                <option value="m.total_favorites"<?php if ($this->option['sort'] == 'm.total_favorites'): echo ' selected="selected"'; endif; ?>>Total Favorites</option>
                                <option value="(m.rating*m.rated_by)"<?php if ($this->option['sort'] == '(m.rating*m.rated_by)'): echo ' selected="selected"'; endif; ?>>Rating</option>
                                <option value="m.status"<?php if ($this->option['sort'] == 'm.status'): echo ' selected="selected"'; endif; ?>>Status</option>
                                </select>
                            </div>
                        </td>
                        <td>
                            <div class="optional">
                                <label for="order" class="search">Order</label>
                                <select name="order" id="order">
                                <option value="ASC"<?php if ($this->option['order'] == 'ASC'): echo ' selected="selected"'; endif; ?>>ASC</option>
                                <option value="DESC"<?php if ($this->option['order'] == 'DESC'): echo ' selected="selected"'; endif; ?>>DESC</option>
                                </select>
                            </div>
                        </td>
                        <td>
                            <div class="optional">
                                <label for="display" class="search">Display</label>
                                <select name="display" id="display">
                                <option value="5"<?php if ($this->option['display'] == '5'): echo ' selected="selected"'; endif; ?>>5</option>
                                <option value="10"<?php if ($this->option['display'] == '10'): echo ' selected="selected"'; endif; ?>>10</option>
                                <option value="20"<?php if ($this->option['display'] == '20'): echo ' selected="selected"'; endif; ?>>20</option>
                                <option value="30"<?php if ($this->option['display'] == '30'): echo ' selected="selected"'; endif; ?>>30</option>
                                <option value="50"<?php if ($this->option['display'] == '50'): echo ' selected="selected"'; endif; ?>>50</option>
                                <option value="100"<?php if ($this->option['display'] == '100'): echo ' selected="selected"'; endif; ?>>100</option>
                                <option value="200"<?php if ($this->option['display'] == '200'): echo ' selected="selected"'; endif; ?>>200</option>
                                </select>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="3">
                            <div style="text-align: center; margin-top: 3px;">
                                <input name="submit_search" type="submit" class="button butDef" value=" Search " />
                                <input name="submit_reset" type="submit" class="button butDef" value=" Reset " />
                            </div>
                        </td>
                    </tr>
                    </table>
                </fieldset>
                </form>
                </div>
Онлайн: 0
Реклама