diff --git a/application/admin/controllers/UserController.php b/application/admin/controllers/UserController.php index 88cc57de..ac292f4c 100755 --- a/application/admin/controllers/UserController.php +++ b/application/admin/controllers/UserController.php @@ -24,7 +24,7 @@ class Admin_UserController extends Zend_Controller_Action $uq=$this->db->query($sql); $row=$uq->fetch(); - $sqlt="select count(id) as total from users where usertype='administrator'"; + $sqlt="select count(id) as total from users where usertype='{$this->view->config->auth->identifier}'"; $uqt=$this->db->query($sqlt); $adminrow=$uqt->fetch(); diff --git a/application/admin/views/scripts/data/visual.phtml b/application/admin/views/scripts/data/visual.phtml index caccb88b..4f6c9dc0 100644 --- a/application/admin/views/scripts/data/visual.phtml +++ b/application/admin/views/scripts/data/visual.phtml @@ -27,7 +27,8 @@

操作: - 编辑可视化要素 + 编辑可视化要素 | + 前台预览

diff --git a/application/default/views/scripts/visual/view.phtml b/application/default/views/scripts/visual/view.phtml index 88700d7c..95252c2b 100644 --- a/application/default/views/scripts/visual/view.phtml +++ b/application/default/views/scripts/visual/view.phtml @@ -1,106 +1,123 @@ -headTitle($this->config->title->site); -$this->headTitle($this->config->title->data); -$this->headTitle()->setSeparator(' - '); -$theme = new Theme; -$theme->appendPlus($this,'highstock'); -$this->breadcrumb('首页'); -$this->breadcrumb('数据与服务'); -$this->breadcrumb('数据可视化'); -$this->breadcrumb()->setSeparator(' > '); -?> -
-
-

info['title'] ?> 数据可视化查看

-

请在需要查看的可视化要素上点击以描绘图表,再次点击可取消显示

-
- - normaldecode($this->data['vars']);?> - $v) { ?> - - - - - -
- - -
-
- - 清除图像 - -
- -
- \ No newline at end of file