From fb5b1dacdccda2432ebcbaff92ae0311f227136c Mon Sep 17 00:00:00 2001 From: jack Date: Fri, 11 May 2018 22:49:03 +0800 Subject: [PATCH] update index template --- .../default/controllers/IndexController.php | 4 +- .../views/scripts/index/index-back.phtml | 4 +- .../default/views/scripts/index/index.phtml | 242 ++++-------------- .../default/views/scripts/sanji-footer.phtml | 48 ++-- .../default/views/scripts/sanji-header.phtml | 2 +- htdocs/static-sanji-v2/css/index.css | 14 +- htdocs/static-sanji-v2/html/video.html | 13 + 7 files changed, 111 insertions(+), 216 deletions(-) create mode 100644 htdocs/static-sanji-v2/html/video.html diff --git a/application/default/controllers/IndexController.php b/application/default/controllers/IndexController.php index 96ff39f6..47d29fbf 100755 --- a/application/default/controllers/IndexController.php +++ b/application/default/controllers/IndexController.php @@ -35,10 +35,10 @@ class IndexController extends Zend_Controller_Action $sql="select * from datafeature order by id desc"; $this->view->feature=$this->db->fetchRow($sql); //下载最多数据(top 5) - $sql="select uuid,title,id from normalmetadata where id in (select m.id from normalmetadata m left join dataorder d on m.uuid=d.uuid group by m.id order by count(d.uuid) desc limit 5)"; + $sql="select uuid,title,id from normalmetadata where id in (select m.id from normalmetadata m left join dataorder d on m.uuid=d.uuid group by m.id order by count(d.uuid) desc limit 8)"; $this->db->setFetchMode(Zend_Db::FETCH_OBJ); $this->view->mdtop=$this->db->fetchAll($sql); - $sql="select uuid,title,id from normalmetadata where id in (select m.id from normalmetadata m left join dataorder d on m.uuid=d.uuid group by m.id order by id desc limit 5)"; + $sql="select uuid,title,id from normalmetadata where id in (select m.id from normalmetadata m left join dataorder d on m.uuid=d.uuid group by m.id order by id desc limit 8)"; $this->view->offlinemdtop=$this->db->fetchAll($sql); $sql="select m.uuid,m.title,m.id,m.description from normalmetadata m left join thumbnail t on m.id=t.id where length(t.data)>2 order by random()"; $this->view->mdrandom=$this->db->fetchRow($sql); diff --git a/application/default/views/scripts/index/index-back.phtml b/application/default/views/scripts/index/index-back.phtml index df523c31..c4dba1f4 100755 --- a/application/default/views/scripts/index/index-back.phtml +++ b/application/default/views/scripts/index/index-back.phtml @@ -265,10 +265,10 @@ 元数据  metanum; ?>
  • - 在线数据  onlinesize/1000,2,'.',''); ?>GB + 在线数据  onlinesize / 1000,2,'.',''); ?>GB
  • - 总数据  onlinesize+$this->offlinesize)/1000,2,'.',''); ?>GB + 总数据  onlinesize + $this->offlinesize)/1000,2,'.',''); ?>GB
  • 总注册用户  usernum; ?>人 diff --git a/application/default/views/scripts/index/index.phtml b/application/default/views/scripts/index/index.phtml index cc6bc2b5..bc9ac5eb 100755 --- a/application/default/views/scripts/index/index.phtml +++ b/application/default/views/scripts/index/index.phtml @@ -1,17 +1,23 @@ @@ -110,29 +116,29 @@ @@ -168,11 +174,11 @@ @@ -188,90 +194,21 @@ @@ -283,21 +220,21 @@
    - + @@ -307,57 +244,57 @@
    diff --git a/application/default/views/scripts/sanji-footer.phtml b/application/default/views/scripts/sanji-footer.phtml index fc9ed390..588b2395 100755 --- a/application/default/views/scripts/sanji-footer.phtml +++ b/application/default/views/scripts/sanji-footer.phtml @@ -1,15 +1,33 @@ - -pageID)) {?> - - -pageIn) { ?> - - \ No newline at end of file + + diff --git a/application/default/views/scripts/sanji-header.phtml b/application/default/views/scripts/sanji-header.phtml index f3860ba2..5fe1dfc9 100755 --- a/application/default/views/scripts/sanji-header.phtml +++ b/application/default/views/scripts/sanji-header.phtml @@ -9,7 +9,7 @@ - +