clean code
This commit is contained in:
parent
11151c6365
commit
0803d6eac1
|
@ -11,7 +11,7 @@
|
||||||
<div id="leftPanel">
|
<div id="leftPanel">
|
||||||
<?= $this->partial('review/left.phtml'); ?>
|
<?= $this->partial('review/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) : ?>
|
||||||
|
@ -21,8 +21,6 @@
|
||||||
<?php endforeach;endif; ?>
|
<?php endforeach;endif; ?>
|
||||||
</div>
|
</div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<div id="rightPanel">
|
|
||||||
|
|
||||||
<div class="search">
|
<div class="search">
|
||||||
<form action="" method="get">
|
<form action="" method="get">
|
||||||
|
@ -34,19 +32,18 @@
|
||||||
</form>
|
</form>
|
||||||
</div><!-- search DIV -->
|
</div><!-- search DIV -->
|
||||||
|
|
||||||
|
<table><thead>
|
||||||
<table>
|
<tr>
|
||||||
<tr style="color:#FFF;background:#0a3e68;line-height:30px;">
|
|
||||||
<td width='600'>元数据标题</td>
|
<td width='600'>元数据标题</td>
|
||||||
<td width='120'>负责编辑</td>
|
<td width='120'>负责编辑</td>
|
||||||
<td width='120'>时间</td>
|
<td width='120'>时间</td>
|
||||||
<td width='180'>操作</td>
|
<td width='180'>操作</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'];?>"><?= $item['title']?></a></td>
|
<td><a href="/data/<?php echo $item['uuid'];?>"><?= $item['title']?></a></td>
|
||||||
<td><?php echo $item['realname'].'['.$item['username'].']'; ?></td>
|
<td><?php echo $item['realname'].'['.$item['username'].']'; ?></td>
|
||||||
<td><?php echo date("Y-m-d H:i",strtotime($item['ts_accepted']));?></td>
|
<td><?php echo date("Y-m-d H:i",strtotime($item['ts_accepted']));?></td>
|
||||||
|
@ -59,7 +56,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>
|
|
@ -8,11 +8,10 @@
|
||||||
$this->breadcrumb('元数据评审');
|
$this->breadcrumb('元数据评审');
|
||||||
$this->breadcrumb()->setSeparator(' > ');
|
$this->breadcrumb()->setSeparator(' > ');
|
||||||
?>
|
?>
|
||||||
<div id="divContent">
|
|
||||||
<div id="leftPanel">
|
<div id="leftPanel">
|
||||||
<?= $this->partial('review/left.phtml'); ?>
|
<?= $this->partial('review/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) : ?>
|
||||||
|
@ -22,11 +21,9 @@
|
||||||
<?php endforeach;endif; ?>
|
<?php endforeach;endif; ?>
|
||||||
</div>
|
</div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<div id="rightPanel">
|
|
||||||
|
|
||||||
<table>
|
<table><thead>
|
||||||
<tr style="color:#FFF;background:#0a3e68;line-height:30px;text-align:center;">
|
<tr>
|
||||||
<td width='80'>用户ID</td>
|
<td width='80'>用户ID</td>
|
||||||
<td width='100'>用户名</td>
|
<td width='100'>用户名</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>
|
<td width="100">电子邮箱</td>
|
||||||
<td width="100">操作</td>
|
<td width="100">操作</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['id']; ?></td>
|
<td><?php echo $item['id']; ?></td>
|
||||||
<td><?php echo $item['username']; ?></td>
|
<td><?php echo $item['username']; ?></td>
|
||||||
<td><?php echo $item['realname']; ?></td>
|
<td><?php echo $item['realname']; ?></td>
|
||||||
|
@ -51,8 +48,6 @@
|
||||||
<?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>
|
</div>
|
Loading…
Reference in New Issue