对搜索功能和页面模板进行了调整
This commit is contained in:
parent
25143eafb1
commit
c845a73e8e
|
@ -49,9 +49,9 @@ class Admin_UserController extends Zend_Controller_Action
|
|||
function searchAction()
|
||||
{
|
||||
$search = $this->_getParam('search');
|
||||
$realname = $this->_getParam('realname');
|
||||
$unit = $this->_getParam('unit');
|
||||
$project = $this->_getParam('project');
|
||||
$realname = $this->view->realname = $this->_getParam('realname');
|
||||
$unit = $this->view->unit = $this->_getParam('unit');
|
||||
$project = $this->view->project = $this->_getParam('project');
|
||||
|
||||
$select=$this->db->select();
|
||||
|
||||
|
|
|
@ -4,17 +4,14 @@
|
|||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headLink()->appendStylesheet('/css/admin.css');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('后台管理首页');
|
||||
$this->breadcrumb('<a href="/admin/">后台首页</a>');
|
||||
$this->breadcrumb('<a href="/admin/user">用户管理</a>');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<div id="divContent">
|
||||
|
||||
<div id="leftPanel">
|
||||
<ul>
|
||||
<li class="title">用户管理</li>
|
||||
<li><a href="/admin/user/list">普通用户列表</a></li>
|
||||
<li><a href="/admin/user/adminlist">管理员列表</a></li>
|
||||
</ul>
|
||||
<?= $this->partial('user/left.phtml'); ?>
|
||||
</div>
|
||||
|
||||
<div id="rightPanel">
|
||||
|
|
|
@ -10,16 +10,10 @@
|
|||
<div id="divContent">
|
||||
|
||||
<div id="leftPanel">
|
||||
<ul>
|
||||
<li class="title">用户管理</li>
|
||||
<li><a href="/admin/user/list">普通用户列表</a></li>
|
||||
<li><a href="/admin/user/adminlist">管理员列表</a></li>
|
||||
</ul>
|
||||
|
||||
<?= $this->partial('user/left.phtml'); ?>
|
||||
</div>
|
||||
|
||||
<div id="rightPanel">
|
||||
|
||||
<div style="font-size:16px;line-height:30px;">用户总数: <?php echo $this->su['total'];?></div>
|
||||
<div style="font-size:16px;line-height:30px;">管理员: <?php echo $this->suadmin['total'];?></div>
|
||||
<div style="font-size:16px;line-height:30px;">搜索用户</div>
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
<ul>
|
||||
<li class="title">用户管理</li>
|
||||
<li><a href="/admin/user/">用户管理首页</a></li>
|
||||
<li><a href="/admin/user/list">普通用户列表</a></li>
|
||||
<li><a href="/admin/user/adminlist">管理员列表</a></li>
|
||||
</ul>
|
|
@ -4,18 +4,14 @@
|
|||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headLink()->appendStylesheet('/css/admin.css');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/admin">后台管理首页</a>');
|
||||
$this->breadcrumb('用户列表');
|
||||
$this->breadcrumb('<a href="/admin/">后台首页</a>');
|
||||
$this->breadcrumb('<a href="/admin/user">用户管理</a>');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<div id="divContent">
|
||||
|
||||
<div id="leftPanel">
|
||||
<ul>
|
||||
<li class="title">用户管理</li>
|
||||
<li><a href="/admin/user/list">普通用户列表</a></li>
|
||||
<li><a href="/admin/user/adminlist">管理员列表</a></li>
|
||||
</ul>
|
||||
<?= $this->partial('user/left.phtml'); ?>
|
||||
</div>
|
||||
|
||||
<?php if ($this->msg or $this->messages) :?>
|
||||
|
@ -31,17 +27,28 @@
|
|||
|
||||
<div id="rightPanel">
|
||||
<div style="font-size:16px;line-height:30px;">用户列表</div>
|
||||
<div class="search">
|
||||
<form action="/admin/user/search/" method="get">
|
||||
<input type="hidden" name="search" value='1' />
|
||||
<ul>
|
||||
<li><label>姓名</label><input type="text" name="realname" value="<?php echo $this->realname; ?>" /></li>
|
||||
<li><label>单位</label><input type="text" name="unit" value="<?php echo $this->unit; ?>" /></li>
|
||||
<li><label>项目</label><input type="text" name="project" value="<?php echo $this->project; ?>" /></li>
|
||||
<li><input type="submit" class="searchbtn" value="搜索" /></li>
|
||||
</ul>
|
||||
</form>
|
||||
</div><!-- search DIV -->
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<td width='150'>用户名</td>
|
||||
<td width='250'>电子邮箱</td>
|
||||
<td width='100'>用户类型</td>
|
||||
<td width='200'>单位</td>
|
||||
<td width='100'>真实姓名</td>
|
||||
<td width='150'>操作</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tr>
|
||||
<td width='150'>用户名</td>
|
||||
<td width='250'>电子邮箱</td>
|
||||
<td width='100'>用户类型</td>
|
||||
<td width='200'>单位</td>
|
||||
<td width='100'>真实姓名</td>
|
||||
<td width='150'>操作</td>
|
||||
</tr>
|
||||
</thead><!-- table's head -->
|
||||
<?php if (count($this->paginator)): ?>
|
||||
<?php $autoindex=0;?>
|
||||
<?php foreach ($this->paginator as $item): ?>
|
||||
|
|
|
@ -4,18 +4,14 @@
|
|||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headLink()->appendStylesheet('/css/admin.css');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/admin">后台管理首页</a>');
|
||||
$this->breadcrumb('用户列表');
|
||||
$this->breadcrumb('<a href="/admin/">后台首页</a>');
|
||||
$this->breadcrumb('<a href="/admin/user">用户管理</a>');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<div id="divContent">
|
||||
|
||||
<div id="leftPanel">
|
||||
<ul>
|
||||
<li class="title">用户管理</li>
|
||||
<li><a href="/admin/user/list">普通用户列表</a></li>
|
||||
<li><a href="/admin/user/adminlist">管理员列表</a></li>
|
||||
</ul>
|
||||
<?= $this->partial('user/left.phtml'); ?>
|
||||
</div>
|
||||
|
||||
<?php if ($this->msg or $this->messages) :?>
|
||||
|
|
Loading…
Reference in New Issue