Files
SRCMS/Application/Home/Controller/HallController.class.php
martinzhou2015 c1dc9cf28e SRCMS
SRCMS(轻响应)企业应急响应中心开发框架模版
2015-07-28 15:15:57 +08:00

32 lines
795 B
PHP

<?php
/**
* @author Zhou Yuyang <1009465756@qq.com> 2015-07-27
* @copyright ©2105-2018 SRCMS
* @homepage http://www.src.pw
* @version 1.0
*/
namespace Home\Controller;
use Think\Controller;
class HallController extends Controller{
public function index($key="")
{
if($key == ""){
$model = M('member');
}else{
$where['title'] = array('like',"%$key%");
$where['name'] = array('like',"%$key%");
$where['_logic'] = 'or';
$model = M('member')->where($where);
}
$user = $model->limit($Page->firstRow.','.$Page->listRows)->where($where)->order('jifen ASC')->where('type=1')->select();
$this->assign('user',getSortedCategory($user));
$this->display();
}
}