"; $query = "select id,cat_id,file,username,mail_address,date,tn_ext"; $query.= " from PREFIX_TABLE"."waiting"; $query.= " order by cat_id"; $query.= ";"; $result = mysql_query( $query ); $i = 0; while ( $row = mysql_fetch_array( $result ) ) { $style = ""; if ( $i%2 == 0 ) { $style = "class=\"row2\""; } if ( !isset( $cat_names[$row['cat_id']] ) ) { $cat = get_cat_info( $row['cat_id'] ); $cat_names[$row['cat_id']] = array(); $cat_names[$row['cat_id']]['dir'] = ".".$cat['dir']; $cat_names[$row['cat_id']]['display_name'] = get_cat_display_name( $cat['name'], " - ", "font-style:italic;" ); } echo " "; $i++; } echo " "; echo "
".$lang['category']." ".$lang['date']." ".$lang['file']." ".$lang['thumbnail']." ".$lang['author']."  
".$cat_names[$row['cat_id']]['display_name']." ".$lang['day'][date( "w", $row['date'] )].date( " j ", $row['date'] ).$lang['month'][date( "n", $row['date'] )].date( " Y G:i", $row['date'] )." ".$row['file']." "; if ( $row['tn_ext'] != "" ) { $file = substr ( $row['file'], 0, strrpos ( $row['file'], ".") ); echo "".$conf['prefixe_thumbnail'].$file.".".$row['tn_ext']; } else { echo " "; } echo " ".$row['username']." ".$lang['submit']." ".$lang['delete']."
"; ?>