From 63bed29856b002651d74f683cfb728fef0825f72 Mon Sep 17 00:00:00 2001 From: wlx Date: Sun, 26 May 2013 12:08:28 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=9C=A8=E7=BA=BF=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E7=9A=84=E4=B8=8B=E8=BD=BD=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../default/controllers/DataController.php | 9 ++-- .../default/views/scripts/data/download.phtml | 47 +++++++------------ 2 files changed, 23 insertions(+), 33 deletions(-) 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(' > '); ?> -
+
+
+ +
+

md['title']; ?>(md['filesize']; ?>MB)

-
-
FTP下载地址
    - ftpurls) : ?> - ftpurls as $ftp) : ?> -
  • - + ftpurl) : ?> +
  • ftpurl; ?>
  • +
-
- -
+
FTP使用说明 帐号信息如下:
  • FTP的用户名:username; ?>
  • FTP的密码:userpass; ?>
  • 密码有效期限:ftptime; ?>
-

FTP是一种常用的文件传输协议,西部数据中心推荐您使用使用开源的FileZilla软件来进行数据下载,您可以使用您自己喜欢的FTP客户端来进行数据下载。

+md['host']=='ftp.westgis.ac.cn') : ?> +

请注意,此FTP需要在登陆后手工输入目录地址!

+ +

FTP是一种常用的文件传输协议,西部数据中心推荐您使用使用开源的FileZilla软件来进行数据下载,您也可以使用您自己喜欢的FTP客户端来进行数据下载。

+

在使用FTP中遇到问题,可以参考:数据的FTP下载问题

以FileZilla演示如何下载数据
-
+
\ No newline at end of file