更新页面模板

This commit is contained in:
Li Jianxuan 2014-01-07 07:28:45 +00:00
parent 329a25b59e
commit 024cfaef59
1 changed files with 40 additions and 36 deletions

View File

@ -15,25 +15,30 @@ table thead tr th {background:#EBF2F6;color:#444;}
.high{background:#444;color:#FFF;}
</style>
<div class="row-fluid">
<div class="span3">
<?= $this->partial('down/left.phtml'); ?>
</div>
<div class="span3">
<?= $this->partial('down/left.phtml'); ?>
</div>
<div class="span9">
<?php if ($this->msg or $this->messages) :?>
<div id="message">
<?php if ($this->msg) : ?>
<?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): ?>
<?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">离线数据服务记录</div>
<a href="/admin/down/offline/add/1">添加新的离线服务记录</a> | <a href="/admin/down/offline/down/1">下载所有离线服务记录</a> | <a href="/admin/down/offline/update/1" onclick="return confirm('该操作需要较长时间,请不要中途刷新页面,是否确定继续?')">自动匹配离线下载用户与网站用户</a> | <a href="/admin/down/offline/emaillist/1">下载服务用户邮箱列表</a>
| <a href="/admin/down/offline/monthreport/1">下载上月服务记录(科技部上报)</a>
<?php endforeach;endif; ?>
</div>
<?php endif; ?>
<div>
<div class="input-append">
<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>
<a href="/admin/down/offline/update/1" class="btn btn-info" onclick="return confirm('该操作需要较长时间,请不要中途刷新页面,是否确定继续?')">自动匹配离线下载用户与网站用户</a>
<a href="/admin/down/offline/emaillist/1" class="btn btn-info">下载服务用户邮箱列表</a>
<a href="/admin/down/offline/monthreport/1" class="btn btn-info">下载上月服务记录(科技部上报)</a>
</div>
<div class="input-append pull-right">
<form id="datasearch" class="search_form" action="">
<input type="text" id="keyword" name="q" value="<?php if(!empty($this->q)) echo $this->q; ?>" />
<input type="hidden" name="order" value="<?php if(!empty($this->search_order)) echo $this->search_order; ?>" />
@ -41,11 +46,10 @@ table thead tr th {background:#EBF2F6;color:#444;}
<button type="submit" class="btn" id="search_btn">搜索</button>
</form>
</div>
</div>
<?php if (count($this->paginator)): ?>
<table class="table table-bordered table-hover">
<thead><tr>
<thead>
<tr>
<th width="52">姓名</th>
<th>单位</th>
<th>地址</th>
@ -60,7 +64,7 @@ table thead tr th {background:#EBF2F6;color:#444;}
<?php foreach ($this->paginator as $item): ?>
<?php $autoindex++;?>
<tr class="<?php if($autoindex%2 == 0) echo 'even'; else echo 'odd'; ?>">
<td><a href="/admin/down/user/show/<?php echo $item['userid'];?>"><?= $item['username']?></a> </td>
<td><a href="/admin/down/user/show/<?php echo $item['userid'];?>"><?= $item['username']?></a></td>
<td><?= $item['unit']; ?></td>
<td><?= $item['address']; ?></td>
<td><?= $item['postcode']; ?></td>