add observe page

This commit is contained in:
avene 2018-06-27 15:54:38 +08:00
parent 8ba677c3dc
commit 596d612374
3 changed files with 107 additions and 0 deletions

View File

@ -0,0 +1,33 @@
<?php
use Helpers\View as view;
class ObserveController extends Zend_Controller_Action
{
private $limit=10;
function __construct(Zend_Controller_Request_Abstract $request, Zend_Controller_Response_Abstract $response, array $invokeArgs = array())
{
parent::__construct($request, $response, $invokeArgs);
$this->_helper->layout->setLayout('layout-sanji');
}
function preDispatch()
{
$this->db=Zend_Registry::get('db');
$this->view->config = Zend_Registry::get('config');
$this->messenger=$this->_helper->getHelper('FlashMessenger');
$this->view->messages = $this->messenger->getMessages();
$this->view->theme = new Theme();
$this->view->main_nav_pageID = "data";
$this->view->nav = array(
array('link'=>'/','title'=>'首页'),
array('link'=>'/data','title'=>$this->view->config->title->data),
);
}
function indexAction()
{
}
}

View File

@ -0,0 +1,71 @@
<?php
$this->headTitle($this->config->title->site);
$this->headTitle('观测');
$this->headTitle()->setSeparator(' - ');
$auth = Zend_Auth::getInstance();
$this->headLink()->appendStylesheet('/static-sanjy-np/css/index.css');
?>
<!--三江源观测-->
<div class="container">
<div class="row">
<div class="col-md-3" style="padding-top: 20px;">
<ul class="list-group">
<li class="list-group-item">
<input type="checkbox" value="">
气温
</li>
<li class="list-group-item">
<input type="checkbox" value="">
相对温度
</li>
<li class="list-group-item">
<input type="checkbox">
水汽压
</li>
<li class="list-group-item">
<input type="checkbox">
平均风速
</li>
<li class="list-group-item">
<input type="checkbox">
大气压
</li>
<li class="list-group-item">
<input type="checkbox" value="">
天空长波辐射
</li>
<li class="list-group-item">
<input type="checkbox">
地面长波辐射
</li>
<li class="list-group-item">
<input type="checkbox">
平均净辐射
</li>
<li class="list-group-item">
<input type="checkbox">
平均土壤温度
</li>
<li class="list-group-item">
<input type="checkbox">
土壤含水量
</li>
<li class="list-group-item">
<input type="checkbox" value="">
总降雨量
</li>
<li class="list-group-item">
<input type="checkbox">
有效辐射平均
</li>
</ul>
</div>
<div class="col-md-9" style="padding-top: 20px;">
<div id="observe" style="height:493px; border: 1px solid #ddd"></div>
</div>
</div>
</div>
<script src="/static-sanjy-np/js/echarts.min.js"></script>
<script src="/static-sanjy-np/js/observe.js"></script>

View File

@ -39,6 +39,9 @@
<li>
<a href="/map">地图</a>
</li>
<li>
<a href="/observe">观测</a>
</li>
<li>
<a href="/archives/news/localnews">新闻动态</a>
</li>