本文整理匯總了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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例7: add
public function add()
{
$type_list = M("WordType")->where('status = 1')->findAll();
$this->assign("type_list", $type_list);
parent::add();
}
示例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();
}
}
示例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();
}
示例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();
}
示例11: add
public function add()
{
$ap_list = M("AdvPosition")->where('status = 1')->findAll();
$this->assign("ap_list", $ap_list);
parent::add();
}
示例12: add
public function add()
{
$user_groups = D("UserGroup")->where('status = 1')->findAll();
$this->assign("user_groups", $user_groups);
parent::add();
}
示例13: add
public function add()
{
parent::add();
}
示例14: add
/**
* add方法
* (non-PHPdoc)
* @see CommonAction::add()
*/
public function add()
{
$searchToolsSort = $this->getToolsSort();
$this->assign('searchToolsSort', $searchToolsSort);
parent::add();
}