<?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']);
|
}
|
}
|
}
|
?>
|