chengkun
2025-05-26 8f3df543230cd4403368b39b9bbe5726d11a0284
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?php
 
class admin_compay_controller extends adminCommon{
    function index_action(){
        $OrderM    =    $this -> MODEL('companyorder');
        $where    =    array();
        $urlarr['c']    =    $_GET['c'];
        $urlarr['page']    =    "{{page}}";
        $pageurl        =    Url($_GET['m'],$urlarr,'admin');
        $pageM    =    $this -> MODEL('page');
        $pages    =    $pageM -> pageList('company_pay',$where,$pageurl,$_GET['page']);
        if($pages['total'] > 0){
            $where['orderby']    =    'id';
            $where['limit']        =    $pages['limit'];
            $rows                =    $OrderM -> getPayList($where,array('utype'=>'admin'));
        }
        $this->yunset("rows",$rows);
        $this->yunset("headertitle","消费记录");
        $this->yuntpl(array('wapadmin/admin_compay'));
    }
 
    function del_action(){
        $OrderM    =    $this -> MODEL('companyorder');
        $delid    =    (int)$_GET['id'];
        $del    =    $OrderM -> delPay($delid);
        if($del){
            $this->layer_msg($del['msg'],$del['errcode'],$del['layertype'],$_SERVER['HTTP_REFERER']);
        }
    }
}
?>