9.2-10.2
This commit is contained in:
@@ -14,6 +14,9 @@ NO.1
|
||||
<EFBFBD><EFBFBD>˵<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
*********************************************************/
|
||||
require("../../inc/header.inc");
|
||||
$record_id=$_REQUEST['record_id'];
|
||||
$mode=$_REQUEST['mode'];
|
||||
$tariffID=$_REQUEST['tariffID'];
|
||||
?>
|
||||
<body leftmargin="15" rightmargin="10" onload="javascript:adjust();" onresize="javascript:adjust();" style="overflow:hidden;overflow-x:hidden;overflow-y:hidden;">
|
||||
|
||||
@@ -28,7 +31,18 @@ adjust_title_head();
|
||||
//==========================================================
|
||||
$ppsDb ='PPS_DB';
|
||||
$tableName ='pre_vas_mms_retrieve_tariff';
|
||||
global $pubConn,$OMC_server;
|
||||
$srcDataConn = mysqli_connect($OMC_server[0]['host'],$OMC_server[0]['user'],$OMC_server[0]['password'], $ppsDb);
|
||||
|
||||
$prefix=$_REQUEST['prefix']?$_REQUEST['prefix']:'';
|
||||
$call_type=isset($_REQUEST['call_type']) ?$_REQUEST['call_type']:'DEFAULT';
|
||||
$discount_id=$_REQUEST['discount_id']?$_REQUEST['discount_id']:'DEFAULT';
|
||||
$dest_name=$_REQUEST['dest_name']?$_REQUEST['dest_name']:'DEFAULT';
|
||||
$charge_fee=$_REQUEST['charge_fee']?$_REQUEST['charge_fee']:'DEFAULT';
|
||||
|
||||
$listPageURL = "mttariff.php?keep_id=1&return_tariff_id=$tariffID";
|
||||
|
||||
|
||||
$moneyPara = getMoneyPara(); //<2F><>ʾ<EFBFBD>Ļ<EFBFBD><C4BB>ҵ<EFBFBD>λ<EFBFBD><CEBB><EFBFBD><EFBFBD>С<EFBFBD><D0A1><EFBFBD>ҵ<EFBFBD>λ<EFBFBD>ı<EFBFBD><C4B1><EFBFBD>
|
||||
$strPageTitle=$strTitleAdvanced.$strTitleSpace."PPS".$strTitleSpace."Tariff plan".$strTitleSpace."MMS Retrieve";
|
||||
$arr_mode=array("edit","add");
|
||||
@@ -48,18 +62,18 @@ if($DEBUG) echo "<br>record_id=$record_id";
|
||||
//<2F><><EFBFBD>ݴ<EFBFBD><DDB4><EFBFBD>
|
||||
//==========================================================
|
||||
//<2F><><EFBFBD><EFBFBD><EFBFBD>ĵı<C4B5><C4B1><EFBFBD>
|
||||
if(strlen($set) > 0){
|
||||
if(strlen($_REQUEST['set']) > 0){
|
||||
if ($mode == "edit"){
|
||||
$setSql="UPDATE $tableName
|
||||
SET prefix= '$prefix',
|
||||
call_type= '$call_type',
|
||||
dest_name= '$dest_name',
|
||||
discount_id = '$discount_id',
|
||||
charge_fee = '$charge_fee'
|
||||
dest_name= $dest_name,
|
||||
discount_id = $discount_id,
|
||||
charge_fee = $charge_fee
|
||||
WHERE mms_retrieve_id='$record_id' AND tariff_id='$tariffID'";
|
||||
if($DEBUG) echo "<br>$setSql";
|
||||
$result= @mysqli_query($pubConn,$setSql);
|
||||
echo mysqli_error($pubConn);
|
||||
if(0) echo "<br>$setSql";
|
||||
$result= @mysqli_query($srcDataConn,$setSql);
|
||||
echo mysqli_error($srcDataConn);
|
||||
if($DEBUG) exit();
|
||||
echo " <meta http-equiv=\"refresh\" content=\"0; url=$listPageURL\"> ";
|
||||
}
|
||||
@@ -71,11 +85,11 @@ if(strlen($set) > 0){
|
||||
$getEditSql="SELECT tariff_id,mms_retrieve_id,prefix,call_type,dest_name,discount_id,charge_fee,cap_flag
|
||||
FROM $tableName
|
||||
WHERE mms_retrieve_id='$record_id' AND tariff_id='$tariffID'";
|
||||
if($DEBUG)
|
||||
if(0)
|
||||
echo "<br>$getEditSql";
|
||||
$resultEdit= @mysqli_query($pubConn,$getEditSql);
|
||||
$resultEdit= @mysqli_query($srcDataConn,$getEditSql);
|
||||
$rows= @mysqli_fetch_array($resultEdit);
|
||||
echo mysqli_error($pubConn);
|
||||
echo mysqli_error($srcDataConn);
|
||||
?>
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user