require_once('../common/coonDB.php');
require_once('../common/setting.php');
require_once('../common/functions.php');
mysql_query('SET NAMES big5');
mysql_query('SET CHARACTER_SET_CLIENT=big5');
mysql_query('SET CHARACTER_SET_RESULTS=big5');
mysql_select_db($database_coonDB, $coonDB);
$query_Recordset1 = sprintf("SELECT * FROM news_data WHERE news_id = '%s'", $news_id );
$Recordset1 = mysql_query($query_Recordset1, $coonDB) or die(mysql_error());
$row_Recordset1 = mysql_fetch_assoc($Recordset1);
$all_Recordset1 = mysql_query($query_Recordset1);
$totalRows_Recordset1 = mysql_num_rows($all_Recordset1);
if( $totalRows_Recordset1 > 0 )
{
$news_id = $row_Recordset1['news_id'] ;
$news_vip = $row_Recordset1['news_vip'] ;
$news_time = $row_Recordset1['news_time'] ;
$news_type = $row_Recordset1['news_type'] ;
$news_title = $row_Recordset1['news_title'] ;
$news_file = $row_Recordset1['news_file'] ;
$news_content = $row_Recordset1['news_content'] ;
$news_content_type = $row_Recordset1['news_content_type'] ;
?>
|
|
|
|
公告主題 |
echo $news_title; ?> |
|
|
|
|
|
公告時間 |
echo $news_time; ?> |
|
|
|
|
|
if( $news_content_type == 0 )
//echo '
' . $news_content . ' ' ;
echo nl2br(htmlspecialchars($news_content));
else
echo $news_content;
?>
|
|
|
|
|
if( strlen($news_file) > 0 ) {
$file = $news_uploads_dir . $news_file ;
if (file_exists($file)) {
?>
|
公告附件 |
|
|
|
|
|
}
}
?>
|
|
|
} else {
echo '沒有該編號的公告
';
}
mysql_free_result($Recordset1);
?>