//查询首页 if (!isset($dopost)) { $pv = new View(0); $pv->SetTemplet(MEMBERTEMPLET . "order_query.htm"); $pv->Display(); } if ($dopost == 'search') { //判断是否是从订单页跳转 if (!empty($_POST)) { $mobile = Helper_Archive::pregReplace($searchkey, 2); } if (empty($mobile)) { header("location:{$GLOBALS['cfg_basehost']}/member/query.php"); } $sql = "select * from sline_member_order where linktel='{$mobile}' and pid=0 order by addtime desc"; $dzorder = QueryOrder::getDzOrder($searchkey); $pv = new ListView(0); $pv->pagesize = 100; //分页条数. $pv->SetSql($sql); $pv->Fields['searchkey'] = $mobile; $pv->SetTemplet(MEMBERTEMPLET . "order_query.htm"); $pv->Display(); exit; } //在线支付 if ($dopost == 'payonline') { $order = Helper_Archive::getOrderInfo($orderid); if ($order['typeid'] != 2) { if (empty($order['dingjin'])) { $price = intval($order['dingnum']) * $order['price'] + intval($order['childnum']) * $order['childprice'] + intval($order['oldnum']) * $order['oldprice'];