include("calendar.php");
include("common.inc.php");
include_once('./txtSQL.class.php');
# 將to_set.php檔案導入
require("setting.php");
# 開啟sub.dat的檔案
//$lines=file($NewsDataFile);
//$count=count($lines);
?>
$postid=$_GET['id'];
//date_default_timezone_set("Asia/Taipei");
$sql = new txtSQL('./txtSqlData');
$sql->connect($username,$password) or die("連接資料庫失敗!請聯繫管理員。") ;
$sql->selectdb('ksvcsNight');
$results=
$sql->execute('select',
array('where' => array('id = '.$postid),
'select' => array('id', 'IsHide','PostUnit','PostTime','NewsType','DateFrom','DateTo','forwho','upldfile1','upldfile2','upldfile3','posttxtfile','subject'),
'db' => 'ksvcsNight',
'table' => 'news',
'limit' => array($recFrom,$recEnd)));
foreach ( $results as $key => $row )
{
# 去除php中的斜線衝碼
$PostUnit=stripslashes($row[PostUnit]);
$forwho=stripslashes($row[forwho]);
$updname1=stripslashes($row[upldfile1]);
$updname2=stripslashes($row[upldfile2]);
$updname3=stripslashes($row[upldfile3]);
$NewsType=stripslashes($row[NewsType]);
$subject=stripslashes($row[subject]);
if (is_numeric($row[PostTime])) {
$PostTime=date("Y/m/d H:i:s",intval($row[PostTime]));
}
if (is_numeric($row[DateFrom])) {
$DateFrom=date("Y/m/d",intval($row[DateFrom]));
}
if (is_numeric($row[DateTo])) {
$DateTo=date("Y/m/d",intval($row[DateTo]));
}
$posttxtfile=$row[posttxtfile];
}
# 判斷$updname的值
if($updname1=="" && $updname2=="" && $updname3==""){
$updname="
沒有附件檔案";
}else{
if($updname1!="") {
$updname="
";
}
if($updname2!="") {
$updname.="
";
}
if($updname3!="") {
$updname.="
";
}
}
$NewsTypePic="

";
$sql->disconnect();
?>
觀看公告內容
| 公告主旨: |
|
| 公告對象: |
|
| 公告期間: |
自 起至 止 |
| 公告內容: |
| |
| 附件檔案: |
|
| 公告單位: |
|
張貼時間: |
|
require("newsListBox.php");?>
require("practicalLinkBox.php");?>
require("slideListBox.php");?>
// Construct a calendar to show the current month
$cal = new Calendar;
echo $cal->getCurrentMonthView();
?>
require("counter.php");?>