147 lines
5.8 KiB
PHTML
Executable File
147 lines
5.8 KiB
PHTML
Executable File
<?php
|
|
$this->headTitle($this->config->title->site);
|
|
$this->headTitle('后台管理');
|
|
$this->headTitle()->setSeparator(' - ');
|
|
$this->headLink()->appendStylesheet('/css/admin.css');
|
|
$this->breadcrumb('<a href="/">首页</a>');
|
|
$this->breadcrumb('<a href="/admin/">后台首页</a>');
|
|
$this->breadcrumb('<a href="/admin/user">用户管理</a>');
|
|
$this->breadcrumb()->setSeparator(' > ');
|
|
?>
|
|
<div class="row">
|
|
<div class="hidden-sm hidden-xs col-md-2">
|
|
<?= $this->partial('user/left.phtml'); ?>
|
|
</div>
|
|
<div class="col-md-10 col-sm-12">
|
|
<?php if ($this->msg or $this->messages) :?>
|
|
<div id="message" class="alert alert-info">
|
|
<?php if ($this->msg) : ?>
|
|
<p><?php echo $this->msg; ?></p>
|
|
<?php endif; if ($this->messages): foreach($this->messages as $msg): ?>
|
|
<p><?php echo $msg; ?></p>
|
|
<?php endforeach;endif; ?>
|
|
</div>
|
|
<?php endif; ?>
|
|
<form name="form1" method="post" action="/admin/user/edit" class="form-horizontal">
|
|
<div class="form-group">
|
|
<label class="col-md-2 col-sm-2 col-xs-3 control-label">ID</label>
|
|
<div class="col-md-7 col-sm-7 col-xs-6">
|
|
<p class="form-control-static"><?= $this->infos['id'];?></p>
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-md-2 col-sm-2 col-xs-3 control-label">用户名</label>
|
|
<div class="col-md-7 col-sm-7 col-xs-6">
|
|
<p class="form-control-static"><?= $this->infos['username'];?></p>
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-md-2 col-sm-2 col-xs-3 control-label">真实姓名</label>
|
|
<div class="col-md-7 col-sm-7 col-xs-6">
|
|
<p class="form-control-static"><?= $this->infos['realname'];?></p>
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-md-2 col-sm-2 col-xs-3 control-label">电子邮箱</label>
|
|
<div class="col-md-7 col-sm-7 col-xs-6">
|
|
<p class="form-control-static"><?= $this->infos['email'];?></p>
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-md-2 col-sm-2 col-xs-3 control-label">注册时间</label>
|
|
<div class="col-md-7 col-sm-7 col-xs-6">
|
|
<p class="form-control-static"><?=$this->infos['ts_created'];?></p>
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-md-2 col-sm-2 col-xs-3 control-label">最后登陆时间</label>
|
|
<div class="col-md-7 col-sm-7 col-xs-6">
|
|
<p class="form-control-static"><?= $this->infos['ts_last_login'];?></p>
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-md-2 col-sm-2 col-xs-3 control-label">单位</label>
|
|
<div class="col-md-7 col-sm-7 col-xs-6">
|
|
<p class="form-control-static"><?= $this->infos['unit'];?></p>
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-md-2 col-sm-2 col-xs-3 control-label">地址</label>
|
|
<div class="col-md-7 col-sm-7 col-xs-6">
|
|
<p class="form-control-static"><?= $this->infos['address'];?></p>
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-md-2 col-sm-2 col-xs-3 control-label">电话</label>
|
|
<div class="col-md-7 col-sm-7 col-xs-6">
|
|
<p class="form-control-static"><?= $this->infos['phone'];?></p>
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-md-2 col-sm-2 col-xs-3 control-label">项目</label>
|
|
<div class="col-md-7 col-sm-7 col-xs-6">
|
|
<p class="form-control-static"><?= $this->infos['project'];?></p>
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-md-2 col-sm-2 col-xs-3 control-label">用户权限</label>
|
|
<div class="col-md-2 col-sm-2 col-xs-3">
|
|
<p class="form-control-static">
|
|
<select name="usertype" class="form-control">
|
|
<?php
|
|
if ($this->infos['usertype']=='member')
|
|
{ echo "
|
|
<option value='member' selected='selected'>普通会员</option>
|
|
<option value='administrator'>系统管理员</option>
|
|
";}
|
|
|
|
else if($this->infos['usertype']=='administrator')
|
|
|
|
{ echo "<option value='administrator' selected='selected'>系统管理员</option>
|
|
<option value='member'>普通会员</option>
|
|
";}
|
|
?>
|
|
</select>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-md-2 col-sm-2 col-xs-3 control-label">用户密码</label>
|
|
<div class="col-md-7 col-sm-7 col-xs-6">
|
|
<input type='password' name="newpwd" class="form-control" />
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-md-2 col-sm-2 col-xs-3 control-label">确认用户密码</label>
|
|
<div class="col-md-7 col-sm-7 col-xs-6">
|
|
<input type='password' name="cfnewpwd" class="form-control" />
|
|
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-md-2 col-sm-2"></label>
|
|
<div class="col-md-7 col-sm-7 col-xs-6 form_inline">
|
|
<input type='hidden' value="<?php echo $this->infos['id'];?>" name='id' />
|
|
<input type="submit" value="提交" class="btn btn-primary" />
|
|
<form name="lostpwd" action="/admin/user/fetchpwd">
|
|
<input type="hidden" name="id" value="<?= $this->infos['id'];?>" />
|
|
<input type="hidden" name="email" value="<?= $this->infos['email'];?>" />
|
|
<input type="submit" value="为他执行Eamil重置密码" class="btn btn-warning" />
|
|
</form>
|
|
<form name="lostpwd" action="/admin/user/delete">
|
|
<input type="hidden" name="id" value="<?= $this->infos['id'];?>" />
|
|
<input type="hidden" name="uname" value="<?= $this->infos['username'];?>" />
|
|
<input type="submit" value="删除该用户" class="btn btn-danger" />
|
|
</form>
|
|
<a class="btn btn-default" href="/admin/user/userauth/uid/<?= $this->infos['id'];?>">编辑权限</a>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
<div class="row">
|
|
<label class="col-md-2 col-sm-2"></label>
|
|
<div class="col-md-7 col-sm-7 col-xs-6 form_inline">
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|