get_one("select * from tb_dining_hall where id=".$ftid); if(!$ftInfo) { die("no ftid dining_hall!"); } $pay_values = $ftInfo['pay_values']; //价格标签 if(!$pay_values) $pay_values = '5,10,15'; $company_id = intval($ftInfo['company_id']); $companyInfo = $db->get_one("select * from tb_company where id=".$company_id); if($act == 'getToday') { if($channelid) { $cname = $db->get_colume("select channel_name from tb_pos_channel where dining_hall_id={$ftid} and id={$channelid}"); } $sum = $db->get_colume("select sum(recharge_amount) from tb_recharge where type in (6,12) and ftid={$ftid} and channel_id={$channelid} and record_datetime like '".date("Y-m-d")."%'"); if($cname) $s .= $cname.": "; $s .= "今日消费 ".abs(floatval($sum))." 元。"; echo json_encode(array('msg' => $s)); exit; } $cList = $db->get_all("select * from tb_pos_channel where dining_hall_id=".$ftid." and enabled=1 order by id"); if($channelid) { $cInfo = $db->get_one("select * from tb_pos_channel where id=".$channelid); } $iscomplete = $_GET['iscomplete']; if(!$iscomplete && !$_GET['code'] && $act == '') { header("Location: ?".$_SERVER['QUERY_STRING']."&iscomplete=1"); exit; } ?> 支付
请输入要支付的金额
1
2
3
4
5
6
7
8
9
0
.
归零
确定
切换
消费机
标签
当前饭堂: 消费机: