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";
//==========================================================
//数据处理
//==========================================================
//保存修改的变量
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 "
$setSql";
$result= @mysqli_query($pubConn,$setSql);
echo mysqli_error($pubConn);
echo " ";
}
//==========================================================
//输出并显示数据
//==========================================================
$getSql = "SELECT *
FROM $tableName
WHERE hours='$hours' AND discount_id='$discount_id'";
if($DEBUG) echo "getSql=$getSql
";
$result=mysqli_query($pubConn,$getSql);
$rows = mysqli_fetch_array($result);
?>
";
echo "";
echo "| ";
echo "$strThisPage";
echo " | ";
echo " ";
echo " | ";
echo "
";
echo "";
adjust_title_tail();
adjust_content_head();
echo "
";
?>