Files
SRCMS/Application/Home/Controller/IndexController.class.php
Martin Zhou 684da35950 SRCMS V2 开发版
唯一的改变就是万变,重新定义安全应急响应中心。
2017-02-03 12:34:39 +08:00

30 lines
644 B
PHP

<?php
/**
* @Author: Zhou Yuyang <1009465756@qq.com> 10:28 2017/02/02
* @Copyright 2015-2020 SISMO
* @Project homepage https://github.com/CNSISMO
* @Version 2.0
*/
namespace Home\Controller;
use Think\Controller;
class IndexController extends Controller{
public function index(){
$model = M('hall');
$tmodel= M('setting');
$amodel = M('page');
$title = $tmodel->where('id=1')->select();
$hall = $model->order('id DESC')->select();
$advisories = $amodel -> select();
$this->assign('model', $hall);
$this->assign('title', $title);
$this->assign('advisories', $advisories);
$this->display();
}
}