/**
  * 配置管理
  * @author 麦当苗儿 <*****@*****.**>
  */
 public function index()
 {
     /* 查询条件初始化 */
     $map = array();
     $map = array('status' => 1, 'title' => array('neq', ''));
     if (isset($_GET['group']) && ($_GET['group'] = trim($_GET['group'])) && is_numeric($_GET['group'])) {
         $map['group'] = $_GET['group'];
     }
     if (isset($_GET['name']) && ($_GET['name'] = trim($_GET['name']))) {
         Base::genSearchSql($map, $_GET['name'], 'name,title');
         //$map['name|title'] = array('like', '%' . addcslashes($_GET['name'], '_%') . '%');
     }
     $list = $this->lists('Config', $map, 'sort,id');
     // 记录当前列表页的cookie
     Cookie('__forward__', $_SERVER['REQUEST_URI']);
     $this->assign('group', C('CONFIG_GROUP_LIST'));
     $this->assign('group_id', I('get.group', 0));
     $this->assign('list', $list);
     $this->meta_title = '配置管理';
     $this->display();
 }
 protected function _initialize()
 {
     parent::_initialize();
 }
Example #3
0
 protected function _initialize()
 {
     parent::_initialize();
     $this->appModel = M('sso_app');
 }