73 lines
2.9 KiB
PHTML
73 lines
2.9 KiB
PHTML
<?php
|
|
$this->headTitle($this->config->title->site);
|
|
$this->headTitle('后台管理');
|
|
$this->headTitle()->setSeparator(' - ');
|
|
$this->breadcrumb()->setSeparator(' > ');
|
|
$this->Theme->AppendPlus($this,'colorbox');
|
|
$this->Theme->AppendPlus($this,'uploadify');
|
|
$this->Theme->AppendModel($this,'admin-down-offlineapps');
|
|
$this->Theme->AppendModel($this,'sfadmin');
|
|
function applicationform($form)
|
|
{
|
|
if(empty($form))
|
|
{
|
|
return "未提交";
|
|
}else{
|
|
return '<a href="/admin/down/applicationform/ac/view?link='.$form.'">查看</a>';
|
|
}
|
|
}
|
|
?>
|
|
<style>
|
|
table thead tr th {background:#EBF2F6;color:#444;}
|
|
.high{background:#444;color:#FFF;}
|
|
</style>
|
|
<div class="row-fluid">
|
|
<div class="span3">
|
|
<?= $this->partial('down/left.phtml'); ?>
|
|
</div>
|
|
<div class="span9">
|
|
|
|
<?= $this->partial('down/offlineapps-navpills.phtml',array('navIn'=>$this->navIn)); ?>
|
|
|
|
<form action="" method="get" class="search input-append">
|
|
<input type="hidden" name="search" value='1' />
|
|
<input type="text" name="keyword" class="q" value="<?php echo $this->keyword; ?>" />
|
|
<button type="submit" class="btn">搜索</button>
|
|
</form>
|
|
|
|
<table class="table table-bordered table-hover"><thead>
|
|
<tr>
|
|
<th><input type="checkbox" class="select_rows" data-tbody="list" /></th>
|
|
<th>申请者</th>
|
|
<th>提交时间</th>
|
|
<th>申请表</th>
|
|
<th>操作</th>
|
|
</tr></thead>
|
|
<?php if (count($this->paginator)): ?>
|
|
<tbody id="list">
|
|
<?php foreach ($this->paginator as $item): ?>
|
|
<tr>
|
|
<td><input type="checkbox" class="select_item" value="<?= $item['orderid']?>" /></td>
|
|
<td><?php echo $item['realname'].'['.$item['username'].'] <span title="'.$item['title'].'">'.mb_substr($item['title'],0,15,"UTF-8")."</span>";echo mb_strlen($item['title'],"UTF-8") > 15 ? "...":"";?></td>
|
|
<td><?php echo date("Y-m-d H:i",strtotime($item['ts_created']));?></td>
|
|
<td><?= applicationform($item['applicationform']) ?></td>
|
|
<td>
|
|
<a href="/admin/down/offlineapps/ac/view/?offlineappid=<?= $item['id'] ?>">查看详细</a>
|
|
<a href="/admin/down/offlineapps/ac/toauthor/?offlineappid=<?= $item['id'] ?>">发给作者</a>
|
|
<a href="javascript:void(0);" onclick="upload.showUploadForm(<?= $item['id'] ?>);">上传申请表</a>
|
|
<a href="/admin/down/offlineapps/ac/resetappform/?offlineappid=<?= $item['id'] ?>" onclick="return confirm('是否确认重置该用户的申请表?')">重置申请表</a>
|
|
</td>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
</tbody>
|
|
<?php endif; ?>
|
|
</table>
|
|
<div class="pagenavi"><?= $this->paginator; ?></div>
|
|
|
|
</div><!-- span9 -->
|
|
</div>
|
|
<script>
|
|
var _this = {};
|
|
sfadmin.init();
|
|
</script>
|
|
<?= $this->partial('down/offlineapps-uploaderform.phtml'); ?> |