Files
web.ems/wxc2_omc/performance/smegCsta/smegCstaUp.php
agtuser 16a3fd1e1b init
2024-11-11 17:56:00 +08:00

66 lines
1.9 KiB
PHP
Executable File

<?php
require("../../inc/header.inc");
?>
<script language="JavaScript">
function page_refresh()
{
var sel_date=document.up_form.sel_date.value;
parent.smegCstaDown.location.href="smegCstaDown.php?sel_date="+sel_date;
}
</script>
<base target="smegCstaDown">
<body leftmargin="15" rightmargin="10" onload="javascript:adjust_frame('up');" onresize="javascript:adjust_frame('up');" style="overflow:hidden;overflow-x:hidden;overflow-y:hidden;">
<?php
//title
adjust_head_frame("up");
adjust_title_head_frame("up");
echo "<table id=\"table_up\" border=\"0\" width=\"100%\">";
echo "<tr>";
echo "<td width=\"50%\" align=\"left\">";
echo "$strTitlePerformance > $strSMSEG";
echo "</td>";
echo "<td width=\"50%\" align=\"right\">";
$helpId="3.9";
showHelp($helpId);
echo "</td>";
echo "</tr>";
echo "<tr>";
echo "<td width=\"50%\" align=\"left\">";
//date selection
echo "<form name=\"up_form\" action=\"smegCstaDown.php\" method=\"post\">";
$day0=date("Y-m-d",mktime(0,0,0,date("m"),date("d"),date("Y")));
$day1=date("Y-m-d",mktime(0,0,0,date("m"),date("d")-1,date("Y")));
$day2=date("Y-m-d",mktime(0,0,0,date("m"),date("d")-2,date("Y")));
$day3=date("Y-m-d",mktime(0,0,0,date("m"),date("d")-3,date("Y")));
$day4=date("Y-m-d",mktime(0,0,0,date("m"),date("d")-4,date("Y")));
$day5=date("Y-m-d",mktime(0,0,0,date("m"),date("d")-5,date("Y")));
$day6=date("Y-m-d",mktime(0,0,0,date("m"),date("d")-6,date("Y")));
echo "Date: <select name=\"sel_date\" onChange=\"javascript:page_refresh()\">";
for($i=0;$i<7;$i++)
{
if($i==$sel_date)
echo "<option selected value=$i>${day.$i}</option>";
else
echo "<option value=$i>${day.$i}</option>";
}
echo "</select>";
echo "</form>";
echo "</td>";
echo "<td width=\"50%\" align=\"right\">&nbsp;";
echo "</td>";
echo "</tr>";
echo "</table>";
adjust_title_tail_frame("up");
adjust_content_head_frame("up");
adjust_content_tail_frame("up");
?>