chengkun
2025-04-27 1158f672536ba406cc4bef68aed19a6c05483ab4
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<?php
 
class right_controller extends lietou{
    function index_action(){
 
        $sy_only_price  =   @explode(',',$this->config['sy_only_price']);
        if (in_array('vip', $sy_only_price)){
            $this->yunset('meal',1);
        }
 
        $ratingM    =    $this->MODEL('rating');
        
        $where['display']        =    '1';
        $where['category']        =    '2';
        $where['type']            =    '1';
        $where['service_price']    =    array('>', 0);
        $where['orderby']        =    array('type,asc', 'sort,asc');
        
        $rows        =    $ratingM->getList($where,array('coupon'=>1));
        
        $this->public_action();
        $this->yunset("rows",$rows);
        $this->yunset("class","29");
        $this->lietou_tpl('member_right');
    }
    function time_action(){
 
        $sy_only_price  =   @explode(',',$this->config['sy_only_price']);
        if (in_array('vip', $sy_only_price)){
            $this->yunset('meal',1);
        }
 
        $ratingM    =    $this->MODEL('rating');
        
        $where['display']        =    '1';
        $where['category']        =    '2';
        $where['type']            =    '2';
        $where['service_price']    =    array('>', 0);
        $where['orderby']        =    array('type,asc', 'sort,asc');
        
        $rows        =    $ratingM->getList($where,array('coupon'=>1));
        
        $this->public_action();
        $this->yunset("rows",$rows);
        $this->yunset("class","29");
        $this->lietou_tpl('member_time');
    }
    function added_action(){
        $lietouM    =    $this->MODEL('lietou');
        $ratingM    =    $this->MODEL('rating');
        
        $rows        =    $lietouM->getLtserviceList(array('display'=>'1','orderby'=>'id,desc'));
        
        $id            =    intval($_GET['id']);
        
        if ($id){
            
            $info    =    $lietouM->getLtservicedetailList(array('type'=>$id,'orderby'=>'service_price,asc'));
            
        }else{
            
            $row    =    $lietouM->getLtserviceInfo(array('display'=>'1'),array('field'=>'id'));
            
            $info    =    $lietouM->getLtservicedetailList(array('type'=>$row['id'],'orderby'=>'service_price,asc'));
            
        }
        
        $statis        =    $lietouM->getLtStatisInfo(array('uid'=>$this->uid));
        
        if ($statis){
            $rating        =    $statis['rating'];
            $discount    =    $ratingM->getInfo(array('id'=>$rating));
            $this->yunset("discount",$discount);
        }
        
        $this->public_action();
        $this->yunset("statis",$statis);
        $this->yunset("info",$info);
        $this->yunset("rows",$rows);
        $this->lietou_tpl('added');
    }
}
?>