修改视图

添加查看评审意见列表的链接方便操作
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('元数据评审');
$this->breadcrumb()->setSeparator(' > ');
$this->headScript()->appendFile('/js/jquery-1.6.4.min.js');
?>
<div id="leftPanel">
<?= $this->partial('review/left.phtml'); ?>
@ -25,24 +26,23 @@
<form action="" method="get">
<input type="hidden" name="search" value='1' />
<input type="hidden" name="id" value='<?php echo $this->id;?>' />
<ul>
<li><label>搜索关键字</label><input type="text" name="keyword" value="<?php echo $this->keyword; ?>" /></li>
<li><input type="submit" class="searchbtn" value="搜索" /></li>
</ul>
<label>搜索关键字</label><input type="text" class="q" name="keyword" value="<?php echo $this->keyword; ?>" />
<input type="submit" class="btn" value="搜索" />
</form>
</div><!-- search DIV -->
<form action="" method="post">
<table>
<tr class="<?php if($autoindex%2 == 0) echo 'even'; else echo 'odd'; ?>">
<td width='40'>选择</td>
<td width='600'>标题</td>
<td width="180">操作</td>
</tr>
<table class="stylized">
<thead>
<tr>
<td width='30'>选择</td>
<td width='600'>标题</td>
<td width="130">操作</td>
</tr>
</thead>
<?php if (count($this->paginator)): ?>
<?php $autoindex=0;?>
<tbody id="list">
<?php foreach ($this->paginator as $item): ?>
<?php $autoindex++;?>
<tr class="<?php if($autoindex%2 == 0) echo 'even'; else echo 'odd'; ?>">
<tr>
<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="/admin/review/canceled/update/<?php echo $item['id']; ?>">重置</a>
@ -50,9 +50,11 @@
</td>
</tr>
<?php endforeach; ?>
</tbody>
<?php endif; ?>
</table>
<input type="submit" value="重置选中的元数据评审" />
</form>
<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">
<input type="hidden" name="search" value='1' />
<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="搜索" />
</form>
</div><!-- search DIV -->

View File

@ -31,7 +31,7 @@
<form>
<p>
<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>
<label>评审人:</label>

View File

@ -12,7 +12,7 @@
<div id="leftPanel">
<?= $this->partial('review/left.phtml'); ?>
</div>
<div id="rightPanel">
<?php if ($this->msg or $this->messages) :?>
<div id="message">
@ -24,39 +24,41 @@
</div>
<?php endif; ?>
<div class="right_title">评审专家</div>
<div><a href="experts/add/1">添加评审专家</a></div>
<div class="ctrlplan">
<a href="/admin/review/experts">专家列表</a>
<a href="/admin/review/experts/add/1">添加评审专家</a>
</div>
<div class="search">
<form action="" method="get">
<input type="hidden" name="search" value='1' />
<ul>
<li><label>搜索关键字</label><input type="text" name="keyword" value="<?php echo $this->keyword; ?>" /></li>
<li><input type="submit" class="searchbtn" value="搜索" /></li>
</ul>
<label>搜索关键字</label><input type="text" name="keyword" class="q" value="<?php echo $this->keyword; ?>" />
<input type="submit" class="btn" value="搜索" />
</form>
</div><!-- search DIV -->
<table><thead>
<table class="stylized"><thead>
<tr>
<td width='150'>姓名</td>
<td width='350'>特长</td>
<td width='150'>操作</td>
</tr></thead>
<?php if (count($this->paginator)): ?>
<?php $autoindex=0;?>
<tbody id="list">
<?php foreach ($this->paginator as $item): ?>
<?php $autoindex++;?>
<tr class="<?php if($autoindex%2 == 0) echo 'even'; else echo 'odd'; ?>">
<tr>
<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>
<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>
</td>
</tr>
<?php endforeach; ?>
</tbody>
<?php endif; ?>
</table>
<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>
<?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">
<input type="hidden" name="submit" value="1" />
<input type="hidden" name="add" value="1" />
<table>
<tr>
<td width="100">用户名</td><td width="300"><input type="text" name="username" /></td>
</tr>
<tr>
<td width="100">真实姓名</td><td width="300"><input type="text" name="realname" /></td>
</tr>
<tr>
<td width="100">电子邮箱</td><td width="300"><input type="text" name="email" /></td>
</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="提交" />
<p><label>用户名</label><br /><input type="text" name="username" /></p>
<p><label>真实姓名</label><br /><input type="text" name="realname" /></p>
<p><label>电子邮箱</label><br /><input type="text" name="email" /></p>
<p><label>单位</label><br /><input type="text" name="unit" /></p>
<p><label>地址</label><br /><input type="text" name="address" /></p>
<p><label>电话</label><br /><input type="text" name="phone" /></p>
<p><label>项目</label><br /><textarea name="project" style="width:300px;height:100px;"></textarea></p>
<p><label>特长</label><br /><textarea name="speciality" style="width:300px;height:100px;"></textarea></p>
<p><input type="submit" class="btn" value="提交" /></p>
</form>
</div>

View File

@ -3,6 +3,7 @@
$this->headTitle('后台管理');
$this->headTitle()->setSeparator(' - ');
$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="/admin">后台首页</a>');
$this->breadcrumb('元数据评审');
@ -25,24 +26,21 @@
<div class="search">
<form action="" method="get">
<input type="hidden" name="search" value='1' />
<ul>
<li><label>搜索关键字</label><input type="text" name="keyword" value="<?php echo $this->keyword; ?>" /></li>
<li><input type="submit" class="searchbtn" value="搜索" /></li>
</ul>
<label>搜索关键字</label><input type="text" name="keyword" class="q" value="<?php echo $this->keyword; ?>" />
<input type="submit" class="btn" value="搜索" />
</form>
</div><!-- search DIV -->
<table><thead>
<table class="stylized"><thead>
<tr>
<td width='600'>标题</td>
<td width='100'>状态</td>
<td width="180">操作</td>
</tr></thead>
<?php if (count($this->paginator)): ?>
<?php $autoindex=0;?>
<tbody id="list">
<?php foreach ($this->paginator as $item): ?>
<?php $autoindex++;?>
<tr class="<?php if($autoindex%2 == 0) echo 'even'; else echo 'odd'; ?>">
<tr>
<td><a href="/data/<?php echo $item['uuid'];?>"><?php echo $item['title']; ?></a></td>
<td><?php echo $item['status']; ?></td>
<td><a href="/admin/review/inreview/show/<?php echo $item['id']; ?>">查看详细</a>
@ -51,7 +49,9 @@
</td>
</tr>
<?php endforeach; ?>
</tbody>
<?php endif; ?>
</table>
<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()->setSeparator(' - ');
$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="/admin">后台首页</a>');
$this->breadcrumb('元数据评审');
@ -21,30 +22,24 @@
<?php endforeach;endif; ?>
</div>
<?php endif; ?>
<div class="right_title">我负责的元数据评审</div>
<div class="search">
<form action="" method="get">
<input type="hidden" name="search" value='1' />
<ul>
<li><label>搜索关键字</label><input type="text" name="keyword" value="<?php echo $this->keyword; ?>" /></li>
<li><input type="submit" class="searchbtn" value="搜索" /></li>
</ul>
<label>搜索关键字</label><input type="text" class="q" name="keyword" value="<?php echo $this->keyword; ?>" />
<input type="submit" class="btn" value="搜索" />
</form>
</div><!-- search DIV -->
<table><thead>
<table class="stylized"><thead>
<tr>
<td width='500'>元数据标题</td>
<td width='150'>状态</td>
<td width='150'>操作</td>
<td width='80'>状态</td>
<td width='180'>操作</td>
</tr></thead>
<?php if (count($this->paginator)): ?>
<?php $autoindex=0;?>
<tbody id="list">
<?php foreach ($this->paginator as $item): ?>
<?php $autoindex++;?>
<tr class="<?php if($autoindex%2 == 0) echo 'even'; else echo 'odd'; ?>">
<tr>
<td><?= $item['title']?></td>
<td><?php
if($item['status'] == 0) echo "初始";
@ -55,15 +50,18 @@
if($item['status'] == 4) echo "专家反馈";
if($item['status'] == 5) echo "已发布";
?></td>
<td>
<a href="/admin/review/invite/id/<?php echo $item['id'];?>">邀请专家</a>
<a href="/admin/review/changeadmin/id/<?php echo $item['id'];?>">更改管理员</a>
<td>
<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/inreview/show/<?php echo $item['id'];?>">查看详细</a>
<a href='/admin/review/accept/cancel/<?php echo $item['id'];?>' onclick="return confirm('是否确定取消评审')">取消评审</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>
</td>
</tr>
<?php endforeach; ?>
</tbody>
<?php endif; ?>
</table>
<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()->setSeparator(' - ');
$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="/admin">后台首页</a>');
$this->breadcrumb('元数据评审');
@ -25,27 +26,28 @@
<form action="" method="get">
<input type="hidden" name="search" value='1' />
<input type="hidden" name="id" value='<?php echo $this->id;?>' />
<ul>
<li><label>搜索关键字</label><input type="text" name="keyword" value="<?php echo $this->keyword; ?>" /></li>
<li><input type="submit" class="searchbtn" value="搜索" /></li>
</ul>
<label>搜索关键字</label><input type="text" name="keyword" class="q" value="<?php echo $this->keyword; ?>" />
<input type="submit" class="btn" value="搜索" />
</form>
</div><!-- search DIV -->
<table><thead>
<table class="stylized"><thead>
<tr>
<td width='600'>标题</td>
<td width='120'>结束时间</td>
<td width="100">操作</td>
</tr></thead>
<?php if (count($this->paginator)): ?>
<?php $autoindex=0;?>
<tbody id="list">
<?php foreach ($this->paginator as $item): ?>
<?php $autoindex++;?>
<tr class="<?php if($autoindex%2 == 0) echo 'even'; else echo 'odd'; ?>">
<tr>
<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><a href="/admin/review/comments/ac/list/uuid/<?php echo $item['uuid'];?>">查看评审意见</a></td>
</tr>
<?php endforeach; ?>
</tbody>
<?php endif; ?>
</table>
<div class="pagenavi"><?= $this->paginator; ?></div>
</div>
</div>
<script>$("#list tr").mouseover(function(){$(this).addClass("high")}).mouseout(function(){$(this).removeClass("high")})</script>