Add("family_size", $row['family_size']); Add("monthly_income", $row['monthly_income']); Add("homeless", $row['homeless']); Add("financial_review", LWDate(substr($row['financial_review'], 0, 10))); Add("genericname1", $row['genericname1']); Add("genericval1", $row['genericval1']); Add("genericname2", $row['genericname2']); Add("genericval2", $row['genericval2']); Add("billing_note", $row['billing_note']); Add("hipaa_mail", $row['hipaa_mail']); Add("hipaa_voice", $row['hipaa_voice']); // Insurance Sections. // addInsurance($row, '1'); addInsurance($row, '2'); addInsurance($row, '3'); // Primary Care Physician Section. // if ($row['providerID']) { $query = "select id, fname, mname, lname from users where authorized = 1"; $query .= " AND id = " . $row['providerID']; $prow = sqlFetchArray(sqlStatement($query)); OpenTag("pcp"); Add("id", $prow['id']); Add("lname", $prow['lname']); Add("fname", $prow['fname']); Add("mname", $prow['mname']); CloseTag("pcp"); } // Employer Section. //
if (intval($priceinfo['number']) != -1 && intval($priceinfo['number']) < $total_dingnum) { echo 'nonumber'; exit; } $linktel = Helper_Archive::pregReplace($linktel, 2); $arr = array('ordersn' => $ordersn, 'webid' => $webid, 'typeid' => $typeid, 'productautoid' => $productautoid, 'productaid' => $productaid, 'productname' => $productname, 'price' => $priceinfo['adultprice'], 'childprice' => $priceinfo['childprice'], 'oldprice' => $priceinfo['oldprice'], 'usedate' => $usedate, 'dingnum' => Helper_Archive::pregReplace($adultnum, 2), 'childnum' => Helper_Archive::pregReplace($childnum, 2), 'oldnum' => Helper_Archive::pregReplace($oldnum, 2), 'linkman' => Helper_Archive::pregReplace($linkman, 5), 'linktel' => Helper_Archive::pregReplace($linktel, 2), 'linkemail' => Helper_Archive::pregReplace($linkemail, 5), 'jifentprice' => Helper_Archive::pregReplace($jifentprice, 2), 'jifenbook' => Helper_Archive::pregReplace($jifenbook, 2), 'jifencomment' => Helper_Archive::pregReplace($jifencomment, 2), 'addtime' => time(), 'memberid' => $memberid, 'dingjin' => Helper_Archive::pregReplace($dingjin, 2), 'paytype' => $suitinfo['paytype'], 'suitid' => $suitid, 'usejifen' => $usejifen, 'needjifen' => $needjifen, 'roombalance' => $roombalance, 'roombalancenum' => $roombalancenum, 'status' => $status, 'remark' => Helper_Archive::pregReplace($remarkinfo, 5), 'tourer' => $tourer); $price = $arr['price']; $remark = $arr['remark']; $dingnum = $arr['dingnum']; $childnum = $arr['childnum']; if (Helper_Archive::addOrder($arr)) { $model = new CommonModule('#@__member_order'); $orderid = $model->getField('id', "ordersn='{$ordersn}'"); //判断是否开启在线支付且不是二次确认付款 if ($insurance) { addInsurance($insurance, $ordersn, $dingnum, $memberid, $_POST['usedate'], $_POST['lineday'], $tourer); } if (!empty($choosepay) && $suitinfo['paytype'] != '3' && $choosepay != '6') { $url = $GLOBALS['cfg_basehost'] . '/lines/booking.php?dopost=payonline&id=' . $orderid . '&paytype=' . $choosepay; } else { //$url = "{$GLOBALS['cfg_basehost']}/lines/show_{$arr['productaid']}.html"; $url = "{$GLOBALS['cfg_basehost']}/member/query.php?dopost=search&mobile={$linktel}"; } if ($cfg_lineEmail != '') { $mailto = $cfg_lineEmail; } else { $mailto = $cfg_Email139; } $title = $linename . "线路订单"; $content = $linkman . "预定" . $usedate . $productname . "(成团报价:" . $price . ")" . "旅游线路,成人数:" . $dingnum . "人" . ";儿童数:" . $childnum . "人;联系电话:" . $linktel . ";联系邮箱:" . $linkemail . "留言:" . $remark . "-----" . $GLOBALS['cfg_webname']; if (!empty($mailto)) {