public function edit()
 {
     $cate_tree = M("ShopCategory")->findAll();
     $cate_tree = D("ShopCategory")->toFormatTree($cate_tree, 'name', 'id', 'parent_id');
     $this->assign("cate_tree", $cate_tree);
     parent::edit();
 }
 public function edit()
 {
     $cate_tree = M("Ask")->findAll();
     $this->assign("cate_tree", $cate_tree);
     Cookie::set('_currentUrl_', NULL);
     parent::edit();
 }
示例#3
0
 public function edit()
 {
     $user_model = M("User");
     $sell_list = $user_model->where("user_sort=2")->field("id,username")->select();
     $this->assign('sell_list', $sell_list);
     parent::edit();
 }
 public function edit()
 {
     $cate_tree = M("Forum")->where()->findAll();
     $cate_tree = D("Forum")->toFormatTree($cate_tree, 'name', 'fid', 'parent_id');
     $this->assign("cate_tree", $cate_tree);
     Cookie::set('_currentUrl_', NULL);
     parent::edit();
 }
 public function edit()
 {
     $second_list = D("Second")->order('sort asc,sid asc')->findAll();
     $this->assign("second_list", $second_list);
     $city_list = D("Region")->where('parent_id = 0')->order('sort asc,id asc')->findAll();
     $this->assign("city_list", $city_list);
     Cookie::set('_currentUrl_', NULL);
     parent::edit();
 }
示例#6
0
 /**
  * 
  * 根据数据库中的数据生成js数组文件
  * @author Yumao <*****@*****.**>
  * @CreateDate: 2013-5-31 下午4:07:50
  */
 public function edit()
 {
     $webUrl = (require ROOT_PATH . '/App/Home/Conf/domain.php');
     $searchToolsSort = $this->getToolsSort();
     $this->assign('searchToolsSort', $searchToolsSort);
     // 把图片上传的路径分配到模版中
     $this->assign('picPath', $webUrl['ATTACHMENT_URL'] . "/searchToolsPic/");
     parent::edit();
 }
 public function edit()
 {
     $arr = Dir::getList(FANWE_ROOT . "/tpl/");
     foreach ($arr as $item) {
         if (strpos($item, '.') === FALSE) {
             $themes[] = $item;
         }
     }
     $adv = D("advPosition")->field("id,name")->findAll();
     $this->assign("adv", $adv);
     $this->assign("themes", $themes);
     parent::edit();
 }
 public function edit()
 {
     $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::edit();
 }
示例#9
0
 public function edit()
 {
     $type_list = M("WordType")->where('status = 1')->findAll();
     $this->assign("type_list", $type_list);
     parent::edit();
 }
示例#10
0
 public function edit()
 {
     $category_list = D("AlbumCategory")->order('sort asc,id asc')->findAll();
     $this->assign("category_list", $category_list);
     parent::edit();
 }
示例#11
0
 public function edit()
 {
     $this->groupClass = M("GroupClass")->where(array('status' => 1))->select();
     parent::edit();
 }
 public function edit()
 {
     Cookie::set('_currentUrl_', NULL);
     parent::edit();
 }
 public function edit()
 {
     $ap_list = M("AdvPosition")->where('status = 1')->findAll();
     $this->assign("ap_list", $ap_list);
     parent::edit();
 }