include('../system/aogconfig.php');
if (!(isset($yr) && $yr!="")) {
require_once("$aog_path/system/aogconfig.php");
$yr=$sch_yr;
}
$conn = mysql_connect("$aog_host","$aog_user","$aog_pass");
mysql_select_db ('aog2003', $conn);
$dbname="monthlyreport".$yr;
$backimage="monthlyreport".$yr.".jpg";
?>
require("../system/grid/baaGrid.php");
$queryString="SELECT DAYOFMONTH(evDate), evName from ".$dbname." WHERE MONTH(evDate)='$mo' ORDER BY evDate DESC";
$grid=new baaGrid ($queryString, DB_MYSQL);
$grid->canEdit=0;
$grid->setHeadings("日,內容");
$grid->setTableAttr('border="1" cellspacing="1" width="100%" ');
$grid->setRowClass('RowOverOdd,RowOverEven');
$amonth = array("","一","二","三","四","五","六","七","八","九","十","十一","十二");
$reportname=$amonth[$mo]."月份簡報";
switch($mo){
case 9:
case 1:
case 5:
case 12:
case 4:
case 8:
$bandname="1";
break;
case 10:
case 2:
case 6:
$bandname="2";
break;
case 11:
case 3:
case 7:
$bandname="3";
break;
}
?>
if (mysql_num_rows($grid->_query())>0) { ?>
} elseif ($mo>0 && $mo<13) { ?>
} ?>