You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
1.1 KiB
PHTML
49 lines
1.1 KiB
PHTML
2 years ago
|
<?php
|
||
|
/**
|
||
|
* Created by PhpStorm.
|
||
|
* User: xmy 280564871@qq.com
|
||
|
* Date: 2017/4/26
|
||
|
* Time: 16:24
|
||
|
*/
|
||
|
namespace Open\Controller;
|
||
|
|
||
|
use Open\Model\DocumentModel;
|
||
|
|
||
|
class NoticeController extends BaseController{
|
||
|
|
||
|
public function _initialize()
|
||
|
{
|
||
|
$this->assign("title_head","notice");
|
||
|
parent::_initialize(); // TODO: Change the autogenerated stub
|
||
|
}
|
||
|
|
||
|
public function index($p=1){
|
||
|
$model = new DocumentModel();
|
||
|
$data = $model->getNotice($p);
|
||
|
$this->showPage($data['count']);
|
||
|
$this->assign("data",$data['data']);
|
||
|
$this->display();
|
||
|
}
|
||
|
|
||
|
public function notice($p=1){
|
||
|
$model = new DocumentModel();
|
||
|
$data = $model->getArticleListsByCategory('open_notice',$p);
|
||
|
$this->showPage($data['count']);
|
||
|
$this->assign("data",$data['data']);
|
||
|
$this->display('index');
|
||
|
}
|
||
|
|
||
|
public function inform($p=1){
|
||
|
$model = new DocumentModel();
|
||
|
$data = $model->getArticleListsByCategory('open_inform',$p);
|
||
|
$this->assign("data",$data['data']);
|
||
|
$this->display('index');
|
||
|
}
|
||
|
|
||
|
public function detail($id){
|
||
|
$model = new DocumentModel();
|
||
|
$data = $model->getDetail($id);
|
||
|
$this->assign("data",$data);
|
||
|
$this->display();
|
||
|
}
|
||
|
}
|