當前位置: 首頁>>代碼示例>>PHP>>正文


PHP CommonAction::add方法代碼示例

本文整理匯總了PHP中CommonAction::add方法的典型用法代碼示例。如果您正苦於以下問題:PHP CommonAction::add方法的具體用法?PHP CommonAction::add怎麽用?PHP CommonAction::add使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在CommonAction的用法示例。


在下文中一共展示了CommonAction::add方法的14個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: add

 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();
 }
開發者ID:dalinhuang,項目名稱:concourse,代碼行數:7,代碼來源:ForumAction.class.php

示例2: add

 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();
 }
開發者ID:dalinhuang,項目名稱:concourse,代碼行數:7,代碼來源:ShopAction.class.php

示例3: add

 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();
 }
開發者ID:dalinhuang,項目名稱:concourse,代碼行數:7,代碼來源:NavAction.class.php

示例4: add

 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();
 }
開發者ID:qiuai,項目名稱:tools,代碼行數:10,代碼來源:ProvinceAdvAction.class.php

示例5: 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();
 }
開發者ID:dalinhuang,項目名稱:concourse,代碼行數:13,代碼來源:AdvLayoutAction.class.php

示例6: 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();
 }
開發者ID:dalinhuang,項目名稱:concourse,代碼行數:13,代碼來源:AdvPositionAction.class.php

示例7: add

 public function add()
 {
     $type_list = M("WordType")->where('status = 1')->findAll();
     $this->assign("type_list", $type_list);
     parent::add();
 }
開發者ID:dalinhuang,項目名稱:concourse,代碼行數:6,代碼來源:WordAction.class.php

示例8: add

 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();
     }
 }
開發者ID:uwitec,項目名稱:p-oa,代碼行數:25,代碼來源:MenuAction.class.php

示例9: 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();
 }
開發者ID:BGCX261,項目名稱:zhubao-tupu-svn-to-git,代碼行數:6,代碼來源:MSearchcateAction.class.php

示例10: 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();
 }
開發者ID:dalinhuang,項目名稱:concourse,代碼行數:6,代碼來源:ShopCategoryAction.class.php

示例11: add

 public function add()
 {
     $ap_list = M("AdvPosition")->where('status = 1')->findAll();
     $this->assign("ap_list", $ap_list);
     parent::add();
 }
開發者ID:BGCX261,項目名稱:zhubao-tupu-svn-to-git,代碼行數:6,代碼來源:AdvAction.class.php

示例12: add

 public function add()
 {
     $user_groups = D("UserGroup")->where('status = 1')->findAll();
     $this->assign("user_groups", $user_groups);
     parent::add();
 }
開發者ID:dalinhuang,項目名稱:concourse,代碼行數:6,代碼來源:MedalAction.class.php

示例13: add

 public function add()
 {
     parent::add();
 }
開發者ID:dalinhuang,項目名稱:concourse,代碼行數:4,代碼來源:AskAction.class.php

示例14: add

 /**
  * add方法
  * (non-PHPdoc)
  * @see CommonAction::add()
  */
 public function add()
 {
     $searchToolsSort = $this->getToolsSort();
     $this->assign('searchToolsSort', $searchToolsSort);
     parent::add();
 }
開發者ID:qiuai,項目名稱:tools,代碼行數:11,代碼來源:SearchToolsAction.class.php


注:本文中的CommonAction::add方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。