修改数据作者中的页面模板

This commit is contained in:
Li Jianxuan 2013-03-28 07:12:10 +00:00
parent dca6a942be
commit e216fc5993
16 changed files with 462 additions and 483 deletions

View File

@ -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">

View File

@ -2,46 +2,43 @@
$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))
{
<?php
if(!empty($this->error))
{
echo $this->error; echo $this->error;
} }
?> ?>
<div class="pagetitle"> <div class="pagetitle">
<?php echo $this->title ;?> (共 <?php echo count($this->info);?> 个文档) <?php echo $this->title ;?> (共 <?php echo count($this->info);?> 个文档)
</div> </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 id="data_<?php echo $item['id'];?>"> <li class="well" id="data_<?php echo $item['id'];?>">
<p><input type="text" readonly="readonly" value="<?php echo $item['realname']; ?>" id="file_<?php echo $item['id'];?>" class="half" /> <p>
<button type="button" id="btn_<?php echo $item['id'];?>" onclick="Submit(<?php echo $item['id'];?>)" disabled="disabled" style="display:none;">提交</button> <div class="input-append">
<input type="text" readonly="readonly" value="<?php echo $item['realname']; ?>" id="file_<?php echo $item['id'];?>" class="half" />
<button type="button" class="btn" id="btn_<?php echo $item['id'];?>" onclick="Submit(<?php echo $item['id'];?>)" disabled="disabled" style="display:none;">提交</button>
</div>
(<?php echo round($item['filesize']/1024,2)?>KB)</p> (<?php echo round($item['filesize']/1024,2)?>KB)</p>
<p><a href="javascript:;" onclick="del(<?php echo $item['id'];?>)">删除</a> | <p><a href="javascript:;" onclick="del(<?php echo $item['id'];?>)">删除</a> |
<a href="javascript:;" onclick="edit(<?php echo $item['id'];?>)">改名</a> | <a href="javascript:;" onclick="edit(<?php echo $item['id'];?>)">改名</a> |
@ -52,9 +49,12 @@ if(!empty($this->error))
endif; ?> endif; ?>
<div class="pagenavi"><?= $this->paginator; ?></div> <div class="pagenavi"><?= $this->paginator; ?></div>
</div> </div>
</div>
</div>
</div> </div>
<!-- //页面内容 --> <!-- //页面内容 -->
<script> <script>
function edit(id){ function edit(id){

View File

@ -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 id="datalist"> </div>
<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>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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",

View File

@ -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,37 +11,33 @@ $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">
<!-- 按钮 --> <li class=""><a class="" href="/author/news">数据新闻</a></li>
<div id="tabs-controller"> <li class="active"><a class="" href="/author/news/ac/add">新闻发布</a></li>
<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> </ul>
</div> </div>
<!-- 新闻表单 -->
<div class="form" id="form"> <div class="form-horizontal" id="form">
<form name="form" id="newsadd" method="post" action="#"> <form name="form" id="newsadd" method="post" action="#">
<fieldset>
<legend>新闻信息</legend> <div class="control-group">
<input type="hidden" id="image" class="half title" value="" name="image"/> <label class="control-label" for="archivetitle">标题</label>
<p> <div class="controls">
<label class="required" for="archivetitle">标题</label><br/>
<input type="text" id="archivetitle" class="half" value="" name="title" maxlength="100"/> <input type="text" id="archivetitle" class="half" value="" name="title" maxlength="100"/>
<small>请准确概况新闻内容</small> </div>
</p> </div>
<p>
<label class="required" for="data">相关数据</label><br/> <div class="control-group">
<ul style="height:100px;width:50%;overflow-y:scroll;"> <label class="control-label" for="data">相关数据</label>
<div class="controls">
<ul style="height:100px;overflow-y:scroll;" class="span6 unstyled">
<?php <?php
if(!empty($this->md)) if(!empty($this->md))
{ {
@ -53,27 +48,39 @@ $this->breadcrumb()->setSeparator(' > ');
} }
?> ?>
</ul> </ul>
<small>从数据中选择一条</small> </div>
</p> </div>
<p>
<label class="required" for="tag">标签</label><br/> <div class="control-group">
<input type="text" id="keyword" class="half" value="" name="keyword"/> <label class="control-label" for="tag">标签</label>
<div class="controls">
<input type="text" id="keyword" value="" name="keyword" style="width:96%" />
<small>使用半角逗号“,”隔开,如 (冻土,冰川)</small> <small>使用半角逗号“,”隔开,如 (冻土,冰川)</small>
</p> </div>
<p> </div>
<label for="body">新闻内容</label><br/>
<textarea id="body" class="large full" name="body"></textarea> <div class="control-group">
</p> <label class="control-label" for="tag">新闻内容</label>
<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 class="controls">
<div id="return"></div> <textarea id="body" name="body" style="width:98%;"></textarea>
</fieldset> </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> </form>
</div> </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',

View File

@ -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,35 +11,33 @@ $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=""><a class="" href="/author/news">数据新闻</a></li>
<ul> <li class="active"><a class="" href="/author/news/ac/add">新闻发布</a></li>
<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> </ul>
</div> </div>
<!-- 新闻表单 -->
<div class="form" id="form"> <div class="form-horizontal" id="form">
<form name="form" id="newsadd" method="post" action="#"> <form name="form" id="newsadd" method="post" action="#">
<fieldset>
<legend>新闻信息</legend> <div class="control-group">
<p> <label class="control-label" for="archivetitle">标题</label>
<label class="required" for="producttitle">标题</label><br/> <div class="controls">
<input type="text" id="producttitle" class="half" value="<?php echo $this->info['title'];?>" name="title" maxlength="100"/> <input type="text" id="producttitle" class="half" value="<?php echo $this->info['title'];?>" name="title" maxlength="100"/>
<small>请准确概况新闻内容</small> </div>
</p> </div>
<p>
<label class="required" for="data">相关数据</label><br/> <div class="control-group">
<ul style="height:100px;width:50%;overflow-y:scroll;"> <label class="control-label" for="data">相关数据</label>
<div class="controls">
<ul style="height:100px;overflow-y:scroll;" class="span6 unstyled">
<?php <?php
if(!empty($this->md)) if(!empty($this->md))
{ {
@ -60,23 +57,37 @@ $this->breadcrumb()->setSeparator(' > ');
} }
?> ?>
</ul> </ul>
</p> </div>
<p> </div>
<label class="required" for="producttitle">标签</label><br/>
<input type="text" id="keyword" class="half" value="<?php echo $this->info['keywords'];?>" name="keyword"/> <div class="control-group">
<small>使用半角逗号","隔开,如 (冻土,冰川)</small> <label class="control-label" for="tag">标签</label>
</p> <div class="controls">
<p> <input type="text" id="keyword" value="<?php echo $this->info['keywords'];?>" name="keyword" style="width:96%" />
<label for="body">新闻内容</label><br/> <small>使用半角逗号“,”隔开,如 (冻土,冰川)</small>
<textarea id="body" class="large full" name="body"><?php echo $this->info['body'];?></textarea> </div>
</p> </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="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> <input type="button" onclick="addon();" id="submit" class="btn btn-green big" value="提交"/> or
<div id="return"></div> <input type="reset" class="btn" value="重置" onclick="return confirm('确实要抛弃已经填写内容?');"/>
</fieldset> </div>
</div>
</form> </form>
</div>
</div>
</div> </div>
<!-- //页面内容 -->
<script> <script>
$(document).ready(function(){ $(document).ready(function(){
$('#wapper').width($('body').width()-300); $('#wapper').width($('body').width()-300);

View File

@ -2,44 +2,41 @@
$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>
</div> <div class="span9">
<!-- //左侧导航 -->
<!-- 页面内容 --> <div>
<div id="wapper"> <ul class="nav nav-pills">
<div id="tabs-controller"> <li class="active"><a class="" href="/author/news">数据新闻</a></li>
<ul> <li class=""><a class="" href="/author/news/ac/add">新闻发布</a></li>
<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> </ul>
</div> </div>
<form id="datasearch" class="search_form" action="/author/news/"> <div class="input-append">
<input type="text" id="keyword" name="q" value="<?php if(!empty($this->q)) echo $this->q; ?>" /> <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> <button type="submit" class="btn" id="search_btn">搜索</button>
</form> </form>
<div id="datalist"> </div>
<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 id="item_<?= $item['id'] ?>"> <li class="well" id="item_<?= $item['id'] ?>">
<p><a href="<?php echo $item['url'];?>" class="title"><?php echo $item['title'];?></a></p> <p><a href="<?php echo $item['url'];?>" class="title"><?php echo $item['title'];?></a></p>
<p> <p>
作者:<?php echo $item['realname'];?> | 作者:<?php echo $item['realname'];?> |
@ -53,12 +50,12 @@ $this->breadcrumb()->setSeparator(' > ');
endforeach; endforeach;
echo "</ul>"; echo "</ul>";
endif; ?> endif; ?>
</div>
<div class="pagenavi"><?= $this->paginator; ?></div>
</div>
</div> </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();

View File

@ -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>
</div> <div class="span9">
<!-- //左侧导航 -->
<!-- 页面内容 --> <div>
<div id="wapper"> <ul class="nav nav-pills">
<div id="tabs-controller"> <li><a href="/author/statics">数据统计</a></li>
<ul> <li class="active"><a href="/author/statics/ac/md">申请统计</a></li>
<li class="box-shadow"><a class="text-shadow" href="/author/statics">数据统计</a></li> <li class=""><a href="/author/statics/ac/time">按时间段统计</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> </ul>
</div> </div>
<div id="datalist">
<ul> <div>
<ul class="unstyled">
<?php <?php
if(isset($this->allorder)) if(isset($this->allorder))
{ {
echo "<li><h1>申请总数量:".$this->allorder."</h1><a href='/author/inauthor'>【申请管理】</a></li>"; echo "<li class='well'><h1>申请总数量:".$this->allorder."</h1><a href='/author/inauthor'>【申请管理】</a></li>";
} }
if(isset($this->offlineorder)) if(isset($this->offlineorder))
{ {
echo "<li><h1>离线申请总数量:".$this->offlineorder."</h1><a href='/author/inauthor/ac/datalist'>【查看离线申请】</a></li>"; echo "<li class='well'><h1>离线申请总数量:".$this->offlineorder."</h1><a href='/author/inauthor/ac/datalist'>【查看离线申请】</a></li>";
} }
if(isset($this->onlineorder)) if(isset($this->onlineorder))
{ {
echo "<li><h1>在线申请总数量:".$this->onlineorder."</h1><a href='/author/inauthor/ac/online'>【查看在线申请】</a></li>"; echo "<li class='well'><h1>在线申请总数量:".$this->onlineorder."</h1><a href='/author/inauthor/ac/online'>【查看在线申请】</a></li>";
} }
?> ?>
</ul> </ul>
</div> </div>
</div>
</div> </div>
<!-- //页面内容 -->
<script>
$('#wapper').width($('body').width()-300);
</script>

View File

@ -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>
</div> <div class="span9">
<!-- //左侧导航 -->
<!-- 页面内容 --> <div>
<div id="wapper"> <ul class="nav nav-pills">
<div id="tabs-controller"> <li><a href="/author/statics">数据统计</a></li>
<ul> <li><a href="/author/statics/ac/md">申请统计</a></li>
<li class="box-shadow"><a class="text-shadow" href="/author/statics">数据统计</a></li> <li class="active"><a href="/author/statics/ac/time">按时间段统计</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> </ul>
</div> </div>
<div id="datalist">
<ul> <div>
<ul class="unstyled">
<?php <?php
if(isset($this->datas)) if(isset($this->datas))
{ {
foreach($this->datas as $k=>$v) foreach($this->datas as $k=>$v)
{ {
echo "<li>时间:{$v['d']}<br />申请数:{$v['c']}</li>"; echo "<li class='well'>时间:{$v['d']}<br />申请数:{$v['c']}</li>";
} }
} }
?> ?>
</ul> </ul>
</div> </div>
</div>
</div> </div>
<!-- //页面内容 -->
<script>
$('#wapper').width($('body').width()-300);
</script>

View File

@ -2,40 +2,36 @@
$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>
<li class="box-shadow"><a class="text-shadow" href="/author/statics/ac/time">按时间段统计</a></li>
</ul> </ul>
</div> </div>
<div id="datalist">
<ul> <div>
<ul class="unstyled">
<?php <?php
if(isset($this->alldata)) if(isset($this->alldata))
{ {
foreach($this->alldata as $v) 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>"; 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>";
} }
} }
@ -44,8 +40,6 @@ $this->breadcrumb()->setSeparator(' > ');
</ul> </ul>
</div> </div>
</div>
</div> </div>
<!-- //页面内容 -->
<script>
$('#wapper').width($('body').width()-300);
</script>

View File

@ -9,35 +9,32 @@ $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=""><a href="/author/version/">所有版本概况</a></li>
<ul> <li class="active"><a href="/author/version/ac/bydata">逐数据浏览</a></li>
<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> </ul>
</div> </div>
<p>请输入元数据标题关键字进行搜索</p> <div class="input-append">
<form id="datasearch" class="search_form" action="/author/version/ac/bydata"> <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; ?>" /> <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 id="datalist"> </div>
<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> <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> <p>数据库中共有版本数:<?php echo $item['c'];?> (<a href="/author/version/uuid/<?php echo $item['uuid'];?>">查看详细</a>)</p>
</li> </li>
@ -46,8 +43,6 @@ $this->breadcrumb()->setSeparator(' > ');
endif; ?> endif; ?>
<div class="pagenavi"><?= $this->paginator; ?></div> <div class="pagenavi"><?= $this->paginator; ?></div>
</div> </div>
</div>
</div> </div>
<!-- //页面内容 -->
<script>
$('#wapper').width($('body').width()-300);
</script>

View File

@ -12,20 +12,16 @@ $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><a href="/author/version">所有版本概况</a></li>
<ul> <li><a href="/author/version/ac/bydata">逐数据浏览</a></li>
<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> </ul>
</div> </div>
<?php <?php
@ -43,11 +39,10 @@ $this->breadcrumb()->setSeparator(' > ');
} }
?> ?>
</div>
</div> </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());

View File

@ -2,40 +2,35 @@
$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>
<div id="wapper"> <ul class="nav nav-pills">
<div id="tabs-controller"> <li class="<?php if(!$this->mdtitle) echo "active";?>"><a class="" href="/author/version">所有版本概况</a></li>
<ul> <li class=""><a class="" href="/author/version/ac/bydata">逐数据浏览</a></li>
<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> </ul>
</div> </div>
<div id="datalist">
<div>
<?php <?php
if (count($this->paginator)): if (count($this->paginator)):
if ($this->mdtitle) echo "<h2>元数据:".$this->mdtitle."</h2>"; if ($this->mdtitle) echo "<h2>元数据:".$this->mdtitle."</h2>";
echo "<ul>"; echo '<ul class="unstyled">';
$autoindex=0; $autoindex=0;
foreach ($this->paginator as $item): foreach ($this->paginator as $item):
$autoindex++;?> $autoindex++;?>
<li id="list_<?php echo $item['id'];?>"> <li class="well" id="list_<?php echo $item['id'];?>">
<p><a href="/data/<?php echo $item['uuid'];?>" target="_blank"><?php echo $item['title'];?></a> <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> <a href="/author/version/uuid/<?php echo $item['uuid']; ?>">查看此数据所有版本</a></p>
<p>版本创建时间: <?php echo date("Y-m-d H:i",strtotime($item['ts_created']));?> <p>版本创建时间: <?php echo date("Y-m-d H:i",strtotime($item['ts_created']));?>
@ -58,10 +53,10 @@ $this->breadcrumb()->setSeparator(' > ');
endif; ?> endif; ?>
<div class="pagenavi"><?= $this->paginator; ?></div> <div class="pagenavi"><?= $this->paginator; ?></div>
</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="提交"/>