修改三江源子平台后台UI

This commit is contained in:
Li Jianxuan 2014-06-12 09:16:30 +00:00
parent d928c3f573
commit 40f2fc8d04
24 changed files with 2549 additions and 2466 deletions

View File

@ -2651,11 +2651,10 @@ class Admin_DataController extends Zend_Controller_Action
{
$uuid = $this->_getParam('uuid');
$submit = $this->_getParam('submit');
$visual = new Visual\Visual;
if(!empty($uuid))
{
$visual = new Visual\Visual;
$this->_helper->viewRenderer('visual-add');
$this->view->data = ['uuid' => $uuid];
@ -2689,6 +2688,9 @@ class Admin_DataController extends Zend_Controller_Action
return true;
}
}
view::addPaginator($visual->getVisualMetadata(),$this,10);
return;
}

View File

@ -48,7 +48,7 @@ class Admin_UserController extends Zend_Controller_Action
$paginator->setCurrentPageNumber($this->_getParam('page'));
$paginator->setItemCountPerPage(30);
$paginator->setView($this->view);
Zend_View_Helper_PaginationControl::setDefaultViewPartial('pagination.phtml');
Zend_View_Helper_PaginationControl::setDefaultViewPartial('pagination_param.phtml');
$this->view->paginator=$paginator;
}//listAction
@ -127,7 +127,7 @@ class Admin_UserController extends Zend_Controller_Action
$paginator->setCurrentPageNumber($this->_getParam('page'));
$paginator->setItemCountPerPage(30);
$paginator->setView($this->view);
Zend_View_Helper_PaginationControl::setDefaultViewPartial('pagination.phtml');
Zend_View_Helper_PaginationControl::setDefaultViewPartial('pagination_param.phtml');
$this->view->paginator=$paginator;
$ac = $this->_getParam('ac');

View File

@ -1,11 +1,14 @@
<ul class="nav nav-pills nav-stacked well">
<span class="label"><h4>数据管理</h4></span>
<li><a href="/admin/data/md">元数据管理</a></li>
<li><a href="/admin/data/newdata">新建元数据</a></li>
<li><a href="/admin/data/author">数据作者管理</a></li>
<li><a href="/admin/data/version">数据版本管理</a></li>
<li><a href="/admin/data/comment">数据反馈管理</a></li>
<li><a href="/admin/data/attachments">数据附件管理</a></li>
<li><a href="/admin/data/fund">支持项目</a></li>
<li><a href="/admin/data/visual">可视化数据</a></li>
</ul>
<div class="well" style="padding:8px 0">
<ul class="nav nav-list">
<li class="nav-header"><h4>数据管理</h4></li>
<li class="divider"></li>
<li><a href="/admin/data/md">元数据管理</a></li>
<li><a href="/admin/data/newdata">新建元数据</a></li>
<li><a href="/admin/data/author">数据作者管理</a></li>
<li><a href="/admin/data/version">数据版本管理</a></li>
<li><a href="/admin/data/comment">数据反馈管理</a></li>
<li><a href="/admin/data/attachments">数据附件管理</a></li>
<li><a href="/admin/data/fund">支持项目</a></li>
<li><a href="/admin/data/visual">可视化数据</a></li>
</ul>
</div>

View File

@ -2,7 +2,6 @@
$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/data">数据管理</a>');
@ -10,71 +9,79 @@
$this->breadcrumb()->setSeparator(' > ');
$this->theme->AppendPlus($this,'colorbox');
?>
<div id="leftPanel">
<?= $this->partial('data/left.phtml'); ?>
</div>
<div id="rightPanel">
<?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 class="row-fluid">
<div class="span2">
<?= $this->partial('data/left.phtml'); ?>
</div>
<div class="span10">
<div class="right_title">元数据管理</div>
<h3>元数据管理</h3>
<hr />
<div class="search">
<form action="" method="get">
<div class="input-prepend">
<input type="hidden" name="search" value='1' />
<input class="span2 search-query" type="text" name="keyword" value="<?php echo $this->keyword; ?>" placeholder="搜索关键字"/>
<input type="submit" class="btn" value="搜索" />
</div>
</form>
</div><!-- search 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; ?>
<a href="/admin/data/md/down/1">下载全部xml元数据</a>
<?php if (count($this->paginator)): ?>
<div class="datalist">
<ul>
<?php foreach ($this->paginator as $item): ?>
<li class="well well-small">
<h4><a href="/data/<?= $item['uuid']; ?>" class="title"><?= $item['title']; ?></a></h4>
<p>大小:<?= $item['filesize']; ?>M创建时间<?= date('Y-m-d',strtotime($item['ts_created'])); ?>,查看:<?= $item['viewed']; ?>次。</p>
<p>
操作:
<a href="/service/geonetwork?url=metadata.edit?id=<?= $item['gid']; ?>" target="_blank">编辑</a> |
<a href="/admin/data/md/delete/<?= $item['uuid']; ?>">删除</a> |
<a href="/admin/data/md/att/1/uuid/<?php echo $item['uuid'];?>">附件管理</a> |
<a href="/admin/data/comment/uuid/<?php echo $item['uuid'];?>">反馈管理</a> |
<a href="/admin/data/author/uuid/<?php echo $item['uuid'];?>">作者管理</a> |
<a href="/admin/data/version/uuid/<?php echo $item['uuid'];?>">版本管理</a> |
<?php if (@!is_numeric($item['mdstatus'])) : ?>
<a href="/admin/review/addon/uuid/<?php echo $item['uuid'];?>">放入元数据评审</a> |
<?php endif; ?>
<?php if(!empty($item['datasetid'])):?>
<a href="/admin/data/dataset/ac/getdataset/uuid/<?php echo $item['uuid'];?>" class="iframe">数据路径</a> |
<a href="/admin/data/dataset/ac/import/uuid/<?php echo $item['uuid'];?>" class="iframe">重新导入数据目录</a> |
<?php else: ?>
<a href="/admin/data/dataset/ac/getdataset/uuid/<?php echo $item['uuid'];?>" class="iframe">设置数据路径</a> |
<?php endif;?>
<a href="/admin/down/sendmail/uuid/<?php echo $item['uuid'];?>" title="向数据下载者发送通知邮件">邮件通知</a> |
<a href="/admin/data/fund/uuid/<?php echo $item['uuid'];?>">支持项目</a> |
<a href="/admin/data/visual/uuid/<?php echo $item['uuid'];?>">数据可视化</a>
</p>
<?php if($item['author']) :?>
<p>数据贡献者:<?= $item['author']; ?></p>
<?php endif;?>
<p class="content"><?= $item['description']; ?></p>
</li>
<?php endforeach; ?>
</ul>
</div>
<?php endif; ?>
<?php echo $this->paginator; ?>
<div class="search" style="overflow:hidden;">
<div class="span6">
<form action="" method="get" class="form-search">
<div class="input-append">
<input type="hidden" name="search" value='1' />
<input class="span12" type="text" name="keyword" value="<?php echo $this->keyword; ?>" placeholder="搜索关键字"/>
<button type="submit" class="btn">搜索</button>
</div>
</form>
</div>
<div class="span6 text-right">
<a href="/admin/data/md/down/1">下载全部xml元数据</a>
</div>
</div><!-- search DIV -->
<?php if (count($this->paginator)): ?>
<div class="datalist">
<ul class="unstyled">
<?php foreach ($this->paginator as $item): ?>
<li class="well well-small">
<h4><a href="/data/<?= $item['uuid']; ?>" class="title"><?= $item['title']; ?></a></h4>
<p>大小:<?= $item['filesize']; ?>M创建时间<?= date('Y-m-d',strtotime($item['ts_created'])); ?>,查看:<?= $item['viewed']; ?>次。</p>
<?php if($item['author']) :?>
<p>数据贡献者:<?= $item['author']; ?></p>
<?php endif;?>
<p class="content"><?= $item['description']; ?></p>
<p>
操作:
<a href="/service/geonetwork?url=metadata.edit?id=<?= $item['gid']; ?>" target="_blank">编辑</a> |
<a href="/admin/data/md/delete/<?= $item['uuid']; ?>">删除</a> |
<a href="/admin/data/md/att/1/uuid/<?php echo $item['uuid'];?>">附件管理</a> |
<a href="/admin/data/comment/uuid/<?php echo $item['uuid'];?>">反馈管理</a> |
<a href="/admin/data/author/uuid/<?php echo $item['uuid'];?>">作者管理</a> |
<a href="/admin/data/version/uuid/<?php echo $item['uuid'];?>">版本管理</a> |
<?php if (@!is_numeric($item['mdstatus'])) : ?>
<a href="/admin/review/addon/uuid/<?php echo $item['uuid'];?>">放入元数据评审</a> |
<?php endif; ?>
<?php if(!empty($item['datasetid'])):?>
<a href="/admin/data/dataset/ac/getdataset/uuid/<?php echo $item['uuid'];?>" class="iframe">数据路径</a> |
<a href="/admin/data/dataset/ac/import/uuid/<?php echo $item['uuid'];?>" class="iframe">重新导入数据目录</a> |
<?php else: ?>
<a href="/admin/data/dataset/ac/getdataset/uuid/<?php echo $item['uuid'];?>" class="iframe">设置数据路径</a> |
<?php endif;?>
<a href="/admin/down/sendmail/uuid/<?php echo $item['uuid'];?>" title="向数据下载者发送通知邮件">邮件通知</a> |
<a href="/admin/data/fund/uuid/<?php echo $item['uuid'];?>">支持项目</a> |
<a href="/admin/data/visual/uuid/<?php echo $item['uuid'];?>">数据可视化</a>
</p>
</li>
<?php endforeach; ?>
</ul>
</div>
<?php endif; ?>
<?php echo $this->paginator; ?>
</div>
</div>
<script>
$(".iframe").colorbox({iframe:true, width:"50%", height:"50%"});

View File

@ -2,19 +2,38 @@
$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/data">数据管理</a>');
$this->breadcrumb('同步GEONETWORK元数据</a>');
$this->breadcrumb()->setSeparator(' > ');
?>
<div class="row">
<div class="span3">
<div class="row-fluid">
<div class="span2">
<?= $this->partial('data/left.phtml'); ?>
</div>
<div class="span9">
<div class="span10">
<?php if (count($this->paginator)): ?>
<div class="datalist">
<ul class="unstyled">
<?php foreach ($this->paginator as $item): ?>
<li class="well well-small">
<h4><a href="/data/<?= $item['uuid']; ?>" class="title"><?= $item['title']; ?></a></h4>
<p>大小:<?= $item['filesize']; ?>M创建时间<?= date('Y-m-d',strtotime($item['ts_created'])); ?></p>
<?php if($item['author']) :?>
<p>数据贡献者:<?= $item['author']; ?></p>
<?php endif;?>
<p class="content"><?= $item['description']; ?></p>
<p>
操作:
<a href="/admin/data/visual/uuid/<?php echo $item['uuid'];?>">编辑可视化要素</a>
</p>
</li>
<?php endforeach; ?>
</ul>
</div>
<?php endif; ?>
<?php echo $this->paginator; ?>
</div>
</div>

View File

@ -2,7 +2,6 @@
$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/down">申请管理</a>');
@ -10,53 +9,60 @@
$this->breadcrumb()->setSeparator(' > ');
$this->headScript()->appendFile('/js/prototype.js');
?>
<div class="row-fluid">
<div class="span2">
<?= $this->partial('down/left.phtml'); ?>
</div>
<div class="span10">
<div id="leftPanel">
<?= $this->partial('down/left.phtml'); ?>
</div>
<div id="rightPanel">
<?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 class="right_title"><?php if(!empty($this->title)) echo $this->title;?><?php echo $this->count;?> 数据下载记录</div>
<div class="search">
<form action="/admin/down/data/" method="get">
<input type="hidden" name="search" value='1' />
<ul>
<li><label>搜索关键字</label><input type="text" name="keyword" value="<?php echo $this->keyword; ?>" /></li>
<li><input type="submit" class="searchbtn" value="搜索" /></li>
</ul>
</form>
</div><!-- search DIV -->
<table><thead>
<tr>
<td width='350'>数据</td>
<td width='150'>下载次数</td>
<td width='150'>操作</td>
</tr></thead>
<?php if (count($this->paginator)): ?>
<?php $autoindex=0;?>
<?php foreach ($this->paginator as $item): ?>
<?php $autoindex++;?>
<tr class="<?php if($autoindex%2 == 0) echo 'even'; else echo 'odd'; ?>">
<td><a href="/data/<?php echo $item['uuid'];?>" target="_blank"><img src="/images/data.gif" /></a><a href="/admin/down/data/show/<?php echo $item['uuid'];?>"><?php echo $item['title'];?></a></td>
<td><?php echo $item['num']; ?></td>
<td>
<a href='/admin/down/data/show/<?php echo $item['uuid'];?>'>详细</a>
<a href="/admin/down/sendmail/uuid/<?php echo $item['uuid'];?>" title="向数据下载者发送通知邮件">邮件通知</a>
</td>
</tr>
<?php endforeach; ?>
<?php endif; ?>
</table>
<div class="pagenavi"><?= $this->paginator; ?></div>
<h3><?php if(!empty($this->title)) echo $this->title;?><?php echo $this->count;?> 数据下载记录</h3>
<hr />
<?php if ($this->msg or $this->messages) :?>
<div class="alert">
<?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 class="row-fluid">
<div class="span12">
<form action="/admin/down/data/" method="get" class="form-search">
<div class="input-append">
<input type="hidden" name="search" value='1' />
<input type="text" name="keyword" value="<?php echo $this->keyword; ?>" class="span8 search-query"/>
<button type="submit" class="btn">搜索</button>
</div>
</form>
</div>
</div><!-- search DIV -->
<table class="table table-hover">
<thead>
<tr>
<td width='350'>数据</td>
<td width='150'>下载次数</td>
<td width='150'>操作</td>
</tr>
</thead>
<?php if (count($this->paginator)): ?>
<?php $autoindex=0;?>
<?php foreach ($this->paginator as $item): ?>
<?php $autoindex++;?>
<tr class="<?php if($autoindex%2 == 0) echo 'even'; else echo 'odd'; ?>">
<td><a href="/data/<?php echo $item['uuid'];?>" target="_blank"><img src="/images/data.gif" /></a><a href="/admin/down/data/show/<?php echo $item['uuid'];?>"><?php echo $item['title'];?></a></td>
<td><?php echo $item['num']; ?></td>
<td>
<a href='/admin/down/data/show/<?php echo $item['uuid'];?>'>详细</a>
<a href="/admin/down/sendmail/uuid/<?php echo $item['uuid'];?>" title="向数据下载者发送通知邮件">邮件通知</a>
</td>
</tr>
<?php endforeach; ?>
<?php endif; ?>
</table>
<div class="pagenavi"><?= $this->paginator; ?></div>
</div>
</div>

View File

@ -2,15 +2,16 @@
$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('申请管理');
$this->breadcrumb()->setSeparator(' > ');
?>
<div id="leftPanel">
<?= $this->partial('down/left.phtml'); ?>
</div>
<div id="rightPanel">
<div class="row-fluid">
<div class="span2">
<?= $this->partial('down/left.phtml'); ?>
</div>
<div class="span10">
</div>
</div>

View File

@ -1,8 +1,11 @@
<ul class="nav nav-pills nav-stacked well">
<span class="label"><h4>申请管理与记录</h4></span>
<li><a href="/admin/down/offlineapp">离线数据申请管理</a></li>
<li><a href="/admin/down/offline">离线数据服务记录</a></li>
<li><a href="/admin/down/online">在线数据下载记录</a></li>
<li><a href="/admin/down/user">用户下载记录</a></li>
<li><a href="/admin/down/data">数据下载记录</a></li>
</ul>
<div class="well" style="padding:8px 0">
<ul class="nav nav-list">
<li class="nav-header"><h4>申请管理与记录</h4></li>
<li class="divider"></li>
<li><a href="/admin/down/offlineapp">离线数据申请管理</a></li>
<li><a href="/admin/down/offline">离线数据服务记录</a></li>
<li><a href="/admin/down/online">在线数据下载记录</a></li>
<li><a href="/admin/down/user">用户下载记录</a></li>
<li><a href="/admin/down/data">数据下载记录</a></li>
</ul>
</div>

View File

@ -15,10 +15,14 @@ table thead tr th {background:#EBF2F6;color:#444;}
.high{background:#444;color:#FFF;}
</style>
<div class="row-fluid">
<div class="span3">
<div class="span2">
<?= $this->partial('down/left.phtml'); ?>
</div>
<div class="span9">
<div class="span10">
<h3>离线数据服务记录</h3>
<hr />
<?php if ($this->msg or $this->messages) :?>
<div id="message">
<?php if ($this->msg) : ?>
@ -28,9 +32,6 @@ table thead tr th {background:#EBF2F6;color:#444;}
<?php endforeach;endif; ?>
</div>
<?php endif; ?>
<h4>离线数据服务记录</h4>
<div class="pull-left">
<a href="/admin/down/offline/add/1" class="btn btn-info">添加新的离线服务记录</a>
<a href="/admin/down/offline/down/1" class="btn btn-info">下载所有离线服务记录</a>

View File

@ -11,11 +11,14 @@
$this->breadcrumb()->setSeparator(' > ');
?>
<div class="row-fluid">
<div class="span3">
<div class="span2">
<?= $this->partial('down/left.phtml'); ?>
</div>
<div class="span9">
<?php if ($this->msg or $this->messages) :?>
<div class="span10">
<h3>离线数据申请管理</h3>
<hr />
<?php if ($this->msg or $this->messages) :?>
<div id="message">
<?php if ($this->msg) : ?>
<p><?php echo $this->msg; ?></p>
@ -25,8 +28,6 @@
</div>
<?php endif; ?>
<h4>离线数据申请管理</h4>
<div style="overflow:hidden">
<div class="pull-left">
<a href="/admin/down/offlineapp/status/4" class="btn btn-info">已收到的申请</a>

View File

@ -2,69 +2,71 @@
$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/down">申请管理</a>');
$this->breadcrumb('在线数据下载记录</a>');
$this->breadcrumb()->setSeparator(' > ');
?>
<div id="leftPanel">
<?= $this->partial('down/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">
<div class="right_title"><?php if(!empty($this->title)) echo $this->title;?>共有 <?php echo $this->count;?> 条在线下载记录</div>
<div class="search">
<form action="/admin/down/search/" method="get">
<input type="hidden" name="search" value='1' />
<ul>
<li><label>搜索关键字</label><input type="text" name="keyword" value="<?php echo $this->keyword; ?>" /></li>
<li><input type="submit" class="searchbtn" value="搜索" /></li>
</ul>
</form>
</div><!-- search DIV -->
<table>
<thead>
<tr>
<td width='100'>姓名</td>
<td width='150'>单位</td>
<td width='350'>数据</td>
<td width='300'>用途</td>
<td width='120'>下载时间</td>
<td width='100'>操作</td>
</tr>
</thead>
<?php if (count($this->paginator)): ?>
<?php $autoindex=0;?>
<?php foreach ($this->paginator as $item): ?>
<?php $autoindex++;?>
<tr class="<?php if($autoindex%2 == 0) echo 'even'; else echo 'odd'; ?>">
<td><a href="/admin/user/show/id/<?php echo $item['userid'];?>"><img src="/images/user.gif" /></a><a href="/admin/down/user/show/<?php echo $item['userid'];?>"><?= $item['username']?></a> </td>
<td><?= $item['unit']?></td>
<td><a href="/data/<?php echo $item['uuid'];?>" target="_blank"><img src="/images/data.gif" /></a><a href="/admin/down/data/show/<?php echo $item['uuid'];?>"><?php echo $item['title'];?></a></td>
<td><textarea readonly="readonly" style="width:300px;height:100px;border:none;font-size:12px;<?php if($autoindex%2 == 0) echo 'background:#CCCCCC;'; else echo 'background:#FFF;'; ?>"><?php echo $item['project']; ?></textarea></td>
<td><?php echo date('Y-m-d H:i:s', strtotime($item['ts_created'])); ?></td>
<td>
<a href='/admin/down/online/show/<?php echo $item['id'];?>'>详细</a>
<a href='/admin/down/online/delete/<?= $item['id'];?>/' onclick="return confirm('确定将此记录删除?')">删除</a>
</td>
</tr>
<?php endforeach; ?>
<?php endif; ?>
</table>
<div class="pagenavi"><?= $this->paginator; ?></div>
<div class="row-fluid">
<div class="span2">
<?= $this->partial('down/left.phtml'); ?>
</div>
<div class="span10">
<h3><?php if(!empty($this->title)) echo $this->title;?>共有 <?php echo $this->count;?> 条在线下载记录</h3>
<hr />
<?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 class="search">
<form action="/admin/down/search/" method="get">
<div class="input-append">
<input type="hidden" name="search" value='1' />
<input type="text" name="keyword" value="<?php echo $this->keyword; ?>" />
<button class="btn" type="submit">搜索</button>
</div>
</form>
</div><!-- search DIV -->
<table class="table table-hover">
<thead>
<tr>
<td width='100'>姓名</td>
<td width='150'>单位</td>
<td width='350'>数据</td>
<td width='300'>用途</td>
<td width='120'>下载时间</td>
<td width='100'>操作</td>
</tr>
</thead>
<?php if (count($this->paginator)): ?>
<?php $autoindex=0;?>
<?php foreach ($this->paginator as $item): ?>
<?php $autoindex++;?>
<tr class="<?php if($autoindex%2 == 0) echo 'even'; else echo 'odd'; ?>">
<td><a href="/admin/user/show/id/<?php echo $item['userid'];?>"><img src="/images/user.gif" /></a><a href="/admin/down/user/show/<?php echo $item['userid'];?>"><?= $item['username']?></a> </td>
<td><?= $item['unit']?></td>
<td><a href="/data/<?php echo $item['uuid'];?>" target="_blank"><img src="/images/data.gif" /></a><a href="/admin/down/data/show/<?php echo $item['uuid'];?>"><?php echo $item['title'];?></a></td>
<td><textarea readonly="readonly" style="width:300px;height:100px;border:none;font-size:12px;<?php if($autoindex%2 == 0) echo 'background:#CCCCCC;'; else echo 'background:#FFF;'; ?>"><?php echo $item['project']; ?></textarea></td>
<td><?php echo date('Y-m-d H:i:s', strtotime($item['ts_created'])); ?></td>
<td>
<a href='/admin/down/online/show/<?php echo $item['id'];?>'>详细</a>
<a href='/admin/down/online/delete/<?= $item['id'];?>/' onclick="return confirm('确定将此记录删除?')">删除</a>
</td>
</tr>
<?php endforeach; ?>
<?php endif; ?>
</table>
<div class="pagenavi"><?= $this->paginator; ?></div>
</div>
</div>

View File

@ -2,7 +2,6 @@
$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/down">申请管理</a>');
@ -10,53 +9,59 @@
$this->breadcrumb()->setSeparator(' > ');
$this->headScript()->appendFile('/js/prototype.js');
?>
<div id="leftPanel">
<?= $this->partial('down/left.phtml'); ?>
</div>
<div id="rightPanel">
<?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 class="row-fluid">
<div class="span2">
<?= $this->partial('down/left.phtml'); ?>
</div>
<div class="span10">
<div class="right_title"><?php if(!empty($this->title)) echo $this->title;?><?php echo $this->count;?> 数据下载记录</div>
<h3><?php if(!empty($this->title)) echo $this->title;?><?php echo $this->count;?> 数据下载记录</h3>
<hr />
<div class="search">
<form action="/admin/down/user/" method="get">
<input type="hidden" name="search" value='1' />
<ul>
<li><label>搜索关键字</label><input type="text" name="keyword" value="<?php echo $this->keyword; ?>" /></li>
<li><input type="submit" class="searchbtn" value="搜索" /></li>
</ul>
</form>
</div><!-- search DIV -->
<?php if ($this->msg or $this->messages) :?>
<div class="alert">
<?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; ?>
<table><thead>
<tr>
<td width='150'>姓名</td>
<td width='350'>单位</td>
<td width='150'>下载次数</td>
<td width='150'>操作</td>
</tr></thead>
<?php if (count($this->paginator)): ?>
<?php $autoindex=0;?>
<?php foreach ($this->paginator as $item): ?>
<?php $autoindex++;?>
<tr class="<?php if($autoindex%2 == 0) echo 'even'; else echo 'odd'; ?>">
<td><a href="/admin/user/show/id/<?php echo $item['uid'];?>"><img src="/images/user.gif" /></a> <a href="/admin/down/user/show/<?php echo $item['uid'];?>"><?= $item['realname']?></a> </td>
<td><?php echo $item['unit']; ?></td>
<td><?php echo $item['num']; ?></td>
<td>
<a href='/admin/down/user/show/<?php echo $item['uid'];?>'>详细</a>
</td>
</tr>
<?php endforeach; ?>
<?php endif; ?>
</table>
<div class="pagenavi"><?= $this->paginator; ?></div>
<div class="row-fluid">
<div class="span12">
<form action="/admin/down/user/" method="get" class="form-search">
<div class="input-append">
<input type="hidden" name="search" value='1' />
<input type="text" name="keyword" value="<?php echo $this->keyword; ?>" class="span8 search-query"/>
<button type="submit" class="btn">搜索</button>
</div>
</form>
</div>
</div><!-- search DIV -->
<table class="table table-hover"><thead>
<tr>
<td width='150'>姓名</td>
<td width='350'>单位</td>
<td width='150'>下载次数</td>
<td width='150'>操作</td>
</tr></thead>
<?php if (count($this->paginator)): ?>
<?php $autoindex=0;?>
<?php foreach ($this->paginator as $item): ?>
<?php $autoindex++;?>
<tr class="<?php if($autoindex%2 == 0) echo 'even'; else echo 'odd'; ?>">
<td><a href="/admin/user/show/id/<?php echo $item['uid'];?>"><img src="/images/user.gif" /></a> <a href="/admin/down/user/show/<?php echo $item['uid'];?>"><?= $item['realname']?></a> </td>
<td><?php echo $item['unit']; ?></td>
<td><?php echo $item['num']; ?></td>
<td>
<a href='/admin/down/user/show/<?php echo $item['uid'];?>'>详细</a>
</td>
</tr>
<?php endforeach; ?>
<?php endif; ?>
</table>
<div class="pagenavi"><?= $this->paginator; ?></div>
</div>
</div>

View File

@ -2,7 +2,6 @@
$this->headTitle($this->config->title->site);
$this->headTitle('后台管理');
$this->headTitle()->setSeparator(' - ');
$this->headLink()->appendStylesheet('/css/admin.css');
$this->headLink()->appendStylesheet('/static/css/jquery.jgrowl.css');
$this->headScript()->appendFile('/js/jquery-1.7.min.js');
$this->headScript()->appendFile('/static/js/jquery.jgrowl_minimized.js');
@ -10,13 +9,25 @@
$this->breadcrumb('后台管理首页');
$this->breadcrumb()->setSeparator(' > ');
?>
<div id="OneColumn">
<?= $this->partial('data/left.phtml'); ?>
<?= $this->partial('down/left.phtml'); ?>
<?= $this->partial('user/left.phtml'); ?>
<?= $this->partial('review/left.phtml'); ?>
<?= $this->partial('news/left.phtml'); ?>
<?= $this->partial('stat/left.phtml'); ?>
<div class="row-fluid">
<div class="span2">
<?= $this->partial('data/left.phtml'); ?>
</div>
<div class="span2">
<?= $this->partial('down/left.phtml'); ?>
</div>
<div class="span2">
<?= $this->partial('user/left.phtml'); ?>
</div>
<div class="span2">
<?= $this->partial('review/left.phtml'); ?>
</div>
<div class="span2">
<?= $this->partial('news/left.phtml'); ?>
</div>
<div class="span2">
<?= $this->partial('stat/left.phtml'); ?>
</div>
</div>
<!--
<script>

View File

@ -3,7 +3,6 @@
$this->headTitle('后台管理');
$this->headTitle()->setSeparator(' - ');
$this->headScript()->appendFile('/js/jquery-1.7.min.js');
$this->headLink()->appendStylesheet('/css/admin.css');
$this->breadcrumb('<a href="/">首页</a>');
$this->breadcrumb('<a href="/admin">后台首页</a>');
$this->breadcrumb('<a href="/admin/news">新闻中心</a>');
@ -12,27 +11,20 @@
.listingDetails{position:absolute;width:650px; z-index:999;}
.pad{position:absolute;background:#FFF;border:2px solid #444;border-radius:5px;padding:5px;display:none;}
</style>
<div id="leftPanel">
<?= $this->partial('news/left.phtml'); ?>
</div>
<div id="rightPanel">
<?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 class="row-fluid">
<div class="span2">
<?= $this->partial('news/left.phtml'); ?>
</div>
<div class="span10">
<h3>统计</h3>
<hr/>
<ul>
<li><?php echo $this->totle['c'];?> 条档案</li>
<li>栏目 <?php echo $this->typec['c'];?></li>
</ul>
</div>
<h3>统计</h3>
<hr/>
<ul class="unstyled">
<li><?php echo $this->totle['c'];?> 条档案</li>
<li>栏目 <?php echo $this->typec['c'];?></li>
</ul>
</div>
</div>
<script type="text/javascript">
$(document).ready(function(){
$('.title').bind('click', function() {

View File

@ -1,6 +1,9 @@
<ul class="nav nav-pills nav-stacked well">
<span class="label"><h4>新闻中心</h4></span>
<li><a href="/admin/news">新闻中心首页</a></li>
<li><a href="/admin/news/newslist">新闻管理</a></li>
<li><a href="/admin/news/newsadd">新闻发布</a></li>
</ul>
<div class="well" style="padding:8px 0">
<ul class="nav nav-list">
<li class="nav-header"><h4>新闻中心</h4></li>
<li class="divider"></li>
<li><a href="/admin/news">新闻中心首页</a></li>
<li><a href="/admin/news/newslist">新闻管理</a></li>
<li><a href="/admin/news/newsadd">新闻发布</a></li>
</ul>
</div>

View File

@ -2,7 +2,6 @@
$this->headTitle($this->config->title->site);
$this->headTitle('后台管理');
$this->headTitle()->setSeparator(' - ');
$this->headLink()->appendStylesheet('/css/admin.css');
$this->headScript()->appendFile('/js/jquery.colorbox-min.js');
$this->headLink()->appendStylesheet('/css/author.css');
$this->headLink()->appendStylesheet('/css/colorbox.css');
@ -18,42 +17,50 @@
<script>
$('#divFooter').css('position','absolute');
</script>
<div id="leftPanel">
<?= $this->partial('news/left.phtml'); ?>
</div>
<div id="rightPanel">
<?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>
<select id="navigation">
<option>按栏目查看</option>
<?php
if(count($this->types))
{
foreach($this->types as $v)
{
if(!empty($v[$this->deepField])) {$haed = str_repeat('-',$v[$this->deepField]);}
if($this->type == $v['id'])
echo '<option value="/admin/news/newslist/type/'.$v['id'].'" selected="selected">'
.$haed
.$v['title'].'</option>';
else
echo '<option value="/admin/news/newslist/type/'.$v['id'].'">'.$haed.$v['title'].'</option>';
}
}
?>
</select>
&nbsp;
<a href="/admin/news/newslist">所有新闻列表</a>
</div>
<table id="report" class="stylized full">
<div class="row-fluid">
<div class="span2">
<?= $this->partial('news/left.phtml'); ?>
</div>
<div class="span10">
<h3>新闻管理</h3>
<hr />
<?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>
<select id="navigation">
<option>按栏目查看</option>
<?php
if(count($this->types))
{
foreach($this->types as $v)
{
if(!empty($v[$this->deepField])) {$haed = str_repeat('-',$v[$this->deepField]);}
if($this->type == $v['id'])
echo '<option value="/admin/news/newslist/type/'.$v['id'].'" selected="selected">'
.$haed
.$v['title'].'</option>';
else
echo '<option value="/admin/news/newslist/type/'.$v['id'].'">'.$haed.$v['title'].'</option>';
}
}
?>
</select>
&nbsp;
<a href="/admin/news/newslist">所有新闻列表</a>
</div>
<table id="report" class="table table-bordered table-striped table-hover">
<thead>
<tr>
<th width="50%">新闻标题</th>
@ -116,6 +123,7 @@ $('#divFooter').css('position','absolute');
</table>
<div class="pagenavi"><?= $this->paginator; ?></div>
</div>
</div>
<script type="text/javascript">
$(document).ready(function(){
$('.title').bind('click', function() {

View File

@ -2,61 +2,64 @@
$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('元数据评审');
$this->breadcrumb()->setSeparator(' > ');
?>
<div id="leftPanel">
<?= $this->partial('review/left.phtml'); ?>
</div>
<div id="rightPanel">
<?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 class="row-fluid">
<div class="span2">
<?= $this->partial('review/left.phtml'); ?>
</div>
<div class="span10">
<?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; ?>
最近十条元数据
<table><thead>
<tr>
<td width='500'>元数据标题</td>
<td width='150'>管理员</td>
<td width='150'>状态</td>
</tr></thead>
<?php if (count($this->queue)): ?>
<?php $autoindex=0;?>
<?php foreach ($this->queue as $item): ?>
<?php $autoindex++;?>
<tr class="<?php if($autoindex%2 == 0) echo 'even'; else echo 'odd'; ?>">
<td><?= $item['title']?></td>
<td><?php echo $item['realname'].'['.$item['username'].']';?></td>
<td><?php echo $item['status'];?></td>
</tr>
<?php endforeach; ?>
<?php endif; ?>
</table>
<br />
我管理的最近十条元数据
<table><thead>
<tr>
<td width='500'>元数据标题</td>
<td width='150'>状态</td>
</tr></thead>
<?php if (count($this->queue)): ?>
<?php $autoindex=0;?>
<?php foreach ($this->queue as $item): ?>
<?php $autoindex++;?>
<tr class="<?php if($autoindex%2 == 0) echo 'even'; else echo 'odd'; ?>">
<td><?= $item['title']?></td>
<td><?php echo $item['status'];?></td>
</tr>
<?php endforeach; ?>
<?php endif; ?>
</table>
<h3>最近十条元数据</h3>
<hr />
<table class="table table-bordered"><thead>
<tr>
<td width='500'>元数据标题</td>
<td width='150'>管理员</td>
<td width='150'>状态</td>
</tr></thead>
<?php if (count($this->queue)): ?>
<?php $autoindex=0;?>
<?php foreach ($this->queue as $item): ?>
<?php $autoindex++;?>
<tr class="<?php if($autoindex%2 == 0) echo 'even'; else echo 'odd'; ?>">
<td><?= $item['title']?></td>
<td><?php echo $item['realname'].'['.$item['username'].']';?></td>
<td><?php echo $item['status'];?></td>
</tr>
<?php endforeach; ?>
<?php endif; ?>
</table>
<br />
<h3>我管理的最近十条元数据</h3>
<hr />
<table class="table table-bordered"><thead>
<tr>
<td width='500'>元数据标题</td>
<td width='150'>状态</td>
</tr></thead>
<?php if (count($this->queue)): ?>
<?php $autoindex=0;?>
<?php foreach ($this->queue as $item): ?>
<?php $autoindex++;?>
<tr class="<?php if($autoindex%2 == 0) echo 'even'; else echo 'odd'; ?>">
<td><?= $item['title']?></td>
<td><?php echo $item['status'];?></td>
</tr>
<?php endforeach; ?>
<?php endif; ?>
</table>
</div>
</div>

View File

@ -1,5 +1,7 @@
<ul class="nav nav-pills nav-stacked well">
<span class="label"><h4>元数据评审</h4></span>
<div class="well" style="padding:8px 0">
<ul class="nav nav-list">
<li class="nav-header"><h4>元数据评审</h4></li>
<li class="divider"></li>
<li id="Nav-review-draft"><a href="/admin/review/draft">投稿元数据</a></li>
<li id="Nav-review-editor"><a href="/admin/review/editor">分配责任编辑</a></li>
<li id="Nav-review-accept"><a href="/admin/review/accept">待审元数据</a></li>
@ -9,4 +11,5 @@
<li id="Nav-review-experts"><a href="/admin/review/experts">专家库</a></li>
<li id="Nav-review-canceled"><a href="/admin/review/canceled">已取消评审的元数据</a></li>
<li id="Nav-review-comments"><a href="/admin/review/comments">元数据评审管理</a></li>
</ul>
</ul>
</div>

View File

@ -2,75 +2,80 @@
$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()->setSeparator(' > ');
$this->headScript()->appendFile('/js/jquery-1.6.4.min.js');
$this->headScript()->appendFile('/js/jquery.masonry.min.js');
?>
<div id="leftPanel">
<?= $this->partial('stat/left.phtml'); ?>
</div>
<div id="rightPanel">
<div class="tables">
<div class="stitle">概况</div>
<table>
<tr>
<td>用户总数:</td>
<td><?php echo $this->stat['alluser']; ?></td>
</tr>
<tr>
<td>元数据条数:</td>
<td><?php echo $this->stat['alldata']; ?></td>
</tr>
<tr>
<td>在线数据下载数:</td>
<td><?php echo $this->stat['onlinedown']; ?></td>
</tr>
<tr>
<td>离线数据下载数:</td>
<td><?php echo $this->stat['offlinedown']; ?></td>
</tr>
<tr>
<td>已通过的离线申请:</td>
<td><?php echo $this->stat['offlinepass']; ?></td>
</tr>
<tr>
<td>未完成的离线申请:</td>
<td><?php echo $this->stat['offlineunfinished']; ?></td>
</tr>
<tr>
<td>被拒绝的离线数据:</td>
<td><?php echo $this->stat['offlinedenied']; ?></td>
</tr>
<tr>
<td>有记录的在线下载数:</td>
<td><?php echo $this->stat['onlineapp']; ?></td>
</tr>
</table>
<div class="row-fluid">
<div class="span2">
<?= $this->partial('stat/left.phtml'); ?>
</div>
<div class="span10">
<div class="row-fluid">
<div class="span6">
<h3>概况</h3>
<hr />
<div class="tables">
<div class="stitle">数据下载量概况</div>
<table>
<thead>
<tr><td width="200"></td><td width="100">单位:GB</td></tr>
</thead>
<tr>
<td>总下载数据量</td>
<td><?php echo round($this->allsize['num'],2);?></td>
</tr>
<tr>
<td>离线下载数据量</td>
<td><?php echo round($this->offlinesize['num'],2);?></td>
</tr>
<tr>
<td>在线下载数据量</td>
<td><?php echo round($this->onlinesize['num'],2);?></td>
</tr>
<table class="table table-bordered">
<tr>
<td>用户总数:</td>
<td><?php echo $this->stat['alluser']; ?></td>
</tr>
<tr>
<td>元数据条数:</td>
<td><?php echo $this->stat['alldata']; ?></td>
</tr>
<tr>
<td>在线数据下载数:</td>
<td><?php echo $this->stat['onlinedown']; ?></td>
</tr>
<tr>
<td>离线数据下载数:</td>
<td><?php echo $this->stat['offlinedown']; ?></td>
</tr>
<tr>
<td>已通过的离线申请:</td>
<td><?php echo $this->stat['offlinepass']; ?></td>
</tr>
<tr>
<td>未完成的离线申请:</td>
<td><?php echo $this->stat['offlineunfinished']; ?></td>
</tr>
<tr>
<td>被拒绝的离线数据:</td>
<td><?php echo $this->stat['offlinedenied']; ?></td>
</tr>
<tr>
<td>有记录的在线下载数:</td>
<td><?php echo $this->stat['onlineapp']; ?></td>
</tr>
</table>
</div>
<div class="span6">
<h3>数据下载量概况</h3>
<hr />
<table class="table table-bordered">
<thead>
<tr><td width="200"></td><td width="100">单位:GB</td></tr>
</thead>
<tr>
<td>总下载数据量</td>
<td><?php echo round($this->allsize['num'],2);?></td>
</tr>
<tr>
<td>离线下载数据量</td>
<td><?php echo round($this->offlinesize['num'],2);?></td>
</tr>
<tr>
<td>在线下载数据量</td>
<td><?php echo round($this->onlinesize['num'],2);?></td>
</tr>
</table>
</div>
</table>
</div>
</div>

View File

@ -1,7 +1,10 @@
<ul class="nav nav-pills nav-stacked well">
<span class="label"><h4>信息统计</h4></span>
<li><a href="/admin/stat/">统计概况</a></li>
<li><a href="/admin/stat/unit">分单位统计</a></li>
<li><a href="/admin/stat/month">分月统计</a></li>
<li><a href="/admin/stat/user">按用户统计</a></li>
</ul>
<div class="well" style="padding:8px 0">
<ul class="nav nav-list">
<li class="nav-header"><h4>信息统计</h4></li>
<li class="divider"></li>
<li><a href="/admin/stat/">统计概况</a></li>
<li><a href="/admin/stat/unit">分单位统计</a></li>
<li><a href="/admin/stat/month">分月统计</a></li>
<li><a href="/admin/stat/user">按用户统计</a></li>
</ul>
</div>

View File

@ -2,45 +2,47 @@
$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="leftPanel">
<?= $this->partial('user/left.phtml'); ?>
</div>
<div class="row-fluid">
<div class="span2">
<?= $this->partial('user/left.phtml'); ?>
</div>
<div id="rightPanel">
<div class="title">管理员列表</div>
<table>
<thead>
<tr>
<td width='150'>用户名</td>
<td width='250'>电子邮箱</td>
<td width='100'>用户类型</td>
<td width='150'>真实姓名</td>
<td width='150'>电话</td>
<td width='150'>操作</td>
</tr>
</thead>
<?php if (count($this->paginator)): ?>
<?php $autoindex=0;?>
<?php foreach ($this->paginator as $item): ?>
<?php $autoindex++;?>
<tr class="<?php if($autoindex%2 == 0) echo 'even'; else echo 'odd'; ?>">
<td><?= $item['username']?></td>
<td><?= $item['email']; ?></td>
<td><?= $item['usertype']; ?></td>
<td><?= $item['realname']; ?></td>
<td><?= $item['phone']; ?></td>
<td>
<a href='/admin/user/show/id/<?= $item['id'];?>'>查看详细</a>
</td>
</tr>
<?php endforeach; ?>
<?php endif; ?>
</table>
<div class="pagenavi"><?= $this->paginator; ?></div>
<div class="span10">
<h3>管理员列表</h3>
<hr />
<table class="table table-bordered table-hover">
<thead>
<tr>
<td width='150'>用户名</td>
<td width='250'>电子邮箱</td>
<td width='100'>用户类型</td>
<td width='150'>真实姓名</td>
<td width='150'>电话</td>
<td width='150'>操作</td>
</tr>
</thead>
<?php if (count($this->paginator)): ?>
<?php $autoindex=0;?>
<?php foreach ($this->paginator as $item): ?>
<?php $autoindex++;?>
<tr class="<?php if($autoindex%2 == 0) echo 'even'; else echo 'odd'; ?>">
<td><?= $item['username']?></td>
<td><?= $item['email']; ?></td>
<td><?= $item['usertype']; ?></td>
<td><?= $item['realname']; ?></td>
<td><?= $item['phone']; ?></td>
<td>
<a href='/admin/user/show/id/<?= $item['id'];?>'>查看详细</a>
</td>
</tr>
<?php endforeach; ?>
<?php endif; ?>
</table>
<div class="pagenavi"><?= $this->paginator; ?></div>
</div>
</div>

View File

@ -7,11 +7,11 @@
$this->breadcrumb()->setSeparator(' > ');
?>
<div class="row-fluid">
<div class="span3">
<div class="span2">
<?= $this->partial('user/left.phtml'); ?>
</div>
<div class="span9">
<div class="span10">
<h3>用户总数: <?php echo $this->su['total'];?>,其中管理员: <?php echo $this->suadmin['total'];?></h3>
<hr />

View File

@ -1,6 +1,9 @@
<ul class="nav nav-pills nav-stacked well">
<span class="label"><h4>用户管理</h4></span>
<div class="well" style="padding:8px 0">
<ul class="nav nav-list">
<li class="nav-header"><h4>用户管理</h4></li>
<li class="divider"></li>
<li><a href="/admin/user/">用户管理首页</a></li>
<li><a href="/admin/user/adminlist">管理员列表</a></li>
<li><a href="/admin/user/list">查看所有账户</a></li>
</ul>
</ul>
</div>

View File

@ -8,11 +8,11 @@
$this->breadcrumb()->setSeparator(' > ');
?>
<div class="row-fluid">
<div class="span3">
<div class="span2">
<?= $this->partial('user/left.phtml'); ?>
</div>
<div class="span9">
<div class="span10">
<h3>用户列表</h3>
<hr />
<?php if ($this->msg or $this->messages) :?>