You've already forked qlg.tsgz.moe
							
							
		
			
				
	
	
		
			60 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			PHP
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			60 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			PHP
		
	
	
		
			Executable File
		
	
	
	
	
| <?php
 | |
| namespace wstmart\admin\controller;
 | |
| use wstmart\admin\model\UserRanks as M;
 | |
| /**
 | |
|  * ============================================================================
 | |
|  * 会员等级控制器
 | |
|  */
 | |
| class Userranks extends Base{
 | |
| 	
 | |
|     public function index(){
 | |
|     	return $this->fetch("list");
 | |
|     }
 | |
|     /**
 | |
|      * 获取分页
 | |
|      */
 | |
|     public function pageQuery(){
 | |
|         $m = new M();
 | |
|         return WSTGrid($m->pageQuery());
 | |
|     }
 | |
|     /**
 | |
|      * 跳去编辑页面
 | |
|      */
 | |
|     public function toEdit(){
 | |
|         $m = new M();
 | |
|         $assign = ['data'=>$this->get(),
 | |
|                    'object'=>$m->getById((int)Input("post.id"))];
 | |
|         return $this->fetch("edit",$assign);
 | |
|     }
 | |
|     /*
 | |
|     * 获取数据
 | |
|     */
 | |
|     public function get(){
 | |
|         $m = new M();
 | |
|         return $m->getById((int)Input("id"));
 | |
|     }
 | |
|     /**
 | |
|      * 新增
 | |
|      */
 | |
|     public function add(){
 | |
|         $m = new M();
 | |
|         return $m->add();
 | |
|     }
 | |
|     /**
 | |
|     * 修改
 | |
|     */
 | |
|     public function edit(){
 | |
|         $m = new M();
 | |
|         return $m->edit();
 | |
|     }
 | |
|     /**
 | |
|      * 删除
 | |
|      */
 | |
|     public function del(){
 | |
|         $m = new M();
 | |
|         return $m->del();
 | |
|     }
 | |
| 
 | |
|     
 | |
| }
 |