=0; $j--){ $f = $files[$j]; global $uploaden_entriesdir; $im = $uploaden_entriesdir.$f["filename"]; if ($f["filename"]){ $img = ht_a($im, ic_img($f["filename"]), "Download File: ".$f["filename"], false, false); $filesize=" (".round($f["filesize"]/1024)." Kb)"; } else{ $img="-"; $filesize="";} $c=$j+1; echo "\n"; echo "\t".$c."\n"; echo "\t".$img.$filesize."\n"; if ($f["link"]!== "http://") $titlelink = "\t".$f["title"]; else $titlelink =$f["title"]; echo "\t".$titlelink."\n"; echo "\t".ht_sp(date("j.n.Y", $f["ddate"]))."\n"; if($admin) { $ae = ht_a("en_entriesedit.php?i=".$f["id"], "Modify", "Modify entry: \"".$f["title"]."\""); $ad = ht_a("en_entriesdel.php?i=".$f["id"],"Delete", "Delete entry: \"".$f["title"]."\""); echo "\t".$ae."\n"; echo "\t".$ad."\n"; } echo "\n"; } } function table($files) { echo "


\n"; //echo "\n"; echo "
"; echo "\n"; echo "\t\n"; echo "\t\n"; echo "\t\n"; echo "\t\n"; echo "\n"; en_entrieslist($files); echo "
  FileΤitleDate
\n"; echo "

\n"; } function show(){ global $admin,$category; // $files = db_select("article","*","id"); $files = db_select("en_entries", "id, title, filename, filetype, filesize, link, ".db_stamp("ddate")." , ".db_stamp("date"), "ddate"); if(!$files) ht_para("No files in the server!"); else table($files); echo "


"; if ($admin=="1"){ $ne=ht_a("en_entriesadd.php?j=1", "Insert new article", "Insert new article"); echo $ne; } ht_rule(); } echo ""; echo "OLME Article"; echo "OLME"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo ""; echo ""; echo "\n"; echo "\n"; echo "
".ht_img("images/logo.gif","OLME")."      Greek Federation of State School Teachers of Secondary Education       "; echo "

"; if ($_SERVER['HTTP_USER_AGENT']['browser']=="ie") echo "
\n"; echo "
:: Greek Version
"; echo " \"OLME\"
\n"; /*echo ""; echo "
"; echo "
 
"; */ show(); echo "
\n"; echo "
\n"; ?>