修改数据作者中的页面模板
This commit is contained in:
parent
dca6a942be
commit
e216fc5993
|
@ -12,6 +12,9 @@ if(!empty($this->infos['keyword'])) $keyword = $this->infos['keyword']; else $ke
|
||||||
$this->headMeta()->appendName('keywords', $keyword);
|
$this->headMeta()->appendName('keywords', $keyword);
|
||||||
$this->headMeta()->appendName('description', mb_substr($this->infos['description'],0,180,'utf-8'));
|
$this->headMeta()->appendName('description', mb_substr($this->infos['description'],0,180,'utf-8'));
|
||||||
?>
|
?>
|
||||||
|
<style>
|
||||||
|
td{word-break:break-all;word-wrap:break-word;overflow:hidden;}
|
||||||
|
</style>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="span3">
|
<div class="span3">
|
||||||
<div class="well sidebar-nav">
|
<div class="well sidebar-nav">
|
||||||
|
|
|
@ -2,59 +2,59 @@
|
||||||
$this->headTitle($this->config->title->site);
|
$this->headTitle($this->config->title->site);
|
||||||
$this->headTitle($this->config->title->author);
|
$this->headTitle($this->config->title->author);
|
||||||
$this->headTitle()->setSeparator(' - ');
|
$this->headTitle()->setSeparator(' - ');
|
||||||
$this->headScript()->appendFile('/js/jquery-1.7.min.js');
|
$this->theme->AppendPlus($this,'colorbox');
|
||||||
$this->headScript()->appendFile('/js/jquery.colorbox-min.js');
|
|
||||||
$this->headLink()->appendStylesheet('/css/author.css');
|
$this->headLink()->appendStylesheet('/css/author.css');
|
||||||
$this->headLink()->appendStylesheet('/css/colorbox.css');
|
|
||||||
$this->breadcrumb('<a href="/">首页</a>');
|
$this->breadcrumb('<a href="/">首页</a>');
|
||||||
$this->breadcrumb('<a href="/author">数据作者</a>');
|
$this->breadcrumb('<a href="/author">数据作者</a>');
|
||||||
$this->breadcrumb('我的数据');
|
$this->breadcrumb('我的数据');
|
||||||
$this->breadcrumb()->setSeparator(' > ');
|
$this->breadcrumb()->setSeparator(' > ');
|
||||||
?>
|
?>
|
||||||
<!-- 左侧导航 -->
|
<div class="row">
|
||||||
<div id='sidebar'>
|
<div class="span3">
|
||||||
<div id='leftnavi'>
|
<?= $this->partial('author/navi.phtml'); ?>
|
||||||
<?= $this->partial('author/navi.phtml'); ?>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<div class="span9">
|
||||||
<!-- //左侧导航 -->
|
<div>
|
||||||
|
|
||||||
<!-- 页面内容 -->
|
<?php
|
||||||
<div id="wapper">
|
if(!empty($this->error))
|
||||||
|
{
|
||||||
|
echo $this->error;
|
||||||
|
}
|
||||||
|
|
||||||
<?php
|
?>
|
||||||
if(!empty($this->error))
|
<div class="pagetitle">
|
||||||
{
|
<?php echo $this->title ;?> (共 <?php echo count($this->info);?> 个文档)
|
||||||
echo $this->error;
|
</div>
|
||||||
}
|
<div>
|
||||||
|
<?php
|
||||||
?>
|
if (count($this->paginator)):
|
||||||
<div class="pagetitle">
|
echo '<ul class="unstyled">';
|
||||||
<?php echo $this->title ;?> (共 <?php echo count($this->info);?> 个文档)
|
$autoindex=0;
|
||||||
</div>
|
foreach ($this->paginator as $item):
|
||||||
<div id="datalist">
|
$autoindex++;?>
|
||||||
<?php
|
<li class="well" id="data_<?php echo $item['id'];?>">
|
||||||
if (count($this->paginator)):
|
<p>
|
||||||
echo "<ul>";
|
<div class="input-append">
|
||||||
$autoindex=0;
|
<input type="text" readonly="readonly" value="<?php echo $item['realname']; ?>" id="file_<?php echo $item['id'];?>" class="half" />
|
||||||
foreach ($this->paginator as $item):
|
<button type="button" class="btn" id="btn_<?php echo $item['id'];?>" onclick="Submit(<?php echo $item['id'];?>)" disabled="disabled" style="display:none;">提交</button>
|
||||||
$autoindex++;?>
|
</div>
|
||||||
<li id="data_<?php echo $item['id'];?>">
|
(<?php echo round($item['filesize']/1024,2)?>KB)</p>
|
||||||
<p><input type="text" readonly="readonly" value="<?php echo $item['realname']; ?>" id="file_<?php echo $item['id'];?>" class="half" />
|
<p><a href="javascript:;" onclick="del(<?php echo $item['id'];?>)">删除</a> |
|
||||||
<button type="button" id="btn_<?php echo $item['id'];?>" onclick="Submit(<?php echo $item['id'];?>)" disabled="disabled" style="display:none;">提交</button>
|
<a href="javascript:;" onclick="edit(<?php echo $item['id'];?>)">改名</a> |
|
||||||
(<?php echo round($item['filesize']/1024,2)?>KB)</p>
|
<a href="/author/document/ac/download/id/<?php echo $item['id'];?>" target="_blank">下载</a></p>
|
||||||
<p><a href="javascript:;" onclick="del(<?php echo $item['id'];?>)">删除</a> |
|
</li>
|
||||||
<a href="javascript:;" onclick="edit(<?php echo $item['id'];?>)">改名</a> |
|
<?php endforeach;
|
||||||
<a href="/author/document/ac/download/id/<?php echo $item['id'];?>" target="_blank">下载</a></p>
|
echo "</ul>";
|
||||||
</li>
|
endif; ?>
|
||||||
<?php endforeach;
|
<div class="pagenavi"><?= $this->paginator; ?></div>
|
||||||
echo "</ul>";
|
</div>
|
||||||
endif; ?>
|
|
||||||
<div class="pagenavi"><?= $this->paginator; ?></div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- //页面内容 -->
|
<!-- //页面内容 -->
|
||||||
<script>
|
<script>
|
||||||
function edit(id){
|
function edit(id){
|
||||||
|
|
|
@ -2,38 +2,34 @@
|
||||||
$this->headTitle($this->config->title->site);
|
$this->headTitle($this->config->title->site);
|
||||||
$this->headTitle($this->config->title->author);
|
$this->headTitle($this->config->title->author);
|
||||||
$this->headTitle()->setSeparator(' - ');
|
$this->headTitle()->setSeparator(' - ');
|
||||||
$this->headScript()->appendFile('/js/jquery-1.7.min.js');
|
$this->theme->AppendPlus($this,'colorbox');
|
||||||
$this->headScript()->appendFile('/js/jquery.colorbox-min.js');
|
|
||||||
$this->headLink()->appendStylesheet('/css/author.css');
|
$this->headLink()->appendStylesheet('/css/author.css');
|
||||||
$this->headLink()->appendStylesheet('/css/colorbox.css');
|
|
||||||
$this->breadcrumb('<a href="/">首页</a>');
|
$this->breadcrumb('<a href="/">首页</a>');
|
||||||
$this->breadcrumb('<a href="/author">数据作者</a>');
|
$this->breadcrumb('<a href="/author">数据作者</a>');
|
||||||
$this->breadcrumb('我的数据');
|
$this->breadcrumb('我的数据');
|
||||||
$this->breadcrumb()->setSeparator(' > ');
|
$this->breadcrumb()->setSeparator(' > ');
|
||||||
?>
|
?>
|
||||||
<!-- 左侧导航 -->
|
<div class="row">
|
||||||
<div id='sidebar'>
|
<div class="span3">
|
||||||
<div id='leftnavi'>
|
<?= $this->partial('author/navi.phtml'); ?>
|
||||||
<?= $this->partial('author/navi.phtml'); ?>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<div class="span9">
|
||||||
<!-- //左侧导航 -->
|
|
||||||
|
|
||||||
<!-- 页面内容 -->
|
<div class="input-append">
|
||||||
<div id="wapper">
|
<form id="datasearch" class="search_form" action="/author/document/ac/search">
|
||||||
<form id="datasearch" class="search_form" action="/author/document/ac/search">
|
<input type="text" id="keyword" name="q" value="<?php if(!empty($this->q)) echo $this->q; ?>" />
|
||||||
<input type="text" id="keyword" name="q" value="<?php if(!empty($this->q)) echo $this->q; ?>" />
|
<button type="submit" class="btn" id="search_btn">搜索</button>
|
||||||
<button type="submit" class="btn" id="search_btn">搜索</button>
|
</form>
|
||||||
</form>
|
</div>
|
||||||
<div id="datalist">
|
<div>
|
||||||
<?php
|
<?php
|
||||||
if (count($this->paginator)):
|
if (count($this->paginator)):
|
||||||
echo "<ul>";
|
echo '<ul class="unstyled">';
|
||||||
$autoindex=0;
|
$autoindex=0;
|
||||||
foreach ($this->paginator as $item):
|
foreach ($this->paginator as $item):
|
||||||
$autoindex++;?>
|
$autoindex++;?>
|
||||||
<li>
|
<li class="well">
|
||||||
<p><a href="/data/<?php echo $item['uuid'];?>" target="_blank"><?php echo $item['title'];?></a></p>
|
<h4><a href="/data/<?php echo $item['uuid'];?>" target="_blank"><?php echo $item['title'];?></a></h4>
|
||||||
<p>文档数: <?php echo $item['aid'];?>
|
<p>文档数: <?php echo $item['aid'];?>
|
||||||
<a href="/author/document/ac/view/uuid/<?php echo $item['uuid'];?>">查看详细</a> |
|
<a href="/author/document/ac/view/uuid/<?php echo $item['uuid'];?>">查看详细</a> |
|
||||||
<a class="iframe" href="/author/document/ac/upload/uuid/<?php echo $item['uuid']; ?>">文件上传</a> |
|
<a class="iframe" href="/author/document/ac/upload/uuid/<?php echo $item['uuid']; ?>">文件上传</a> |
|
||||||
|
@ -46,10 +42,9 @@ $this->breadcrumb()->setSeparator(' > ');
|
||||||
<div class="pagenavi"><?= $this->paginator; ?></div>
|
<div class="pagenavi"><?= $this->paginator; ?></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- //页面内容 -->
|
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
$(".iframe").colorbox({iframe:true, width:"80%", height:"80%"});
|
$(".iframe").colorbox({iframe:true, width:"60%", height:"80%"});
|
||||||
|
$(".inline").colorbox({inline:true, width:"50%"});
|
||||||
</script>
|
</script>
|
|
@ -15,9 +15,9 @@ $this->breadcrumb()->setSeparator(' > ');
|
||||||
<div class="span9">
|
<div class="span9">
|
||||||
<div>
|
<div>
|
||||||
<ul class="nav nav-pills">
|
<ul class="nav nav-pills">
|
||||||
<li class=""><a class="text-shadow" href="/author/inauthor/ac/online">在线下载记录</a></li>
|
<li><a href="/author/inauthor/ac/online">在线下载记录</a></li>
|
||||||
<li class=""><a class="text-shadow" href="/author/inauthor/ac/offline">离线申请记录</a></li>
|
<li><a href="/author/inauthor/ac/offline">离线申请记录</a></li>
|
||||||
<li class="active"><a class="text-shadow" href="/author/inauthor/ac/datalist">按数据查看</a></li>
|
<li class="active"><a href="/author/inauthor/ac/datalist">按数据查看</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<p>请输入元数据标题关键字进行搜索</p>
|
<p>请输入元数据标题关键字进行搜索</p>
|
||||||
|
|
|
@ -15,9 +15,9 @@ $this->breadcrumb()->setSeparator(' > ');
|
||||||
<div class="span9">
|
<div class="span9">
|
||||||
<div>
|
<div>
|
||||||
<ul class="nav nav-pills">
|
<ul class="nav nav-pills">
|
||||||
<li class=""><a class="text-shadow" href="/author/inauthor/ac/online">在线下载记录</a></li>
|
<li><a href="/author/inauthor/ac/online">在线下载记录</a></li>
|
||||||
<li class="active"><a class="text-shadow" href="/author/inauthor/ac/offline">离线申请记录</a></li>
|
<li class="active"><a href="/author/inauthor/ac/offline">离线申请记录</a></li>
|
||||||
<li class=""><a class="text-shadow" href="/author/inauthor/ac/datalist">按数据查看</a></li>
|
<li><a href="/author/inauthor/ac/datalist">按数据查看</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<p>请输入元数据标题关键字进行搜索</p>
|
<p>请输入元数据标题关键字进行搜索</p>
|
||||||
|
|
|
@ -15,9 +15,9 @@ $this->breadcrumb()->setSeparator(' > ');
|
||||||
<div class="span9">
|
<div class="span9">
|
||||||
<div>
|
<div>
|
||||||
<ul class="nav nav-pills">
|
<ul class="nav nav-pills">
|
||||||
<li class="active"><a class="text-shadow" href="/author/inauthor/ac/online">在线下载记录</a></li>
|
<li class="active"><a href="/author/inauthor/ac/online">在线下载记录</a></li>
|
||||||
<li class=""><a class="text-shadow" href="/author/inauthor/ac/offline">离线申请记录</a></li>
|
<li><a href="/author/inauthor/ac/offline">离线申请记录</a></li>
|
||||||
<li class=""><a class="text-shadow" href="/author/inauthor/ac/datalist">按数据查看</a></li>
|
<li><a href="/author/inauthor/ac/datalist">按数据查看</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<p>请输入元数据标题关键字进行搜索</p>
|
<p>请输入元数据标题关键字进行搜索</p>
|
||||||
|
|
|
@ -50,7 +50,6 @@ $this->breadcrumb()->setSeparator(' > ');
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<script>
|
<script>
|
||||||
$('#wapper').width($('body').width()-300);
|
|
||||||
function action(ac,uuid){
|
function action(ac,uuid){
|
||||||
$.ajax({
|
$.ajax({
|
||||||
'type':"POST",
|
'type':"POST",
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
$this->headTitle($this->config->title->site);
|
$this->headTitle($this->config->title->site);
|
||||||
$this->headTitle($this->config->title->author);
|
$this->headTitle($this->config->title->author);
|
||||||
$this->headTitle()->setSeparator(' - ');
|
$this->headTitle()->setSeparator(' - ');
|
||||||
$this->headScript()->appendFile('/js/jquery-1.7.min.js');
|
|
||||||
$this->headScript()->appendFile('/static/js/kindeditor-min.js');
|
$this->headScript()->appendFile('/static/js/kindeditor-min.js');
|
||||||
$this->headScript()->appendFile('/static/js/kindlang/zh_CN.js');
|
$this->headScript()->appendFile('/static/js/kindlang/zh_CN.js');
|
||||||
$this->headLink()->appendStylesheet('/css/author.css');
|
$this->headLink()->appendStylesheet('/css/author.css');
|
||||||
|
@ -12,68 +11,76 @@ $this->breadcrumb('<a href="/author">数据作者</a>');
|
||||||
$this->breadcrumb('数据新闻');
|
$this->breadcrumb('数据新闻');
|
||||||
$this->breadcrumb()->setSeparator(' > ');
|
$this->breadcrumb()->setSeparator(' > ');
|
||||||
?>
|
?>
|
||||||
<!-- 左侧导航 -->
|
<div class="row">
|
||||||
<div id='sidebar'>
|
<div class="span3">
|
||||||
<div id='leftnavi'>
|
<?= $this->partial('author/navi.phtml'); ?>
|
||||||
<?= $this->partial('author/navi.phtml'); ?>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<div class="span9">
|
||||||
<!-- //左侧导航 -->
|
|
||||||
|
<div>
|
||||||
|
<ul class="nav nav-pills">
|
||||||
|
<li class=""><a class="" href="/author/news">数据新闻</a></li>
|
||||||
|
<li class="active"><a class="" href="/author/news/ac/add">新闻发布</a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="form-horizontal" id="form">
|
||||||
|
<form name="form" id="newsadd" method="post" action="#">
|
||||||
|
|
||||||
|
<div class="control-group">
|
||||||
|
<label class="control-label" for="archivetitle">标题</label>
|
||||||
|
<div class="controls">
|
||||||
|
<input type="text" id="archivetitle" class="half" value="" name="title" maxlength="100"/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="control-group">
|
||||||
|
<label class="control-label" for="data">相关数据</label>
|
||||||
|
<div class="controls">
|
||||||
|
<ul style="height:100px;overflow-y:scroll;" class="span6 unstyled">
|
||||||
|
<?php
|
||||||
|
if(!empty($this->md))
|
||||||
|
{
|
||||||
|
foreach($this->md as $v)
|
||||||
|
{
|
||||||
|
echo '<li><input type="checkbox" value="'.$v['uuid'].'" name="uuid[]" />'.$v['title'].'</li>';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="control-group">
|
||||||
|
<label class="control-label" for="tag">标签</label>
|
||||||
|
<div class="controls">
|
||||||
|
<input type="text" id="keyword" value="" name="keyword" style="width:96%" />
|
||||||
|
<small>使用半角逗号“,”隔开,如 (冻土,冰川)</small>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="control-group">
|
||||||
|
<label class="control-label" for="tag">新闻内容</label>
|
||||||
|
<div class="controls">
|
||||||
|
<textarea id="body" name="body" style="width:98%;"></textarea>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="control-group">
|
||||||
|
<div class="controls">
|
||||||
|
<input type="button" onclick="addon();" id="submit" class="btn btn-green big" value="提交"/> or
|
||||||
|
<input type="reset" class="btn" value="重置" onclick="return confirm('确实要抛弃已经填写内容?');"/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
|
||||||
<!-- 页面内容 -->
|
|
||||||
<div id="wapper">
|
|
||||||
<!-- 按钮 -->
|
|
||||||
<div id="tabs-controller">
|
|
||||||
<ul>
|
|
||||||
<li class="box-shadow"><a class="text-shadow" href="/author/news">数据新闻</a></li>
|
|
||||||
<li class="box-shadow active"><a class="text-shadow" href="/author/news/ac/add">新闻发布</a></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
<!-- 新闻表单 -->
|
|
||||||
<div class="form" id="form">
|
|
||||||
<form name="form" id="newsadd" method="post" action="#">
|
|
||||||
<fieldset>
|
|
||||||
<legend>新闻信息</legend>
|
|
||||||
<input type="hidden" id="image" class="half title" value="" name="image"/>
|
|
||||||
<p>
|
|
||||||
<label class="required" for="archivetitle">标题</label><br/>
|
|
||||||
<input type="text" id="archivetitle" class="half" value="" name="title" maxlength="100"/>
|
|
||||||
<small>请准确概况新闻内容</small>
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
<label class="required" for="data">相关数据</label><br/>
|
|
||||||
<ul style="height:100px;width:50%;overflow-y:scroll;">
|
|
||||||
<?php
|
|
||||||
if(!empty($this->md))
|
|
||||||
{
|
|
||||||
foreach($this->md as $v)
|
|
||||||
{
|
|
||||||
echo '<li><input type="checkbox" value="'.$v['uuid'].'" name="uuid[]" />'.$v['title'].'</li>';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
</ul>
|
|
||||||
<small>从数据中选择一条</small>
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
<label class="required" for="tag">标签</label><br/>
|
|
||||||
<input type="text" id="keyword" class="half" value="" name="keyword"/>
|
|
||||||
<small>使用半角逗号“,”隔开,如 (冻土,冰川)</small>
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
<label for="body">新闻内容</label><br/>
|
|
||||||
<textarea id="body" class="large full" name="body"></textarea>
|
|
||||||
</p>
|
|
||||||
<p class="box"><input type="button" onclick="addon();" id="submit" class="btn btn-green big" value="提交"/> or <input type="reset" class="btn" value="重置" onclick="return confirm('确实要抛弃已经填写内容?');"/></p>
|
|
||||||
<div id="return"></div>
|
|
||||||
</fieldset>
|
|
||||||
</form>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- //页面内容 -->
|
|
||||||
<script>
|
<script>
|
||||||
$(document).ready(function(){
|
$(document).ready(function(){
|
||||||
$('#wapper').width($('body').width()-300);
|
|
||||||
KindEditor.ready(function(K) {
|
KindEditor.ready(function(K) {
|
||||||
editor=K.create('textarea[name="body"]', {
|
editor=K.create('textarea[name="body"]', {
|
||||||
cssPath : '/static/js/plugins/code/prettify.css',
|
cssPath : '/static/js/plugins/code/prettify.css',
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
$this->headTitle($this->config->title->site);
|
$this->headTitle($this->config->title->site);
|
||||||
$this->headTitle($this->config->title->author);
|
$this->headTitle($this->config->title->author);
|
||||||
$this->headTitle()->setSeparator(' - ');
|
$this->headTitle()->setSeparator(' - ');
|
||||||
$this->headScript()->appendFile('/js/jquery-1.7.min.js');
|
|
||||||
$this->headScript()->appendFile('/static/js/kindeditor-min.js');
|
$this->headScript()->appendFile('/static/js/kindeditor-min.js');
|
||||||
$this->headScript()->appendFile('/static/js/kindlang/zh_CN.js');
|
$this->headScript()->appendFile('/static/js/kindlang/zh_CN.js');
|
||||||
$this->headLink()->appendStylesheet('/css/author.css');
|
$this->headLink()->appendStylesheet('/css/author.css');
|
||||||
|
@ -12,71 +11,83 @@ $this->breadcrumb('<a href="/author">数据作者</a>');
|
||||||
$this->breadcrumb('数据新闻');
|
$this->breadcrumb('数据新闻');
|
||||||
$this->breadcrumb()->setSeparator(' > ');
|
$this->breadcrumb()->setSeparator(' > ');
|
||||||
?>
|
?>
|
||||||
<!-- 左侧导航 -->
|
<div class="row">
|
||||||
<div id='sidebar'>
|
<div class="span3">
|
||||||
<div id='leftnavi'>
|
<?= $this->partial('author/navi.phtml'); ?>
|
||||||
<?= $this->partial('author/navi.phtml'); ?>
|
</div>
|
||||||
|
<div class="span9">
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<ul class="nav nav-pills">
|
||||||
|
<li class=""><a class="" href="/author/news">数据新闻</a></li>
|
||||||
|
<li class="active"><a class="" href="/author/news/ac/add">新闻发布</a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="form-horizontal" id="form">
|
||||||
|
<form name="form" id="newsadd" method="post" action="#">
|
||||||
|
|
||||||
|
<div class="control-group">
|
||||||
|
<label class="control-label" for="archivetitle">标题</label>
|
||||||
|
<div class="controls">
|
||||||
|
<input type="text" id="producttitle" class="half" value="<?php echo $this->info['title'];?>" name="title" maxlength="100"/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="control-group">
|
||||||
|
<label class="control-label" for="data">相关数据</label>
|
||||||
|
<div class="controls">
|
||||||
|
<ul style="height:100px;overflow-y:scroll;" class="span6 unstyled">
|
||||||
|
<?php
|
||||||
|
if(!empty($this->md))
|
||||||
|
{
|
||||||
|
foreach($this->md as $vd)
|
||||||
|
{
|
||||||
|
echo '<li><input type="checkbox" name="uuid[]" value="'.$vd['uuid'].'"';
|
||||||
|
foreach($this->thismd as $v)
|
||||||
|
{
|
||||||
|
if($v['uuid'] == $vd['uuid'])
|
||||||
|
{
|
||||||
|
echo 'checked="checked"';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
echo ' />'.$vd['title'].'</li>';
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="control-group">
|
||||||
|
<label class="control-label" for="tag">标签</label>
|
||||||
|
<div class="controls">
|
||||||
|
<input type="text" id="keyword" value="<?php echo $this->info['keywords'];?>" name="keyword" style="width:96%" />
|
||||||
|
<small>使用半角逗号“,”隔开,如 (冻土,冰川)</small>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="control-group">
|
||||||
|
<label class="control-label" for="tag">新闻内容</label>
|
||||||
|
<div class="controls">
|
||||||
|
<textarea id="body" name="body" style="width:98%;"><?php echo $this->info['body'];?></textarea>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="control-group">
|
||||||
|
<div class="controls">
|
||||||
|
<input type="hidden" name="aid" value="<?php echo $this->info['id'];?>" />
|
||||||
|
<input type="button" onclick="addon();" id="submit" class="btn btn-green big" value="提交"/> or
|
||||||
|
<input type="reset" class="btn" value="重置" onclick="return confirm('确实要抛弃已经填写内容?');"/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- //左侧导航 -->
|
|
||||||
|
|
||||||
<!-- 页面内容 -->
|
|
||||||
<div id="wapper">
|
|
||||||
<div id="tabs-controller">
|
|
||||||
<ul>
|
|
||||||
<li class="box-shadow"><a class="text-shadow" href="/author/news">数据新闻</a></li>
|
|
||||||
<li class="box-shadow"><a class="text-shadow" href="/author/news/ac/add">新闻发布</a></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
<!-- 新闻表单 -->
|
|
||||||
<div class="form" id="form">
|
|
||||||
<form name="form" id="newsadd" method="post" action="#">
|
|
||||||
<fieldset>
|
|
||||||
<legend>新闻信息</legend>
|
|
||||||
<p>
|
|
||||||
<label class="required" for="producttitle">标题</label><br/>
|
|
||||||
<input type="text" id="producttitle" class="half" value="<?php echo $this->info['title'];?>" name="title" maxlength="100"/>
|
|
||||||
<small>请准确概况新闻内容</small>
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
<label class="required" for="data">相关数据</label><br/>
|
|
||||||
<ul style="height:100px;width:50%;overflow-y:scroll;">
|
|
||||||
<?php
|
|
||||||
if(!empty($this->md))
|
|
||||||
{
|
|
||||||
foreach($this->md as $vd)
|
|
||||||
{
|
|
||||||
echo '<li><input type="checkbox" name="uuid[]" value="'.$vd['uuid'].'"';
|
|
||||||
foreach($this->thismd as $v)
|
|
||||||
{
|
|
||||||
if($v['uuid'] == $vd['uuid'])
|
|
||||||
{
|
|
||||||
echo 'checked="checked"';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
echo ' />'.$vd['title'].'</li>';
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
</ul>
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
<label class="required" for="producttitle">标签</label><br/>
|
|
||||||
<input type="text" id="keyword" class="half" value="<?php echo $this->info['keywords'];?>" name="keyword"/>
|
|
||||||
<small>使用半角逗号","隔开,如 (冻土,冰川)</small>
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
<label for="body">新闻内容</label><br/>
|
|
||||||
<textarea id="body" class="large full" name="body"><?php echo $this->info['body'];?></textarea>
|
|
||||||
</p>
|
|
||||||
<input type="hidden" name="aid" value="<?php echo $this->info['id'];?>" />
|
|
||||||
<p class="box"><input type="button" onclick="addon();" id="submit" class="btn btn-green big" value="提交"/> or <input type="reset" class="btn" value="重置" onclick="return confirm('确实要抛弃已经填写内容?');"/></p>
|
|
||||||
<div id="return"></div>
|
|
||||||
</fieldset>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
<!-- //页面内容 -->
|
|
||||||
<script>
|
<script>
|
||||||
$(document).ready(function(){
|
$(document).ready(function(){
|
||||||
$('#wapper').width($('body').width()-300);
|
$('#wapper').width($('body').width()-300);
|
||||||
|
|
|
@ -2,63 +2,60 @@
|
||||||
$this->headTitle($this->config->title->site);
|
$this->headTitle($this->config->title->site);
|
||||||
$this->headTitle($this->config->title->author);
|
$this->headTitle($this->config->title->author);
|
||||||
$this->headTitle()->setSeparator(' - ');
|
$this->headTitle()->setSeparator(' - ');
|
||||||
$this->headScript()->appendFile('/js/jquery-1.7.min.js');
|
|
||||||
$this->headLink()->appendStylesheet('/css/author.css');
|
$this->headLink()->appendStylesheet('/css/author.css');
|
||||||
$this->headScript()->appendFile('/js/jquery.colorbox-min.js');
|
$this->theme->AppendPlus($this,'colorbox');
|
||||||
$this->headLink()->appendStylesheet('/css/colorbox.css');
|
|
||||||
$this->breadcrumb('<a href="/">首页</a>');
|
$this->breadcrumb('<a href="/">首页</a>');
|
||||||
$this->breadcrumb('<a href="/author">数据作者</a>');
|
$this->breadcrumb('<a href="/author">数据作者</a>');
|
||||||
$this->breadcrumb('数据新闻');
|
$this->breadcrumb('数据新闻');
|
||||||
$this->breadcrumb()->setSeparator(' > ');
|
$this->breadcrumb()->setSeparator(' > ');
|
||||||
?>
|
?>
|
||||||
<!-- 左侧导航 -->
|
<div class="row">
|
||||||
<div id='sidebar'>
|
<div class="span3">
|
||||||
<div id='leftnavi'>
|
<?= $this->partial('author/navi.phtml'); ?>
|
||||||
<?= $this->partial('author/navi.phtml'); ?>
|
</div>
|
||||||
|
<div class="span9">
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<ul class="nav nav-pills">
|
||||||
|
<li class="active"><a class="" href="/author/news">数据新闻</a></li>
|
||||||
|
<li class=""><a class="" href="/author/news/ac/add">新闻发布</a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<div class="input-append">
|
||||||
|
<form id="datasearch" class="search_form" action="/author/news/">
|
||||||
|
<input type="text" class="span2" id="keyword" name="q" value="<?php if(!empty($this->q)) echo $this->q; ?>" />
|
||||||
|
<button type="submit" class="btn" id="search_btn">搜索</button>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<?php
|
||||||
|
if (count($this->paginator)):
|
||||||
|
echo '<ul class="unstyled">';
|
||||||
|
$autoindex=0;
|
||||||
|
foreach ($this->paginator as $item):
|
||||||
|
$autoindex++;
|
||||||
|
?>
|
||||||
|
<li class="well" id="item_<?= $item['id'] ?>">
|
||||||
|
<p><a href="<?php echo $item['url'];?>" class="title"><?php echo $item['title'];?></a></p>
|
||||||
|
<p>
|
||||||
|
作者:<?php echo $item['realname'];?> |
|
||||||
|
发布时间:<?php echo date("Y-m-d",strtotime($item['ts_published']));?> |
|
||||||
|
关联数据:<?php echo $item['datacount'];?>条 |
|
||||||
|
操作:<a href="/author/news/ac/edit/aid/<?= $item['id']?>/">编辑</a> ·
|
||||||
|
<a href="javascript:;" onclick="del(<?= $item['id'] ?>)" id="delBtn_<?= $item['id'] ?>">删除</a></p>
|
||||||
|
<p><?php echo $item['description'];?></p>
|
||||||
|
</li>
|
||||||
|
<?php
|
||||||
|
endforeach;
|
||||||
|
echo "</ul>";
|
||||||
|
endif; ?>
|
||||||
|
</div>
|
||||||
|
<div class="pagenavi"><?= $this->paginator; ?></div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- //左侧导航 -->
|
|
||||||
|
|
||||||
<!-- 页面内容 -->
|
|
||||||
<div id="wapper">
|
|
||||||
<div id="tabs-controller">
|
|
||||||
<ul>
|
|
||||||
<li class="box-shadow active"><a class="text-shadow" href="/author/news">数据新闻</a></li>
|
|
||||||
<li class="box-shadow"><a class="text-shadow" href="/author/news/ac/add">新闻发布</a></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
<form id="datasearch" class="search_form" action="/author/news/">
|
|
||||||
<input type="text" id="keyword" name="q" value="<?php if(!empty($this->q)) echo $this->q; ?>" />
|
|
||||||
<button type="submit" class="btn" id="search_btn">搜索</button>
|
|
||||||
</form>
|
|
||||||
<div id="datalist">
|
|
||||||
<?php
|
|
||||||
if (count($this->paginator)):
|
|
||||||
echo "<ul>";
|
|
||||||
$autoindex=0;
|
|
||||||
foreach ($this->paginator as $item):
|
|
||||||
$autoindex++;
|
|
||||||
?>
|
|
||||||
<li id="item_<?= $item['id'] ?>">
|
|
||||||
<p><a href="<?php echo $item['url'];?>" class="title"><?php echo $item['title'];?></a></p>
|
|
||||||
<p>
|
|
||||||
作者:<?php echo $item['realname'];?> |
|
|
||||||
发布时间:<?php echo date("Y-m-d",strtotime($item['ts_published']));?> |
|
|
||||||
关联数据:<?php echo $item['datacount'];?>条 |
|
|
||||||
操作:<a href="/author/news/ac/edit/aid/<?= $item['id']?>/">编辑</a> ·
|
|
||||||
<a href="javascript:;" onclick="del(<?= $item['id'] ?>)" id="delBtn_<?= $item['id'] ?>">删除</a></p>
|
|
||||||
<p><?php echo $item['description'];?></p>
|
|
||||||
</li>
|
|
||||||
<?php
|
|
||||||
endforeach;
|
|
||||||
echo "</ul>";
|
|
||||||
endif; ?>
|
|
||||||
</div>
|
|
||||||
<div class="pagenavi"><?= $this->paginator; ?></div>
|
|
||||||
</div>
|
|
||||||
<!-- //页面内容 -->
|
|
||||||
<script>
|
<script>
|
||||||
$('#wapper').width($('body').width()-300);
|
|
||||||
function del(id){
|
function del(id){
|
||||||
var dom = "#delBtn_"+id;
|
var dom = "#delBtn_"+id;
|
||||||
var html = $(dom).html();
|
var html = $(dom).html();
|
||||||
|
|
|
@ -2,51 +2,45 @@
|
||||||
$this->headTitle($this->config->title->site);
|
$this->headTitle($this->config->title->site);
|
||||||
$this->headTitle($this->config->title->author);
|
$this->headTitle($this->config->title->author);
|
||||||
$this->headTitle()->setSeparator(' - ');
|
$this->headTitle()->setSeparator(' - ');
|
||||||
$this->headScript()->appendFile('/static/js/jquery-1.7.2.min.js');
|
|
||||||
$this->headLink()->appendStylesheet('/css/author.css');
|
$this->headLink()->appendStylesheet('/css/author.css');
|
||||||
$this->breadcrumb('<a href="/">首页</a>');
|
$this->breadcrumb('<a href="/">首页</a>');
|
||||||
$this->breadcrumb('<a href="/author">数据作者</a>');
|
$this->breadcrumb('<a href="/author">数据作者</a>');
|
||||||
$this->breadcrumb('数据申请管理');
|
$this->breadcrumb('数据申请管理');
|
||||||
$this->breadcrumb()->setSeparator(' > ');
|
$this->breadcrumb()->setSeparator(' > ');
|
||||||
?>
|
?>
|
||||||
<!-- 左侧导航 -->
|
<div class="row">
|
||||||
<div id='sidebar'>
|
<div class="span3">
|
||||||
<div id='leftnavi'>
|
<?= $this->partial('author/navi.phtml'); ?>
|
||||||
<?= $this->partial('author/navi.phtml'); ?>
|
</div>
|
||||||
|
<div class="span9">
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<ul class="nav nav-pills">
|
||||||
|
<li><a href="/author/statics">数据统计</a></li>
|
||||||
|
<li class="active"><a href="/author/statics/ac/md">申请统计</a></li>
|
||||||
|
<li class=""><a href="/author/statics/ac/time">按时间段统计</a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<ul class="unstyled">
|
||||||
|
<?php
|
||||||
|
|
||||||
|
if(isset($this->allorder))
|
||||||
|
{
|
||||||
|
echo "<li class='well'><h1>申请总数量:".$this->allorder."</h1><a href='/author/inauthor'>【申请管理】</a></li>";
|
||||||
|
}
|
||||||
|
if(isset($this->offlineorder))
|
||||||
|
{
|
||||||
|
echo "<li class='well'><h1>离线申请总数量:".$this->offlineorder."</h1><a href='/author/inauthor/ac/datalist'>【查看离线申请】</a></li>";
|
||||||
|
}
|
||||||
|
if(isset($this->onlineorder))
|
||||||
|
{
|
||||||
|
echo "<li class='well'><h1>在线申请总数量:".$this->onlineorder."</h1><a href='/author/inauthor/ac/online'>【查看在线申请】</a></li>";
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- //左侧导航 -->
|
|
||||||
|
|
||||||
<!-- 页面内容 -->
|
|
||||||
<div id="wapper">
|
|
||||||
<div id="tabs-controller">
|
|
||||||
<ul>
|
|
||||||
<li class="box-shadow"><a class="text-shadow" href="/author/statics">数据统计</a></li>
|
|
||||||
<li class="box-shadow active"><a class="text-shadow" href="/author/statics/ac/md">申请统计</a></li>
|
|
||||||
<li class="box-shadow"><a class="text-shadow" href="/author/statics/ac/time">按时间段统计</a></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
<div id="datalist">
|
|
||||||
<ul>
|
|
||||||
<?php
|
|
||||||
|
|
||||||
if(isset($this->allorder))
|
|
||||||
{
|
|
||||||
echo "<li><h1>申请总数量:".$this->allorder."</h1><a href='/author/inauthor'>【申请管理】</a></li>";
|
|
||||||
}
|
|
||||||
if(isset($this->offlineorder))
|
|
||||||
{
|
|
||||||
echo "<li><h1>离线申请总数量:".$this->offlineorder."</h1><a href='/author/inauthor/ac/datalist'>【查看离线申请】</a></li>";
|
|
||||||
}
|
|
||||||
if(isset($this->onlineorder))
|
|
||||||
{
|
|
||||||
echo "<li><h1>在线申请总数量:".$this->onlineorder."</h1><a href='/author/inauthor/ac/online'>【查看在线申请】</a></li>";
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<!-- //页面内容 -->
|
|
||||||
<script>
|
|
||||||
$('#wapper').width($('body').width()-300);
|
|
||||||
</script>
|
|
|
@ -2,46 +2,40 @@
|
||||||
$this->headTitle($this->config->title->site);
|
$this->headTitle($this->config->title->site);
|
||||||
$this->headTitle($this->config->title->author);
|
$this->headTitle($this->config->title->author);
|
||||||
$this->headTitle()->setSeparator(' - ');
|
$this->headTitle()->setSeparator(' - ');
|
||||||
$this->headScript()->appendFile('/static/js/jquery-1.7.2.min.js');
|
|
||||||
$this->headLink()->appendStylesheet('/css/author.css');
|
$this->headLink()->appendStylesheet('/css/author.css');
|
||||||
$this->breadcrumb('<a href="/">首页</a>');
|
$this->breadcrumb('<a href="/">首页</a>');
|
||||||
$this->breadcrumb('<a href="/author">数据作者</a>');
|
$this->breadcrumb('<a href="/author">数据作者</a>');
|
||||||
$this->breadcrumb('数据申请管理');
|
$this->breadcrumb('数据申请管理');
|
||||||
$this->breadcrumb()->setSeparator(' > ');
|
$this->breadcrumb()->setSeparator(' > ');
|
||||||
?>
|
?>
|
||||||
<!-- 左侧导航 -->
|
<div class="row">
|
||||||
<div id='sidebar'>
|
<div class="span3">
|
||||||
<div id='leftnavi'>
|
<?= $this->partial('author/navi.phtml'); ?>
|
||||||
<?= $this->partial('author/navi.phtml'); ?>
|
</div>
|
||||||
|
<div class="span9">
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<ul class="nav nav-pills">
|
||||||
|
<li><a href="/author/statics">数据统计</a></li>
|
||||||
|
<li><a href="/author/statics/ac/md">申请统计</a></li>
|
||||||
|
<li class="active"><a href="/author/statics/ac/time">按时间段统计</a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<ul class="unstyled">
|
||||||
|
<?php
|
||||||
|
if(isset($this->datas))
|
||||||
|
{
|
||||||
|
foreach($this->datas as $k=>$v)
|
||||||
|
{
|
||||||
|
echo "<li class='well'>时间:{$v['d']}<br />申请数:{$v['c']}</li>";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- //左侧导航 -->
|
|
||||||
|
|
||||||
<!-- 页面内容 -->
|
|
||||||
<div id="wapper">
|
|
||||||
<div id="tabs-controller">
|
|
||||||
<ul>
|
|
||||||
<li class="box-shadow"><a class="text-shadow" href="/author/statics">数据统计</a></li>
|
|
||||||
<li class="box-shadow"><a class="text-shadow" href="/author/statics/ac/md">申请统计</a></li>
|
|
||||||
<li class="box-shadow active"><a class="text-shadow" href="/author/statics/ac/time">按时间段统计</a></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
<div id="datalist">
|
|
||||||
<ul>
|
|
||||||
<?php
|
|
||||||
if(isset($this->datas))
|
|
||||||
{
|
|
||||||
foreach($this->datas as $k=>$v)
|
|
||||||
{
|
|
||||||
echo "<li>时间:{$v['d']}<br />申请数:{$v['c']}</li>";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
?>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<!-- //页面内容 -->
|
|
||||||
<script>
|
|
||||||
$('#wapper').width($('body').width()-300);
|
|
||||||
</script>
|
|
|
@ -2,50 +2,44 @@
|
||||||
$this->headTitle($this->config->title->site);
|
$this->headTitle($this->config->title->site);
|
||||||
$this->headTitle($this->config->title->author);
|
$this->headTitle($this->config->title->author);
|
||||||
$this->headTitle()->setSeparator(' - ');
|
$this->headTitle()->setSeparator(' - ');
|
||||||
$this->headScript()->appendFile('/static/js/jquery-1.7.2.min.js');
|
|
||||||
$this->headLink()->appendStylesheet('/css/author.css');
|
$this->headLink()->appendStylesheet('/css/author.css');
|
||||||
$this->breadcrumb('<a href="/">首页</a>');
|
$this->breadcrumb('<a href="/">首页</a>');
|
||||||
$this->breadcrumb('<a href="/author">数据作者</a>');
|
$this->breadcrumb('<a href="/author">数据作者</a>');
|
||||||
$this->breadcrumb('数据申请管理');
|
$this->breadcrumb('数据申请管理');
|
||||||
$this->breadcrumb()->setSeparator(' > ');
|
$this->breadcrumb()->setSeparator(' > ');
|
||||||
?>
|
?>
|
||||||
<!-- 左侧导航 -->
|
<div class="row">
|
||||||
<div id='sidebar'>
|
<div class="span3">
|
||||||
<div id='leftnavi'>
|
<?= $this->partial('author/navi.phtml'); ?>
|
||||||
<?= $this->partial('author/navi.phtml'); ?>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<div class="span9">
|
||||||
<!-- //左侧导航 -->
|
|
||||||
|
|
||||||
<!-- 页面内容 -->
|
<div>
|
||||||
<div id="wapper">
|
<ul class="nav nav-pills">
|
||||||
<div id="tabs-controller">
|
<li class="active"><a href="/author/statics">数据统计</a></li>
|
||||||
<ul>
|
<li class=""><a href="/author/statics/ac/md">申请统计</a></li>
|
||||||
<li class="box-shadow active"><a class="text-shadow" href="/author/statics">数据统计</a></li>
|
<li class=""><a href="/author/statics/ac/time">按时间段统计</a></li>
|
||||||
<li class="box-shadow"><a class="text-shadow" href="/author/statics/ac/md">申请统计</a></li>
|
</ul>
|
||||||
<li class="box-shadow"><a class="text-shadow" href="/author/statics/ac/time">按时间段统计</a></li>
|
</div>
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
<div id="datalist">
|
|
||||||
|
|
||||||
<ul>
|
<div>
|
||||||
<?php
|
|
||||||
|
|
||||||
if(isset($this->alldata))
|
<ul class="unstyled">
|
||||||
{
|
<?php
|
||||||
foreach($this->alldata as $v)
|
|
||||||
{
|
|
||||||
echo "<li><p><a target='_blank' href='/data/".$v['uuid']."'>".$v['title']."</a></p><p>点击:".$v['viewed']." | <a href='/author/inauthor/ac/datalist/uuid/".$v['uuid']."'>下载:".$v['down']."</a></p></li>";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
?>
|
if(isset($this->alldata))
|
||||||
|
{
|
||||||
|
foreach($this->alldata as $v)
|
||||||
|
{
|
||||||
|
echo "<li class='well'><p><a target='_blank' href='/data/".$v['uuid']."'>".$v['title']."</a></p><p>点击:".$v['viewed']." | <a href='/author/inauthor/ac/datalist/uuid/".$v['uuid']."'>下载:".$v['down']."</a></p></li>";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
</ul>
|
?>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- //页面内容 -->
|
|
||||||
<script>
|
|
||||||
$('#wapper').width($('body').width()-300);
|
|
||||||
</script>
|
|
|
@ -9,45 +9,40 @@ $this->breadcrumb('<a href="/author">数据作者</a>');
|
||||||
$this->breadcrumb('数据版本管理');
|
$this->breadcrumb('数据版本管理');
|
||||||
$this->breadcrumb()->setSeparator(' > ');
|
$this->breadcrumb()->setSeparator(' > ');
|
||||||
?>
|
?>
|
||||||
<!-- 左侧导航 -->
|
<div class="row">
|
||||||
<div id='sidebar'>
|
<div class="span3">
|
||||||
<div id='leftnavi'>
|
<?= $this->partial('author/navi.phtml'); ?>
|
||||||
<?= $this->partial('author/navi.phtml'); ?>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<div class="span9">
|
||||||
<!-- //左侧导航 -->
|
|
||||||
|
<div>
|
||||||
|
<ul class="nav nav-pills">
|
||||||
|
<li class=""><a href="/author/version/">所有版本概况</a></li>
|
||||||
|
<li class="active"><a href="/author/version/ac/bydata">逐数据浏览</a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<div class="input-append">
|
||||||
|
<form id="datasearch" class="search_form" action="/author/version/ac/bydata">
|
||||||
|
<input type="text" id="keyword" name="q" value="<?php if(!empty($this->q)) echo $this->q; ?>" />
|
||||||
|
<button type="submit" class="btn" id="search_btn">搜索</button>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<?php
|
||||||
|
if (count($this->paginator)):
|
||||||
|
echo '<ul class="unstyled">';
|
||||||
|
$autoindex=0;
|
||||||
|
foreach ($this->paginator as $item):
|
||||||
|
$autoindex++;?>
|
||||||
|
<li class="well">
|
||||||
|
<p><a href="/data/<?php echo $item['uuid'];?>" target="_blank"><?php echo $item['title'];?></a></p>
|
||||||
|
<p>数据库中共有版本数:<?php echo $item['c'];?> (<a href="/author/version/uuid/<?php echo $item['uuid'];?>">查看详细</a>)</p>
|
||||||
|
</li>
|
||||||
|
<?php endforeach;
|
||||||
|
echo "</ul>";
|
||||||
|
endif; ?>
|
||||||
|
<div class="pagenavi"><?= $this->paginator; ?></div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<!-- 页面内容 -->
|
|
||||||
<div id="wapper">
|
|
||||||
<div id="tabs-controller">
|
|
||||||
<ul>
|
|
||||||
<li class="box-shadow"><a class="text-shadow" href="/author/version/">所有版本概况</a></li>
|
|
||||||
<li class="box-shadow active"><a class="text-shadow" href="/author/version/ac/bydata">逐数据浏览</a></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
<p>请输入元数据标题关键字进行搜索</p>
|
|
||||||
<form id="datasearch" class="search_form" action="/author/version/ac/bydata">
|
|
||||||
<input type="text" id="keyword" name="q" value="<?php if(!empty($this->q)) echo $this->q; ?>" />
|
|
||||||
<button type="submit" class="btn" id="search_btn">搜索</button>
|
|
||||||
</form>
|
|
||||||
<div id="datalist">
|
|
||||||
<?php
|
|
||||||
if (count($this->paginator)):
|
|
||||||
echo "<ul>";
|
|
||||||
$autoindex=0;
|
|
||||||
foreach ($this->paginator as $item):
|
|
||||||
$autoindex++;?>
|
|
||||||
<li>
|
|
||||||
<p><a href="/data/<?php echo $item['uuid'];?>" target="_blank"><?php echo $item['title'];?></a></p>
|
|
||||||
<p>数据库中共有版本数:<?php echo $item['c'];?> (<a href="/author/version/uuid/<?php echo $item['uuid'];?>">查看详细</a>)</p>
|
|
||||||
</li>
|
|
||||||
<?php endforeach;
|
|
||||||
echo "</ul>";
|
|
||||||
endif; ?>
|
|
||||||
<div class="pagenavi"><?= $this->paginator; ?></div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- //页面内容 -->
|
|
||||||
<script>
|
|
||||||
$('#wapper').width($('body').width()-300);
|
|
||||||
</script>
|
|
|
@ -12,42 +12,37 @@ $this->breadcrumb('<a href="/author">数据作者</a>');
|
||||||
$this->breadcrumb('查看数据作者');
|
$this->breadcrumb('查看数据作者');
|
||||||
$this->breadcrumb()->setSeparator(' > ');
|
$this->breadcrumb()->setSeparator(' > ');
|
||||||
?>
|
?>
|
||||||
<!-- 左侧导航 -->
|
<div class="row">
|
||||||
<div id='sidebar'>
|
<div class="span3">
|
||||||
<div id='leftnavi'>
|
<?= $this->partial('author/navi.phtml'); ?>
|
||||||
<?= $this->partial('author/navi.phtml'); ?>
|
</div>
|
||||||
|
<div class="span9">
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<ul class="nav nav-pills">
|
||||||
|
<li><a href="/author/version">所有版本概况</a></li>
|
||||||
|
<li><a href="/author/version/ac/bydata">逐数据浏览</a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<?php
|
||||||
|
if(!empty($this->error))
|
||||||
|
{
|
||||||
|
echo $this->error;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{?>
|
||||||
|
<h2><?php echo $this->info['title'];?></h2>
|
||||||
|
<div id="diffoutput" style="width:100%"> </div>
|
||||||
|
<textarea id="basetext" style="display:none;"><?php echo $this->data[1]['xml'];?></textarea>
|
||||||
|
<textarea id="newtext" style="display:none;"><?php echo $this->data[0]['xml'];?></textarea>
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- //左侧导航 -->
|
|
||||||
|
|
||||||
<!-- 页面内容 -->
|
|
||||||
<div id="wapper">
|
|
||||||
<div id="tabs-controller">
|
|
||||||
<ul>
|
|
||||||
<li class="box-shadow"><a class="text-shadow" href="/author/version">所有版本概况</a></li>
|
|
||||||
<li class="box-shadow"><a class="text-shadow" href="/author/version/ac/bydata">逐数据浏览</a></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
<?php
|
|
||||||
if(!empty($this->error))
|
|
||||||
{
|
|
||||||
echo $this->error;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{?>
|
|
||||||
<h2><?php echo $this->info['title'];?></h2>
|
|
||||||
<div id="diffoutput" style="width:100%"> </div>
|
|
||||||
<textarea id="basetext" style="display:none;"><?php echo $this->data[1]['xml'];?></textarea>
|
|
||||||
<textarea id="newtext" style="display:none;"><?php echo $this->data[0]['xml'];?></textarea>
|
|
||||||
<?php
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- //页面内容 -->
|
|
||||||
<script>
|
<script>
|
||||||
$('#wapper').width($('body').width()-300);
|
|
||||||
function diffUsingJS() {
|
function diffUsingJS() {
|
||||||
var base = difflib.stringAsLines($('#basetext').val());
|
var base = difflib.stringAsLines($('#basetext').val());
|
||||||
var newtxt = difflib.stringAsLines($('#newtext').val());
|
var newtxt = difflib.stringAsLines($('#newtext').val());
|
||||||
|
|
|
@ -2,66 +2,61 @@
|
||||||
$this->headTitle($this->config->title->site);
|
$this->headTitle($this->config->title->site);
|
||||||
$this->headTitle($this->config->title->author);
|
$this->headTitle($this->config->title->author);
|
||||||
$this->headTitle()->setSeparator(' - ');
|
$this->headTitle()->setSeparator(' - ');
|
||||||
$this->headScript()->appendFile('/js/jquery-1.7.min.js');
|
$this->theme->AppendPlus($this,'colorbox');
|
||||||
$this->headScript()->appendFile('/js/jquery.colorbox-min.js');
|
|
||||||
$this->headLink()->appendStylesheet('/css/author.css');
|
$this->headLink()->appendStylesheet('/css/author.css');
|
||||||
$this->headLink()->appendStylesheet('/css/colorbox.css');
|
|
||||||
$this->breadcrumb('<a href="/">首页</a>');
|
$this->breadcrumb('<a href="/">首页</a>');
|
||||||
$this->breadcrumb('<a href="/author">数据作者</a>');
|
$this->breadcrumb('<a href="/author">数据作者</a>');
|
||||||
$this->breadcrumb('数据版本管理');
|
$this->breadcrumb('数据版本管理');
|
||||||
$this->breadcrumb()->setSeparator(' > ');
|
$this->breadcrumb()->setSeparator(' > ');
|
||||||
?>
|
?>
|
||||||
<!-- 左侧导航 -->
|
<div class="row">
|
||||||
<div id='sidebar'>
|
<div class="span3">
|
||||||
<div id='leftnavi'>
|
<?= $this->partial('author/navi.phtml'); ?>
|
||||||
<?= $this->partial('author/navi.phtml'); ?>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<div class="span9">
|
||||||
<!-- //左侧导航 -->
|
|
||||||
|
<div>
|
||||||
|
<ul class="nav nav-pills">
|
||||||
|
<li class="<?php if(!$this->mdtitle) echo "active";?>"><a class="" href="/author/version">所有版本概况</a></li>
|
||||||
|
<li class=""><a class="" href="/author/version/ac/bydata">逐数据浏览</a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<?php
|
||||||
|
if (count($this->paginator)):
|
||||||
|
if ($this->mdtitle) echo "<h2>元数据:".$this->mdtitle."</h2>";
|
||||||
|
echo '<ul class="unstyled">';
|
||||||
|
$autoindex=0;
|
||||||
|
foreach ($this->paginator as $item):
|
||||||
|
$autoindex++;?>
|
||||||
|
<li class="well" id="list_<?php echo $item['id'];?>">
|
||||||
|
<p><a href="/data/<?php echo $item['uuid'];?>" target="_blank"><?php echo $item['title'];?></a>
|
||||||
|
【<a href="/author/version/uuid/<?php echo $item['uuid']; ?>">查看此数据所有版本</a>】</p>
|
||||||
|
<p>版本创建时间: <?php echo date("Y-m-d H:i",strtotime($item['ts_created']));?>
|
||||||
|
<?php if ($item['userid']) :
|
||||||
|
echo "发布人: ".(empty($item['realname'])?$item['username']:$item['realname'])." 【";
|
||||||
|
else :
|
||||||
|
?>
|
||||||
|
【<a onclick="return confirm('是否确定删除该版本?');" href="javascript:action('delete','<?php echo $item['id'];?>');" class="more">删除</a>
|
||||||
|
<?php endif; ?>
|
||||||
|
<a onclick="return confirm('是否确定将这个版本恢复到geonetwork?');" href="javascript:action('restore','<?php echo $item['id'];?>');" class="more">恢复到geonetwork</a>
|
||||||
|
<a href="/author/version/ac/diff/id/<?php echo $item['id'];?>" class="more">与前一版对比</a>
|
||||||
|
<a onclick="$('#commit_submit').attr('onclick','commit(\'<?php echo $item['id'];?>\');');" href="#commitform" class="more inline">提交评审发布</a>
|
||||||
|
】</p>
|
||||||
|
<?php if ($item['changelog']) : ?>
|
||||||
|
<p><?php echo $item['changelog']; ?></p>
|
||||||
|
<?php endif; ?>
|
||||||
|
</li>
|
||||||
|
<?php endforeach;
|
||||||
|
echo "</ul>";
|
||||||
|
endif; ?>
|
||||||
|
<div class="pagenavi"><?= $this->paginator; ?></div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<!-- 页面内容 -->
|
|
||||||
<div id="wapper">
|
|
||||||
<div id="tabs-controller">
|
|
||||||
<ul>
|
|
||||||
<li class="box-shadow <?php if(!$this->mdtitle) echo "active";?>"><a class="text-shadow" href="/author/version">所有版本概况</a></li>
|
|
||||||
<li class="box-shadow"><a class="text-shadow" href="/author/version/ac/bydata">逐数据浏览</a></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
<div id="datalist">
|
|
||||||
<?php
|
|
||||||
if (count($this->paginator)):
|
|
||||||
if ($this->mdtitle) echo "<h2>元数据:".$this->mdtitle."</h2>";
|
|
||||||
echo "<ul>";
|
|
||||||
$autoindex=0;
|
|
||||||
foreach ($this->paginator as $item):
|
|
||||||
$autoindex++;?>
|
|
||||||
<li id="list_<?php echo $item['id'];?>">
|
|
||||||
<p><a href="/data/<?php echo $item['uuid'];?>" target="_blank"><?php echo $item['title'];?></a>
|
|
||||||
【<a href="/author/version/uuid/<?php echo $item['uuid']; ?>">查看此数据所有版本</a>】</p>
|
|
||||||
<p>版本创建时间: <?php echo date("Y-m-d H:i",strtotime($item['ts_created']));?>
|
|
||||||
<?php if ($item['userid']) :
|
|
||||||
echo "发布人: ".(empty($item['realname'])?$item['username']:$item['realname'])." 【";
|
|
||||||
else :
|
|
||||||
?>
|
|
||||||
【<a onclick="return confirm('是否确定删除该版本?');" href="javascript:action('delete','<?php echo $item['id'];?>');" class="more">删除</a>
|
|
||||||
<?php endif; ?>
|
|
||||||
<a onclick="return confirm('是否确定将这个版本恢复到geonetwork?');" href="javascript:action('restore','<?php echo $item['id'];?>');" class="more">恢复到geonetwork</a>
|
|
||||||
<a href="/author/version/ac/diff/id/<?php echo $item['id'];?>" class="more">与前一版对比</a>
|
|
||||||
<a onclick="$('#commit_submit').attr('onclick','commit(\'<?php echo $item['id'];?>\');');" href="#commitform" class="more inline">提交评审发布</a>
|
|
||||||
】</p>
|
|
||||||
<?php if ($item['changelog']) : ?>
|
|
||||||
<p><?php echo $item['changelog']; ?></p>
|
|
||||||
<?php endif; ?>
|
|
||||||
</li>
|
|
||||||
<?php endforeach;
|
|
||||||
echo "</ul>";
|
|
||||||
endif; ?>
|
|
||||||
<div class="pagenavi"><?= $this->paginator; ?></div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- //页面内容 -->
|
|
||||||
<script>
|
<script>
|
||||||
$('#wapper').width($('body').width()-300);
|
|
||||||
function action(ac,id){
|
function action(ac,id){
|
||||||
$.ajax({
|
$.ajax({
|
||||||
'type':"POST",
|
'type':"POST",
|
||||||
|
@ -97,7 +92,7 @@ function commit(id){
|
||||||
<form>
|
<form>
|
||||||
<p>
|
<p>
|
||||||
<label>版本改动:</label><br />
|
<label>版本改动:</label><br />
|
||||||
<textarea class="full" style="resize:none;height:200px;" id="changelog"></textarea>
|
<textarea class="span6" style="resize:none;height:200px;" id="changelog"></textarea>
|
||||||
<br /><small>请输入此版本与之前版本的差别</small>
|
<br /><small>请输入此版本与之前版本的差别</small>
|
||||||
</p>
|
</p>
|
||||||
<input type="button" onclick="" id="commit_submit" class="btn btn-green big" value="提交"/>
|
<input type="button" onclick="" id="commit_submit" class="btn btn-green big" value="提交"/>
|
||||||
|
|
Loading…
Reference in New Issue