75 lines
3.3 KiB
PHTML
75 lines
3.3 KiB
PHTML
<?php
|
|
$this->headTitle($this->config->title->site);
|
|
$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('<a href="/admin/data">数据管理</a>');
|
|
$this->breadcrumb('项目来源管理');
|
|
$this->breadcrumb()->setSeparator(' > ');
|
|
?>
|
|
<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 ($this->msg or $this->messages) :?>
|
|
<div id="message" class="alert alert-info">
|
|
<?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 class="form-group">
|
|
<a class="btn btn-primary btn-sm" href="/admin/data/source">项目来源管理</a>
|
|
<a class="btn btn-primary btn-sm" href="/admin/data/source/do/add">添加项目来源</a>
|
|
<a class="btn btn-primary btn-sm" href="/admin/data/source/do/sync">同步项目来源(以此处为准)</a>
|
|
</div>
|
|
<div class="input-group form-group">
|
|
<form action="" method="get" class="search_form input-group">
|
|
<input type="text" class="q form-control" name="q" value="<?php echo $this->q; ?>" placeholder="搜索关键字" class="form-control" />
|
|
<input type="hidden" name="search" value='1' />
|
|
<input type="hidden" name="id" value='<?php echo $this->id;?>' />
|
|
<span class="input-group-btn"><button type="submit" class="btn btn-default">搜索</button></span>
|
|
</form>
|
|
</div><!-- search DIV -->
|
|
<div class="">
|
|
<table class="stylized table table-bordered table-striped table-hover">
|
|
<thead>
|
|
<tr>
|
|
<td width='40%'>标题</td>
|
|
<td width='15%'>Code字符</td>
|
|
<td width='15%'>项目管理机构</td>
|
|
<td width='30%'>操作</td>
|
|
</tr>
|
|
</thead>
|
|
<?php if (count($this->paginator)): ?>
|
|
<tbody id="list">
|
|
<?php foreach ($this->paginator as $item): ?>
|
|
|
|
<?php
|
|
$admin_status=array(0=>"暂无管理机构",1=>"由专家委员会进行管理",2=>"委托数据中心进行管理");
|
|
?>
|
|
<tr>
|
|
<td><a href="/admin/data/source/do/fetch/id/<?php echo $item['id']?>"><?php echo $item['title']; ?></a></td>
|
|
<td><span><?php echo $item['code'];?></span></td>
|
|
<td><span><?php echo $admin_status[$item['admin_status']];?></span></td>
|
|
<td>
|
|
<a href="/admin/data/source/do/edit/id/<?php echo $item['id']?>">查看编辑</a>|
|
|
<a href="/admin/data/source/do/fetch/id/<?php echo $item['id']?>">查看元数据</a>|
|
|
<a href="/admin/data/source/do/del/id/<?php echo $item['id']?>" onclick="return confirm('是否确定删除该来源')">删除</a>
|
|
</td>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
</tbody>
|
|
<?php endif; ?>
|
|
</table>
|
|
</div>
|
|
<div class="pagenavi"><?= $this->paginator; ?></div>
|
|
</div>
|
|
</div>
|
|
<script type="text/javascript" >$("#list tr").mouseover(function(){$(this).addClass("high")}).mouseout(function(){$(this).removeClass("high")})</script>
|