clean code

This commit is contained in:
wlx 2011-10-12 14:32:51 +00:00
parent 11151c6365
commit 0803d6eac1
2 changed files with 12 additions and 22 deletions

View File

@ -11,7 +11,7 @@
<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) : ?>
@ -22,8 +22,6 @@
</div>
<?php endif; ?>
<div id="rightPanel">
<div class="search">
<form action="" method="get">
<input type="hidden" name="search" value='1' />
@ -34,19 +32,18 @@
</form>
</div><!-- search DIV -->
<table>
<tr style="color:#FFF;background:#0a3e68;line-height:30px;">
<table><thead>
<tr>
<td width='600'>元数据标题</td>
<td width='120'>负责编辑</td>
<td width='120'>时间</td>
<td width='180'>操作</td>
</tr>
</tr></thead>
<?php if (count($this->paginator)): ?>
<?php $autoindex=0;?>
<?php foreach ($this->paginator as $item): ?>
<?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'];?>"><?= $item['title']?></a></td>
<td><?php echo $item['realname'].'['.$item['username'].']'; ?></td>
<td><?php echo date("Y-m-d H:i",strtotime($item['ts_accepted']));?></td>
@ -59,7 +56,5 @@
<?php endforeach; ?>
<?php endif; ?>
</table>
<div style="width:50%;text-align:left;">
<?= $this->paginator; ?></div>
<div class="pagenavi"><?= $this->paginator; ?></div>
</div>

View File

@ -8,11 +8,10 @@
$this->breadcrumb('元数据评审');
$this->breadcrumb()->setSeparator(' > ');
?>
<div id="divContent">
<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) : ?>
@ -23,10 +22,8 @@
</div>
<?php endif; ?>
<div id="rightPanel">
<table>
<tr style="color:#FFF;background:#0a3e68;line-height:30px;text-align:center;">
<table><thead>
<tr>
<td width='80'>用户ID</td>
<td width='100'>用户名</td>
<td width='100'>姓名</td>
@ -34,12 +31,12 @@
<td width="100">联系电话</td>
<td width="100">电子邮箱</td>
<td width="100">操作</td>
</tr>
</tr></thead>
<?php if (count($this->paginator)): ?>
<?php $autoindex=0;?>
<?php foreach ($this->paginator as $item): ?>
<?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['id']; ?></td>
<td><?php echo $item['username']; ?></td>
<td><?php echo $item['realname']; ?></td>
@ -51,8 +48,6 @@
<?php endforeach; ?>
<?php endif; ?>
</table>
<div style="width:50%;text-align:left;">
<?= $this->paginator; ?></div>
<div class="pagenavi"><?= $this->paginator; ?></div>
</div>
</div>