"> "Disable",1=>"Home PLMN Call",2=>"Other Network Call"); $sm_cap_flag_label=array(0=>"Disable",1=>"Home PLMN SM",2=>"Other Network SM"); //echo "
moneyPara = $moneyPara"; if($add_area){ echo " "; exit(); } //编辑后保持对应tariff_id的页面 if ($keep_id != 1){ $tariff_id=isset($tariff_id)?$tariff_id:'00'; } else {$tariff_id=$return_tariff_id;} if($DEBUG) {echo "
keep_id=$keep_id
tariff_id=$return_tariff_id
";} // $where=" WHERE tariff_id=$tariff_id "; //echo "
where=$where"; $str_sql ="SELECT count(*) FROM $table_name ".$where; //echo "
str_sql=$str_sql"; $result=mysqli_query($srcDataConn,$str_sql); $record = mysqli_fetch_array($result); $number_of_records = $record[0]; $order = " ORDER BY $sort_field $sort_direction "; $sel_sql ="SELECT * FROM $table_name ".$where.$order; //echo "
sel_sql=$sel_sql"; $result = @mysqli_query($srcDataConn,$sel_sql); $rows = @mysqli_fetch_array($result); echo mysqli_error($srcDataConn); ?> "; echo ""; echo ""; echo "$strThisPage"; echo ""; echo ""; showHelp($helpId); echo ""; echo ""; echo ""; echo " "; echo ""; echo ""; echo "$strResideZone: "; $maxCosSql = " SELECT pubVarValue FROM OMC_PUB.omcPubVarConf WHERE pubVarName = 'maxCOSNumber' "; $maxCosRes = @mysqli_query($pubConn,$maxCosSql); $maxCosRow = @mysqli_fetch_array($maxCosRes); $maxCosNum = $maxCosRow[pubVarValue]; echo ""; echo ""; echo ""; echo ""; adjust_title_tail(); adjust_content_head(); echo "
"; ?> MO basic tariff"; ?>
"; ?>

"; echo ""; echo "$strChargingPrefix"; echo "$strCountryDistrict"; echo "$strCallType"; echo "$strDiscountID"; echo "$strUnitChargingTimeSecond"; echo "$strFreeChargeUnit"; echo "$strMinimumChargingUnit"; //echo "$strBasicFee($moneyPara)"; //echo "$strBasicLongDistance($moneyPara)"; echo "$strBasicInitial($moneyPara)"; echo "$strTariffRentCapFlag"; echo "Tier Level"; echo "Tier0 Unit"; echo "$strBasicFee"; echo "$strBasicLongDistance"; echo "Tier1 Unit"; echo "$strBasicFee"; echo "$strBasicLongDistance"; echo "Tier2 Unit"; echo "$strBasicFee"; echo "$strBasicLongDistance"; echo ""; do{ echo ""; echo "$rows[bill_id]"; echo "$rows[area] "; if($rows[call_type]==0) echo "Local call out"; elseif($rows[call_type]==1) echo "NDD"; elseif($rows[call_type]==2) echo "IDD"; else echo "---"; echo "$rows[discount_id]"; echo "$rows[unit_time]"; echo "$rows[free_time]"; echo "$rows[mini_time]"; //echo "$rows[base_fee]"; //echo "$rows[long_distance_fee]"; echo "$rows[adjustment]"; echo "{$call_cap_flag_label[$rows[cap_flag]]}"; echo "$rows[tier_level]"; echo "$rows[tier_unit_0]"; echo "$rows[base_fee_0]"; echo "$rows[long_distance_fee_0]"; echo "$rows[tier_unit_1]"; echo "$rows[base_fee_1]"; echo "$rows[long_distance_fee_1]"; echo "$rows[tier_unit_2]"; echo "$rows[base_fee_2]"; echo "$rows[long_distance_fee_2]"; /* $base_fee=$rows[base_fee]/$moneyPara; if($moneyPara < 10){ printf("%5.0f",$base_fee); } elseif($moneyPara < 100){ printf("%5.1f",$base_fee); } else{ printf("%5.2f",$base_fee); } $long_distance_fee=$rows[long_distance_fee]/$moneyPara; if($moneyPara < 10){ printf("%5.0f", $long_distance_fee); } elseif($moneyPara < 100){ printf("%5.1f", $long_distance_fee); } else{ printf("%5.2f", $long_distance_fee); } $adjustment_fee=$rows[adjustment]/$moneyPara; if($moneyPara < 10){ printf("%5.0f", $adjustment_fee); } elseif($moneyPara < 100){ printf("%5.1f", $adjustment_fee); } else{ printf("%5.2f", $adjustment_fee); }*/ echo ""; }while($rows = mysqli_fetch_array($result)); } ?>
keep_id=$keep_id
tariff_id=$return_tariff_id
"; $sql="SELECT id,description,rent_type,charge_date,rent_amount FROM $table_name WHERE tariff_id=$tariff_id ORDER by id"; //echo $sql,$bill_db; $result=@mysqli_query($srcDataConn,$sql); $rows=@mysqli_fetch_array($result); echo mysqli_error($srcDataConn); echo ""; echo ""; echo ""; echo ""; echo "
"; echo "Rent"; echo "
"; echo "

"; ?> $strTariffRentID"; echo ""; echo ""; echo ""; echo ""; ?> "; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; } else{ echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; /*$rows[rent_amount] = $rows[rent_amount]/$moneyPara; if($moneyPara < 10){ printf("", $rows[rent_amount]); } elseif($moneyPara < 100){ printf("", $rows[rent_amount]); } else{ printf("", $rows[rent_amount]); }*/ echo ""; } }while($rows=mysqli_fetch_array($result)); } ?>
$strDescription$strTariffRentChargeType$strTariffRentChargeDate$strTariffRentChargeAmount($moneyPara)
$showi--------
$showi$rows[description]"; if($rows[rent_type]=='00'){ echo "$strTariffRentAccordingToDate"; }else{ echo "$strTariffRentAccordingToPeriod"; } echo ""; if($rows[rent_type]=='01'){ echo "$rows[charge_date]"; }else{ echo "--"; } echo "$rows[rent_amount]"; echo "%5.0f%5.1f%5.2f
keep_id=$keep_id
tariff_id=$return_tariff_id
";} $sql="SELECT id,prefix,call_type,area,discount_id,charge_amount,cap_flag FROM $table_name WHERE tariff_id=$tariff_id ORDER by id"; //echo $sql,$bill_db; $result=@mysqli_query($srcDataConn,$sql); $rows=@mysqli_fetch_array($result); echo mysqli_error($srcDataConn); ?>

"; echo ""; echo ""; echo "SMS"; echo ""; echo ""; echo ""; echo "

"; ?> $strTariffRentID"; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; ?> "; echo ""; if("" == $rows[prefix]){ $rows[prefix]="--"; } echo ""; if($rows[call_type]==0) echo ""; elseif($rows[call_type]==1) echo ""; elseif($rows[call_type]==2) echo ""; else echo ""; if ($rows[area] == ''){ $rows[area]='--'; } echo ""; echo ""; echo ""; echo ""; echo ""; /*$rows[charge_amount ] = $rows[charge_amount ]/$moneyPara; if($moneyPara < 10){ printf("", $rows[charge_amount]); } elseif($moneyPara < 100){ printf("", $rows[charge_amount]); } else{ printf("", $rows[charge_amount]); }*/ echo ""; }while($rows=mysqli_fetch_array($result)); } ?>
$strChargingPrefixCall type$strCountryDistrict$strDiscountID$strTariffRentChargeAmount($moneyPara)$strTariffRentCapFlag
$i $rows[prefix]Local call outNDDIDD--- $rows[area]$rows[discount_id]$rows[charge_amount]{$sm_cap_flag_label[$rows[cap_flag]]}%5.0f%5.1f%5.2f
keep_id=$keep_id
tariff_id=$return_tariff_id
";} $sql="SELECT record_id,dest_ip,charge_unit,basic_fee,min_charge_unit,initial_adjustment,cap_flag,discount_id FROM $table_name WHERE tariff_id=$tariff_id ORDER by record_id"; //echo $sql,$bill_db; $result=@mysqli_query($srcDataConn,$sql); $rows=@mysqli_fetch_array($result); echo mysqli_error($srcDataConn); ?>

"; echo ""; echo ""; echo "GPRS"; echo ""; echo ""; echo ""; echo "

"; ?> ID"; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; ?> "Disable",1=>"Enable"); if($rows && $result){ do{ $i++; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; }while($rows=mysqli_fetch_array($result)); } ?>
Dest IPCharge unit(KB)Basic feeMinimun charge unitInitial adjustmentCap FlagDiscount ID
{$rows[record_id]}{$rows[dest_ip]} {$rows[charge_unit]} {$rows[basic_fee]} {$rows[min_charge_unit]} {$rows[initial_adjustment]} {$gprs_cap_flag_label[$rows[cap_flag]]} {$rows[discount_id]} 
keep_id=$keep_id
tariff_id=$return_tariff_id
";} $sql="SELECT mms_send_id,mms_type,prefix,call_type,dest_name,discount_id,charge_fee,cap_flag FROM $table_name WHERE tariff_id=$tariff_id ORDER by mms_send_id"; //echo $sql,$bill_db; $result=@mysqli_query($srcDataConn,$sql); $rows=@mysqli_fetch_array($result); echo mysqli_error($srcDataConn); ?>

"; echo ""; echo ""; echo "MMS Send"; echo ""; echo ""; echo ""; echo "

"; ?> ID"; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; ?> "Disable",1=>"Enable"); $mms_type_label=array(1=>"To mobile",2=>"To email"); if($rows && $result){ do{ $i++; echo ""; echo ""; echo ""; if(trim($rows[prefix])=="") echo ""; else echo ""; if($rows[call_type]==0) echo ""; elseif($rows[call_type]==1) echo ""; elseif($rows[call_type]==2) echo ""; else echo ""; if(trim($rows[dest_name])=="") echo ""; else echo ""; echo ""; echo ""; echo ""; echo ""; }while($rows=mysqli_fetch_array($result)); } echo "
MMS typePrefixCall typeDest nameDiscount IDCharge feeCap flag
{$rows[mms_send_id]}{$mms_type_label[$rows[mms_type]]} --{$rows[prefix]} Local call outNDDIDD-----{$rows[dest_name]} {$rows[discount_id]} {$rows[charge_fee]} {$mms_send_cap_flag_label[$rows[cap_flag]]} 
"; ?> keep_id=$keep_id
tariff_id=$return_tariff_id
";} // $where=" WHERE tariff_id=$tariff_id "; $sql="SELECT * FROM $tableName".$where; //echo $sql,$bill_db; $result=@mysqli_query($srcDataConn,$sql); $rows=@mysqli_fetch_array($result); echo mysqli_error($srcDataConn); ?> setSql=$setSql"; mysqli_query($srcDataConn,$setSql); } echo ""; echo ""; echo ""; echo ""; echo "
"; echo "
Supplementary tariff
"; echo "
"; echo "

"; ?> "; echo ""; echo ""; echo ""; echo ""; /* $arr_editfieldAmount = array("cf_charge_amount","roaming_charge_amount","cc_charge_amount","cug_charge_amount","fav_charge_amount","fav_change_charge","cf_cug_charge_amount","cf_fav_charge_amount","cug_fav_charge_amount","cf_cug_fav_charge_amount"); $arr_editfieldUnit = array("cf_charge_unit","roaming_charge_unit","cc_charge_unit","cug_charge_unit","fav_charge_unit","","cf_cug_charge_unit","cf_fav_charge_unit","cug_fav_charge_unit","cf_cug_fav_charge_unit"); $arr_description = array($strCallForwrd,$strRoaming,$strConferenceCall,$strCloseUserGroup,$strFav_call,$strFav_listedtion,$strCf_Cug_call,$strCf_Fav_call,$strCug_Fav_call,$strCf_Cug_Fav_call); $arr_amount = array($rows[cf_charge_amount],$rows[roaming_charge_amount],$rows[cc_charge_amount],$rows[cug_charge_amount],$rows[fav_charge_amount],$rows[fav_change_charge],$rows[cf_cug_charge_amount],$rows[cf_fav_charge_amount],$rows[cug_fav_charge_amount],$rows[cf_cug_fav_charge_amount]); $arr_unit = array($rows[cf_charge_unit],$rows[roaming_charge_unit],$rows[cc_charge_unit],$rows[cug_charge_unit],$rows[fav_charge_unit],"----",$rows[cf_cug_charge_unit],$rows[cf_fav_charge_unit],$rows[cug_fav_charge_unit],$rows[cf_cug_fav_charge_unit]); */ $arr_editfieldAmount = array("cf_charge_amount","roaming_charge_amount","cc_charge_amount","cug_charge_amount","fav_charge_amount","fav_change_charge","cf_cug_charge_amount","cf_fav_charge_amount","cug_fav_charge_amount","cf_cug_fav_charge_amount","pool_account_change_charge","pool_call_amount","act_free_sms_charge","deact_free_sms_charge"); $arr_editfieldUnit = array("cf_charge_unit","roaming_charge_unit","cc_charge_unit","cug_charge_unit","fav_charge_unit","","cf_cug_charge_unit","cf_fav_charge_unit","cug_fav_charge_unit","cf_cug_fav_charge_unit","","pool_call_unit","",""); $arr_description = array($strCallForwrd,$strRoaming,$strConferenceCall,$strCloseUserGroup,$strFav_call,"Friends and family number change fee",$strCf_Cug_call,$strCf_Fav_call,$strCug_Fav_call,$strCf_Cug_Fav_call,"Pool account change fee","Pool call","Active free SMS charge","Deactive free SMS charge"); $arr_amount = array($rows[cf_charge_amount],$rows[roaming_charge_amount],$rows[cc_charge_amount],$rows[cug_charge_amount],$rows[fav_charge_amount],$rows[fav_change_charge],$rows[cf_cug_charge_amount],$rows[cf_fav_charge_amount],$rows[cug_fav_charge_amount],$rows[cf_cug_fav_charge_amount],$rows[pool_account_change_charge],$rows[pool_call_amount],$rows[act_free_sms_charge],$rows[deact_free_sms_charge]); $arr_unit = array($rows[cf_charge_unit],$rows[roaming_charge_unit],$rows[cc_charge_unit],$rows[cug_charge_unit],$rows[fav_charge_unit],"----",$rows[cf_cug_charge_unit],$rows[cf_fav_charge_unit],$rows[cug_fav_charge_unit],$rows[cf_cug_fav_charge_unit],"----",$rows[pool_call_unit],"----","----"); for ($i=0;$i<14;$i++){ echo ""; echo ""; echo ""; /*if($moneyPara < 10){ printf("", $arr_amount[$i]/$moneyPara); } elseif($moneyPara < 100){ printf("", $arr_amount[$i]/$moneyPara); } else{ printf("", $arr_amount[$i]/$moneyPara); }*/ echo ""; echo ""; echo $tariffID; } ?>
$strDescription$strTariffRentChargeAmount($moneyPara)$strUnitChargingTimeSecond
$arr_description[$i]$arr_amount[$i]%5.0f%5.1f%5.2f $arr_unit[$i]