Files
web.ems/wxc2_omc/account/tariffList/holidayTariffList.php
agtuser 16a3fd1e1b init
2024-11-11 17:56:00 +08:00

85 lines
2.2 KiB
PHP
Executable File
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
/*********************************************************
文件说明:
功能说明:节假日列表
调用关系:调用:header.inc
被调用:实现各个功能模块的页面
变量说明:
作者:
NO.1
姓名Cui Ticun
时间2004-04-13
修改说明Support OMC7.0
*********************************************************/
require("../../inc/header.inc");
$helpId = "2.2.3.4";
$ppsDb='PPS_DB';
$objDbConn = mysqli_connect($OMC_server[0]['host'],$OMC_server[0]['user'],$OMC_server[0]['password'],$ppsDb);
$tableName='bill_holiday';
$arr_mode=array("edit","add");
$strThisPage=$strTitleAccount.$strTitleSpace.$strCurrentTariff.$strTitleSpace.$strHoliday;
$sql="SELECT *
FROM $tableName
ORDER BY 'month','day'";
$result=mysqli_query($objDbConn,$sql);
$rows=mysqli_fetch_array($result);
?>
<body leftmargin="15" rightmargin="10" onload="javascript:adjust();" onresize="javascript:adjust();" style="overflow:hidden;overflow-x:hidden;overflow-y:hidden;">
<?php
adjust_head();
adjust_title_head();
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\" title=\"Help\">";
showHelp($helpId);
echo "</td>";
echo "</tr>";
echo "</table>";
adjust_title_tail();
adjust_content_head();
echo "<br>";
/*
//没有纪录时,显示无记录提示
if(!$rows){
echo "$strNotFindRecord";
exit();
}
*/
?>
<table border="1" width="400" cellpadding="2" cellspacing="0" bordercolor="#666666" bordercolordark="#FFFFFF" bgcolor="#FFFFFF" >
<tr bgcolor="#E6E6E6">
<td align="center" width="40%"><?php echo $strDate; ?>(mm-dd)</td>
<td align="center" width="60%"><?php echo $strDescription; ?></td>
</tr>
<?php
$i=0;
do
{
echo "<tr>";
$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 "<td align=\"center\">$showDate</td>";
echo "<td align=\"center\">$rows[name]</td>";
echo "</tr>";
$i++;
}while($rows=mysqli_fetch_array($result));
?>
</table>
<?php
adjust_content_tail();
?>
</body>
</html>