70 lines
2.5 KiB
PHTML
Executable File
70 lines
2.5 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 id="divContent">
|
|
|
|
<div id="leftPanel">
|
|
<?= $this->partial('user/left.phtml'); ?>
|
|
</div>
|
|
|
|
<?php if ($this->msg or $this->messages) :?>
|
|
<div id="message">
|
|
<?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; ?>
|
|
|
|
<div id="rightPanel">
|
|
<form name="form1" method="post" action="/admin/user/edit">
|
|
<table>
|
|
<tr><td width="100">ID</td><td width="600"><?= $this->infos['id'];?></td></tr>
|
|
<tr><td>用户名</td><td><?= $this->infos['username'];?></td></tr>
|
|
<tr><td>真实姓名</td><td><?= $this->infos['realname'];?></td></tr>
|
|
<tr><td>电子邮箱</td><td><?= $this->infos['email'];?></td></tr>
|
|
<tr><td>注册时间</td><td><?=$this->infos['ts_created'];?></td></tr>
|
|
<tr><td>最后登陆时间</td><td><?= $this->infos['ts_last_login'];?></td></tr>
|
|
<tr><td>单位</td><td><?= $this->infos['unit'];?></td></tr>
|
|
<tr><td>地址</td><td><?= $this->infos['address'];?></td></tr>
|
|
<tr><td>电话</td><td><?= $this->infos['phone'];?></td></tr>
|
|
<tr><td>项目</td><td><?= $this->infos['project'];?></td></tr>
|
|
<tr><td>用户权限</td><td>
|
|
<select name="usertype">
|
|
<?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>
|
|
</td></tr>
|
|
<tr><td>用户密码</td><td><input type='password' name="newpwd" /></td></tr>
|
|
<tr><td>确认用户密码</td><td><input type='password' name="cfnewpwd" /></td></tr>
|
|
</table>
|
|
<input type='hidden' value="<?php echo $this->infos['id'];?>" name='id' />
|
|
<input type="submit" value="提交" />
|
|
</form>
|
|
<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="为他执行重置密码"/>
|
|
</form>
|
|
</div>
|