89 lines
3.4 KiB
PHTML
89 lines
3.4 KiB
PHTML
|
<?php
|
||
|
$this->headTitle($this->config->title->site);
|
||
|
$this->headTitle('后台管理');
|
||
|
$this->headTitle()->setSeparator(' - ');
|
||
|
$this->breadcrumb('<a href="/">首页</a>');
|
||
|
$this->breadcrumb('<a href="/admin">后台首页</a>');
|
||
|
$this->breadcrumb('<a href="/admin/data">数据管理</a>');
|
||
|
$this->breadcrumb('黑河数据集');
|
||
|
$this->breadcrumb()->setSeparator(' > ');
|
||
|
$this->theme->AppendPlus($this,'jquery');
|
||
|
// $this->theme->AppendPlus($this,'colorbox');
|
||
|
$this->headLink()->appendStylesheet('/css/author.css');
|
||
|
$this->headLink()->appendStylesheet('/css/admin.css');
|
||
|
$this->headScript()->appendFile('/js/lib/colorbox/jquery.colorbox-min.js');
|
||
|
$this->headLink()->appendStylesheet('/js/lib/colorbox/colorbox.css');
|
||
|
|
||
|
?>
|
||
|
<div class="row">
|
||
|
<div class="hidden-sm hidden-xs col-md-2">
|
||
|
<?= $this->partial('data/left.phtml'); ?>
|
||
|
</div>
|
||
|
<div class="col-md-10 col-sm-12">
|
||
|
<?php if(!empty($this->searchLink)){ ?>
|
||
|
<div class="input-group form-group">
|
||
|
<form id="datasearch" class="search_form input-group" action="<?= $this->searchLink ?>">
|
||
|
<input class="form-control" type="text" id="keyword" name="q" value="<?= $this->searchKeyword; ?>" placeholder="搜索关键字" />
|
||
|
<span class="input-group-btn"><button type="submit" class="btn btn-default" id="search_btn">搜索</button></span>
|
||
|
</form>
|
||
|
</div>
|
||
|
<?php }?>
|
||
|
<div class="">
|
||
|
<a href="/admin/data/project/ac/status" class="btn btn-info">统计</a>
|
||
|
<a href="/admin/data/project/ac/datas" class="btn btn-info">计划内的数据</a>
|
||
|
<a href="/admin/data/project/ac/download" class="btn btn-info">计划内的下载纪录</a>
|
||
|
</div>
|
||
|
<h5>
|
||
|
共 <?= $this->Count; ?> 条记录
|
||
|
</h5>
|
||
|
<div id="datalistZ">
|
||
|
<?php if (count($this->paginator)): ?>
|
||
|
<table class="table">
|
||
|
<thead>
|
||
|
|
||
|
<th>用户ID</th>
|
||
|
<th>用户名</th>
|
||
|
<th>姓名</th>
|
||
|
<th>下载次数</th>
|
||
|
|
||
|
</thead>
|
||
|
<tbody>
|
||
|
<?php
|
||
|
$autoindex=0;
|
||
|
foreach ($this->paginator as $item):
|
||
|
$autoindex++;
|
||
|
?>
|
||
|
<tr>
|
||
|
<td><?= $item['id'] ?></td>
|
||
|
<td><?= $item['username'] ?></td>
|
||
|
<td><?= $item['realname'] ?></td>
|
||
|
<td><?= $item['c'] ?></td>
|
||
|
</tr>
|
||
|
<?php endforeach;?>
|
||
|
</tbody>
|
||
|
</table>
|
||
|
<?php endif; ?>
|
||
|
</div>
|
||
|
<div class="pagenavi"><?= $this->paginator; ?></div>
|
||
|
</div>
|
||
|
<div style="display:none;">
|
||
|
<div id="confirm_dialog" class="cbox_content">
|
||
|
<div class="sepH_c tac"><strong>状态修改</strong></div>
|
||
|
<div id="cbox_dialog_content" class="sepH_c ">
|
||
|
<select id="status_selector" style="width:300px;" name="" class="form-control">
|
||
|
<?php
|
||
|
foreach($this->project_status as $k=>$v)
|
||
|
{
|
||
|
echo '<option value="'.$k.'">'.$v.'</option>';
|
||
|
}
|
||
|
?>
|
||
|
</select>
|
||
|
</div>
|
||
|
<div class="tac pull-right" id="cbox_ctl_btns">
|
||
|
<a href="javascript:void(0);" class="btn btn-success btn-sm" id="confirm_yes"
|
||
|
onclick="changeStatusAction($('#status_selector').attr('name'),$('#status_selector').val());">确定</a>
|
||
|
<a href="javascript:void(0);" class="btn btn-danger btn-sm" id="confirm_no" onclick="$.colorbox.close();">取消</a>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|