100 lines
3.0 KiB
PHP
Executable File
100 lines
3.0 KiB
PHP
Executable File
<?php
|
|
/*********************************************************
|
|
程序说明:
|
|
功能说明:
|
|
|
|
调用关系:调用: header.inc
|
|
被调用:
|
|
|
|
变量说明:
|
|
|
|
作者:
|
|
|
|
修改注释:
|
|
NO.1
|
|
姓名:谢华
|
|
时间:2003-04-09
|
|
修改说明:用于OMC_V65
|
|
*********************************************************/
|
|
require("../../inc/header.inc");
|
|
$DEBUG=0;
|
|
$helpId = "3.1.2";
|
|
?>
|
|
<base target="main">
|
|
<body leftmargin="15" rightmargin="10" onload="javascript:adjust_frame('up');" onresize="javascript:adjust_frame('up');" style="overflow:hidden;overflow-x:hidden;overflow-y:hidden;">
|
|
<form method="POST" action="weeklyReportDown.php" name="QueryForm" >
|
|
<?php
|
|
adjust_head_frame("up");
|
|
adjust_title_head_frame("up");
|
|
$today_date = date("Y-m-d");
|
|
echo "<table id=\"table_up\" border=\"0\" width=\"100%\">";
|
|
echo "<tr>";
|
|
echo "<td width=\"50%\">";
|
|
echo "$strTitlePerformance $strTitleSpace PPS report > Weekly report";
|
|
echo "</td>";
|
|
echo "<td width=\"50%\" align=\"right\" title=\"Help\">";
|
|
showHelp($helpId);
|
|
echo "</td>";
|
|
echo "</tr>";
|
|
echo "<tr>";
|
|
echo "<td align=\"left\">";
|
|
|
|
$newyear =date("Y",mktime(0,0,0,date("m"),date("d")-1,date("Y")));
|
|
$newmon =date("m",mktime(0,0,0,date("m"),date("d")-1,date("Y")));
|
|
$newday =date("d",mktime(0,0,0,date("m"),date("d")-1,date("Y")));
|
|
$oldyear =date("Y",mktime(0,0,0,date("m"),date("d")-1,date("Y")-1));
|
|
/*
|
|
$year=date("Y")."-".date("m")."-".date("d");
|
|
if($DEBUG) echo "$year<br>";
|
|
|
|
$thisFebDays=date("t",mktime(0,0,0,2,1,date("Y")));
|
|
if ($thisFebDays == 28)
|
|
$thisYearDays = 365;
|
|
else
|
|
$thisYearDays = 366;
|
|
if($DEBUG) echo "thisYearDays=$thisYearDays,thisFebDays=$thisFebDays<br>";
|
|
*/
|
|
$firstw =date("w",mktime(0,1,0,1,1,date("Y")));
|
|
$lastDayNumber = date("z",mktime(0,0,0,date("m"),date("d")-1,date("Y")))+1;
|
|
$lastWeekNumber = floor(($lastDayNumber-(7-$firstw)) / 7)+1;
|
|
if ($DEBUG) echo "firstw = $firstw,";
|
|
if ($DEBUG) echo "lastDayNumber=$lastDayNumber,";
|
|
if ($DEBUG) echo "lastWeekNumber=$lastWeekNumber<br>";
|
|
//--Year--
|
|
echo "<select size=\"1\" name=\"query_year\">";
|
|
echo "<option value=\"$newyear\">$newyear</option>";
|
|
echo "<option value=\"$oldyear\" >$oldyear</option>";
|
|
echo "</select>$strYear  ";
|
|
|
|
//--Week--
|
|
echo "<select size=\"1\" name=\"query_week\">";
|
|
for($i=1;$i<53;$i++){
|
|
$m=($i<10?"0":"").$i;
|
|
if($i!=$lastWeekNumber){
|
|
echo "<option value=\"$m\">$m</option>";
|
|
}else{
|
|
echo "<option value=\"$m\" selected>$m</option>";
|
|
}
|
|
}
|
|
echo "</select>$strWeek ";
|
|
|
|
?>
|
|
|
|
<span onClick="javascript:document.QueryForm.submit();" style="cursor:hand">
|
|
<IMG align=absBottom border=0 src="../../images/search.gif" ><?php echo "$strSearch"; ?>
|
|
</span>
|
|
|
|
<?php
|
|
echo "</td>";
|
|
echo "<td align=\"right\"> ";
|
|
echo "</td>";
|
|
echo "</tr>";
|
|
echo "</table>";
|
|
echo "</form>";
|
|
adjust_title_tail_frame("up");
|
|
adjust_content_head_frame("up");
|
|
adjust_content_tail_frame("up");
|
|
?>
|
|
|
|
</body>
|
|
</html>
|