fix errors
This commit is contained in:
parent
4e59336d25
commit
3e9b768363
|
@ -10,6 +10,10 @@ class VisualController extends Zend_Controller_Action
|
|||
{
|
||||
$this->view->config = Zend_Registry::get('config');
|
||||
$this->db=Zend_Registry::get('db');
|
||||
$this->view->nav = array(
|
||||
array('link'=>'/','title'=>'<i class="icon-home"></i>'),
|
||||
array('link'=>'/data','title'=>$this->view->config->title->data),
|
||||
);
|
||||
|
||||
$auth = Zend_Auth::getInstance();
|
||||
if($auth->hasIdentity())
|
||||
|
|
|
@ -15,7 +15,7 @@ $this->theme->AppendPlus($this,'colorbox');
|
|||
<div class="mditem">
|
||||
<div class="thumb">
|
||||
<a href="/service/bigthumb/uuid/<?= $md['uuid'] ?>" class="colorbox">
|
||||
<img src="/service/thumb/id/<?php echo $md['id'];?>" />
|
||||
<img src="/service/thumb/uuid/<?php echo $md['uuid'];?>" />
|
||||
</a>
|
||||
</div>
|
||||
<h2><a href="/data/<?php echo $md['uuid']; ?>"><?php echo $this->escape($md['title']);?></a></h2>
|
||||
|
|
|
@ -8,6 +8,7 @@ $this->breadcrumb('<a href="/">首页</a>');
|
|||
$this->breadcrumb('<a href="/data">数据与服务</a>');
|
||||
$this->breadcrumb('数据可视化');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
$this->nav[] = array('link'=>"/data/visual",'title'=>'可视化数据列表');
|
||||
?>
|
||||
<div class="row">
|
||||
<div class="span12">
|
||||
|
|
|
@ -2,7 +2,7 @@ function extractPageName(hrefString)
|
|||
{
|
||||
var arr = hrefString.split('/');
|
||||
var result=(arr.length<3) ? hrefString : arr[3].toLowerCase();
|
||||
if (result=='water' || result=='heihe' || result=='glacier' || result=='yrnmr' || result=='hiwater') result='data';
|
||||
if (result=='visual' || result=='heihe') result='data';
|
||||
if (result=='admin' && arr.length>=4) result+="/"+arr[4];
|
||||
return result;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue