init web ems all
This commit is contained in:
79
wxc2_omc/account/tariffList/services.php
Executable file
79
wxc2_omc/account/tariffList/services.php
Executable file
@@ -0,0 +1,79 @@
|
||||
<?php
|
||||
/*********************************************************
|
||||
<20>ļ<EFBFBD>˵<EFBFBD><CBB5>:
|
||||
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5>:<3A>Ļ<DEB8><C4BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
|
||||
<20><><EFBFBD>ù<EFBFBD>ϵ:<3A><><EFBFBD><EFBFBD>:header.inc
|
||||
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:ʵ<>ָ<EFBFBD><D6B8><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ģ<EFBFBD><C4A3><EFBFBD><EFBFBD>ҳ<EFBFBD><D2B3>
|
||||
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5>:
|
||||
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD>:
|
||||
NO.1
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
ʱ<EFBFBD>䣺
|
||||
<EFBFBD><EFBFBD>˵<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
*********************************************************/
|
||||
require("../../inc/header.inc");
|
||||
$helpId = "2.2.3.3.5";
|
||||
$moneyPara = getMoneyPara(); //<2F><>ʾ<EFBFBD>Ļ<EFBFBD><C4BB>ҵ<EFBFBD>λ<EFBFBD><CEBB><EFBFBD><EFBFBD>С<EFBFBD><D0A1><EFBFBD>ҵ<EFBFBD>λ<EFBFBD>ı<EFBFBD><C4B1><EFBFBD>
|
||||
$ppsDb='PPS_DB';
|
||||
$tableName='comm_tariff';
|
||||
$strPageTitle=$strTitleConfiguration.$strTitleSpace."PPS".$strTitleSpace.$strCurrentTariff.$strTitleSpace."Multiple services";
|
||||
$sql="SELECT * FROM $tableName";
|
||||
//echo $sql,$bill_db;
|
||||
$result=mysqli_query($pubConn,$sql);
|
||||
$rows=mysqli_fetch_array($result);
|
||||
echo mysqli_error($pubConn);
|
||||
?>
|
||||
|
||||
<body>
|
||||
<?php
|
||||
echo "<table border=\"0\" width=\"100%\">";
|
||||
echo "<tr>";
|
||||
echo "<td width=\"50%\">";
|
||||
echo "$strPageTitle";
|
||||
echo "</td>";
|
||||
echo "<td width=\"50%\" align=\"right\">";
|
||||
showHelp($helpId);
|
||||
echo "</td>";
|
||||
echo "</tr>";
|
||||
echo "</table>";
|
||||
echo "<p></p>";
|
||||
|
||||
//û<>м<EFBFBD>¼ʱ<C2BC><CAB1><EFBFBD><EFBFBD>ʾ<EFBFBD><EFBFBD>¼<EFBFBD><C2BC>ʾ
|
||||
if(!$rows){
|
||||
echo "$strNotFindRecord";
|
||||
exit();
|
||||
}
|
||||
?>
|
||||
<table border="1" width="400" cellpadding="2" cellspacing="0" bordercolor="#666666" bordercolordark="#FFFFFF" bgcolor="#FFFFFF" >
|
||||
<?php
|
||||
echo "<tr bgcolor=\"#E6E6E6\">";
|
||||
echo "<td width=\"40%\">$strDescription</td>";
|
||||
echo "<td align =\"right\" width=\"30%\">$strTariffRentChargeAmount</td>";
|
||||
echo "<td align =\"right\" width=\"30%\">$strUnitChargingTimeSecond</td>";
|
||||
echo "</tr>";
|
||||
|
||||
$arr_description = array($strSMS,$strCallForwrd,$strRoaming,$strConferenceCall,$strCloseUserGroup);
|
||||
$arr_amount = array($rows[sm_charge_amount],$rows[cf_charge_amount],$rows[roaming_charge_amount],$rows[cc_charge_amount],$rows[cug_charge_amount]);
|
||||
$arr_unit = array("--",$rows[cf_charge_unit],$rows[roaming_charge_unit],$rows[cc_charge_unit],$rows[cug_charge_unit]);
|
||||
for ($i=0;$i<5;$i++){
|
||||
echo "<tr>";
|
||||
echo "<td>$arr_description[$i]</td>";
|
||||
if($moneyPara < 10){
|
||||
printf("<td align=\"right\">%5.0f</td>", $arr_amount[$i]/$moneyPara);
|
||||
}
|
||||
elseif($moneyPara < 100){
|
||||
printf("<td align=\"right\">%5.1f</td>", $arr_amount[$i]/$moneyPara);
|
||||
}
|
||||
else{
|
||||
printf("<td align=\"right\">%5.2f</td>", $arr_amount[$i]/$moneyPara);
|
||||
}
|
||||
//echo "<td>$arr_amount[$i]</td>";
|
||||
echo "<td align =\"right\">$arr_unit[$i]</td>";
|
||||
echo "</tr>";
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user