Execute($SQL_menu); if ($RS_menu->fields["newsid"] != "") { while (!$RS_menu->EOF) { echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; $RS_menu->MoveNext(); } } ?>
".$RS_menu->fields["newstitle".$language]."
 
 


 
  Execute($SQL); if ($RS->fields["newsid"] != "") { $total_jumlah_record = $RS->RecordCount(); $num = $total_jumlah_record ; $page = isset($_GET['page']) && intval($_GET['page']) >= 1 ? intval($_GET['page']):1; $perpage = 15; $param = ''; $pagination = paging($perpage, $num, $page, $param); $total_jumlah_page = ceil(($total_jumlah_record)/$conf["page"]); $teks_parameter = ""; if ($page != 0 ) { if ($page > $total_jumlah_page) $page=$total_jumlah_page; //$pagination = pagination($page, $total_jumlah_page, $teks_parameter); $SQL = 'SELECT * FROM modnews '.$add_search.' ORDER BY newsid DESC LIMIT '.$pagination['from'].', '.$perpage.''; $RS = $db->Execute($SQL); $i=0; while (!$RS->EOF) { $list_images[$i] = ''; if( $RS->fields["mainimagename"] != '' && file_exists('upload/thumb_'. $RS->fields["mainimagename"]) ) { $list_images[$i] = ''. $RS->fields['; } $list_newsid[$i] = $RS->fields["newsid"]; $list_newstitle[$i] = $RS->fields["newstitle".$language]; $list_newsopen[$i] = $RS->fields["newsopen".$language]; $list_timestamp[$i] = date("d F Y" , strtotime($RS->fields["timestamp"])); $RS->MoveNext(); $i++; } } else $msg = "Sorry, There is no record in our database
"; } else $msg = "Sorry, There is no record in our database
"; //****** Tampilan News if ($msg == "") { echo ""; for ($x=0; $x"; echo ""; echo ""; echo ""; } //echo ""; echo "
".$list_timestamp[$x]."
".$list_newstitle[$x]."

".$list_images[$x].nl2br($list_newsopen[$x])."
Readmore >>

" . $pagination["halaman_first"] . $pagination["halaman_next"] . $pagination["halaman_content"] . $pagination["halaman_prev"] .$pagination["halaman_last"]."
"; if($num>0) { echo '

'.$halaman.':
'.$pagination['first'].$pagination['prev'].'
'.$pagination['page'].''.$pagination['next'].$pagination['last'].'

'; } } } } else { //*** MAIN CODE $x = $_GET["x"]; $x = $crypt->decrypt($x); $SQL = "SELECT * FROM modnews WHERE newsid = '".$x."' ORDER BY newsid DESC"; $RS =$db->Execute($SQL); $list_images = ''; if( $RS->fields["mainimagename"] != '' && file_exists('upload/thumb_'. $RS->fields["mainimagename"]) ) { $list_images = ''. $RS->fields['; } if( $RS->fields["pdf_file_path"] != '' && file_exists('upload/'. $RS->fields["pdf_file_path"]) ) { $list_pdf = '

>> Download brochure ('.$RS->fields["pdf_file_path"].') '.roundsize($RS->fields["pdf_file_size"]).'


'; } $list_newsid = $RS->fields["newsid"]; $list_newstitle = $RS->fields["newstitle".$language]; $list_newsopen = $RS->fields["newsopen".$language]; $list_newsdescription = $RS->fields["newsdescription".$language]; $list_timestamp = date("d F Y" , strtotime($RS->fields["timestamp"])); $SQL1 = "SELECT * FROM modnews WHERE newsid != '".$x."' ORDER BY newsid DESC"; $RS1 = $db->Execute($SQL1); $i=0; while (!$RS1->EOF) { $temp_newsid[$i] = $RS1->fields["newsid"]; $temp_newstitle[$i] = $RS1->fields["newstitle".$language]; $temp_timestamp[$i] = date("d F Y" , strtotime($RS1->fields["timestamp"])); $RS1->MoveNext(); $i++; } //*** Tampilan if (($RS->fields["newsid"]) != "") { echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo "
".$list_timestamp."
".$list_newstitle."
".$list_images . $list_newsopen."
". html_entity_decode($list_newsdescription)."
".$list_pdf."
[ Back ]
"; } if (($temp_newsid[0]) != "") { echo "

"; echo "Archive : "; } } ?>