diff --git a/application/admin/controllers/DataController.php b/application/admin/controllers/DataController.php index 6728f8e7..ff4e9645 100755 --- a/application/admin/controllers/DataController.php +++ b/application/admin/controllers/DataController.php @@ -949,7 +949,7 @@ class Admin_DataController extends Zend_Controller_Action } //添加 else if($show){ - $sql = "select mr.id as mdid,mr.refid,r.reference,md.title,md.uuid FROM mdref mr + $sql = "select mr.id as mdid,mr.refid,r.reference,md.title,md.uuid,mr.place FROM mdref mr left join metadata md on md.uuid=mr.uuid left join reference r on r.id=mr.refid where mr.uuid='$show'; @@ -3410,6 +3410,26 @@ class Admin_DataController extends Zend_Controller_Action return true; } + if($ac == 'datalist') + { + $this->_helper->viewRenderer('fund-data-list'); + $this->view->q = $q = $this->_getParam('q'); + $rows = $fund->fetchFormData(true,0,$q); + view::addPaginator($rows,$this->view,$this->_request); + return true; + } + + if($ac == 'dataview') + { + $this->_helper->viewRenderer('fund-data-view'); + $this->view->q = $q = $this->_getParam('q'); + $id = $this->_getParam('id'); + $this->view->fund = $fund->view($id); + $rows = $fund->fetchFormData($id,0,$q); + view::addPaginator($rows,$this->view,$this->_request); + return true; + } + if($ac == "add") { $this->_helper->viewRenderer('fund-add'); @@ -3732,10 +3752,10 @@ class Admin_DataController extends Zend_Controller_Action } $doi.=' - '.$row['title'].' + <![CDATA['.$row['title'].']]> '; - $doi.=''.$row['description'].''; + $doi.=''; $doi.=''.$row['publisher'].''; $doi.=' '.$row['doi'].' diff --git a/application/admin/controllers/NewsController.php b/application/admin/controllers/NewsController.php index 5d1770d1..772be9ab 100644 --- a/application/admin/controllers/NewsController.php +++ b/application/admin/controllers/NewsController.php @@ -8,6 +8,7 @@ class Admin_NewsController extends Zend_Controller_Action $this->messenger=$this->_helper->getHelper('FlashMessenger'); $this->view->messages = $this->messenger->getMessages(); $this->_helper->layout->setLayout('administry'); + $this->view->theme = new Theme(); } function postDispatch() { @@ -628,7 +629,40 @@ class Admin_NewsController extends Zend_Controller_Action return $newString; } - + public function moveAction() + { + $up = (int)$this->_getParam('up'); + $down = (int)$this->_getParam('down'); + + include_once('helper/view.php'); + include_once('ArchiveCategory.php'); + + if(empty($up) && empty($down)) + { + view::Post("参数错误",$this,-1); + return true; + } + + $category = new ArchiveCategory($this->db); + + if(!empty($up)) + { + $s = $category->move('up',$up); + } + if(!empty($down)) + { + $s = $category->move('down',$down); + } + + if(is_array($s)) + { + $this->view->moved = $s; + }else{ + view::Post($this,$s,-1); + } + + return true; + } } diff --git a/application/admin/controllers/ReviewController.php b/application/admin/controllers/ReviewController.php index cd642a33..0a58ec17 100644 --- a/application/admin/controllers/ReviewController.php +++ b/application/admin/controllers/ReviewController.php @@ -1557,6 +1557,7 @@ class Admin_ReviewController extends Zend_Controller_Action { $mail->addTo($v); } + $mail->addBcc($this->view->config->service->email); $mail->setSubject($title); if($mail->send()) diff --git a/application/admin/views/scripts/data/fund-add.phtml b/application/admin/views/scripts/data/fund-add.phtml index a159c051..1100ff4d 100644 --- a/application/admin/views/scripts/data/fund-add.phtml +++ b/application/admin/views/scripts/data/fund-add.phtml @@ -16,6 +16,7 @@ $this->theme->AppendPlus($this,'colorbox');
diff --git a/application/admin/views/scripts/data/fund-data-list.phtml b/application/admin/views/scripts/data/fund-data-list.phtml new file mode 100644 index 00000000..165908c7 --- /dev/null +++ b/application/admin/views/scripts/data/fund-data-list.phtml @@ -0,0 +1,113 @@ +headTitle($this->config->title->site); +$this->headTitle($this->config->title->author); +$this->headTitle()->setSeparator(' - '); +$this->breadcrumb('首页'); +$this->headLink()->appendStylesheet('/css/author.css'); +$this->breadcrumb()->setSeparator(' > '); +$this->theme->AppendPlus($this,'colorbox'); +$this->theme->AppendPlus($this,'admin_plugin'); +?> + +
+
+ partial('data/left.phtml'); ?> +
+
+ + md)) { ?> +
+ ct)) { ?> + 为此数据添加项目 + + 返回 +
点击“添加此项目”即可将项目添加到元数据
+ +

md['title'] ?>》 的支持项目

+
+
+ +
+
+
+ + +
+
+
+ error)) { ?> + AlertType)) $AlertType = "alert-error";else $AlertType = $this->AlertType;?> +
+ × + error)) { ?>

error ?>

+
    + error as $v) { ?> +
  • + +
+ +
+ + msg)) { ?> +
+ × + msg ?> +
+ jump_url)) { ?> + + + +
+ paginator)): ?> + + + + + + + + + + + + paginator as $item): + $autoindex++;?> + md)) { ?> + + + + + + + + + + + + +
名称项目编号项目类型数据个数操作
+ 查看数据 +
+ + +
+ +
+
+ + diff --git a/application/admin/views/scripts/data/fund-data-view.phtml b/application/admin/views/scripts/data/fund-data-view.phtml new file mode 100644 index 00000000..0dfd40d8 --- /dev/null +++ b/application/admin/views/scripts/data/fund-data-view.phtml @@ -0,0 +1,100 @@ +headTitle($this->config->title->site); +$this->headTitle($this->config->title->author); +$this->headTitle()->setSeparator(' - '); +$this->breadcrumb('首页'); +$this->breadcrumb('数据作者'); +$this->headLink()->appendStylesheet('/css/author.css'); +$this->breadcrumb('申请成为元数据作者'); +$this->breadcrumb()->setSeparator(' > '); +$this->theme->AppendPlus($this,'colorbox'); +$this->theme->AppendPlus($this,'admin_plugin'); +?> + +
+
+ partial('author/navi.phtml'); ?> +
+
+ + fund)) { ?> +
+

fund['title'] ?> 的相关数据

+
+
+ +
+
+
+ + +
+
+
+ error)) { ?> + AlertType)) $AlertType = "alert-error";else $AlertType = $this->AlertType;?> +
+ × + error)) { ?>

error ?>

+
    + error as $v) { ?> +
  • + +
+ +
+ + msg)) { ?> +
+ × + msg ?> +
+ jump_url)) { ?> + + + +
+ paginator)): ?> + + + + + + + + + paginator as $item): + $autoindex++;?> + + + + + + +
数据操作
+ 移除 +
+ + +
+ +
+
+ + diff --git a/application/admin/views/scripts/data/fund.phtml b/application/admin/views/scripts/data/fund.phtml index 1964f2b4..75da7fc0 100644 --- a/application/admin/views/scripts/data/fund.phtml +++ b/application/admin/views/scripts/data/fund.phtml @@ -19,8 +19,12 @@ table thead tr th {background:#EBF2F6;}
md)) { ?> @@ -124,6 +128,12 @@ table thead tr th {background:#EBF2F6;} + + md)) { ?> + 暂无数据,点击标题右侧添加按钮为此数据添加项目 + + 暂无数据 +
diff --git a/application/admin/views/scripts/data/referenceadd.phtml b/application/admin/views/scripts/data/referenceadd.phtml index 163ad3ca..084be6f3 100644 --- a/application/admin/views/scripts/data/referenceadd.phtml +++ b/application/admin/views/scripts/data/referenceadd.phtml @@ -39,7 +39,10 @@ if($this->type == 'dc')
-
+ + + +
 
headTitle($this->config->title->site); - $this->headTitle('后台管理'); - $this->headTitle()->setSeparator(' - '); - $this->headLink()->appendStylesheet('/css/admin.css'); - $this->breadcrumb('首页'); - $this->breadcrumb('后台首页'); - $this->breadcrumb('数据管理'); - $this->breadcrumb('特色推荐管理'); - $this->breadcrumb()->setSeparator(' > '); -?> -
-partial('data/left.phtml'); ?> -
-
-msg or $this->messages) :?> -
-msg) : ?> -

msg; ?>

-messages): foreach($this->messages as $msg): ?> -

- -
- -添加新的数据文献 -form; ?> -
\ No newline at end of file diff --git a/application/admin/views/scripts/news/catlog.phtml b/application/admin/views/scripts/news/catlog.phtml index 6dd5da93..c7bd805d 100644 --- a/application/admin/views/scripts/news/catlog.phtml +++ b/application/admin/views/scripts/news/catlog.phtml @@ -2,126 +2,128 @@ $this->headTitle($this->config->title->site); $this->headTitle('后台管理'); $this->headTitle()->setSeparator(' - '); - $this->headScript()->appendFile('/js/jquery-1.7.min.js'); - $this->headLink()->appendStylesheet('/css/admin.css'); - $this->headScript()->appendFile('/js/jquery.colorbox-min.js'); - $this->headLink()->appendStylesheet('/css/author.css'); - $this->headLink()->appendStylesheet('/css/colorbox.css'); $this->breadcrumb('首页'); $this->breadcrumb('后台首页'); $this->breadcrumb('新闻中心'); $this->breadcrumb('栏目管理'); + $this->theme->AppendPlus($this,"colorbox"); ?> -
-partial('news/left.phtml'); ?> -
-
-msg or $this->messages) :?> -
-msg) : ?> -

msg; ?>

-messages): foreach($this->messages as $msg): ?> -

- -
- - - - - - - - - - - - catlogs)) - { - $top = 0; - $deep = 0; - foreach($this->catlogs as $k=>$v) - { - if($v[$this->deepField]>0) - { - $style = "text-indent:". $v[$this->deepField]*12 ."px;"; - }else{ - $style = ""; - } - echo ' - - - - - '; - } - - }else{ - echo ''; - } - ?> - -
栏目名称栏目类型栏目管理
- - '.$v['ptype'].' - - 浏览 - 文档 - 编辑 - 删除
暂无数据
-
- +
+ + diff --git a/application/default/views/scripts/author/fund-data.phtml b/application/default/views/scripts/author/fund-data.phtml new file mode 100644 index 00000000..73dbcf53 --- /dev/null +++ b/application/default/views/scripts/author/fund-data.phtml @@ -0,0 +1,115 @@ +headTitle($this->config->title->site); +$this->headTitle($this->config->title->author); +$this->headTitle()->setSeparator(' - '); +$this->breadcrumb('首页'); +$this->breadcrumb('数据作者'); +$this->headLink()->appendStylesheet('/css/author.css'); +$this->breadcrumb('申请成为元数据作者'); +$this->breadcrumb()->setSeparator(' > '); +$this->theme->AppendPlus($this,'colorbox'); +$this->theme->AppendPlus($this,'admin_plugin'); +?> + +
+
+ partial('author/navi.phtml'); ?> +
+
+
+ +
+ md)) { ?> +
+ ct)) { ?> + 为此数据添加项目 + + 返回 +
点击“添加此项目”即可将项目添加到元数据
+ +

md['title'] ?>》 的支持项目

+
+
+ +
+
+
+ + +
+
+
+ error)) { ?> + AlertType)) $AlertType = "alert-error";else $AlertType = $this->AlertType;?> +
+ × + error)) { ?>

error ?>

+
    + error as $v) { ?> +
  • + +
+ +
+ + msg)) { ?> +
+ × + msg ?> +
+ jump_url)) { ?> + + + +
+ paginator)): ?> + + + + + + + + + + + + paginator as $item): + $autoindex++;?> + md)) { ?> + + + + + + + + + + + + +
名称项目编号项目类型数据个数操作
+ 查看数据 +
+ + +
+ +
+
+ + diff --git a/application/default/views/scripts/author/fund.phtml b/application/default/views/scripts/author/fund.phtml index 4b5b96e7..3fbe0d9e 100644 --- a/application/default/views/scripts/author/fund.phtml +++ b/application/default/views/scripts/author/fund.phtml @@ -1,163 +1,173 @@ -headTitle($this->config->title->site); -$this->headTitle($this->config->title->author); -$this->headTitle()->setSeparator(' - '); -$this->breadcrumb('首页'); -$this->breadcrumb('数据作者'); -$this->headLink()->appendStylesheet('/css/author.css'); -$this->breadcrumb('申请成为元数据作者'); -$this->breadcrumb()->setSeparator(' > '); -$this->theme->AppendPlus($this,'colorbox'); -$this->theme->AppendPlus($this,'admin_plugin'); -?> - -
-
- partial('author/navi.phtml'); ?> -
-
-
- -
- md)) { ?> -
- ct)) { ?> - 为此数据添加项目 - - 返回 -
点击“添加此项目”即可将项目添加到元数据
- -

md['title'] ?>》 的支持项目

-
-
- -
-
-
- - -
-
-
- error)) { ?> - AlertType)) $AlertType = "alert-error";else $AlertType = $this->AlertType;?> -
- × - error)) { ?>

error ?>

-
    - error as $v) { ?> -
  • - -
- -
- - msg)) { ?> -
- × - msg ?> -
- jump_url)) { ?> - - - -
- paginator)): ?> - - - - - - - md) { ?> - - - - - - - - - - paginator as $item): - $autoindex++;?> - md)) { ?> - - - - - - - - md) { ?> - ct) { ?> - - - - - - - - - - - - -
名称编号类型排序英文标题英文类型操作
- md)) { ?> - 编辑 - 删除 - - ct)) { ?> - 排序 - 移除 - - 添加此项目 - - -
- - -
- -
-
- - +headTitle($this->config->title->site); +$this->headTitle($this->config->title->author); +$this->headTitle()->setSeparator(' - '); +$this->breadcrumb('首页'); +$this->breadcrumb('数据作者'); +$this->headLink()->appendStylesheet('/css/author.css'); +$this->breadcrumb('申请成为元数据作者'); +$this->breadcrumb()->setSeparator(' > '); +$this->theme->AppendPlus($this,'colorbox'); +$this->theme->AppendPlus($this,'admin_plugin'); +?> + +
+
+ partial('author/navi.phtml'); ?> +
+
+
+ +
+ md)) { ?> +
+ ct)) { ?> + 为此数据添加项目 + + 返回 +
点击“添加此项目”即可将项目添加到元数据
+ +

md['title'] ?>》 的支持项目

+
+
+ +
+
+
+ + +
+
+
+ error)) { ?> + AlertType)) $AlertType = "alert-error";else $AlertType = $this->AlertType;?> +
+ × + error)) { ?>

error ?>

+
    + error as $v) { ?> +
  • + +
+ +
+ + msg)) { ?> +
+ × + msg ?> +
+ jump_url)) { ?> + + + +
+ paginator)): ?> + + + + + + + md) { ?> + + + + + + + + + + paginator as $item): + $autoindex++;?> + md)) { ?> + + + + + + + + md) { ?> + ct) { ?> + + + + + + + + + + + + +
名称编号类型排序英文标题英文类型操作
+ md)) { ?> + 编辑 + 删除 + + ct)) { ?> + 排序 + 移除 + + 添加此项目 + + +
+ + md)) { ?> + 暂无数据,点击标题右侧添加按钮为此数据添加项目 + + 暂无数据 + + + +
+ +
+
+ + diff --git a/application/default/views/scripts/author/navi.phtml b/application/default/views/scripts/author/navi.phtml index 97828358..7aa38b97 100644 --- a/application/default/views/scripts/author/navi.phtml +++ b/application/default/views/scripts/author/navi.phtml @@ -1,20 +1,20 @@ -