修改了数据作者中的部分模板
This commit is contained in:
parent
7ada7a32ea
commit
621d42ee34
|
@ -28,9 +28,13 @@ class AuthorController extends Zend_Controller_Action
|
|||
$this->messenger=$this->_helper->getHelper('FlashMessenger');
|
||||
$this->view->messages = $this->messenger->getMessages();
|
||||
$this->view->theme = new Theme();
|
||||
|
||||
$this->view->pageID = "author-".$this->_request->getActionName();
|
||||
|
||||
}
|
||||
function indexAction()
|
||||
{
|
||||
$this->view->pageID = "author-index";
|
||||
}
|
||||
|
||||
|
||||
|
@ -39,7 +43,7 @@ class AuthorController extends Zend_Controller_Action
|
|||
*
|
||||
*/
|
||||
function helpAction(){
|
||||
|
||||
$this->view->pageID = "author-help";
|
||||
}//helpAction()帮助文档
|
||||
|
||||
/*
|
||||
|
@ -54,7 +58,6 @@ class AuthorController extends Zend_Controller_Action
|
|||
*/
|
||||
function inauthorAction()
|
||||
{
|
||||
|
||||
$ac = $this->_request->getParam("ac");
|
||||
|
||||
$auth = Zend_Auth::getInstance();
|
||||
|
@ -1851,7 +1854,7 @@ class AuthorController extends Zend_Controller_Action
|
|||
$sth = $this->db->prepare($sql);
|
||||
$sth->execute(array($id));
|
||||
$row = $sth->fetch();
|
||||
|
||||
|
||||
//update search document
|
||||
$search=new Search();
|
||||
//create search view in xunsearch
|
||||
|
@ -1860,7 +1863,7 @@ class AuthorController extends Zend_Controller_Action
|
|||
$sth = $this->db->prepare($sql);
|
||||
$sth->execute(array($row['uuid']));
|
||||
$data = $sth->fetch();
|
||||
$search->update($data);
|
||||
$search->update($data);
|
||||
|
||||
if (empty($row)) //无对应记录
|
||||
{
|
||||
|
@ -2156,7 +2159,7 @@ class AuthorController extends Zend_Controller_Action
|
|||
$this->jsonexit($data);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
}catch(Exception $e) {
|
||||
$msg = "提交失败,请确认权限后重试";
|
||||
if($this->debug>0)
|
||||
|
|
|
@ -9,25 +9,23 @@ $this->breadcrumb('<a href="/author">数据作者</a>');
|
|||
$this->breadcrumb('我的数据');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<!-- 左侧导航 -->
|
||||
<div id='sidebar'>
|
||||
<div id='leftnavi'>
|
||||
<?= $this->partial('author/navi.phtml'); ?>
|
||||
<div class="row">
|
||||
<div class="span3">
|
||||
<?= $this->partial('author/navi.phtml'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<!-- //左侧导航 -->
|
||||
|
||||
<!-- 页面内容 -->
|
||||
<div id="wapper">
|
||||
<p>请输入元数据标题关键字进行搜索</p>
|
||||
<form id="datasearch" class="search_form" action="/author/accept/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>
|
||||
<div class="span9">
|
||||
|
||||
<p>请输入元数据标题关键字进行搜索</p>
|
||||
<div class="input-append">
|
||||
<form id="datasearch" class="search_form" action="/author/accept/ac/search">
|
||||
<input class="span2" type="text" id="keyword" name="q" value="<?php if(!empty($this->q)) echo $this->q; ?>">
|
||||
<button class="btn" type="submit">搜索</button>
|
||||
</form>
|
||||
</div>
|
||||
<div id="datalist">
|
||||
<?php
|
||||
if (count($this->paginator)):
|
||||
echo "<ul>";
|
||||
echo '<ul class="unstyled">';
|
||||
$autoindex=0;
|
||||
foreach ($this->paginator as $item):
|
||||
$autoindex++;?>
|
||||
|
@ -71,8 +69,6 @@ $this->breadcrumb()->setSeparator(' > ');
|
|||
endif; ?>
|
||||
<div class="pagenavi"><?= $this->paginator; ?></div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- //页面内容 -->
|
||||
<script>
|
||||
$('#wapper').width($('body').width()-300);
|
||||
</script>
|
||||
|
||||
</div>
|
||||
</div>
|
|
@ -8,17 +8,13 @@ $this->breadcrumb('<a href="/">首页</a>');
|
|||
$this->breadcrumb($this->config->title->author);
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<!-- 左侧导航 -->
|
||||
<div id='sidebar'>
|
||||
<div id='leftnavi'>
|
||||
<?= $this->partial('author/navi.phtml'); ?>
|
||||
<div class="row">
|
||||
<div class="span3">
|
||||
<?= $this->partial('author/navi.phtml'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<!-- //左侧导航 -->
|
||||
|
||||
<!-- 页面内容 -->
|
||||
<div id="wapper">
|
||||
<div class="helplist">
|
||||
<div class="span9">
|
||||
|
||||
<div class="helplist">
|
||||
<ul>
|
||||
<li id="author_system">
|
||||
<h1>数据作者系统有什么功能?</h1>
|
||||
|
@ -46,8 +42,6 @@ $this->breadcrumb()->setSeparator(' > ');
|
|||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<!-- //页面内容 -->
|
||||
<script>
|
||||
$('#wapper').width($('body').width()-300);
|
||||
</script>
|
|
@ -1,16 +1,18 @@
|
|||
<ul>
|
||||
<li><a href="/author/">介绍</a></li>
|
||||
<li><a href="/author/newdata">新建数据</a></li>
|
||||
<li><a href="/author/apply">数据认证</a></li>
|
||||
<li><a href="/author/accept">我的数据</a></li>
|
||||
<li><a href="/author/inauthor">数据申请管理</a></li>
|
||||
<li><a href="/author/comment">数据反馈管理</a></li>
|
||||
<li><a href="/author/literature">数据文献管理</a></li>
|
||||
<li><a href="/author/document">数据文档管理</a></li>
|
||||
<li><a href="/author/news">数据新闻管理</a></li>
|
||||
<li><a href="/author/version">数据版本管理</a></li>
|
||||
<div class="sidebar-nav bs-review-nav">
|
||||
<ul class="nav nav-list bs-review-sidenav">
|
||||
<li id="Nav-author-index"><a href="/author/"><i class="icon-chevron-right"></i>介绍</a></li>
|
||||
<li id="Nav-author-newdata"><a href="/author/newdata"><i class="icon-chevron-right"></i>新建数据</a></li>
|
||||
<li id="Nav-author-apply"><a href="/author/apply"><i class="icon-chevron-right"></i>数据认证</a></li>
|
||||
<li id="Nav-author-accept"><a href="/author/accept"><i class="icon-chevron-right"></i>我的数据</a></li>
|
||||
<li id="Nav-author-inauthor"><a href="/author/inauthor"><i class="icon-chevron-right"></i>数据申请管理</a></li>
|
||||
<li id="Nav-author-comment"><a href="/author/comment"><i class="icon-chevron-right"></i>数据反馈管理</a></li>
|
||||
<li id="Nav-author-literature"><a href="/author/literature"><i class="icon-chevron-right"></i>数据文献管理</a></li>
|
||||
<li id="Nav-author-document"><a href="/author/document"><i class="icon-chevron-right"></i>数据文档管理</a></li>
|
||||
<li id="Nav-author-news"><a href="/author/news"><i class="icon-chevron-right"></i>数据新闻管理</a></li>
|
||||
<li id="Nav-author-version"><a href="/author/version"><i class="icon-chevron-right"></i>数据版本管理</a></li>
|
||||
<!--
|
||||
<li><a href="/author/survey">数据调查</a></li>
|
||||
<li><a href="/author/qa">数据QA</a></li> -->
|
||||
<li><a href="/author/statics">信息统计</a></li>
|
||||
</ul>
|
||||
<li id="Nav-author-statics"><a href="/author/statics"><i class="icon-chevron-right"></i>信息统计</a></li>
|
||||
</ul>
|
||||
</div>
|
|
@ -1,16 +1,40 @@
|
|||
/*
|
||||
CSS Doucment
|
||||
|
||||
@version $Id: author.css 2012-2-29 15:01 Z 李建轩 $
|
||||
@package author
|
||||
@copyright Copyright (c) 2012, CAREERI.
|
||||
@license http://
|
||||
@link http://
|
||||
|
||||
@update 2012-3-7 16:35 李建轩
|
||||
@update 2012-3-9 12:21 李建轩
|
||||
.bs-review-nav{
|
||||
padding:14px;
|
||||
}
|
||||
.bs-review-sidenav{
|
||||
padding:0px;
|
||||
margin:0px;
|
||||
}
|
||||
.bs-review-sidenav > li:first-child > a {
|
||||
border-radius: 6px 6px 0 0;
|
||||
}
|
||||
.bs-review-sidenav > li:last-child > a {
|
||||
border-radius: 0 0 6px 6px;
|
||||
}
|
||||
.bs-review-sidenav li{
|
||||
margin:0px;
|
||||
padding:0px;
|
||||
line-height:30px;
|
||||
}
|
||||
.bs-review-sidenav li a {
|
||||
border:1px solid #E5E5E5;
|
||||
margin: 0 0 -1px;
|
||||
}
|
||||
.bs-review-sidenav li.active a {
|
||||
border:none;
|
||||
margin: 0 0 0 0;
|
||||
}
|
||||
.bs-review-sidenav li i{
|
||||
float:right;
|
||||
margin-top:8px;
|
||||
}
|
||||
.bs-review-nav .form-search{
|
||||
margin:10px auto;
|
||||
}
|
||||
.bs-review-nav .form-search .keyword{
|
||||
width:95%;
|
||||
}
|
||||
|
||||
*/
|
||||
.box-shadow{
|
||||
box-shadow:2px 2px 2px #ccc;
|
||||
-webkit-box-shadow:2px 2px 2px #ccc;
|
||||
|
|
Loading…
Reference in New Issue