id=$id"; //========================================================== //数据处理 //========================================================== //保存修改的变量 if(strlen($_POST['set']) > 0){ echo "$mode"; if ($mode == "edit"){ $setSql="UPDATE $tableName SET prefix= '$prefix', call_type= '$call_type', area= '$area', discount_id= '$discount_id', charge_amount = '$charge_amount', cap_flag = '$cap_flag' WHERE id='$id' AND tariff_id='$tariffID'"; if($DEBUG) echo "
$setSql"; $result= @mysqli_query($srcDataConn,$setSql); echo mysqli_error($srcDataConn); if($DEBUG) exit(); echo " "; } } //========================================================== //输出并显示数据 //========================================================== $getEditSql="SELECT id,prefix,call_type,area,discount_id,charge_amount,cap_flag FROM $tableName WHERE id='$id' AND tariff_id='$tariffID'"; //if($DEBUG) echo "
$getEditSql"; $resultEdit= @mysqli_query($srcDataConn,$getEditSql); $rows= @mysqli_fetch_array($resultEdit); echo mysqli_error($srcDataConn); $getAddSql="SELECT id FROM $tableName"; //if($DEBUG) echo "
$getEditSql"; $resultAdd= @mysqli_query($srcDataConn,$getAddSql); $rowsAdd= @mysqli_fetch_array($resultAdd); echo mysqli_error($srcDataConn); ?> "; echo ""; echo ""; echo "$strPageTitle"; echo ""; echo " "; echo ""; echo ""; echo ""; adjust_title_tail(); adjust_content_head(); echo "
"; ?> "; echo ""; echo ""; echo ""; $return_tariff_id = $rows[tariff_id]; //定义返回时的页面 echo ""; if(1 == $id){ echo ""; echo ""; echo ""; echo ""; echo ""; $arr_CallType = array("Local call out","NDD","IDD"); echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; }else{ echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; $call_type=$rows[call_type]-0; $arr_CallType = array("Local call out","NDD","IDD"); $length = sizeof($arr_CallType); echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; } echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; $cap_flag_value=$rows[cap_flag]+0; $cap_flag_label=array(0=>"Disable",1=>"Home PLMN SM",2=>"Other Network SM"); echo ""; echo ""; echo ""; echo ""; } ?>
$strTariffRentID$id
$strChargingPrefix
Call type
$strCountryDistrict
$strChargingPrefix
Call type"; echo ""; echo "
$strCountryDistrict
$strDiscountID
$strTariffRentChargeAmount $moneyPara 
$strTariffRentCapFlag"; echo ""; echo "