添加邀请专家的动作和视图
This commit is contained in:
parent
865e864f9e
commit
271f266336
|
@ -110,6 +110,7 @@ class Admin_ReviewController extends Zend_Controller_Action
|
|||
$search = $this->_request->getParam('search');
|
||||
$cancel = $this->_request->getParam('cancel');
|
||||
$update = $this->_request->getParam('update');
|
||||
$invite = $this->_request->getParam('invite');
|
||||
|
||||
if($cancel>0)
|
||||
{
|
||||
|
@ -168,6 +169,56 @@ class Admin_ReviewController extends Zend_Controller_Action
|
|||
|
||||
}
|
||||
|
||||
function inviteAction(){
|
||||
|
||||
$id = $this->_request->getParam('id');
|
||||
$search = $this->_request->getParam('search');
|
||||
$keyword = $this->_request->getParam('keyword');
|
||||
$submit = $this->_request->getParam('submit');
|
||||
$exps = $this->_request->getParam('exps');
|
||||
|
||||
$stid = $this->_request->getParam('stid');
|
||||
$uid = $this->_request->getParam('uid');
|
||||
|
||||
$this->view->id = $id;
|
||||
|
||||
if(!empty($stid) && !empty($uid))
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
$searchjoin = "";
|
||||
if(!empty($search) && !empty($keyword))
|
||||
{
|
||||
$searchjoin = " where u.username like '%$keyword%'
|
||||
or u.realname like '%$keyword%'
|
||||
or u.unit like '%$keyword%'
|
||||
or u.email like '%$keyword%'";
|
||||
$this->view->keyword = $keyword;
|
||||
}
|
||||
|
||||
$sql = "select u.id,u.username,u.realname,u.unit,u.phone,u.email from users u
|
||||
right join mdexperts me on u.id=me.id
|
||||
$searchjoin";
|
||||
$re = $this->db->query($sql);
|
||||
$rows = $re->fetchAll();
|
||||
|
||||
$paginator = Zend_Paginator::factory($rows);
|
||||
$paginator->setCurrentPageNumber($this->_getParam('page'));
|
||||
$paginator->setItemCountPerPage($this->view->config->page->max);
|
||||
$paginator->setView($this->view);
|
||||
Zend_View_Helper_PaginationControl::setDefaultViewPartial('pagination_param.phtml');
|
||||
$this->view->paginator=$paginator;
|
||||
|
||||
if(!empty($submit))
|
||||
{
|
||||
if(is_array($exps))
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function addonAction(){
|
||||
|
||||
|
|
|
@ -40,7 +40,7 @@
|
|||
<tr style="color:#FFF;background:#0a3e68;line-height:30px;">
|
||||
<td width='500'>元数据标题</td>
|
||||
<td width='150'>状态</td>
|
||||
<td width='150'>操作</td>
|
||||
<td width='200'>操作</td>
|
||||
</tr>
|
||||
<?php if (count($this->paginator)): ?>
|
||||
<?php $autoindex=0;?>
|
||||
|
@ -51,13 +51,14 @@
|
|||
<td><?php echo $item['realname'].'['.$item['username'].']'; ?></td>
|
||||
<td>
|
||||
<a href='/admin/review/accept/cancel/<?php echo $item['id'];?>' onclick="return confirm('是否确定取消评审')">取消评审</a>
|
||||
<a href='/admin/review/invite/?id=<?php echo $item['id'];?>'>邀请专家</a>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
<?php endif; ?>
|
||||
</table>
|
||||
<div style="width:50%;text-align:left;">
|
||||
<?= $this->paginator; ?>
|
||||
<?= $this->paginator; ?></div>
|
||||
|
||||
</div>
|
||||
</div>
|
|
@ -0,0 +1,73 @@
|
|||
<?php
|
||||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle('后台管理');
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headLink()->appendStylesheet('/css/admin.css');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/admin">后台首页</a>');
|
||||
$this->breadcrumb('元数据评审');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<div id="divContent">
|
||||
<div id="leftPanel">
|
||||
<?= $this->partial('review/left.phtml'); ?>
|
||||
</div>
|
||||
|
||||
<?php if ($this->msg or $this->messages) :?>
|
||||
<div id="message">
|
||||
<?php if ($this->msg) : ?>
|
||||
<p><?php echo $this->msg; ?></p>
|
||||
<?php endif; if ($this->messages): foreach($this->messages as $msg): ?>
|
||||
<p><?php echo $msg; ?></p>
|
||||
<?php endforeach;endif; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<div id="rightPanel">
|
||||
|
||||
<div class="search">
|
||||
<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>
|
||||
</form>
|
||||
</div><!-- search DIV -->
|
||||
|
||||
<form action="" method="get">
|
||||
<input type="hidden" name="id" value='<?php echo $this->id;?>' />
|
||||
<input type="hidden" name="submit" value="1" />
|
||||
<table>
|
||||
<tr style="color:#FFF;background:#0a3e68;line-height:30px;">
|
||||
<td width="50">选择</td>
|
||||
<td width='80'>用户ID</td>
|
||||
<td width='100'>用户名</td>
|
||||
<td width='100'>姓名</td>
|
||||
<td width="250">单位</td>
|
||||
<td width="100">联系电话</td>
|
||||
<td width="100">电子邮箱</td>
|
||||
</tr>
|
||||
<?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"'; ?>>
|
||||
<td><input type="checkbox" name="exps[]" /></td>
|
||||
<td><?php echo $item['id']; ?></td>
|
||||
<td><?php echo $item['username']; ?></td>
|
||||
<td><?php echo $item['realname']; ?></td>
|
||||
<td><?php echo $item['unit']; ?></td>
|
||||
<td><?php echo $item['phone']; ?></td>
|
||||
<td><?php echo $item['email']; ?></td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
<?php endif; ?>
|
||||
</table>
|
||||
</form>
|
||||
<div style="width:50%;text-align:left;">
|
||||
<?= $this->paginator; ?></div>
|
||||
|
||||
</div>
|
||||
</div>
|
Loading…
Reference in New Issue