diff --git a/application/default/controllers/DataController.php b/application/default/controllers/DataController.php index ee97c0f2..97c132c1 100755 --- a/application/default/controllers/DataController.php +++ b/application/default/controllers/DataController.php @@ -1283,7 +1283,8 @@ class DataController extends Zend_Controller_Action function downloadAction() { $uuid=$this->_request->getParam('uuid'); - $onlineappid=$this->_request->getParam('onlineappid'); + $onlineappid=$this->_request->getParam('onlineappid'); + $this->view->pageID = "account-dataorder"; if (empty($uuid)) $this->_redirect('/data'); @@ -1329,7 +1330,9 @@ class DataController extends Zend_Controller_Action $updateftp=$updateftp1=false; $this->view->md=$data; $this->view->userpass=md5('westdc'.rand(1000,9999)); - $this->view->ftptime=date('Y-m-d H:i:s', strtotime('+1 week')); + $this->view->ftptime=date('Y-m-d H:i:s', strtotime('+1 week')); + $sql=$this->db->quoteInto("select * from ftpuser where userid=?",$userid); + $row=$this->db->fetchRow($sql); $datacount=$row['datacount']; if ($data['host']=='ftp.westgis.ac.cn') { @@ -1398,7 +1401,7 @@ class DataController extends Zend_Controller_Action //设置输出 //if ($updateftp || $updateftp1) $this->view->userpass=$password; - $this->view->ftpurls=$ftpurl; + $this->view->ftpurl=$ftpurl; //更新下载记录 //todo: 尝试添加一个RULE:若有对应数据存在,则不插入( userid,uuid,status=0,ts_approved:null) /*$sql="select * from dataorder where userid=? and uuid=? and status=0 and (ts_approved is null)"; diff --git a/application/default/views/scripts/data/download.phtml b/application/default/views/scripts/data/download.phtml index 9cc18f21..f9824a37 100644 --- a/application/default/views/scripts/data/download.phtml +++ b/application/default/views/scripts/data/download.phtml @@ -3,51 +3,38 @@ $this->headTitle($this->config->title->data); $this->headTitle('下载'); $this->headTitle()->setSeparator(' - '); - $this->headLink()->appendStylesheet('/css/download.css'); $this->breadcrumb('首页'); $this->breadcrumb(''.$this->config->title->data.''); $this->breadcrumb('下载'); $this->breadcrumb()->setSeparator(' > '); ?> -