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'; 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,15) 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); } $isvoice = ($cInfo && $cInfo['voice'] == 1); $iscomplete = $_GET['iscomplete']; if(!$iscomplete && !$_GET['code'] && $act == '') { header("Location: ?".$_SERVER['QUERY_STRING']."&iscomplete=1"); exit; } $payfee = floatval($_GET['payfee']); $code = trim($_GET['code']); $type = trim($_GET['type']); if($payfee > 0 && $code != '') { ?> 支付
支付
请输入要支付的金额
1
2
3
4
5
6
7
8
9
0
.
归零
确定
+
标签
消费记录
当前饭堂: 消费机: