init web ems all
This commit is contained in:
148
wxc2_omc/account/tariffPlan/tariffDiscountEdit.php
Executable file
148
wxc2_omc/account/tariffPlan/tariffDiscountEdit.php
Executable file
@@ -0,0 +1,148 @@
|
||||
<?php
|
||||
/*********************************************************
|
||||
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD>
|
||||
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD><EFBFBD>б<EFBFBD><D0B1><EFBFBD>ʾ<EFBFBD>ۿ۱<DBBF><DBB1><EFBFBD>Ϣ
|
||||
|
||||
<20><><EFBFBD>ù<EFBFBD>ϵ<EFBFBD><CFB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: header.inc
|
||||
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:
|
||||
|
||||
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD>
|
||||
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD>:
|
||||
|
||||
<EFBFBD><EFBFBD>ע<EFBFBD>ͣ<EFBFBD>
|
||||
NO.1
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD>: Lilong
|
||||
ʱ<EFBFBD>䣺2004-4-13
|
||||
<EFBFBD><EFBFBD>˵<EFBFBD><EFBFBD>: support 16 discount ID.
|
||||
*********************************************************/
|
||||
require("../../inc/header.inc");
|
||||
?>
|
||||
<body leftmargin="15" rightmargin="10" onload="javascript:adjust();" onresize="javascript:adjust();" style="overflow:hidden;overflow-x:hidden;overflow-y:hidden;">
|
||||
|
||||
<?
|
||||
adjust_head();
|
||||
adjust_title_head();
|
||||
$DEBUG = 0;
|
||||
|
||||
$ppsDb='PPS_DB';
|
||||
$tableName='pre_bill_discount';
|
||||
$listPageURL = "tariffDiscount.php?discount_id=$discount_id";
|
||||
$strThisPage=$strTitleAdvanced.$strTitleSpace."Tariff plan".$strTitleSpace."Discount";
|
||||
|
||||
//==========================================================
|
||||
//<2F><><EFBFBD>ݴ<EFBFBD><DDB4><EFBFBD>
|
||||
//==========================================================
|
||||
//<2F><><EFBFBD><EFBFBD><EFBFBD>ĵı<C4B5><C4B1><EFBFBD>
|
||||
if(strlen($set)>0){
|
||||
$setSql="UPDATE $tableName
|
||||
SET mon = '$mon',
|
||||
tue = '$tue',
|
||||
wed = '$wed',
|
||||
thu = '$thu',
|
||||
fri = '$fri',
|
||||
sat = '$sat',
|
||||
sun = '$sun',
|
||||
holiday = '$holiday'
|
||||
WHERE hours = '$hours' AND discount_id='$discount_id'";
|
||||
if($DEBUG) echo "<br>$setSql";
|
||||
$result= @mysqli_query($pubConn,$setSql);
|
||||
echo mysqli_error($pubConn);
|
||||
echo " <meta http-equiv=\"refresh\" content=\"0; url=$listPageURL\"> ";
|
||||
}
|
||||
|
||||
//==========================================================
|
||||
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʾ<EFBFBD><CABE><EFBFBD><EFBFBD>
|
||||
//==========================================================
|
||||
$getSql = "SELECT *
|
||||
FROM $tableName
|
||||
WHERE hours='$hours' AND discount_id='$discount_id'";
|
||||
if($DEBUG) echo "getSql=$getSql<br>";
|
||||
$result=mysqli_query($pubConn,$getSql);
|
||||
$rows = mysqli_fetch_array($result);
|
||||
?>
|
||||
|
||||
|
||||
<?php
|
||||
echo "<table id=\"table_up\" border=\"0\" width=\"100%\">";
|
||||
echo "<tr>";
|
||||
echo "<td width=\"50%\">";
|
||||
echo "$strThisPage";
|
||||
echo "</td>";
|
||||
echo "<td width=\"50%\" align=\"right\"> ";
|
||||
|
||||
echo "</td>";
|
||||
echo "</tr>";
|
||||
echo "</table>";
|
||||
|
||||
adjust_title_tail();
|
||||
adjust_content_head();
|
||||
echo "<br>";
|
||||
?>
|
||||
|
||||
<form name="editform" action="<?php echo"$PHP_SELF?hours=$hours&discount_id=$discount_id"; ?>" method="POST">
|
||||
<table border="1" width="100%" cellpadding="2" cellspacing="0" bordercolor="#666666" bordercolordark="#FFFFFF" bgcolor="#FFFFFF" >
|
||||
<tbody>
|
||||
<tr bgcolor="#E6E6E6">
|
||||
<td align="center" colspan="9">
|
||||
<?php echo "Edit Discount ( ID: $discount_id ) "; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr bgcolor="#E6E6E6">
|
||||
<td align="center"><?php echo "$strTariffDiscountTimeSection"; ?></td>
|
||||
<td align="center"><?php echo $strMonday; ?></td>
|
||||
<td align="center"><?php echo $strTuesday; ?></td>
|
||||
<td align="center"><?php echo $strWednesday; ?></td>
|
||||
<td align="center"><?php echo $strThursday; ?></td>
|
||||
<td align="center"><?php echo $strFriday; ?></td>
|
||||
<td align="center"><?php echo $strSaturday; ?></td>
|
||||
<td align="center"><?php echo $strSunday; ?></td>
|
||||
<td align="center"><?php echo $strSpecialDay; ?></td>
|
||||
</tr>
|
||||
|
||||
<?php
|
||||
do
|
||||
{
|
||||
echo "<tr>";
|
||||
// $discount_id=$rows[discount_id];
|
||||
$hours=$rows[hours];
|
||||
if(strlen($hours) < 2) $hours='0'.$hours;
|
||||
if(strlen($hours+1) < 2)
|
||||
{
|
||||
$next_hours='0'.($hours+1);
|
||||
}
|
||||
else
|
||||
{
|
||||
$next_hours=$hours+1;
|
||||
}
|
||||
$holiday=change2point($rows[holiday]/100);
|
||||
echo "<td align=center>$hours:00:00 - $next_hours:00:00</td>";
|
||||
echo "<td><input type=\"text\" name=\"mon\" size=\"3\" value=\"$rows[mon]\" class=\"text\" style=\"text-align: right;\"> /100 </td>";
|
||||
echo "<td><input type=\"text\" name=\"tue\" size=\"3\" value=\"$rows[tue]\" class=\"text\" style=\"text-align: right;\"> /100 </td>";
|
||||
echo "<td><input type=\"text\" name=\"wed\" size=\"3\" value=\"$rows[wed]\" class=\"text\" style=\"text-align: right;\"> /100 </td>";
|
||||
echo "<td><input type=\"text\" name=\"thu\" size=\"3\" value=\"$rows[thu]\" class=\"text\" style=\"text-align: right;\"> /100 </td>";
|
||||
echo "<td><input type=\"text\" name=\"fri\" size=\"3\" value=\"$rows[fri]\" class=\"text\" style=\"text-align: right;\"> /100 </td>";
|
||||
echo "<td><input type=\"text\" name=\"sat\" size=\"3\" value=\"$rows[sat]\" class=\"text\" style=\"text-align: right;\"> /100 </td>";
|
||||
echo "<td><input type=\"text\" name=\"sun\" size=\"3\" value=\"$rows[sun]\" class=\"text\" style=\"text-align: right;\"> /100 </td>";
|
||||
echo "<td><input type=\"text\" name=\"holiday\" size=\"3\" value=\"$rows[holiday]\" class=\"text\" style=\"text-align: right;\"> /100 </td>";
|
||||
echo "</tr>";
|
||||
}
|
||||
while($rows = @mysqli_fetch_array($result));
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
<table width="400">
|
||||
<tr>
|
||||
<td>
|
||||
<input type="submit" name="set" value="Set" style="width:40" class="button">
|
||||
<input type="reset" name="reset" value="Reset" class="button">
|
||||
<input type="button" name="return" value="Return" onclick=jacascript:location.href="./tariffDiscount.php?discount_id=<?php echo "$discount_id"; ?>" class="button">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<?php
|
||||
adjust_content_tail();
|
||||
?>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user