";
echo "";
echo "| ";
echo "$strThisPage";
echo " | ";
echo "";
showHelp($helpId);
echo " | ";
echo "
";
echo "";
?>
$strTariffRentID";
echo "| $strDescription | ";
echo "$strTariffRentChargeType | ";
echo "$strTariffRentChargeDate | ";
echo "$strTariffRentChargeAmount | ";
?>
";
echo "$i | ";
echo "-- | ";
echo "-- | ";
echo "-- | ";
echo "-- | ";
echo "";
}
else{
echo "";
echo "| $i | ";
echo "$rows[description] | ";
echo "";
if($rows[rent_type]=='00'){
echo "$strTariffRentAccordingToDate";
}else{
echo "$strTariffRentAccordingToPeriod";
}
echo " | ";
echo "";
if($rows[rent_type]=='01'){
echo "$rows[charge_date]";
}else{
echo "--";
}
echo " | ";
$rows[rent_amount] = $rows[rent_amount]/$moneyPara;
if($moneyPara < 10){
printf("%5.0f | ", $rows[rent_amount]);
}
elseif($moneyPara < 100){
printf("%5.1f | ", $rows[rent_amount]);
}
else{
printf("%5.2f | ", $rows[rent_amount]);
}
}
}while($rows=mysqli_fetch_array($result));
}
?>
";
echo "| $strDescription | ";
echo "$strTariffRentChargeAmount | ";
echo "$strUnitChargingTimeSecond | ";
echo "";
$arr_editfieldAmount = array("cf_charge_amount","roaming_charge_amount","cc_charge_amount","cug_charge_amount","fav_charge_amount","fav_change_charge");
$arr_editfieldUnit = array("cf_charge_unit","roaming_charge_unit","cc_charge_unit","cug_charge_unit","fav_charge_unit","");
$arr_description = array($strCallForwrd,$strRoaming,$strConferenceCall,$strCloseUserGroup,$strFav_call,$strFav_listedtion);
$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]);
$arr_unit = array($rows[cf_charge_unit],$rows[roaming_charge_unit],$rows[cc_charge_unit],$rows[cug_charge_unit],$rows[fav_charge_unit],"----");
for ($i=0;$i<6;$i++){
echo "";
echo "| $arr_description[$i] | ";
if($moneyPara < 10){
printf("%5.0f | ", $arr_amount[$i]/$moneyPara);
}
elseif($moneyPara < 100){
printf("%5.1f | ", $arr_amount[$i]/$moneyPara);
}
else{
printf("%5.2f | ", $arr_amount[$i]/$moneyPara);
}
echo " $arr_unit[$i] | ";
echo "
";
echo $tariffID;
}
?>
|
|
|
|
|
|
|
|
|
";
$hours=$selRows[hours];
if(strlen($hours) < 2) $hours='0'.$hours;
if(strlen($hours+1) < 2){
$next_hours='0'.($hours+1);
}else{
$next_hours=$hours+1;
}
$mon=change2point($selRows[mon]/100);
$tue=change2point($selRows[tue]/100);
$wed=change2point($selRows[wed]/100);
$thu=change2point($selRows[thu]/100);
$fri=change2point($selRows[fri]/100);
$sat=change2point($selRows[sat]/100);
$sun=change2point($selRows[sun]/100);
$holiday=change2point($selRows[holiday]/100);
echo "$hours:00:00 - $next_hours:00:00 | ";
echo "$mon | ";
echo "$tue | ";
echo "$wed | ";
echo "$thu | ";
echo "$fri | ";
echo "$sat | ";
echo "$sun | ";
echo "$holiday | ";
echo "";
}while($selRows = @mysqli_fetch_array($selRes));
?>
";
echo "";
echo "";
echo " ";
echo "Holiday";
echo " ";
echo " | ";
echo "
";
echo "";
?>
| (mm-dd) |
|
";
$id=$rows[id];
$month=omc_keep_length($rows[month],0,2);
$day=omc_keep_length($rows[day],0,2);
$showDate=$month."-".$day;
$rows[name]=$rows[name]?$rows[name]:'--';
echo "$showDate | ";
echo "$rows[name] | ";
echo "";
$i++;
}while($rows=mysqli_fetch_array($result));
}
?>
";
if( FALSE == isset($discount_id) ){
$discount_id = 00;
}
//select current discount id details from TABLE "pre_bill_discount"
$selSql = "SELECT * FROM $tableName WHERE discount_id=$discount_id ORDER BY $order";
if($DEBUG) echo "selSql=$selSql
";
$selRes = mysqli_query($pubConn,$selSql);
$selRows = mysqli_fetch_array($selRes);
?>