include('../config.php');
$obj_AntiHacker=new AntiHacker();
$topage=$obj_AntiHacker->AntiHack($_GET['topage']);
if(empty($topage)) $topage=1;
$num_of_rows_per_page=10;
//公告文章
$today=date("Y-m-d H:i:s");
$fields="n_sn,n_title,n_start_date";
$where1="WHERE n_type='1'
AND n_launch='1'
AND ( n_forever='1' OR ( n_start_date < '".$today."' AND n_end_date > '".$today."' ))";
$obj = new ReWrDb();
$obj->conn_db = $_SESSION['connR'];
$obj->int_rows_per_page = $num_of_rows_per_page;
$obj->str_orderby = "n_sort,n_start_date";
$obj->int_thispage = $topage;
$obj->str_sort = "desc";
$obj->SelectDb($fields,"news",NULL,$where1,1);
$arr_news=$obj->arr_db_rows;
?>
蔣故總統經國先生百年誕辰紀念
|
|
|
|
|
|
for($i=0;$i
".substr($arr_news[$i]['n_start_date'],0,10)." |
|
".countstrlen($arr_news[$i]['n_title'])." |
";
}
function countstrlen($str)
{
if(iconv_strlen($str,"utf-8")>36)
return iconv_substr($str,0,36,"utf-8")."...";
else
return $str;
}
?>
|
|
$obj->GetChangePages(NULL,NULL,2);?>
|
|
|
|
|
|
|
|
|
disconnsql();
?>