修改视图

添加查看评审意见列表的链接方便操作
This commit is contained in:
Li Jianxuan 2011-10-20 02:06:24 +00:00
parent f43305a34f
commit e41344eeb3
8 changed files with 81 additions and 92 deletions

View File

@ -7,6 +7,7 @@
$this->breadcrumb('<a href="/admin">后台首页</a>'); $this->breadcrumb('<a href="/admin">后台首页</a>');
$this->breadcrumb('元数据评审'); $this->breadcrumb('元数据评审');
$this->breadcrumb()->setSeparator(' > '); $this->breadcrumb()->setSeparator(' > ');
$this->headScript()->appendFile('/js/jquery-1.6.4.min.js');
?> ?>
<div id="leftPanel"> <div id="leftPanel">
<?= $this->partial('review/left.phtml'); ?> <?= $this->partial('review/left.phtml'); ?>
@ -25,24 +26,23 @@
<form action="" method="get"> <form action="" method="get">
<input type="hidden" name="search" value='1' /> <input type="hidden" name="search" value='1' />
<input type="hidden" name="id" value='<?php echo $this->id;?>' /> <input type="hidden" name="id" value='<?php echo $this->id;?>' />
<ul> <label>搜索关键字</label><input type="text" class="q" name="keyword" value="<?php echo $this->keyword; ?>" />
<li><label>搜索关键字</label><input type="text" name="keyword" value="<?php echo $this->keyword; ?>" /></li> <input type="submit" class="btn" value="搜索" />
<li><input type="submit" class="searchbtn" value="搜索" /></li>
</ul>
</form> </form>
</div><!-- search DIV --> </div><!-- search DIV -->
<form action="" method="post"> <form action="" method="post">
<table> <table class="stylized">
<tr class="<?php if($autoindex%2 == 0) echo 'even'; else echo 'odd'; ?>"> <thead>
<td width='40'>选择</td> <tr>
<td width='600'>标题</td> <td width='30'>选择</td>
<td width="180">操作</td> <td width='600'>标题</td>
</tr> <td width="130">操作</td>
</tr>
</thead>
<?php if (count($this->paginator)): ?> <?php if (count($this->paginator)): ?>
<?php $autoindex=0;?> <tbody id="list">
<?php foreach ($this->paginator as $item): ?> <?php foreach ($this->paginator as $item): ?>
<?php $autoindex++;?> <tr>
<tr class="<?php if($autoindex%2 == 0) echo 'even'; else echo 'odd'; ?>">
<td><input type="checkbox" name="update[]" value="<?php echo $item['id']; ?>"/></td> <td><input type="checkbox" name="update[]" value="<?php echo $item['id']; ?>"/></td>
<td><a href="/data/<?php echo $item['uuid'];?>"><?php echo $item['title']; ?></a></td> <td><a href="/data/<?php echo $item['uuid'];?>"><?php echo $item['title']; ?></a></td>
<td><a href="/admin/review/canceled/update/<?php echo $item['id']; ?>">重置</a> <td><a href="/admin/review/canceled/update/<?php echo $item['id']; ?>">重置</a>
@ -50,9 +50,11 @@
</td> </td>
</tr> </tr>
<?php endforeach; ?> <?php endforeach; ?>
</tbody>
<?php endif; ?> <?php endif; ?>
</table> </table>
<input type="submit" value="重置选中的元数据评审" /> <input type="submit" value="重置选中的元数据评审" />
</form> </form>
<div class="pagenavi"><?= $this->paginator; ?></div> <div class="pagenavi"><?= $this->paginator; ?></div>
</div> </div>
<script>$("#list tr").mouseover(function(){$(this).addClass("high")}).mouseout(function(){$(this).removeClass("high")})</script>

View File

@ -31,7 +31,7 @@
<form action="" method="get"> <form action="" method="get">
<input type="hidden" name="search" value='1' /> <input type="hidden" name="search" value='1' />
<input type="hidden" name="id" value='<?php echo $this->id;?>' /> <input type="hidden" name="id" value='<?php echo $this->id;?>' />
<label>搜索关键字</label><input type="text" name="q" value="<?php echo $this->q; ?>" /> <label>搜索关键字</label><input type="text" class="q" name="q" value="<?php echo $this->q; ?>" />
<input type="submit" class="btn" value="搜索" /> <input type="submit" class="btn" value="搜索" />
</form> </form>
</div><!-- search DIV --> </div><!-- search DIV -->

View File

@ -31,7 +31,7 @@
<form> <form>
<p> <p>
<label>元数据名称:</label> <label>元数据名称:</label>
<?php echo $this->info['title'];?> <?php echo $this->info['title'];?> <a href="/data/<?php echo $this->info['uuid'];?>">查看元数据</a> <a href="/review/review/uuid/<?php echo $this->info['uuid'];?>">查看评审页</a>
</p> </p>
<p> <p>
<label>评审人:</label> <label>评审人:</label>

View File

@ -24,39 +24,41 @@
</div> </div>
<?php endif; ?> <?php endif; ?>
<div class="right_title">评审专家</div> <div class="ctrlplan">
<div><a href="experts/add/1">添加评审专家</a></div> <a href="/admin/review/experts">专家列表</a>
<a href="/admin/review/experts/add/1">添加评审专家</a>
</div>
<div class="search"> <div class="search">
<form action="" method="get"> <form action="" method="get">
<input type="hidden" name="search" value='1' /> <input type="hidden" name="search" value='1' />
<ul> <label>搜索关键字</label><input type="text" name="keyword" class="q" value="<?php echo $this->keyword; ?>" />
<li><label>搜索关键字</label><input type="text" name="keyword" value="<?php echo $this->keyword; ?>" /></li> <input type="submit" class="btn" value="搜索" />
<li><input type="submit" class="searchbtn" value="搜索" /></li>
</ul>
</form> </form>
</div><!-- search DIV --> </div><!-- search DIV -->
<table><thead> <table class="stylized"><thead>
<tr> <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>
</tr></thead> </tr></thead>
<?php if (count($this->paginator)): ?> <?php if (count($this->paginator)): ?>
<?php $autoindex=0;?> <tbody id="list">
<?php foreach ($this->paginator as $item): ?> <?php foreach ($this->paginator as $item): ?>
<?php $autoindex++;?> <tr>
<tr class="<?php if($autoindex%2 == 0) echo 'even'; else echo 'odd'; ?>">
<td><img src="/images/user.gif" /><a href='/admin/user/show/id/<?= $item['id'];?>'><?= $item['realname']?></a></td> <td><img src="/images/user.gif" /><a href='/admin/user/show/id/<?= $item['id'];?>'><?= $item['realname']?></a></td>
<td><?php echo $item['speciality']; ?></td> <td><?php echo $item['speciality']; ?></td>
<td> <td>
<a href='/admin/review/experts/edit/<?php echo $item['mid'];?>'>更改</a> <a href='/admin/review/experts/edit/<?php echo $item['mid'];?>'>更改</a>
<a href="/admin/review/comments/ac/list/userid/<?php echo $item['mid'];?>">查看评审记录</a>
<a href='/admin/review/experts/del/<?php echo $item['mid'];?>' onclick="return confirm('是否确定删除该评审专家')">删除</a> <a href='/admin/review/experts/del/<?php echo $item['mid'];?>' onclick="return confirm('是否确定删除该评审专家')">删除</a>
</td> </td>
</tr> </tr>
<?php endforeach; ?> <?php endforeach; ?>
</tbody>
<?php endif; ?> <?php endif; ?>
</table> </table>
<div class="pagenavi"><?= $this->paginator; ?></div> <div class="pagenavi"><?= $this->paginator; ?></div>
</div> </div>
<script>$("#list tr").mouseover(function(){$(this).addClass("high")}).mouseout(function(){$(this).removeClass("high")})</script>

View File

@ -23,37 +23,22 @@
</div> </div>
<?php endif; ?> <?php endif; ?>
<div class="right_title">评审专家</div> <div class="ctrlplan">
<a href="/admin/review/experts">专家列表</a>
<a href="/admin/review/experts/add/1">添加评审专家</a>
</div>
<form method="post"> <form method="post">
<input type="hidden" name="submit" value="1" /> <input type="hidden" name="submit" value="1" />
<input type="hidden" name="add" value="1" /> <input type="hidden" name="add" value="1" />
<table> <p><label>用户名</label><br /><input type="text" name="username" /></p>
<tr> <p><label>真实姓名</label><br /><input type="text" name="realname" /></p>
<td width="100">用户名</td><td width="300"><input type="text" name="username" /></td> <p><label>电子邮箱</label><br /><input type="text" name="email" /></p>
</tr> <p><label>单位</label><br /><input type="text" name="unit" /></p>
<tr> <p><label>地址</label><br /><input type="text" name="address" /></p>
<td width="100">真实姓名</td><td width="300"><input type="text" name="realname" /></td> <p><label>电话</label><br /><input type="text" name="phone" /></p>
</tr> <p><label>项目</label><br /><textarea name="project" style="width:300px;height:100px;"></textarea></p>
<tr> <p><label>特长</label><br /><textarea name="speciality" style="width:300px;height:100px;"></textarea></p>
<td width="100">电子邮箱</td><td width="300"><input type="text" name="email" /></td> <p><input type="submit" class="btn" value="提交" /></p>
</tr>
<tr>
<td width="100">单位</td><td width="300"><input type="text" name="unit" /></td>
</tr>
<tr>
<td width="100">地址</td><td width="300"><input type="text" name="address" /></td>
</tr>
<tr>
<td width="100">项目</td><td width="300"><textarea name="project" style="width:300px;height:100px;"></textarea></td>
</tr>
<tr>
<td width="100">电话</td><td width="300"><input type="text" name="phone" /></td>
</tr>
<tr>
<td>特长</td><td><textarea name="speciality" style="width:300px;height:100px;"></textarea></td>
</tr>
</table>
<input type="submit" value="提交" />
</form> </form>
</div> </div>

View File

@ -3,6 +3,7 @@
$this->headTitle('后台管理'); $this->headTitle('后台管理');
$this->headTitle()->setSeparator(' - '); $this->headTitle()->setSeparator(' - ');
$this->headLink()->appendStylesheet('/css/admin.css'); $this->headLink()->appendStylesheet('/css/admin.css');
$this->headScript()->appendFile('/js/jquery-1.6.4.min.js');
$this->breadcrumb('<a href="/">首页</a>'); $this->breadcrumb('<a href="/">首页</a>');
$this->breadcrumb('<a href="/admin">后台首页</a>'); $this->breadcrumb('<a href="/admin">后台首页</a>');
$this->breadcrumb('元数据评审'); $this->breadcrumb('元数据评审');
@ -25,24 +26,21 @@
<div class="search"> <div class="search">
<form action="" method="get"> <form action="" method="get">
<input type="hidden" name="search" value='1' /> <input type="hidden" name="search" value='1' />
<ul> <label>搜索关键字</label><input type="text" name="keyword" class="q" value="<?php echo $this->keyword; ?>" />
<li><label>搜索关键字</label><input type="text" name="keyword" value="<?php echo $this->keyword; ?>" /></li> <input type="submit" class="btn" value="搜索" />
<li><input type="submit" class="searchbtn" value="搜索" /></li>
</ul>
</form> </form>
</div><!-- search DIV --> </div><!-- search DIV -->
<table><thead> <table class="stylized"><thead>
<tr> <tr>
<td width='600'>标题</td> <td width='600'>标题</td>
<td width='100'>状态</td> <td width='100'>状态</td>
<td width="180">操作</td> <td width="180">操作</td>
</tr></thead> </tr></thead>
<?php if (count($this->paginator)): ?> <?php if (count($this->paginator)): ?>
<?php $autoindex=0;?> <tbody id="list">
<?php foreach ($this->paginator as $item): ?> <?php foreach ($this->paginator as $item): ?>
<?php $autoindex++;?> <tr>
<tr class="<?php if($autoindex%2 == 0) echo 'even'; else echo 'odd'; ?>">
<td><a href="/data/<?php echo $item['uuid'];?>"><?php echo $item['title']; ?></a></td> <td><a href="/data/<?php echo $item['uuid'];?>"><?php echo $item['title']; ?></a></td>
<td><?php echo $item['status']; ?></td> <td><?php echo $item['status']; ?></td>
<td><a href="/admin/review/inreview/show/<?php echo $item['id']; ?>">查看详细</a> <td><a href="/admin/review/inreview/show/<?php echo $item['id']; ?>">查看详细</a>
@ -51,7 +49,9 @@
</td> </td>
</tr> </tr>
<?php endforeach; ?> <?php endforeach; ?>
</tbody>
<?php endif; ?> <?php endif; ?>
</table> </table>
<div class="pagenavi"><?= $this->paginator; ?></div> <div class="pagenavi"><?= $this->paginator; ?></div>
</div> </div>
<script>$("#list tr").mouseover(function(){$(this).addClass("high")}).mouseout(function(){$(this).removeClass("high")})</script>

View File

@ -3,6 +3,7 @@
$this->headTitle('后台管理'); $this->headTitle('后台管理');
$this->headTitle()->setSeparator(' - '); $this->headTitle()->setSeparator(' - ');
$this->headLink()->appendStylesheet('/css/admin.css'); $this->headLink()->appendStylesheet('/css/admin.css');
$this->headScript()->appendFile('/js/jquery-1.6.4.min.js');
$this->breadcrumb('<a href="/">首页</a>'); $this->breadcrumb('<a href="/">首页</a>');
$this->breadcrumb('<a href="/admin">后台首页</a>'); $this->breadcrumb('<a href="/admin">后台首页</a>');
$this->breadcrumb('元数据评审'); $this->breadcrumb('元数据评审');
@ -21,30 +22,24 @@
<?php endforeach;endif; ?> <?php endforeach;endif; ?>
</div> </div>
<?php endif; ?> <?php endif; ?>
<div class="right_title">我负责的元数据评审</div>
<div class="search"> <div class="search">
<form action="" method="get"> <form action="" method="get">
<input type="hidden" name="search" value='1' /> <input type="hidden" name="search" value='1' />
<ul> <label>搜索关键字</label><input type="text" class="q" name="keyword" value="<?php echo $this->keyword; ?>" />
<li><label>搜索关键字</label><input type="text" name="keyword" value="<?php echo $this->keyword; ?>" /></li> <input type="submit" class="btn" value="搜索" />
<li><input type="submit" class="searchbtn" value="搜索" /></li>
</ul>
</form> </form>
</div><!-- search DIV --> </div><!-- search DIV -->
<table><thead> <table class="stylized"><thead>
<tr> <tr>
<td width='500'>元数据标题</td> <td width='500'>元数据标题</td>
<td width='150'>状态</td> <td width='80'>状态</td>
<td width='150'>操作</td> <td width='180'>操作</td>
</tr></thead> </tr></thead>
<?php if (count($this->paginator)): ?> <?php if (count($this->paginator)): ?>
<?php $autoindex=0;?> <tbody id="list">
<?php foreach ($this->paginator as $item): ?> <?php foreach ($this->paginator as $item): ?>
<?php $autoindex++;?> <tr>
<tr class="<?php if($autoindex%2 == 0) echo 'even'; else echo 'odd'; ?>">
<td><?= $item['title']?></td> <td><?= $item['title']?></td>
<td><?php <td><?php
if($item['status'] == 0) echo "初始"; if($item['status'] == 0) echo "初始";
@ -59,11 +54,14 @@
<a href="/admin/review/invite/id/<?php echo $item['id'];?>">邀请专家</a> <a href="/admin/review/invite/id/<?php echo $item['id'];?>">邀请专家</a>
<a href="/admin/review/changeadmin/id/<?php echo $item['id'];?>">更改管理员</a> <a href="/admin/review/changeadmin/id/<?php echo $item['id'];?>">更改管理员</a>
<a href="/admin/review/inreview/show/<?php echo $item['id'];?>">查看详细</a> <a href="/admin/review/inreview/show/<?php echo $item['id'];?>">查看详细</a>
<a href="/admin/review/comments/ac/list/uuid/<?php echo $item['uuid'];?>">查看评审意见</a>
<a href='/admin/review/accept/cancel/<?php echo $item['id'];?>' onclick="return confirm('是否确定取消评审')">取消评审</a> <a href='/admin/review/accept/cancel/<?php echo $item['id'];?>' onclick="return confirm('是否确定取消评审')">取消评审</a>
</td> </td>
</tr> </tr>
<?php endforeach; ?> <?php endforeach; ?>
</tbody>
<?php endif; ?> <?php endif; ?>
</table> </table>
<div class="pagenavi"><?= $this->paginator; ?></div> <div class="pagenavi"><?= $this->paginator; ?></div>
</div> </div>
<script>$("#list tr").mouseover(function(){$(this).addClass("high")}).mouseout(function(){$(this).removeClass("high")})</script>

View File

@ -3,6 +3,7 @@
$this->headTitle('后台管理'); $this->headTitle('后台管理');
$this->headTitle()->setSeparator(' - '); $this->headTitle()->setSeparator(' - ');
$this->headLink()->appendStylesheet('/css/admin.css'); $this->headLink()->appendStylesheet('/css/admin.css');
$this->headScript()->appendFile('/js/jquery-1.6.4.min.js');
$this->breadcrumb('<a href="/">首页</a>'); $this->breadcrumb('<a href="/">首页</a>');
$this->breadcrumb('<a href="/admin">后台首页</a>'); $this->breadcrumb('<a href="/admin">后台首页</a>');
$this->breadcrumb('元数据评审'); $this->breadcrumb('元数据评审');
@ -25,27 +26,28 @@
<form action="" method="get"> <form action="" method="get">
<input type="hidden" name="search" value='1' /> <input type="hidden" name="search" value='1' />
<input type="hidden" name="id" value='<?php echo $this->id;?>' /> <input type="hidden" name="id" value='<?php echo $this->id;?>' />
<ul> <label>搜索关键字</label><input type="text" name="keyword" class="q" value="<?php echo $this->keyword; ?>" />
<li><label>搜索关键字</label><input type="text" name="keyword" value="<?php echo $this->keyword; ?>" /></li> <input type="submit" class="btn" value="搜索" />
<li><input type="submit" class="searchbtn" value="搜索" /></li>
</ul>
</form> </form>
</div><!-- search DIV --> </div><!-- search DIV -->
<table><thead> <table class="stylized"><thead>
<tr> <tr>
<td width='600'>标题</td> <td width='600'>标题</td>
<td width='120'>结束时间</td> <td width='120'>结束时间</td>
<td width="100">操作</td>
</tr></thead> </tr></thead>
<?php if (count($this->paginator)): ?> <?php if (count($this->paginator)): ?>
<?php $autoindex=0;?> <tbody id="list">
<?php foreach ($this->paginator as $item): ?> <?php foreach ($this->paginator as $item): ?>
<?php $autoindex++;?> <tr>
<tr class="<?php if($autoindex%2 == 0) echo 'even'; else echo 'odd'; ?>">
<td><a href="/data/<?php echo $item['uuid'];?>"><?php echo $item['title']; ?></a></td> <td><a href="/data/<?php echo $item['uuid'];?>"><?php echo $item['title']; ?></a></td>
<td><?php echo date("Y-m-d H:i",strtotime($item['ts_finished']));?></td> <td><?php echo date("Y-m-d H:i",strtotime($item['ts_finished']));?></td>
<td><a href="/admin/review/comments/ac/list/uuid/<?php echo $item['uuid'];?>">查看评审意见</a></td>
</tr> </tr>
<?php endforeach; ?> <?php endforeach; ?>
</tbody>
<?php endif; ?> <?php endif; ?>
</table> </table>
<div class="pagenavi"><?= $this->paginator; ?></div> <div class="pagenavi"><?= $this->paginator; ?></div>
</div> </div>
<script>$("#list tr").mouseover(function(){$(this).addClass("high")}).mouseout(function(){$(this).removeClass("high")})</script>