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

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('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="span3">
<div class="well sidebar-nav">

View File

@ -2,25 +2,19 @@
$this->headTitle($this->config->title->site);
$this->headTitle($this->config->title->author);
$this->headTitle()->setSeparator(' - ');
$this->headScript()->appendFile('/js/jquery-1.7.min.js');
$this->headScript()->appendFile('/js/jquery.colorbox-min.js');
$this->theme->AppendPlus($this,'colorbox');
$this->headLink()->appendStylesheet('/css/author.css');
$this->headLink()->appendStylesheet('/css/colorbox.css');
$this->breadcrumb('<a href="/">首页</a>');
$this->breadcrumb('<a href="/author">数据作者</a>');
$this->breadcrumb('我的数据');
$this->breadcrumb()->setSeparator(' > ');
?>
<!-- 左侧导航 -->
<div id='sidebar'>
<div id='leftnavi'>
<div class="row">
<div class="span3">
<?= $this->partial('author/navi.phtml'); ?>
</div>
</div>
<!-- //左侧导航 -->
<!-- 页面内容 -->
<div id="wapper">
<div class="span9">
<div>
<?php
if(!empty($this->error))
@ -32,16 +26,19 @@ if(!empty($this->error))
<div class="pagetitle">
<?php echo $this->title ;?> (共 <?php echo count($this->info);?> 个文档)
</div>
<div id="datalist">
<div>
<?php
if (count($this->paginator)):
echo "<ul>";
echo '<ul class="unstyled">';
$autoindex=0;
foreach ($this->paginator as $item):
$autoindex++;?>
<li 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" />
<button type="button" id="btn_<?php echo $item['id'];?>" onclick="Submit(<?php echo $item['id'];?>)" disabled="disabled" style="display:none;">提交</button>
<li class="well" id="data_<?php echo $item['id'];?>">
<p>
<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>
<p><a href="javascript:;" onclick="del(<?php echo $item['id'];?>)">删除</a> |
<a href="javascript:;" onclick="edit(<?php echo $item['id'];?>)">改名</a> |
@ -52,9 +49,12 @@ if(!empty($this->error))
endif; ?>
<div class="pagenavi"><?= $this->paginator; ?></div>
</div>
</div>
</div>
</div>
<!-- //页面内容 -->
<script>
function edit(id){

View File

@ -2,38 +2,34 @@
$this->headTitle($this->config->title->site);
$this->headTitle($this->config->title->author);
$this->headTitle()->setSeparator(' - ');
$this->headScript()->appendFile('/js/jquery-1.7.min.js');
$this->headScript()->appendFile('/js/jquery.colorbox-min.js');
$this->theme->AppendPlus($this,'colorbox');
$this->headLink()->appendStylesheet('/css/author.css');
$this->headLink()->appendStylesheet('/css/colorbox.css');
$this->breadcrumb('<a href="/">首页</a>');
$this->breadcrumb('<a href="/author">数据作者</a>');
$this->breadcrumb('我的数据');
$this->breadcrumb()->setSeparator(' > ');
?>
<!-- 左侧导航 -->
<div id='sidebar'>
<div id='leftnavi'>
<div class="row">
<div class="span3">
<?= $this->partial('author/navi.phtml'); ?>
</div>
</div>
<!-- //左侧导航 -->
<div class="span9">
<!-- 页面内容 -->
<div id="wapper">
<div class="input-append">
<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; ?>" />
<button type="submit" class="btn" id="search_btn">搜索</button>
</form>
<div id="datalist">
</div>
<div>
<?php
if (count($this->paginator)):
echo "<ul>";
echo '<ul class="unstyled">';
$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>
<li class="well">
<h4><a href="/data/<?php echo $item['uuid'];?>" target="_blank"><?php echo $item['title'];?></a></h4>
<p>文档数: <?php echo $item['aid'];?>
<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> |
@ -46,10 +42,9 @@ $this->breadcrumb()->setSeparator(' > ');
<div class="pagenavi"><?= $this->paginator; ?></div>
</div>
</div>
<!-- //页面内容 -->
</div>
<script>
$(".iframe").colorbox({iframe:true, width:"80%", height:"80%"});
$(".iframe").colorbox({iframe:true, width:"60%", height:"80%"});
$(".inline").colorbox({inline:true, width:"50%"});
</script>

View File

@ -15,9 +15,9 @@ $this->breadcrumb()->setSeparator(' > ');
<div class="span9">
<div>
<ul class="nav nav-pills">
<li class=""><a class="text-shadow" href="/author/inauthor/ac/online">在线下载记录</a></li>
<li class=""><a class="text-shadow" href="/author/inauthor/ac/offline">离线申请记录</a></li>
<li class="active"><a class="text-shadow" href="/author/inauthor/ac/datalist">按数据查看</a></li>
<li><a href="/author/inauthor/ac/online">在线下载记录</a></li>
<li><a href="/author/inauthor/ac/offline">离线申请记录</a></li>
<li class="active"><a href="/author/inauthor/ac/datalist">按数据查看</a></li>
</ul>
</div>
<p>请输入元数据标题关键字进行搜索</p>

View File

@ -15,9 +15,9 @@ $this->breadcrumb()->setSeparator(' > ');
<div class="span9">
<div>
<ul class="nav nav-pills">
<li class=""><a class="text-shadow" href="/author/inauthor/ac/online">在线下载记录</a></li>
<li class="active"><a class="text-shadow" 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/online">在线下载记录</a></li>
<li class="active"><a href="/author/inauthor/ac/offline">离线申请记录</a></li>
<li><a href="/author/inauthor/ac/datalist">按数据查看</a></li>
</ul>
</div>
<p>请输入元数据标题关键字进行搜索</p>

View File

@ -15,9 +15,9 @@ $this->breadcrumb()->setSeparator(' > ');
<div class="span9">
<div>
<ul class="nav nav-pills">
<li class="active"><a class="text-shadow" href="/author/inauthor/ac/online">在线下载记录</a></li>
<li class=""><a class="text-shadow" href="/author/inauthor/ac/offline">离线申请记录</a></li>
<li class=""><a class="text-shadow" href="/author/inauthor/ac/datalist">按数据查看</a></li>
<li class="active"><a href="/author/inauthor/ac/online">在线下载记录</a></li>
<li><a href="/author/inauthor/ac/offline">离线申请记录</a></li>
<li><a href="/author/inauthor/ac/datalist">按数据查看</a></li>
</ul>
</div>
<p>请输入元数据标题关键字进行搜索</p>

View File

@ -50,7 +50,6 @@ $this->breadcrumb()->setSeparator(' > ');
</div>
</div>
<script>
$('#wapper').width($('body').width()-300);
function action(ac,uuid){
$.ajax({
'type':"POST",

View File

@ -2,7 +2,6 @@
$this->headTitle($this->config->title->site);
$this->headTitle($this->config->title->author);
$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/kindlang/zh_CN.js');
$this->headLink()->appendStylesheet('/css/author.css');
@ -12,37 +11,33 @@ $this->breadcrumb('<a href="/author">数据作者</a>');
$this->breadcrumb('数据新闻');
$this->breadcrumb()->setSeparator(' > ');
?>
<!-- 左侧导航 -->
<div id='sidebar'>
<div id='leftnavi'>
<div class="row">
<div class="span3">
<?= $this->partial('author/navi.phtml'); ?>
</div>
</div>
<!-- //左侧导航 -->
<div class="span9">
<!-- 页面内容 -->
<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>
<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" id="form">
<div class="form-horizontal" 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/>
<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"/>
<small>请准确概况新闻内容</small>
</p>
<p>
<label class="required" for="data">相关数据</label><br/>
<ul style="height:100px;width:50%;overflow-y:scroll;">
</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))
{
@ -53,27 +48,39 @@ $this->breadcrumb()->setSeparator(' > ');
}
?>
</ul>
<small>从数据中选择一条</small>
</p>
<p>
<label class="required" for="tag">标签</label><br/>
<input type="text" id="keyword" class="half" value="" name="keyword"/>
</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>
</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>
</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>
<!-- //页面内容 -->
</div>
<script>
$(document).ready(function(){
$('#wapper').width($('body').width()-300);
KindEditor.ready(function(K) {
editor=K.create('textarea[name="body"]', {
cssPath : '/static/js/plugins/code/prettify.css',

View File

@ -2,7 +2,6 @@
$this->headTitle($this->config->title->site);
$this->headTitle($this->config->title->author);
$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/kindlang/zh_CN.js');
$this->headLink()->appendStylesheet('/css/author.css');
@ -12,35 +11,33 @@ $this->breadcrumb('<a href="/author">数据作者</a>');
$this->breadcrumb('数据新闻');
$this->breadcrumb()->setSeparator(' > ');
?>
<!-- 左侧导航 -->
<div id='sidebar'>
<div id='leftnavi'>
<div class="row">
<div class="span3">
<?= $this->partial('author/navi.phtml'); ?>
</div>
</div>
<!-- //左侧导航 -->
<div class="span9">
<!-- 页面内容 -->
<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>
<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" id="form">
<div class="form-horizontal" id="form">
<form name="form" id="newsadd" method="post" action="#">
<fieldset>
<legend>新闻信息</legend>
<p>
<label class="required" for="producttitle">标题</label><br/>
<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"/>
<small>请准确概况新闻内容</small>
</p>
<p>
<label class="required" for="data">相关数据</label><br/>
<ul style="height:100px;width:50%;overflow-y:scroll;">
</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))
{
@ -60,23 +57,37 @@ $this->breadcrumb()->setSeparator(' > ');
}
?>
</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>
</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'];?>" />
<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>
<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>
<script>
$(document).ready(function(){
$('#wapper').width($('body').width()-300);

View File

@ -2,44 +2,41 @@
$this->headTitle($this->config->title->site);
$this->headTitle($this->config->title->author);
$this->headTitle()->setSeparator(' - ');
$this->headScript()->appendFile('/js/jquery-1.7.min.js');
$this->headLink()->appendStylesheet('/css/author.css');
$this->headScript()->appendFile('/js/jquery.colorbox-min.js');
$this->headLink()->appendStylesheet('/css/colorbox.css');
$this->theme->AppendPlus($this,'colorbox');
$this->breadcrumb('<a href="/">首页</a>');
$this->breadcrumb('<a href="/author">数据作者</a>');
$this->breadcrumb('数据新闻');
$this->breadcrumb()->setSeparator(' > ');
?>
<!-- 左侧导航 -->
<div id='sidebar'>
<div id='leftnavi'>
<div class="row">
<div class="span3">
<?= $this->partial('author/navi.phtml'); ?>
</div>
</div>
<!-- //左侧导航 -->
<div class="span9">
<!-- 页面内容 -->
<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>
<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" id="keyword" name="q" value="<?php if(!empty($this->q)) echo $this->q; ?>" />
<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 id="datalist">
</div>
<div>
<?php
if (count($this->paginator)):
echo "<ul>";
echo '<ul class="unstyled">';
$autoindex=0;
foreach ($this->paginator as $item):
$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>
作者:<?php echo $item['realname'];?> |
@ -55,10 +52,10 @@ $this->breadcrumb()->setSeparator(' > ');
endif; ?>
</div>
<div class="pagenavi"><?= $this->paginator; ?></div>
</div>
</div>
<!-- //页面内容 -->
<script>
$('#wapper').width($('body').width()-300);
function del(id){
var dom = "#delBtn_"+id;
var html = $(dom).html();

View File

@ -2,51 +2,45 @@
$this->headTitle($this->config->title->site);
$this->headTitle($this->config->title->author);
$this->headTitle()->setSeparator(' - ');
$this->headScript()->appendFile('/static/js/jquery-1.7.2.min.js');
$this->headLink()->appendStylesheet('/css/author.css');
$this->breadcrumb('<a href="/">首页</a>');
$this->breadcrumb('<a href="/author">数据作者</a>');
$this->breadcrumb('数据申请管理');
$this->breadcrumb()->setSeparator(' > ');
?>
<!-- 左侧导航 -->
<div id='sidebar'>
<div id='leftnavi'>
<div class="row">
<div class="span3">
<?= $this->partial('author/navi.phtml'); ?>
</div>
</div>
<!-- //左侧导航 -->
<div class="span9">
<!-- 页面内容 -->
<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>
<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 id="datalist">
<ul>
<div>
<ul class="unstyled">
<?php
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))
{
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))
{
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>
</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->author);
$this->headTitle()->setSeparator(' - ');
$this->headScript()->appendFile('/static/js/jquery-1.7.2.min.js');
$this->headLink()->appendStylesheet('/css/author.css');
$this->breadcrumb('<a href="/">首页</a>');
$this->breadcrumb('<a href="/author">数据作者</a>');
$this->breadcrumb('数据申请管理');
$this->breadcrumb()->setSeparator(' > ');
?>
<!-- 左侧导航 -->
<div id='sidebar'>
<div id='leftnavi'>
<div class="row">
<div class="span3">
<?= $this->partial('author/navi.phtml'); ?>
</div>
</div>
<!-- //左侧导航 -->
<div class="span9">
<!-- 页面内容 -->
<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>
<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 id="datalist">
<ul>
<div>
<ul class="unstyled">
<?php
if(isset($this->datas))
{
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>
</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->author);
$this->headTitle()->setSeparator(' - ');
$this->headScript()->appendFile('/static/js/jquery-1.7.2.min.js');
$this->headLink()->appendStylesheet('/css/author.css');
$this->breadcrumb('<a href="/">首页</a>');
$this->breadcrumb('<a href="/author">数据作者</a>');
$this->breadcrumb('数据申请管理');
$this->breadcrumb()->setSeparator(' > ');
?>
<!-- 左侧导航 -->
<div id='sidebar'>
<div id='leftnavi'>
<div class="row">
<div class="span3">
<?= $this->partial('author/navi.phtml'); ?>
</div>
</div>
<!-- //左侧导航 -->
<div class="span9">
<!-- 页面内容 -->
<div id="wapper">
<div id="tabs-controller">
<ul>
<li class="box-shadow active"><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"><a class="text-shadow" href="/author/statics/ac/time">按时间段统计</a></li>
<div>
<ul class="nav nav-pills">
<li class="active"><a href="/author/statics">数据统计</a></li>
<li class=""><a href="/author/statics/ac/md">申请统计</a></li>
<li class=""><a href="/author/statics/ac/time">按时间段统计</a></li>
</ul>
</div>
<div id="datalist">
<ul>
<div>
<ul class="unstyled">
<?php
if(isset($this->alldata))
{
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>
</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()->setSeparator(' > ');
?>
<!-- 左侧导航 -->
<div id='sidebar'>
<div id='leftnavi'>
<div class="row">
<div class="span3">
<?= $this->partial('author/navi.phtml'); ?>
</div>
</div>
<!-- //左侧导航 -->
<div class="span9">
<!-- 页面内容 -->
<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>
<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>
<p>请输入元数据标题关键字进行搜索</p>
<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 id="datalist">
</div>
<div>
<?php
if (count($this->paginator)):
echo "<ul>";
echo '<ul class="unstyled">';
$autoindex=0;
foreach ($this->paginator as $item):
$autoindex++;?>
<li>
<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>
@ -46,8 +43,6 @@ $this->breadcrumb()->setSeparator(' > ');
endif; ?>
<div class="pagenavi"><?= $this->paginator; ?></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()->setSeparator(' > ');
?>
<!-- 左侧导航 -->
<div id='sidebar'>
<div id='leftnavi'>
<div class="row">
<div class="span3">
<?= $this->partial('author/navi.phtml'); ?>
</div>
</div>
<!-- //左侧导航 -->
<div class="span9">
<!-- 页面内容 -->
<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>
<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
@ -44,10 +40,9 @@ $this->breadcrumb()->setSeparator(' > ');
?>
</div>
</div>
<!-- //页面内容 -->
<script>
$('#wapper').width($('body').width()-300);
function diffUsingJS() {
var base = difflib.stringAsLines($('#basetext').val());
var newtxt = difflib.stringAsLines($('#newtext').val());

View File

@ -2,40 +2,35 @@
$this->headTitle($this->config->title->site);
$this->headTitle($this->config->title->author);
$this->headTitle()->setSeparator(' - ');
$this->headScript()->appendFile('/js/jquery-1.7.min.js');
$this->headScript()->appendFile('/js/jquery.colorbox-min.js');
$this->theme->AppendPlus($this,'colorbox');
$this->headLink()->appendStylesheet('/css/author.css');
$this->headLink()->appendStylesheet('/css/colorbox.css');
$this->breadcrumb('<a href="/">首页</a>');
$this->breadcrumb('<a href="/author">数据作者</a>');
$this->breadcrumb('数据版本管理');
$this->breadcrumb()->setSeparator(' > ');
?>
<!-- 左侧导航 -->
<div id='sidebar'>
<div id='leftnavi'>
<div class="row">
<div class="span3">
<?= $this->partial('author/navi.phtml'); ?>
</div>
</div>
<!-- //左侧导航 -->
<div class="span9">
<!-- 页面内容 -->
<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>
<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 id="datalist">
<div>
<?php
if (count($this->paginator)):
if ($this->mdtitle) echo "<h2>元数据:".$this->mdtitle."</h2>";
echo "<ul>";
echo '<ul class="unstyled">';
$autoindex=0;
foreach ($this->paginator as $item):
$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>
<a href="/author/version/uuid/<?php echo $item['uuid']; ?>">查看此数据所有版本</a></p>
<p>版本创建时间: <?php echo date("Y-m-d H:i",strtotime($item['ts_created']));?>
@ -58,10 +53,10 @@ $this->breadcrumb()->setSeparator(' > ');
endif; ?>
<div class="pagenavi"><?= $this->paginator; ?></div>
</div>
</div>
</div>
<!-- //页面内容 -->
<script>
$('#wapper').width($('body').width()-300);
function action(ac,id){
$.ajax({
'type':"POST",
@ -97,7 +92,7 @@ function commit(id){
<form>
<p>
<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>
</p>
<input type="button" onclick="" id="commit_submit" class="btn btn-green big" value="提交"/>