Файл: Space race/admin/page/user-control.php
Строк: 55
<?php include_once('admin.php'); ?>
<legend>Управление пользователями</legend>
<div class="row">
<div class="col-md-12 pull-right">
<form method="post" id="search-users-form" action="classes/add_user.class.php" class="form-inline">
<div class="form-group">
<button id="add_new_user_btn" class="btn btn-default">Добавить пользователя</button>
<div class="input-group">
<span class="input-group-addon">
<label for="username-search"><a href="#" data-rel="tooltip-bottom" title="Поиск по ID, логину и т.д."><i class="glyphicon glyphicon-search"></i></a></label>
</span>
<input class="form-control" id="username-search" type="text" name="searchUsers" onkeyup="searchSuggest(event);" placeholder="Поиск">
</div>
<input type="number" class="form-control input-mini" min="0" id="showUsers" name="showUsers" placeholder="Показать" value="<?php echo !empty($_SESSION['starrace']['users_page_limit']) ? $_SESSION['starrace']['users_page_limit'] : 10; ?>">
</div>
</form>
</div>
<div class="col-md-4">
<div class="img-thumbnail" style="display:none; width:100%;" id="search_suggest_user"></div>
</div>
</div>
<div id="add_user" style="display:none;">
<?php include_once('user-add.php'); ?>
</div>
<div id="user_list">
<?php list_registered(); ?>
</div>
<script>
$('#add_new_user_btn').click(function(e) {
e.preventDefault();
$('#add_user').slideToggle();
});
$('#showUsers').blur(function() {
$.post('classes/functions.php', {'showUsers' : $(this).val()});
/* Little hack to refresh the page silently... */
$('a[href="#level-control"]').tab('show');
$('a[href="#user-control"]').tab('show');
});
</script>