"; echo " "; echo ""; $result=mysql_query("SELECT * from news where NewsID='$id'"); while($row=mysql_fetch_object($result)){ echo " "; echo " "; echo " "; echo " "; echo " "; echo " "; echo " "; echo " "; echo " "; switch ($action) { case 'talkback': echo " "; echo " "; echo " "; echo " "; echo " "; echo " "; echo " "; echo " "; echo " "; echo ""; break; default: $new_view=$row->NewsView_ID+1; mysql_query("UPDATE news SET NewsView_ID='$new_view' where NewsID='$id'"); echo " "; echo " "; echo " "; echo " "; echo " "; echo " "; echo " "; echo " "; echo " "; echo " "; echo " "; echo " "; echo " "; echo " "; echo " "; echo " "; echo " "; echo " "; echo " "; echo " "; echo " "; echo " "; echo " "; echo " "; echo " "; if (session_is_registered("SessionID") && session_is_registered("UniqueID")) { $result=mysql_query("SELECT No from talkback where UniqueID='$UniqueID' and NewsID='$id'"); if (mysql_fetch_object($result)) { echo " "; echo " "; echo " "; echo " "; echo " "; } else { echo " "; echo " "; echo " "; echo "
".format_date($row->NewsDate)."View | $row->NewsView_IDRate | "; if ($row->NewsCount!='0') { if ($row->NewsRate/$row->NewsCount>=5) { echo "A"; } elseif ($row->NewsRate/$row->NewsCount>=4) { echo "B"; } elseif ($row->NewsRate/$row->NewsCount>=3) { echo "C"; } elseif ($row->NewsRate/$row->NewsCount>=2) { echo "D"; } else { echo "E"; } } else { echo "N/A"; } echo "Tanggapan Pembaca | "; $total_inbox_result = mysql_query("SELECT COUNT(*) AS Total_Inbox FROM talkback where NewsID='$id'"); $total_inbox=mysql_result($total_inbox_result,0,"Total_Inbox"); if ($total_inbox>0) { echo $total_inbox; } else { echo "N/A"; } echo "

$row->NewsSubj_ID

Tanggapan Pembaca atas berita ini
 
"; echo ""; $talkback_result=mysql_query("SELECT talkback.*, member.Name from talkback, member where NewsID='$id' and talkback.UniqueID=member.UniqueID and talkback.No='$idtalk'"); while($talkback_row=mysql_fetch_object($talkback_result)){ echo " "; echo " "; echo " "; echo " "; echo " "; echo " "; } echo " "; echo " "; echo "
$talkback_row->Content
$talkback_row->Name
Klik di sini untuk kembali ke berita
"; break; case 'rate': $new_rate=$current_rate+$Rate; $new_rate_count=$current_rate_count+1; mysql_query("UPDATE news SET NewsRate='$new_rate' where NewsID='$rate_id'"); mysql_query("UPDATE news SET NewsCount='$new_rate_count' where NewsID='$rate_id'"); echo "

Terima kasih Anda telah berpartisipasi untuk memberikan rating sehingga kami dapat melayani Anda dengan lebih baik lagi. Klik di sini untuk kembali ke berita

"; if (!$row->NewsImage=='') { echo "NewsImage\">"; } echo "
$row->NewsContent_ID
Ingin mengetahui lebih banyak lagi tentang topik ini?
 
"; echo ""; $query_array=explode(" ", $row->NewsSubj_ID); $query_num=(integer)count($query_array); if ($row->NewsSubj_ID<>'') { foreach ( $query_array as $each_keyword ) { $explore_result=mysql_query("SELECT NewsID, NewsDate, NewsSubj_ID from news where NewsSubj_ID like '%$each_keyword%' and NewsID<>'$row->NewsID' order by NewsDate desc limit 1"); while($explore_row=mysql_fetch_object($explore_result)){ echo " "; echo " "; echo " "; } } } echo "
 
Berikan Rating untuk Berita ini
"; echo ""; echo ""; echo ""; echo "NewsRate\">"; echo "NewsCount\">"; echo " "; echo " "; echo " "; echo " "; echo " "; echo " "; echo " "; echo " "; echo " "; echo " "; echo ""; echo "
Baik SekaliBaikCukupBurukBuruk Sekali
"; echo "
 
Anda telah memberikan tanggapan atas berita ini, terima kasih.
 
Berikan tanggapan kamu untuk berita ini
"; echo ""; echo " "; echo ""; echo ""; echo " "; echo " "; echo " "; echo " "; echo " "; echo " "; echo "
Nama Kamu
Pendapat kamu tentang berita ini :
$row->NewsSubj_ID