From 65072d0317a42f53515cc2a5eee342be47da248e Mon Sep 17 00:00:00 2001 From: Li Jianxuan Date: Wed, 6 Jun 2012 08:19:56 +0000 Subject: [PATCH] =?UTF-8?q?=E5=9C=A8=E5=9C=A8=E7=BA=BF=E7=94=B3=E8=AF=B7?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E4=B8=AD=E6=B7=BB=E5=8A=A0=E4=BA=86=E9=A1=B9?= =?UTF-8?q?=E7=9B=AE=E7=B1=BB=E5=9E=8B=E3=80=81=E9=A1=B9=E7=9B=AEID?= =?UTF-8?q?=E3=80=81=E9=A1=B9=E7=9B=AE=E5=90=8D=E7=A7=B0=E7=9A=84=E5=A1=AB?= =?UTF-8?q?=E5=86=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../default/controllers/DataController.php | 41 ++++++++++++++----- .../default/views/scripts/data/view.phtml | 15 +++---- htdocs/css/watermdview.css | 12 +++--- 3 files changed, 42 insertions(+), 26 deletions(-) diff --git a/application/default/controllers/DataController.php b/application/default/controllers/DataController.php index a80a2835..7e18ce4b 100755 --- a/application/default/controllers/DataController.php +++ b/application/default/controllers/DataController.php @@ -582,11 +582,11 @@ class DataController extends Zend_Controller_Action //建议参考文献 $sql="select r.* from reference r left join mdref m on m.refid=r.id where m.uuid=? and m.reftype=0"; $sql=$this->db->quoteInto($sql,$uuid); - $this->view->ref=$this->db->fetchAll($sql); + $this->view->ref=$this->db->fetchAll($sql); //用户发表文献 $sql="select r.* from reference r left join mdref m on m.refid=r.id where m.uuid=? and m.reftype=1"; $sql=$this->db->quoteInto($sql,$uuid); - $this->view->userref=$this->db->fetchAll($sql); + $this->view->userref=$this->db->fetchAll($sql); //相关用户 $sql="select p.email,p.individual,p.organisation,r.role from role r left join responsible p on r.resid=p.id where r.uuid=? order by r.role,r.id"; $this->view->authors=$this->db->fetchAll($sql,array($uuid)); @@ -762,7 +762,7 @@ class DataController extends Zend_Controller_Action array( 'user' =>$user->username, 'uuid' =>$data['uuid'], - 'title' =>$this->replace(trim($this->_request->getParam('mdtitle'))), + 'title' =>$this->replace(trim($this->_request->getParam('mdtitle'))), 'content'=>$content ) ); @@ -826,13 +826,26 @@ class DataController extends Zend_Controller_Action
温馨提示:您需要填写以下信息才可以下载该数据
- - - - - - - + + + + + + + + + +
真实姓名
单位名称
联系电话
联系地址
邮政编码
电子邮箱
项目说明
真实姓名
单位名称
联系电话
联系地址
邮政编码
电子邮箱
项目编号
项目名称
项目类型
项目说明
请您填写完整的数据用途信息,包括项目类型、编号、题目、负责人等信息;若仅用于论文写作,请告知研究题目或主要内容,并注明导师姓名;其他用途如实注明即可。清晰明确的数据用途有助于我们更快得审核和通过申请,也会使您更快获得数据!
例一:
@@ -890,6 +903,9 @@ class DataController extends Zend_Controller_Action $datas['postcode'] = $this->_request->getParam('postcode'); $datas['email'] = $this->_request->getParam('email'); $datas['project'] = $this->_request->getParam('project'); + $datas['project_id'] = $this->_request->getParam('projectid'); + $datas['project_type'] = $this->_request->getParam('projecttype'); + $datas['project_title'] = $this->_request->getParam('projecttitle'); @@ -927,7 +943,10 @@ class DataController extends Zend_Controller_Action 'postcode' => $datas['postcode'], 'project' => $datas['project'], 'uuid' =>$uuid, - 'email' =>$datas['email'] + 'email' =>$datas['email'], + 'project_id'=>$datas['project_id'], + 'project_title'=>$datas['project_title'], + 'project_type'=>$datas['project_type'] ); if($this->db->insert('onlineapp',$data)) diff --git a/application/default/views/scripts/data/view.phtml b/application/default/views/scripts/data/view.phtml index d13fc66e..a7c103d9 100755 --- a/application/default/views/scripts/data/view.phtml +++ b/application/default/views/scripts/data/view.phtml @@ -105,7 +105,7 @@ else status>0 and $md->status<5) : ?> datatype) : ?> - + @@ -180,7 +180,7 @@ endforeach; endforeach; ?> - + userref) : ?>

数据用户发表文献

    @@ -335,7 +335,6 @@ if($auth->hasIdentity())