Esempio n. 1
0
 public function sortRule()
 {
     //读取规则列表
     $list = M('SeoRule')->where(array('status' => array('EGT', 0)))->order('sort asc')->select();
     //显示页面
     $builder = new AdminSortBuilder();
     $builder->title('排序SEO规则')->data($list)->buttonSubmit(U('doSortRule'))->buttonBack()->display();
 }
 public function sortForum()
 {
     //读取贴吧列表
     $list = M('Forum')->where(array('status' => array('EGT', 0)))->order('sort asc')->select();
     //显示页面
     $builder = new AdminSortBuilder();
     $builder->title('贴吧排序')->data($list)->buttonSubmit(U('doSortForum'))->buttonBack()->display();
 }
 /**
  * sortGroup 群组排序页面
  * @author:xjw129xjt xjt@ourstu.com
  */
 public function sortGroup($ids)
 {
     if (IS_POST) {
         $builder = new AdminSortBuilder();
         $builder->doSort('Group', $ids);
     } else {
         //读取群组列表
         $list = M('Group')->where(array('status' => array('EGT', 0)))->order('sort asc')->select();
         //显示页面
         $builder = new AdminSortBuilder();
         $builder->title('群组排序')->data($list)->buttonSubmit(U('sortGroup'))->buttonBack()->display();
     }
 }