Пример #1
0
 public function add()
 {
     $this->assign("newsort", M(MODULE_NAME)->max("sort") + 1);
     $cate_tree = M("Forum")->where('parent_id = 0')->order('sort asc,fid asc')->findAll();
     $this->assign("cate_tree", $cate_tree);
     parent::add();
 }
Пример #2
0
 public function add()
 {
     $cate_tree = M("ShopCategory")->findAll();
     $cate_tree = D("ShopCategory")->toFormatTree($cate_tree, 'name', 'id', 'parent_id');
     $this->assign("cate_tree", $cate_tree);
     parent::add();
 }
Пример #3
0
 public function add()
 {
     $cate_list = D('NavCategory')->where('status = 1')->order('sort ASC,id ASC')->findAll();
     $cate_list = D('NavCategory')->toFormatTree($cate_list, 'name', 'id');
     $this->assign("cate_list", $cate_list);
     parent::add();
 }
Пример #4
0
 public function add()
 {
     $ap_list = M("ProvinceAdvPosition")->where('status = 1')->select();
     $this->assign("ap_list", $ap_list);
     // 设置省份列表
     $region = $this->getRegion('', $this->provinceIds);
     //var_dump($region);
     $this->assign("regionList", $region);
     parent::add();
 }
 public function add()
 {
     $arr = Dir::getList(FANWE_ROOT . "/tpl/");
     foreach ($arr as $item) {
         if (strpos($item, '.') === FALSE) {
             $themes[] = $item;
         }
     }
     $this->assign("themes", $themes);
     $adv = D("advPosition")->field("id,name")->findAll();
     $this->assign("adv", $adv);
     parent::add();
 }
 public function add()
 {
     $adflashdir = FANWE_ROOT . "public/adflash/";
     $adflashlist = new Dir($adflashdir);
     $adflashs = array();
     foreach ($adflashlist as $adflash) {
         if ($adflash['ext'] == "swf") {
             $adflashs[] = str_replace(".swf", "", $adflash['filename']);
         }
     }
     $this->assign('adflashs', $adflashs);
     parent::add();
 }
Пример #7
0
 public function add()
 {
     $type_list = M("WordType")->where('status = 1')->findAll();
     $this->assign("type_list", $type_list);
     parent::add();
 }
Пример #8
0
 public function add()
 {
     $db_menu = M('menu');
     if ($this->_post('act') == 'todo') {
         $info = $this->_post();
         $info['role_id'] = '[1][2]';
         $rs = $db_menu->data($info)->add();
         if ($rs) {
             $this->success('操作成功!');
         } else {
             $this->error('操作失败!');
         }
     } else {
         $db_role = M('role');
         $list_role = $db_role->where("status=1")->select();
         $info = $db_menu->where("id='{$this->_get('parent_id')}'")->find();
         //显示出应用,供选择
         $db_node = M('node');
         $list_control_app = $db_node->where("status=1 AND level=1")->select();
         $this->assign('list_control_app', $list_control_app);
         $this->assign('info', $info);
         $this->assign('list_role', $list_role);
         parent::add();
     }
 }
 public function add()
 {
     $cate_list = D("AlbumCategory")->where('status = 1')->field('id,name')->order('sort ASC,id ASC')->findAll();
     $this->assign("cate_list", $cate_list);
     parent::add();
 }
 public function add()
 {
     $cate_tree = D("ShopCategory")->where('parent_id = 0')->order('sort asc,id asc')->findAll();
     $this->assign("cate_tree", $cate_tree);
     parent::add();
 }
 public function add()
 {
     $ap_list = M("AdvPosition")->where('status = 1')->findAll();
     $this->assign("ap_list", $ap_list);
     parent::add();
 }
Пример #12
0
 public function add()
 {
     $user_groups = D("UserGroup")->where('status = 1')->findAll();
     $this->assign("user_groups", $user_groups);
     parent::add();
 }
Пример #13
0
 public function add()
 {
     parent::add();
 }
Пример #14
0
 /**
  * add方法
  * (non-PHPdoc)
  * @see CommonAction::add()
  */
 public function add()
 {
     $searchToolsSort = $this->getToolsSort();
     $this->assign('searchToolsSort', $searchToolsSort);
     parent::add();
 }