// ====================================\ @include_once('_dir.php'); // ====================================/ // ------------------------------------\ $args=str_replace("_","",$_GET["args"]); $nwsID=(int)$args; // print_r($_GET["args"]); // print_r($nwsID); // ------------------------------------/ // ------------------------------------\ @extract($tmp=@$sql_fetch_assoc(db_query( "select time,title,content,source from news where nwsID=$nwsID"))); // ------------------------------------/ if (!$tmp) $RedirectUrl="$SITE_ROOT/news.html"; $Meta['title']=$title; include_once("$ROOT_PATH/common/all_head.php"); ?> // ----------------------------------------------------------------------------\ $prevID=$nextID=0; if ($time) { $prevID=@$sql_result(db_query("select nwsID from news where time<$time or (time=$time and nwsID<$nwsID) order by time DESC,nwsID DESC limit 1"),0,0); $nextID=@$sql_result(db_query("select nwsID from news where time>$time or (time=$time and nwsID>$nwsID) order by time,nwsID limit 1"),0,0); } $time=@get_date_str($time); $title=to_html($title); $content=str_replace('<%BASE%>',$SITE_ROOT,$content); if ($source!='') $source="Source"; // ----------------------------------------------------------------------------/ ?>
= $time ?> | |
= $title ?> | |
= $content ?> | |
= $source ?> |
if ($prevID) echo "<<Previous"; ?> | | | News Index | | | if ($nextID) echo "Next>>"; ?> |