chengkun
2025-05-23 a6f7b382623096b6a00924f418447cf5204e825e
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
32
33
34
35
36
37
38
39
40
<?php
 
class paylog_controller extends train
{
    function index_action(){
 
        $CompanyOrderM        =    $this->MODEL('companyorder');
 
        include(CONFIG_PATH."db.data.php");
        $this->yunset("arr_data",$arr_data);
        
        $where['com_id']    =    $this->uid;
        $where['usertype']    =    $this->usertype;
 
        $urlarr['c']        =    "paylog";
        $urlarr['page']        =    "{{page}}";
        $pageurl            =    Url('member',$urlarr);
        $pageM                =    $this  -> MODEL('page');
        $pages                =    $pageM -> pageList('company_pay',$where,$pageurl,$_GET['page']);
        
        $where['limit']        =    $pages['limit'];
        $where['orderby']    =    array('pay_time,desc');
        $rows    =    $CompanyOrderM->getPayList($where);
 
        if(is_array($rows)){
 
            foreach($rows as $k=>$v){
 
                $rows[$k]['order_price']    =    floatval($v['order_price']);
                $rows[$k]['pay_time']        =    date("Y-m-d H:i:s",$v['pay_time']);
            }
        }
        $this->yunset("rows",$rows);
        $this->yunset("ordertype","ok");
        
        $this->train_satic();
        $this->train_tpl('paylog');
    }
}
?>