clean code

This commit is contained in:
wlx 2011-10-12 14:53:03 +00:00
parent a7a7bc8029
commit 3ae7501320
16 changed files with 44 additions and 111 deletions

View File

@ -8,12 +8,11 @@
$this->breadcrumb('数据管理'); $this->breadcrumb('数据管理');
$this->breadcrumb()->setSeparator(' > '); $this->breadcrumb()->setSeparator(' > ');
?> ?>
<div id="divContent">
<div id="leftPanel"> <div id="leftPanel">
<?= $this->partial('data/left.phtml'); ?> <?= $this->partial('data/left.phtml'); ?>
</div> </div>
<div id="rightPanel">
<?php if ($this->msg or $this->messages) :?> <?php if ($this->msg or $this->messages) :?>
<div id="message"> <div id="message">
<?php if ($this->msg) : ?> <?php if ($this->msg) : ?>
@ -24,7 +23,6 @@
</div> </div>
<?php endif; ?> <?php endif; ?>
<div id="rightPanel">
<div><a href="/admin/data/attachments/add/1">上传新附件</a> | <a href="attachments/search/my">查看我的附件</a></div> <div><a href="/admin/data/attachments/add/1">上传新附件</a> | <a href="attachments/search/my">查看我的附件</a></div>
<div class="search"> <div class="search">
@ -56,7 +54,7 @@
<?php $autoindex=0;?> <?php $autoindex=0;?>
<?php foreach ($this->paginator as $item): ?> <?php foreach ($this->paginator as $item): ?>
<?php $autoindex++;?> <?php $autoindex++;?>
<tr <?php if($autoindex%2 == 0) echo 'bgcolor="#CCCCCC"'; else echo 'bgcolor="#FFFFFF"'; ?>> <tr class="<?php if($autoindex%2 == 0) echo 'even'; else echo 'odd'; ?>">
<?php <?php
if(!empty($this->uuid)) if(!empty($this->uuid))
echo '<td><input type="checkbox" value="'.$item['id'].'" name="ids[]" /></td>'; echo '<td><input type="checkbox" value="'.$item['id'].'" name="ids[]" /></td>';
@ -85,9 +83,5 @@ echo '<input type="hidden" name="uuid" value="'.$this->uuid.'" /><input type="hi
?> ?>
</form> </form>
<?php endif; ?> <?php endif; ?>
<div style="width:50%;text-align:left;"> <div class="pagenavi"><?= $this->paginator; ?></div>
<?= $this->paginator; ?>
</div>
</div>
</div> </div>

View File

@ -13,11 +13,10 @@
$this->headScript()->appendFile('/js/swfupload/fileprogress.js'); $this->headScript()->appendFile('/js/swfupload/fileprogress.js');
?> ?>
<div id="divContent">
<div id="leftPanel"> <div id="leftPanel">
<?= $this->partial('data/left.phtml'); ?> <?= $this->partial('data/left.phtml'); ?>
</div> </div>
<div id="rightPanel">
<?php if ($this->msg or $this->messages) :?> <?php if ($this->msg or $this->messages) :?>
<div id="message"> <div id="message">
<?php if ($this->msg) : ?> <?php if ($this->msg) : ?>
@ -27,7 +26,6 @@
<?php endforeach;endif; ?> <?php endforeach;endif; ?>
</div> </div>
<?php endif; ?> <?php endif; ?>
<div id="rightPanel">
<form action="#" method="POST" enctype='multipart/form-data'> <form action="#" method="POST" enctype='multipart/form-data'>
<input type="hidden" name="add" value="1" /> <input type="hidden" name="add" value="1" />
@ -65,4 +63,3 @@
</form> </form>
</div> </div>
</div>

View File

@ -8,12 +8,11 @@
$this->breadcrumb('数据管理'); $this->breadcrumb('数据管理');
$this->breadcrumb()->setSeparator(' > '); $this->breadcrumb()->setSeparator(' > ');
?> ?>
<div id="divContent">
<div id="leftPanel"> <div id="leftPanel">
<?= $this->partial('data/left.phtml'); ?> <?= $this->partial('data/left.phtml'); ?>
</div> </div>
<div id="rightPanel">
<?php if ($this->msg or $this->messages) :?> <?php if ($this->msg or $this->messages) :?>
<div id="message"> <div id="message">
<?php if ($this->msg) : ?> <?php if ($this->msg) : ?>
@ -24,7 +23,6 @@
</div> </div>
<?php endif; ?> <?php endif; ?>
<div id="rightPanel">
<div><a href="/admin/data/md/att/1/uuid/<?php echo $this->uuid;?>/addatts/1/mdtitle/<?php echo $this->mdtitle ;?>">为此元数据添加附件</a></div> <div><a href="/admin/data/md/att/1/uuid/<?php echo $this->uuid;?>/addatts/1/mdtitle/<?php echo $this->mdtitle ;?>">为此元数据添加附件</a></div>
<table> <table>
@ -55,8 +53,4 @@
} }
?> ?>
</tbody></table> </tbody></table>
<div style="width:50%;text-align:left;">
</div>
</div>
</div> </div>

View File

@ -10,12 +10,11 @@
$this->breadcrumb()->setSeparator(' > '); $this->breadcrumb()->setSeparator(' > ');
$this->headScript()->appendFile('/js/prototype.js'); $this->headScript()->appendFile('/js/prototype.js');
?> ?>
<div id="divContent">
<div id="leftPanel"> <div id="leftPanel">
<?= $this->partial('down/left.phtml'); ?> <?= $this->partial('down/left.phtml'); ?>
</div> </div>
<div id="rightPanel">
<?php if ($this->msg or $this->messages) :?> <?php if ($this->msg or $this->messages) :?>
<div id="message"> <div id="message">
<?php if ($this->msg) : ?> <?php if ($this->msg) : ?>
@ -26,9 +25,6 @@
</div> </div>
<?php endif; ?> <?php endif; ?>
<div id="rightPanel">
<div class="right_title"><?php if(!empty($this->title)) echo $this->title;?><?php echo $this->count;?> 数据下载记录</div> <div class="right_title"><?php if(!empty($this->title)) echo $this->title;?><?php echo $this->count;?> 数据下载记录</div>
<div class="search"> <div class="search">
@ -41,17 +37,17 @@
</form> </form>
</div><!-- search DIV --> </div><!-- search DIV -->
<table> <table><thead>
<tr style="color:#FFF;background:#0a3e68;line-height:30px;"> <tr>
<td width='350'>数据</td> <td width='350'>数据</td>
<td width='150'>下载次数</td> <td width='150'>下载次数</td>
<td width='150'>操作</td> <td width='150'>操作</td>
</tr> </tr></thead>
<?php if (count($this->paginator)): ?> <?php if (count($this->paginator)): ?>
<?php $autoindex=0;?> <?php $autoindex=0;?>
<?php foreach ($this->paginator as $item): ?> <?php foreach ($this->paginator as $item): ?>
<?php $autoindex++;?> <?php $autoindex++;?>
<tr <?php if($autoindex%2 == 0) echo 'bgcolor="#CCCCCC"'; else echo 'bgcolor="#FFFFFF"'; ?>> <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><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><?php echo $item['num']; ?></td>
<td> <td>
@ -61,8 +57,5 @@
<?php endforeach; ?> <?php endforeach; ?>
<?php endif; ?> <?php endif; ?>
</table> </table>
<div style="width:50%;text-align:left;"> <div class="pagenavi"><?= $this->paginator; ?></div>
<?= $this->paginator; ?>
</div>
</div>
</div> </div>

View File

@ -7,7 +7,6 @@
$this->breadcrumb('<a href="/admin">后台首页</a>'); $this->breadcrumb('<a href="/admin">后台首页</a>');
$this->breadcrumb()->setSeparator(' > '); $this->breadcrumb()->setSeparator(' > ');
?> ?>
<div id="divContent">
<div id="leftPanel"> <div id="leftPanel">
<?= $this->partial('down/left.phtml'); ?> <?= $this->partial('down/left.phtml'); ?>
</div> </div>
@ -24,8 +23,8 @@
<div class="right_title">离线申请中可能与网站会员关联的账户列表 (<?php echo $this->count;?> 条)</div> <div class="right_title">离线申请中可能与网站会员关联的账户列表 (<?php echo $this->count;?> 条)</div>
<div><a href="/admin/down/fixoffline/nouserid/1">查看所有无用户ID的申请记录</a></div> <div><a href="/admin/down/fixoffline/nouserid/1">查看所有无用户ID的申请记录</a></div>
<form action="" method="get"> <form action="" method="get">
<table> <table><thead>
<tr style="color:#FFF;background:#0a3e68;line-height:30px;"> <tr>
<td width='30'>选择</td> <td width='30'>选择</td>
<td width='80'>离线申请ID</td> <td width='80'>离线申请ID</td>
<td width='100'>离线申请姓名</td> <td width='100'>离线申请姓名</td>
@ -33,12 +32,12 @@
<td width='100'>用户名</td> <td width='100'>用户名</td>
<td width='100'>用户姓名</td> <td width='100'>用户姓名</td>
<td width='250'>用户单位</td> <td width='250'>用户单位</td>
</tr> </tr></thead>
<?php if (count($this->paginator)): ?> <?php if (count($this->paginator)): ?>
<?php $autoindex=0;?> <?php $autoindex=0;?>
<?php foreach ($this->paginator as $item): ?> <?php foreach ($this->paginator as $item): ?>
<?php $autoindex++;?> <?php $autoindex++;?>
<tr <?php if($autoindex%2 == 0) echo 'bgcolor="#CCCCCC"'; else echo 'bgcolor="#FFFFFF"'; ?>> <tr class="<?php if($autoindex%2 == 0) echo 'even'; else echo 'odd'; ?>">
<td><input type="checkbox" name="orders[]" value="<?php echo $item['uid']?>,<?php echo $item['oid']?>" /></td> <td><input type="checkbox" name="orders[]" value="<?php echo $item['uid']?>,<?php echo $item['oid']?>" /></td>
<td><?php echo $item['oid']?></td> <td><?php echo $item['oid']?></td>
<td><a href="/admin/down/offline/show/<?php echo $item['oid']; ?>"><?php echo $item['un'];?></a></td> <td><a href="/admin/down/offline/show/<?php echo $item['oid']; ?>"><?php echo $item['un'];?></a></td>
@ -55,9 +54,5 @@
<input type="submit" value="匹配已选择的记录" onclick="return confirm('是否确定匹配这些用户')" /> <input type="submit" value="匹配已选择的记录" onclick="return confirm('是否确定匹配这些用户')" />
</div> </div>
</form> </form>
<div style="width:50%;text-align:left;"> <div class="pagenavi"><?= $this->paginator; ?></div>
<?= $this->paginator; ?>
</div>
</div>
</div> </div>

View File

@ -8,11 +8,9 @@
$this->breadcrumb('申请管理'); $this->breadcrumb('申请管理');
$this->breadcrumb()->setSeparator(' > '); $this->breadcrumb()->setSeparator(' > ');
?> ?>
<div id="divContent">
<div id="leftPanel"> <div id="leftPanel">
<?= $this->partial('down/left.phtml'); ?> <?= $this->partial('down/left.phtml'); ?>
</div> </div>
<div id="rightPanel"> <div id="rightPanel">
</div> </div>
</div>

View File

@ -39,7 +39,7 @@
<?php $autoindex=0;?> <?php $autoindex=0;?>
<?php foreach ($this->paginator as $item): ?> <?php foreach ($this->paginator as $item): ?>
<?php $autoindex++;?> <?php $autoindex++;?>
<tr <?php if($autoindex%2 == 0) echo 'bgcolor="#CCCCCC"'; else echo 'bgcolor="#FFFFFF"'; ?>> <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><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><?= $item['unit']; ?></td>
<td><?= $item['address']; ?></td> <td><?= $item['address']; ?></td>
@ -57,7 +57,5 @@
<?php endforeach; ?> <?php endforeach; ?>
</tbody></table> </tbody></table>
<?php endif; ?> <?php endif; ?>
<div style="width:50%;text-align:left;"> <div class="pagenavi"><?= $this->paginator; ?></div>
<?= $this->paginator; ?>
</div>
</div> </div>

View File

@ -40,7 +40,7 @@
<?php $autoindex=0;?> <?php $autoindex=0;?>
<?php foreach ($this->paginator as $item): ?> <?php foreach ($this->paginator as $item): ?>
<?php $autoindex++;?> <?php $autoindex++;?>
<tr <?php if($autoindex%2 == 0) echo 'bgcolor="#CCCCCC"'; else echo 'bgcolor="#FFFFFF"'; ?>> <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><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><?= $item['unit']; ?></td>
<td><?= $item['address']; ?></td> <td><?= $item['address']; ?></td>
@ -58,7 +58,5 @@
<?php endforeach; ?> <?php endforeach; ?>
</tbody></table> </tbody></table>
<?php endif; ?> <?php endif; ?>
<div style="width:50%;text-align:left;"> <div class="pagenavi"><?= $this->paginator; ?></div>
<?= $this->paginator; ?>
</div>
</div> </div>

View File

@ -63,7 +63,5 @@
<?php endforeach; ?> <?php endforeach; ?>
</tbody></table> </tbody></table>
<?php endif; ?> <?php endif; ?>
<div style="width:50%;"> <div class="pagenavi"><?= $this->paginator; ?></div>
<?= $this->paginator; ?>
</div>
</div> </div>

View File

@ -52,7 +52,7 @@
<?php $autoindex=0;?> <?php $autoindex=0;?>
<?php foreach ($this->paginator as $item): ?> <?php foreach ($this->paginator as $item): ?>
<?php $autoindex++;?> <?php $autoindex++;?>
<tr <?php if($autoindex%2 == 0) echo 'bgcolor="#CCCCCC"'; else echo 'bgcolor="#FFFFFF"'; ?>> <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><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><?= $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><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>
@ -66,7 +66,5 @@
<?php endforeach; ?> <?php endforeach; ?>
<?php endif; ?> <?php endif; ?>
</table> </table>
<div style="width:50%;text-align:left;"> <div class="pagenavi"><?= $this->paginator; ?></div>
<?= $this->paginator; ?>
</div>
</div> </div>

View File

@ -10,8 +10,6 @@
$this->breadcrumb()->setSeparator(' > '); $this->breadcrumb()->setSeparator(' > ');
$this->headScript()->appendFile('/js/prototype.js'); $this->headScript()->appendFile('/js/prototype.js');
?> ?>
<div id="divContent">
<div id="leftPanel"> <div id="leftPanel">
<?= $this->partial('down/left.phtml'); ?> <?= $this->partial('down/left.phtml'); ?>
</div> </div>
@ -42,4 +40,3 @@
<tr><td>数据</td><td><a href="/data/<?php echo $this->infos['uuid'];?>"><?php echo $this->infos['title'];?></a><a href="/admin/down/data/show/<?php echo $this->infos['uuid'];?>">数据下载记录</a></td></tr> <tr><td>数据</td><td><a href="/data/<?php echo $this->infos['uuid'];?>"><?php echo $this->infos['title'];?></a><a href="/admin/down/data/show/<?php echo $this->infos['uuid'];?>">数据下载记录</a></td></tr>
</table> </table>
</div> </div>
</div>

View File

@ -10,8 +10,6 @@
$this->breadcrumb()->setSeparator(' > '); $this->breadcrumb()->setSeparator(' > ');
$this->headScript()->appendFile('/js/prototype.js'); $this->headScript()->appendFile('/js/prototype.js');
?> ?>
<div id="divContent">
<div id="leftPanel"> <div id="leftPanel">
<?= $this->partial('down/left.phtml'); ?> <?= $this->partial('down/left.phtml'); ?>
</div> </div>
@ -26,21 +24,20 @@
</div> </div>
<?php endif; ?> <?php endif; ?>
<div id="rightPanel"> <div id="rightPanel">
<div><a href="/data/<?php echo $this->infos['uuid'];?>" target="_blank"><img src="/images/data.gif" /></a><?php echo $this->infos['title']; ?>” 的下载记录</div> <div><a href="/data/<?php echo $this->infos['uuid'];?>" target="_blank"><img src="/images/data.gif" /></a><?php echo $this->infos['title']; ?>” 的下载记录</div>
<table> <table><thead>
<tr style="color:#FFF;background:#0a3e68;line-height:30px;"> <tr>
<td width='120'>用户</td> <td width='120'>用户</td>
<td width='350'>姓名</td> <td width='350'>姓名</td>
<td width='150'>下载时间</td> <td width='150'>下载时间</td>
<td width='150'>操作</td> <td width='150'>操作</td>
</tr> </tr></thead>
<?php if (count($this->paginator)): ?> <?php if (count($this->paginator)): ?>
<?php $autoindex=0;?> <?php $autoindex=0;?>
<?php foreach ($this->paginator as $item): ?> <?php foreach ($this->paginator as $item): ?>
<?php $autoindex++;?> <?php $autoindex++;?>
<tr <?php if($autoindex%2 == 0) echo 'bgcolor="#CCCCCC"'; else echo 'bgcolor="#FFFFFF"'; ?>> <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><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><a href="/admin/down/data/show/<?php echo $item['uuid'];?>"><?php echo $item['realname'];?></a></td> <td><a href="/admin/down/data/show/<?php echo $item['uuid'];?>"><?php echo $item['realname'];?></a></td>
<td><?php echo date('Y-m-d H:i:s', strtotime($item['ts_created'])); ?></td> <td><?php echo date('Y-m-d H:i:s', strtotime($item['ts_created'])); ?></td>
@ -56,8 +53,5 @@
<?php endforeach; ?> <?php endforeach; ?>
<?php endif; ?> <?php endif; ?>
</table> </table>
<div style="width:50%;text-align:left;"> <div class="pagenavi"><?= $this->paginator; ?></div>
<?= $this->paginator; ?>
</div>
</div>
</div> </div>

View File

@ -10,8 +10,6 @@
$this->breadcrumb()->setSeparator(' > '); $this->breadcrumb()->setSeparator(' > ');
$this->headScript()->appendFile('/js/prototype.js'); $this->headScript()->appendFile('/js/prototype.js');
?> ?>
<div id="divContent">
<div id="leftPanel"> <div id="leftPanel">
<?= $this->partial('down/left.phtml'); ?> <?= $this->partial('down/left.phtml'); ?>
</div> </div>
@ -26,21 +24,20 @@
</div> </div>
<?php endif; ?> <?php endif; ?>
<div id="rightPanel"> <div id="rightPanel">
<div style="font-size:16px;line-height:30px;">用户 “<?php echo $this->infos['username']; ?>” 的下载记录</div> <div style="font-size:16px;line-height:30px;">用户 “<?php echo $this->infos['username']; ?>” 的下载记录</div>
<table> <table><thead>
<tr style="color:#FFF;background:#0a3e68;line-height:30px;"> <tr>
<td width='100'>姓名</td> <td width='100'>姓名</td>
<td width='350'>数据</td> <td width='350'>数据</td>
<td width='150'>下载时间</td> <td width='150'>下载时间</td>
<td width='150'>操作</td> <td width='150'>操作</td>
</tr> </tr></thead>
<?php if (count($this->paginator)): ?> <?php if (count($this->paginator)): ?>
<?php $autoindex=0;?> <?php $autoindex=0;?>
<?php foreach ($this->paginator as $item): ?> <?php foreach ($this->paginator as $item): ?>
<?php $autoindex++;?> <?php $autoindex++;?>
<tr <?php if($autoindex%2 == 0) echo 'bgcolor="#CCCCCC"'; else echo 'bgcolor="#FFFFFF"'; ?>> <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><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><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><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 date('Y-m-d H:i:s', strtotime($item['ts_created'])); ?></td> <td><?php echo date('Y-m-d H:i:s', strtotime($item['ts_created'])); ?></td>
@ -54,8 +51,5 @@
<?php endforeach; ?> <?php endforeach; ?>
<?php endif; ?> <?php endif; ?>
</table> </table>
<div style="width:50%;text-align:left;"> <div class="pagenavi"><?= $this->paginator; ?></div>
<?= $this->paginator; ?>
</div>
</div>
</div> </div>

View File

@ -8,7 +8,6 @@
$this->breadcrumb('申请管理'); $this->breadcrumb('申请管理');
$this->breadcrumb()->setSeparator(' > '); $this->breadcrumb()->setSeparator(' > ');
?> ?>
<div id="divContent">
<div id="leftPanel"> <div id="leftPanel">
<?= $this->partial('down/left.phtml'); ?> <?= $this->partial('down/left.phtml'); ?>
</div> </div>
@ -16,20 +15,20 @@
<div class="right_title">离线申请中可能与网站会员关联的账户列表 (<?php echo $this->count;?> 条)</div> <div class="right_title">离线申请中可能与网站会员关联的账户列表 (<?php echo $this->count;?> 条)</div>
<table> <table><thead>
<tr style="color:#FFF;background:#0a3e68;line-height:30px;"> <tr>
<td width='100'>离线申请姓名</td> <td width='100'>离线申请姓名</td>
<td width='150'>离线申请Email</td> <td width='150'>离线申请Email</td>
<td width='100'>用户姓名</td> <td width='100'>用户姓名</td>
<td width='150'>用户Email</td> <td width='150'>用户Email</td>
<td width='100'>用户ID</td> <td width='100'>用户ID</td>
<td width='200'>sql</td> <td width='200'>sql</td>
</tr> </tr></thead>
<?php if (count($this->paginator)): ?> <?php if (count($this->paginator)): ?>
<?php $autoindex=0;?> <?php $autoindex=0;?>
<?php foreach ($this->paginator as $item): ?> <?php foreach ($this->paginator as $item): ?>
<?php $autoindex++;?> <?php $autoindex++;?>
<tr <?php if($autoindex%2 == 0) echo 'bgcolor="#CCCCCC"'; else echo 'bgcolor="#FFFFFF"'; ?>> <tr class="<?php if($autoindex%2 == 0) echo 'even'; else echo 'odd'; ?>">
<td><?php echo $item['un'];?></td> <td><?php echo $item['un'];?></td>
<td><?php echo $item['email']; ?></td> <td><?php echo $item['email']; ?></td>
<td><?php echo $item['rn'];?></td> <td><?php echo $item['rn'];?></td>
@ -40,9 +39,5 @@
<?php endforeach; ?> <?php endforeach; ?>
<?php endif; ?> <?php endif; ?>
</table> </table>
<div style="width:50%;text-align:left;"> <div class="pagenavi"><?= $this->paginator; ?></div>
<?= $this->paginator; ?>
</div>
</div>
</div> </div>

View File

@ -10,12 +10,10 @@
$this->breadcrumb()->setSeparator(' > '); $this->breadcrumb()->setSeparator(' > ');
$this->headScript()->appendFile('/js/prototype.js'); $this->headScript()->appendFile('/js/prototype.js');
?> ?>
<div id="divContent">
<div id="leftPanel"> <div id="leftPanel">
<?= $this->partial('down/left.phtml'); ?> <?= $this->partial('down/left.phtml'); ?>
</div> </div>
<div id="rightPanel">
<?php if ($this->msg or $this->messages) :?> <?php if ($this->msg or $this->messages) :?>
<div id="message"> <div id="message">
<?php if ($this->msg) : ?> <?php if ($this->msg) : ?>
@ -26,9 +24,6 @@
</div> </div>
<?php endif; ?> <?php endif; ?>
<div id="rightPanel">
<div class="right_title"><?php if(!empty($this->title)) echo $this->title;?><?php echo $this->count;?> 数据下载记录</div> <div class="right_title"><?php if(!empty($this->title)) echo $this->title;?><?php echo $this->count;?> 数据下载记录</div>
<div class="search"> <div class="search">
@ -41,18 +36,18 @@
</form> </form>
</div><!-- search DIV --> </div><!-- search DIV -->
<table> <table><thead>
<tr style="color:#FFF;background:#0a3e68;line-height:30px;"> <tr>
<td width='150'>姓名</td> <td width='150'>姓名</td>
<td width='350'>单位</td> <td width='350'>单位</td>
<td width='150'>下载次数</td> <td width='150'>下载次数</td>
<td width='150'>操作</td> <td width='150'>操作</td>
</tr> </tr></thead>
<?php if (count($this->paginator)): ?> <?php if (count($this->paginator)): ?>
<?php $autoindex=0;?> <?php $autoindex=0;?>
<?php foreach ($this->paginator as $item): ?> <?php foreach ($this->paginator as $item): ?>
<?php $autoindex++;?> <?php $autoindex++;?>
<tr <?php if($autoindex%2 == 0) echo 'bgcolor="#CCCCCC"'; else echo 'bgcolor="#FFFFFF"'; ?>> <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><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['unit']; ?></td>
<td><?php echo $item['num']; ?></td> <td><?php echo $item['num']; ?></td>
@ -63,8 +58,5 @@
<?php endforeach; ?> <?php endforeach; ?>
<?php endif; ?> <?php endif; ?>
</table> </table>
<div style="width:50%;text-align:left;"> <div class="pagenavi"><?= $this->paginator; ?></div>
<?= $this->paginator; ?>
</div>
</div>
</div> </div>

View File

@ -7,7 +7,6 @@
$this->breadcrumb('后台管理首页'); $this->breadcrumb('后台管理首页');
$this->breadcrumb()->setSeparator(' > '); $this->breadcrumb()->setSeparator(' > ');
?> ?>
<div id="divContent">
<div id="OneColumn"> <div id="OneColumn">
<?= $this->partial('data/left.phtml'); ?> <?= $this->partial('data/left.phtml'); ?>
<?= $this->partial('down/left.phtml'); ?> <?= $this->partial('down/left.phtml'); ?>
@ -21,4 +20,3 @@
<li><a href="/admin/test">数据测试管理</a></li> <li><a href="/admin/test">数据测试管理</a></li>
</ul> </ul>
</div> </div>
</div>