Файл: adultscript-2.0.3-pro/files/admin/templates/default/user_search.tpl.php
Строк: 241
<?php defined('_VALID') or die('Restricted Access!'); ?>
<?php if (!isset($this->option)):
if (isset($_SESSION['search_user_option'])):
$this->option = $_SESSION['search_user_option'];
else:
$this->option = array(
'username' => '', 'email' => '', 'name' => '',
'gender' => '', 'ip' => '', 'country' => '',
'group' => '', 'verified' => '', 'status' => '',
'sort' => 'u.user_id', 'order' => 'DESC', 'display' => 10
);
endif;
$this->countries = VCountry::get();
if (!isset($this->groups)):
$this->groups = VF::factory('database')->get_rows("SELECT group_id, name FROM #__user_groups ORDER BY group_id ASC");
endif;
endif; ?>
<div id="search_advanced" style="display: none;">
<form name="search-users-form" id="search-users-form" method="post" action="<?php echo ADMIN_URL; ?>/index.php?q=user/manage">
<fieldset>
<legend>Advanced Search</legend>
<table width="100%" border="0" cellspacing="2" cellpadding="1" class="search">
<tr>
<td>
<div class="optional">
<label for="username" 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="email" class="search">Email</label>
<input name="email" type="text" id="email" class="medium" value="<?php echo e($this->option['email']); ?>" />
</div>
</td>
<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>
</tr>
<tr>
<td>
<div class="optional">
<label for="gender" class="search">Gender</label>
<select name="gender" id="gender">
<option value="">All</option>
<option value="hidden"<?php if ($this->option['gender'] == 'hidden'): echo ' selected="selected"'; endif; ?>>Hidden</option>
<option value="male"<?php if ($this->option['gender'] == 'male'): echo ' selected="selected"'; endif; ?>>Male</option>
<option value="female"<?php if ($this->option['gender'] == 'female'): echo ' selected="selected"'; endif; ?>>Female</option>
</select>
</div>
</td>
<td>
<div class="optional">
<label for="country" class="search">Country</label>
<select name="country" id="country">
<option value="">All</option>
<?php foreach ($this->countries as $code => $name): ?>
<option value="<?php echo e($code); ?>"<?php if ($name == $this->option['country']): ?> selected="selected"<?php endif; ?>><?php echo e(VText::truncate_chars($name, 20)); ?></option>
<?php endforeach; ?>
</select>
</div>
</td>
<td>
<div class="optional">
<label for="ip" class="search">Ip</label>
<input name="ip" type="text" id="ip" class="medium" value="<?php echo e($this->option['ip']); ?>" />
</div>
</td>
</tr>
<tr>
<td>
<div class="optional">
<label for="group" class="search">Group</label>
<select name="group" id="group">
<option value="">All</option>
<?php foreach ($this->groups as $group): ?>
<option value="<?php echo $group['group_id']; ?>"<?php if ($group['group_id'] == $this->option['group']): echo ' selected="selected"'; endif; ?>><?php echo e($group['name']); ?></option>
<?php endforeach; ?>
</select>
</div>
</td>
<td>
<div class="optional">
<label for="verified" class="search">Verified</label>
<select name="verified" id="verified">
<option value="">All</option>
<option value="0"<?php if ($this->option['verified'] == '0'): echo ' selected="selected"'; endif; ?>>No</option>
<option value="1"<?php if ($this->option['verified'] == '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="">All</option>
<option value="0"<?php if ($this->option['status'] == '0'): echo ' selected="selected"'; endif; ?>>Suspended</option>
<option value="1"<?php if ($this->option['status'] == '1'): echo ' selected="selected"'; endif; ?>>Active</option>
<option value="2"<?php if ($this->option['status'] == '2'): echo ' selected="selected"'; endif; ?>>Approve Required</option>
</select>
</div>
</td>
</tr>
<tr>
<td>
<div class="optional">
<label for="sort" class="search">Sort</label>
<select name="sort" id="sort">
<option value="u.user_id"<?php if ($this->option['sort'] == 'u.user_id'): echo ' selected="selected"'; endif; ?>>Id</option>
<option value="u.username"<?php if ($this->option['sort'] == 'u.username'): echo ' selected="selected"'; endif; ?>>Username</option>
<option value="u.gender"<?php if ($this->option['sort'] == 'u.gender'): echo ' selected="selected"'; endif; ?>>Gender</option>
<option value="u.join_date"<?php if ($this->option['sort'] == 'u.join_date'): echo ' selected="selected"'; endif; ?>>Join Date</option>
<option value="u.login_date"<?php if ($this->option['sort'] == 'u.login_date'): echo ' selected="selected"'; endif; ?>>Login Date</option>
<option value="u.popularity"<?php if ($this->option['sort'] == 'u.popularity'): echo ' selected="selected"'; endif; ?>>Popularity</option>
<option value="u.country"<?php if ($this->option['sort'] == 'u.country'): echo ' selected="selected"'; endif; ?>>Country</option>
<option value="u.verified"<?php if ($this->option['sort'] == 'u.verified'): echo ' selected="selected"'; endif; ?>>Verified</option>
<option value="u.status"<?php if ($this->option['sort'] == 'u.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>