";
include "./include/class.FastTemplate.php";
//echo "class.FastTemplate.php.....OK
";
#************************************************************************
#設定輸出緩衝區
if ( (int) phpversion()>=4)
ob_start();
#************************************************************************
#定義常數<=改
define("dbType", "mysql"); #預設資料庫類型
define("dbServer", "localhost"); #預設伺服器名稱或IP
define("dbName", "present"); #預設資料庫名稱
define("dbUser", "sa"); #資料庫使用者
define("dbPswd", "as"); #密碼
#************************************************************************
#定義、初始化樣版物件<=改
//$tpl = new FastTemplate("./");
//echo "$tpl.....OK";
#************************************************************************
#定義Connection資訊,連結資料庫
$db = new DB; #建立DB物件
$db->dbType = dbType; #資料庫類型
$db->serverName = dbServer; #MySQL主機名稱
$db->dbName = dbName; #資料庫名稱
$db->dbUser = dbUser; #使用者名稱
$db->dbPswd = dbPswd; #使用者密碼
$db->dbPConn(); #連接資料庫主機
#************************************************************************
#使用者定義導覽圖示
/*
$db->picFirst = "";
$db->picPre = "";
$db->picNext = "";
$db->picLast = "";
$db->picAdd = "";
$db->picMod = "";
$db->picDel = "";
$db->picQry = "";
$db->picEmail = "";
$db->picChk = "";
$db->picFsh = "";
$db->picNull = "";
$db->picAddEquip = "";
$db->picAddAdmin = "";
$db->picViewSumm = "";
*/
?>x';
}
#####################################################################################################
#憪霈
if(!isset($action)) $action = "a";
if(!isset($classStr)) $classStr = "";
if($action == "m"){
$sqlstr = "SELECT * FROM announce WHERE SSN = '$SSN'";
//echo $sqlstr;
$rst = $db->dbQuery($sqlstr);
$rowP = $db->dbFetch($rst);
$begin_date = $rowP["begin_date"];
$end_date = $rowP["end_date"];
$classStr = $rowP["classification"];
}
if(!isset($end_date)) $end_date = "";
if(!isset($begin_date)){
$yy1 = date("Y");
$mm1 = date("m");
$dd1 = date("d");
//閮剖砍7憭
$days = 7;
$yy2 = date("Y",time()+3600*24*$days);
$mm2 = date("m",time()+3600*24*$days);
$dd2 = date("d",time()+3600*24*$days);
$begin_date = "";
}else{
$yy1 = substr($begin_date,0,4);
$mm1 = substr($begin_date,5,2);
$dd1 = substr($begin_date,8,2);
$yy2 = substr($end_date,0,4);
$mm2 = substr($end_date,5,2);
$dd2 = substr($end_date,8,2);
}
?>