Home / '.$acategory[name].' '; if ($anews[picture]!="") echo '
'; echo '

'.$anews[header].'

'; echo '

'.$anews[short_detail].'

'; if (trim($anews[keyword])!="") echo '
Keywords: '.$anews[keyword].'
'; $sql = 'SELECT f.group_name, f.name, f.detail, f.file_name, f.keyword FROM a_news_file f WHERE f.status=\'A\' AND f.ref_type=\'NEWS\' AND f.ref_id=\''.$anews[id].'\' ORDER BY f.seq, f.id '; $query = mysql_query($sql); $num_rows=mysql_num_rows($query); if ($num_rows>0){ $a=0; $group_name = ''; while($a<$num_rows){ $row = mysql_fetch_array($query); if ($group_name!=trim($row[group_name])){ $group_name = trim($row[group_name]); if ($a>0) echo '

'; echo '

'.$group_name.'

'; } if ($row[file_name]!=""){ $path_file = $path_news_file.$row[file_name]; if (file_exists($path_file)){ $file_size=formatFileSizeUnits(filesize($path_file)); }else{ $file_size = "0 bytes"; } $download_file = 'download PDF ('.$file_size.')'; }else{ $download_file=''; } echo '
'; echo '
'.$row[name].'
'; echo '
'.string2html($row[detail]).'
'; echo '
'.$download_file.'
'; if (trim($row[keyword])!="") echo '
Keywords: '.$row[keyword].'
'; echo '
'; echo "
"; $a++; }//end while }else{ //echo 'Files not found!'; }//end if }else{ //echo 'Record not found!'; }//end if }else{ echo 'Parameters not correct!'; }//end if is_numeric(id) echo '



'; /*$cnews = new cls_admin_news("",array("id"=>$id, "slug"=>$slug)); $cnews->show_news(); unset($cnews);*/ /* $anews = $cnews->news(); if ($anews[id] > 0){ echo "

".$anews[header]."

"; echo "".$anews[detail].""; $cnews->show_news_pic(); $cnews->show_news_file(); } unset($anews); */ }//end if //dump_array($anews); if ($slug=="contact"){ if (file_exists ("content_".strtolower($slug).".php")){ require("content_".strtolower($slug).".php"); }else{ //echo "
-- Content not found --
"; } }//end if showtail($root,$param); require("inc_admin_close.php"); ?>