<html>
<head>
<title>Praktikant</title>

<?PHP
$icon_name = "favicon.ico";
$icon_path = explode("/", $SCRIPT_NAME);
	for($x=0; $x<count($icon_path)-1; $x++)
		{
		$path_to_icon = "$path_to_icon$icon_path[$x]/";
		}
$icon_path = "http://$SERVER_NAME$path_to_icon$icon_name";
echo "<link REL=\"SHORTCUT ICON\"href=\"$icon_path\">";
echo "</head>";
echo "<body>";
if(file_exists("config/includes/tabs"))
{
$links = file("config/includes/tabs");
usort($links,"strnatcasecmp");
}
$verzeichnis = "tmp/thumbs";
$array = array();
$verz=opendir ($verzeichnis);
while ($new = readdir ($verz)) {
if($new != "." && $new != ".."){
  array_push($array,"$new");
}}
closedir($verz);
echo "<a name=oben><center></a>\n";
echo "<table border=0 width=100%  bgcolor=#EEEED2><tr valign=middle><td>\n";
echo "<center><table border=0 width=100% bgcolor=#EEEED2><tr valign=middle>\n";
echo "<td width=15%><a href=\"http://www.praktikant-online.org\" target=\"_blank\"><img src=\"gifs/praktikant.gif\" border=\"0\" width=\"50\"></a></td>\n"; //1. spalte titel praktikant
echo "<td width=85% align=left>\n";                                                   //2. palte rest (links buttons)

echo "<table border=1 cellspacing=1 cellpadding=7 bgcolor=#EEEED2><tr valign=middle>\n";
echo "<form action=index.php method=post>\n";
echo "<td align=middle><font size=-1>\n";
echo "<input type=submit value=\"Bilder laden\"></td></form>\n";


if(file_exists("config/includes/tabs"))
        {
        echo "<form action=tab_show.php method=get><td align=middle><nobr><font size=-1><nobr><select name=kopier_bereich size=1>\n";
        echo "<option selected value=nooooo>Tabelle bearbeiten\n";
        for($x=1;$x<count($links);$x++)
        	{
        	echo "<option>$links[$x]</option>\n";
        	next($links);
        	}
        echo "</select></nobr> &nbsp; <input type=submit value=\"Los !\"></font></td></form>\n";
        echo "<form action=new_part.php#bereich method=post><td align=middle><font size=-1><input type=submit value=\"Bereiche\"></font></td></form>\n";
    #    echo "<form action=burn.php method=post><td align=middle><font size=-1><input type=submit value=\"Brennen\"></font></td></form>\n";
	echo "<form action=dia.php method=post><td align=middle><font size=-1><input type=submit value=\"Dia Show\"></font></td></form>\n";
        }

echo "</tr></table>\n";
echo "</td></tr></table>\n";
echo "</td></tr></table></center>\n";
?>
