Вход Регистрация
Файл: adultscript-2.0.3-pro/files/admin/templates/default/video_search.tpl.php
Строк: 332
<?php defined('_VALID') or die('Restricted Access!'); ?>
                <?php
                
if (!isset($this->option)):
                    if (isset(
$_SESSION['search_video_option'])):
                        
$this->option $_SESSION['search_video_option'];
                    else:
                        
$this->option = array(
                            
'video_id' => '''mobile' => '''ext' => '',
                            
'title' => '''username' => '''description' => '',
                            
'category' => '''status' => '''flagged' => '',
                            
'server'    => '',
                            
'sort' => 'v.video_id''order' => 'DESC''display' => 10
                        
);
                    endif;
                endif;
                if (!isset(
$this->categories)):
                    
$db VF::factory('database');
                    
$this->categories $db->get_rows("SELECT cat_id, name FROM #__video_categories ORDER BY name ASC");
                endif;
                
?>
                <div id="search_advanced" style="display: none;">
                <form name="search-videos-form" id="search-videos-form" method="post" action="<?php echo ADMIN_URL?>/index.php?q=video/manage">
                  <fieldset>
                      <legend>Advanced Search</legend>
                    <table width="100%" border="0" cellspacing="2" cellpadding="1" class="search">
                    <tr>
                        <td>
                            <div class="optional">
                                <label for="title" class="search">Title</label>
                                <input name="title" type="text" id="title" class="medium" value="<?php echo e($this->option['title']); ?>" />
                            </div>
                        </td>
                        <td>
                            <div class="optional">
                                <label for="desc" class="search">Username</label>
                                <input name="username" type="text" id="username" class="medium" value="<?php echo e($this->option['username']); ?>" />
                            </div>
                        </td>
                        <td>
                            <div class="optional">
                                <label for="video_id" class="search">ID</label>
                                <input name="video_id" type="text" id="video_id" class="medium" value="<?php echo $this->option['video_id']; ?>" />
                            </div>
                        </td>
                    </tr>
                    <tr>                      
                        <td>
                            <div class="optional">
                                <label for="method" class="search">Method</label>
                                <select name="method" id="method">
                                    <option value="">All</option>
                                    <option value="hosted"<?php if ($this->option['method'] == 'hosted'): echo ' selected="selected"'; endif; ?>>Hosted</option>                                    
                                    <option value="embed"<?php if ($this->option['method'] == 'embed'): echo ' selected="selected"'; endif; ?>>Embedded</option>
                                    <option value="hotlink"<?php if ($this->option['method'] == 'hotlink'): echo ' selected="selected"'; endif; ?>>Hotlinked</option>
                                </select>
                            </div>
                        </td>
                        <td>
                            <div class="optional">
                                <label for="ext" class="search">Extension</label>
                                <select name="ext" id="ext">
                                    <option value="">All</option>
                                    <option value="flv"<?php if ($this->option['ext'] == 'flv'): echo ' selected="selected"'; endif; ?>>FLV</option>
                                    <option value="mp4"<?php if ($this->option['ext'] == 'mp4'): echo ' selected="selected"'; endif; ?>>MP4</option>
                                    <option value="hd"<?php if ($this->option['ext'] == 'hd'): echo ' selected="selected"'; endif; ?>>MP4 HD</option>
                                </select>
                            </div>
                        </td>
                        <td>
                            <div class="optional">
                                <label for="mobile" class="search">Mobile</label>
                                <select name="mobile" id="mobile">
                                    <option value="">All</option>
                                    <option value="1"<?php if ($this->option['mobile'] == '1'): echo ' selected="selected"'; endif; ?>>Yes</option>
                                    <option value="0"<?php if ($this->option['mobile'] == '0'): echo ' selected="selected"'; endif; ?>>No</option>
                                </select>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <div class="optional">
                                <label for="category" class="search">Category</label>
                                <select name="category" id="category">
                                <option value="">All</option>
                                <?php foreach ($this->categories as $categ): ?>
                                <option value="<?php echo $categ['cat_id']; ?>"<?php if ($this->option['category'] == $categ['cat_id']): echo ' selected="selected"'; endif; ?>><?php echo e($categ['name']); ?></option>
                                <?php endforeach; ?>
                                </select>
                            </div>
                        </td>
                        <td>
                            <div class="optional">
                                <label for="channel" class="search">Channel</label>
                                <select name="channel" id="channel">
                                    <option value="">All</option>
                                    <?php foreach ($this->channels as $channel): ?>
                                    <option value="<?php echo $channel['channel_id']; ?>"<?php if ($this->option['channel'] == $channel['channel_id']): echo ' selected="selected"'; endif; ?>><?php echo e($channel['name']); ?></option>
                                    <?php endforeach; ?>
                                </slect>
                            </div>
                        </td>
                        <td>
                            <div class="optional">
                                <label for="server" class="search">Server</label>
                                <select name="server" id="server">
                                    <option value="">All</option>
                                    <option value="0"<?php if ($this->option['server'] == '0'): echo ' selected="selected"'; endif; ?>>Main</option>
                                    <?php foreach ($this->servers as $server): ?>
                                    <option value="<?php echo $server['server_id']; ?>"<?php if ($this->option['server'] == $server['server_id']): echo ' selected="selected"'; endif; ?>><?php echo e($server['server_name']); ?></option>
                                    <?php endforeach; ?>
                                </select>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <div class="optional">
                                <label for="add_time" class="search">Added</label>
                                <select name="add_time" id="add_time">
                                <option value="">All</option>
                                <option value="today"<?php if ($this->option['add_time'] == 'today'): echo ' selected="selected"'; endif; ?>>Today</option>
                                <option value="yesterday"<?php if ($this->option['add_time'] == 'yesterday'): echo ' selected="selected"'; endif; ?>>Yesterday</option>
                                <option value="week"<?php if ($this->option['add_time'] == 'week'): echo ' selected="selected"'; endif; ?>>This Week</option>
                                <option value="month"<?php if ($this->option['add_time'] == 'month'): echo ' selected="selected"'; endif; ?>>This Month</option>
                                <option value="year"<?php if ($this->option['add_time'] == 'year'): echo ' selected="selected"'; endif; ?>>This Year</option>
                                </select>
                            </div>
                        </td>                        
                        <td>
                            <div class="optional">
                                <label for="flagged" class="search">Flagged</label>
                                <select name="flagged" id="flagged">
                                <option value="">All</option>
                                <option value="0"<?php if ($this->option['flagged'] == '0'): echo ' selected="selected"'; endif; ?>>No</option>
                                <option value="1"<?php if ($this->option['flagged'] == '1'): echo ' selected="selected"'; endif; ?>>Yes</option>
                                </select>
                            </div>
                        </td>                        
                        <td>
                            <div class="optional">
                                <label for="status" class="search">Status</label>
                                <select name="status" id="status">
                                <option value="">-------</option>
                                <option value="1"<?php if ($this->option['status'] == '1'): echo ' selected="selected"'; endif; ?>>Active</option>
                                <option value="0"<?php if ($this->option['status'] == '0'): echo ' selected="selected"'; endif; ?>>Suspended</option>
                                <option value="2"<?php if ($this->option['status'] == '2'): echo ' selected="selected"'; endif; ?>>Approve Required</option>
                                <option value="3"<?php if ($this->option['status'] == '3'): echo ' selected="selected"'; endif; ?>>Uploading</option>
                                <option value="4"<?php if ($this->option['status'] == '4'): echo ' selected="selected"'; endif; ?>>Converting</option>
                                <option value="5"<?php if ($this->option['status'] == '5'): echo ' selected="selected"'; endif; ?>>Grabing</option>
                                <option value="6"<?php if ($this->option['status'] == '6'): echo ' selected="selected"'; endif; ?>>Queue</option>
                                <option value="7"<?php if ($this->option['status'] == '7'): echo ' selected="selected"'; endif; ?>>Error</option>
                                </select>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <div class="optional">
                                <label for="sort" class="search">Sort</label>
                                <select name="sort" id="sort">
                                <option value="v.video_id"<?php if ($this->option['sort'] == 'v.video_id'): echo ' selected="selected"'; endif; ?>>Id</option>
                                <option value="v.title"<?php if ($this->option['sort'] == 'v.title'): echo ' selected="selected"'; endif; ?>>Title</option>
                                <option value="v.add_date"<?php if ($this->option['sort'] == 'v.add_date'): echo ' selected="selected"'; endif; ?>>Add Date</option>
                                <option value="v.total_views"<?php if ($this->option['sort'] == 'v.total_views'): echo ' selected="selected"'; endif; ?>>Total Views</option>
                                <option value="v.total_comments"<?php if ($this->option['sort'] == 'v.total_comments'): echo ' selected="selected"'; endif; ?>>Total Comments</option>
                                <option value="v.rating"<?php if ($this->option['sort'] == 'v.rating'): echo ' selected="selected"'; endif; ?>>Rating</option>
                                <option value="v.rated_by"<?php if ($this->option['sort'] == 'v.rated_by'): echo ' selected="selected"'; endif; ?>>Ratings</option>
                                <option value="v.duration"<?php if ($this->option['sort'] == 'v.duration'): echo ' selected="selected"'; endif; ?>>Duration</option>
                                <option value="v.featured"<?php if ($this->option['sort'] == 'v.featured'): echo ' selected="selected"'; endif; ?>>Featured</option>
                                <option value="v.status"<?php if ($this->option['sort'] == 'v.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
Реклама