Файл: Space race/admin/users.php
Строк: 89
<?php
include_once( dirname(dirname(__FILE__)) . '/classes/check.class.php');
protect("1");
include_once('header.php');
include_once('classes/edit_user.class.php');
$edituser = new Edit_user;
?>
<h1><?php echo $edituser->get_gravatar($edituser->getField('email'), true, 54); ?> <?php echo $edituser->getField('username') . ' (' . $edituser->getField('name') . ')'; ?></h1>
<br>
<div class="tabbable tabs-left">
<ul class="nav nav-tabs">
<li class="active"><a href="#usr-control" data-toggle="tab"><i class="glyphicon glyphicon-cog"></i> Основное</a></li>
<?php $edituser->generateProfileTabs(); ?>
<?php if (!$edituser->denyAccessLogs()) : ?>
<li><a href="#usr-access-logs" data-toggle="tab"><i class="glyphicon glyphicon-list-alt"></i> Логи доступа</a></li>
<?php endif; ?>
</ul>
<form method="post" class="">
<div class="tab-content">
<div class="tab-pane fade col-md-10 in active" id="usr-control">
<fieldset>
<legend>Основное</legend>
<div class="form-group">
<label class="control-label" for="name">Имя</label>
<div class="controls">
<input type="text" class="form-control input-xlarge" id="name" name="name" value="<?php echo $edituser->getField('name'); ?>">
</div>
</div>
<div class="form-group">
<label class="control-label" for="password">Пароль</label>
<div class="controls">
<input type="password" autocomplete="off" class="form-control input-xlarge" id="password" name="password">
</div>
</div>
<div class="form-group">
<label class="control-label" for="password2">Подтверждение пароля</label>
<div class="controls">
<input type="password" autocomplete="off" class="form-control input-xlarge" id="password2" name="password2">
</div>
</div>
<div class="form-group">
<label class="control-label" for="email">Email</label>
<div class="controls">
<input type="email" class="form-control input-xlarge" id="email" name="email" value="<?php echo $edituser->getField('email'); ?>">
</div>
</div>
<div class="form-group">
<label class="control-label" for="user_level">Группы</label>
<?php $edituser->getLevels(); ?>
</div>
<?php if ( $edituser->getOption('profile-public-enable') ) : ?>
<div class="form-group">
<label class="control-label" for="confirm">Ссылка на профиль</label>
<div class="controls">
<span class="uneditable-input"><?php echo SITE_PATH . 'profile.php?uid=' . $edituser->getField('user_id'); ?></span>
</div>
</div>
<?php endif; ?>
<div class="form-group">
<div class="controls checkbox">
<label>
<input type="checkbox" id="restricted" name="restricted" <?php if($edituser->getField('restricted') > 0) echo 'checked="checked"'; ?>>
Забанить
</label>
</div>
</div>
<div class="form-group">
<div class="controls checkbox">
<label>
<input type="checkbox" id="delete" name="delete">
Удалить пользователя
</label>
</div>
</div>
</fieldset>
</div>
<?php $edituser->generateProfilePanels(); ?>
<?php if (!$edituser->denyAccessLogs()) : ?>
<div class="tab-pane fade col-md-10" id="usr-access-logs">
<fieldset>
<legend>Логи доступа</legend>
<?php $edituser->generateAccessLogs(); ?>
</fieldset>
</div>
<?php endif; ?>
</div>
<div class="form-actions">
<button type="submit" class="btn btn-primary" />Обновить</button>
</div>
</form>
</div>
<?php include_once('footer.php'); ?>