westdc-zf1/application/admin/views/scripts/data/source.phtml

75 lines
3.3 KiB
PHTML
Raw Permalink Normal View History

<?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(' > ');
?>
2014-07-23 08:38:32 +00:00
<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">
2014-09-23 13:50:03 +00:00
<form action="" method="get" class="search_form input-group">
2014-07-23 08:38:32 +00:00
<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>
2014-07-23 08:38:32 +00:00
<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=>"委托数据中心进行管理");
?>
2014-07-23 08:38:32 +00:00
<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>
2014-07-23 08:38:32 +00:00
<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>
2014-07-23 08:38:32 +00:00
<script type="text/javascript" >$("#list tr").mouseover(function(){$(this).addClass("high")}).mouseout(function(){$(this).removeClass("high")})</script>