"; draw_table_bot(5,0); }; $sql="SELECT * FROM ms_categories WHERE parentid='$id' AND active>0 ORDER BY sort_order DESC"; $rc=db_query($sql); if (@mysql_numrows($rc)) { draw_table_top(5,0); for ($i=0;$i 0 ORDER BY sort_order DESC"; $rc=db_query($sql); if (@mysql_numrows($rc)) { draw_table_top(5,0); for ($i=0;$i 0 ORDER BY sort_order DESC"; $rc=db_query($sql); draw_table_top(5,0); echo ""; draw_table_bot(5,0); //articles list begin $sql="SELECT * FROM ms_articles WHERE category='$id' AND active>0 ORDER BY sort_order DESC"; $rc=db_query($sql); if (@mysql_numrows($rc)) { draw_table_top(5,0); for ($i=0;$i "") { $sql="SELECT * FROM ms_articles WHERE id='$itemid' AND active>0 ORDER BY sort_order DESC"; $rc=db_query($sql); draw_table_top(5,0); echo ""; if (@mysql_result($rc,0,"attach")<>"") echo ""; draw_table_bot(5,0); } } else draw_error_full($error_msg); ?>
"") { if ($root_section) { $sql="SELECT * FROM ms_categories WHERE id='$id' AND active>0 ORDER BY sort_order DESC"; $rc=db_query($sql); if (@mysql_result($rc,0,"news_descr")<>"") { draw_table_top(5,0); echo "
".remove_p( mysql_result($rc,0,"news_descr") )."
 
 
".remove_p( mysql_result($rc,0,"news_descr") )."
 
".remove_p( @mysql_result($rc,0,"news_descr") )."
: ".mysql_result($rc,0,"attach")." (".round(filesize($path_to_upload.mysql_result($rc,0,"attach"))/1024)." )