修改了数据作者中的部分模板

This commit is contained in:
Li Jianxuan 2013-03-26 09:16:53 +00:00
parent 7ada7a32ea
commit 621d42ee34
5 changed files with 82 additions and 63 deletions

View File

@ -28,9 +28,13 @@ class AuthorController extends Zend_Controller_Action
$this->messenger=$this->_helper->getHelper('FlashMessenger'); $this->messenger=$this->_helper->getHelper('FlashMessenger');
$this->view->messages = $this->messenger->getMessages(); $this->view->messages = $this->messenger->getMessages();
$this->view->theme = new Theme(); $this->view->theme = new Theme();
$this->view->pageID = "author-".$this->_request->getActionName();
} }
function indexAction() function indexAction()
{ {
$this->view->pageID = "author-index";
} }
@ -39,7 +43,7 @@ class AuthorController extends Zend_Controller_Action
* *
*/ */
function helpAction(){ function helpAction(){
$this->view->pageID = "author-help";
}//helpAction()帮助文档 }//helpAction()帮助文档
/* /*
@ -54,7 +58,6 @@ class AuthorController extends Zend_Controller_Action
*/ */
function inauthorAction() function inauthorAction()
{ {
$ac = $this->_request->getParam("ac"); $ac = $this->_request->getParam("ac");
$auth = Zend_Auth::getInstance(); $auth = Zend_Auth::getInstance();
@ -1851,7 +1854,7 @@ class AuthorController extends Zend_Controller_Action
$sth = $this->db->prepare($sql); $sth = $this->db->prepare($sql);
$sth->execute(array($id)); $sth->execute(array($id));
$row = $sth->fetch(); $row = $sth->fetch();
//update search document //update search document
$search=new Search(); $search=new Search();
//create search view in xunsearch //create search view in xunsearch
@ -1860,7 +1863,7 @@ class AuthorController extends Zend_Controller_Action
$sth = $this->db->prepare($sql); $sth = $this->db->prepare($sql);
$sth->execute(array($row['uuid'])); $sth->execute(array($row['uuid']));
$data = $sth->fetch(); $data = $sth->fetch();
$search->update($data); $search->update($data);
if (empty($row)) //无对应记录 if (empty($row)) //无对应记录
{ {
@ -2156,7 +2159,7 @@ class AuthorController extends Zend_Controller_Action
$this->jsonexit($data); $this->jsonexit($data);
return true; return true;
} }
}catch(Exception $e) { }catch(Exception $e) {
$msg = "提交失败,请确认权限后重试"; $msg = "提交失败,请确认权限后重试";
if($this->debug>0) if($this->debug>0)

View File

@ -9,25 +9,23 @@ $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">
<!-- //左侧导航 -->
<p>请输入元数据标题关键字进行搜索</p>
<!-- 页面内容 --> <div class="input-append">
<div id="wapper"> <form id="datasearch" class="search_form" action="/author/accept/ac/search">
<p>请输入元数据标题关键字进行搜索</p> <input class="span2" type="text" id="keyword" name="q" value="<?php if(!empty($this->q)) echo $this->q; ?>">
<form id="datasearch" class="search_form" action="/author/accept/ac/search"> <button class="btn" type="submit">搜索</button>
<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> </form>
</div>
<div id="datalist"> <div id="datalist">
<?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++;?>
@ -71,8 +69,6 @@ $this->breadcrumb()->setSeparator(' > ');
endif; ?> endif; ?>
<div class="pagenavi"><?= $this->paginator; ?></div> <div class="pagenavi"><?= $this->paginator; ?></div>
</div> </div>
</div>
<!-- //页面内容 --> </div>
<script> </div>
$('#wapper').width($('body').width()-300);
</script>

View File

@ -8,17 +8,13 @@ $this->breadcrumb('<a href="/">首页</a>');
$this->breadcrumb($this->config->title->author); $this->breadcrumb($this->config->title->author);
$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="helplist">
<!-- 页面内容 -->
<div id="wapper">
<div class="helplist">
<ul> <ul>
<li id="author_system"> <li id="author_system">
<h1>数据作者系统有什么功能?</h1> <h1>数据作者系统有什么功能?</h1>
@ -46,8 +42,6 @@ $this->breadcrumb()->setSeparator(' > ');
</li> </li>
</ul> </ul>
</div> </div>
</div>
</div> </div>
<!-- //页面内容 -->
<script>
$('#wapper').width($('body').width()-300);
</script>

View File

@ -1,16 +1,18 @@
<ul> <div class="sidebar-nav bs-review-nav">
<li><a href="/author/">介绍</a></li> <ul class="nav nav-list bs-review-sidenav">
<li><a href="/author/newdata">新建数据</a></li> <li id="Nav-author-index"><a href="/author/"><i class="icon-chevron-right"></i>介绍</a></li>
<li><a href="/author/apply">数据认证</a></li> <li id="Nav-author-newdata"><a href="/author/newdata"><i class="icon-chevron-right"></i>新建数据</a></li>
<li><a href="/author/accept">我的数据</a></li> <li id="Nav-author-apply"><a href="/author/apply"><i class="icon-chevron-right"></i>数据认证</a></li>
<li><a href="/author/inauthor">数据申请管理</a></li> <li id="Nav-author-accept"><a href="/author/accept"><i class="icon-chevron-right"></i>我的数据</a></li>
<li><a href="/author/comment">数据反馈管理</a></li> <li id="Nav-author-inauthor"><a href="/author/inauthor"><i class="icon-chevron-right"></i>数据申请管理</a></li>
<li><a href="/author/literature">数据文献管理</a></li> <li id="Nav-author-comment"><a href="/author/comment"><i class="icon-chevron-right"></i>数据反馈管理</a></li>
<li><a href="/author/document">数据文档管理</a></li> <li id="Nav-author-literature"><a href="/author/literature"><i class="icon-chevron-right"></i>数据文献管理</a></li>
<li><a href="/author/news">数据新闻管理</a></li> <li id="Nav-author-document"><a href="/author/document"><i class="icon-chevron-right"></i>数据文档管理</a></li>
<li><a href="/author/version">数据版本管理</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/survey">数据调查</a></li>
<li><a href="/author/qa">数据QA</a></li> --> <li><a href="/author/qa">数据QA</a></li> -->
<li><a href="/author/statics">信息统计</a></li> <li id="Nav-author-statics"><a href="/author/statics"><i class="icon-chevron-right"></i>信息统计</a></li>
</ul> </ul>
</div>

View File

@ -1,16 +1,40 @@
/* .bs-review-nav{
CSS Doucment padding:14px;
}
@version $Id: author.css 2012-2-29 15:01 Z 李建轩 $ .bs-review-sidenav{
@package author padding:0px;
@copyright Copyright (c) 2012, CAREERI. margin:0px;
@license http:// }
@link http:// .bs-review-sidenav > li:first-child > a {
border-radius: 6px 6px 0 0;
@update 2012-3-7 16:35 李建轩 }
@update 2012-3-9 12:21 李建轩 .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{
box-shadow:2px 2px 2px #ccc; box-shadow:2px 2px 2px #ccc;
-webkit-box-shadow:2px 2px 2px #ccc; -webkit-box-shadow:2px 2px 2px #ccc;