高雄高商進修部

 
  您的位置首頁最新消息列表 > 公告內容  
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="
(1). ".urldecode($updname1)."
"; } if($updname2!="") { $updname.="
(2). ".urldecode($updname2)."
"; } if($updname3!="") { $updname.="
(3). ".urldecode($updname3)."
"; } } $NewsTypePic=""; $sql->disconnect(); ?>

觀看公告內容

公告主旨:
公告對象:
公告期間: 自 起至 止
公告內容:
附件檔案:
公告單位: 張貼時間:
相關訊息:
  最新消息  
  常用資訊  
  活動花絮 -  
  日曆  
getCurrentMonthView(); ?>
  到訪人次