<form action="index.php?id=_nastaveni" method="post">  
  <fieldset>    
    <legend>Nastavení stránky     </legend>
     Nadpis webu:      
    <br>      
    <input type="text" name="f_logo" value="<?echo $webpage["name"]?>" title="logo" maxlength="50" size="50px">      
    <br>      
    <br>      Podnadpis webu:      
    <br>      
    <input type="text" size="50px" name="f_podlogo" value="<?echo $webpage["info_text"]?>" title="podlogo" maxlength="50">      
    <br>      
    
    <br>    Styl webu:      
    <br>    
    <select name="style" size="1" style="width: 150px; text-align: center;">
    
<option value="vybrat">-Vyberte styl-
<?
    $pocet_slozek = count (scandir("../style/")) - 2;
$dir    = "../style/";
$files = scandir($dir);



for ($i = 2; $i <=$pocet_slozek+1 ; $i++){
if($files["$i"] == $webpage["style"]){
$selected = "selected=\"selected\"";
}
else{
$selected = "";
}
echo "<option value=\"$files[$i]\" $selected>$files[$i]";
}  
                      ?>    
    </select>      
    <br>        
    </fieldset>
  <fieldset>    
    <legend>Nastavení účtu     
    </legend>Váš nick:      
    <br>      
    <input type="text" name="f_name" title="f_name" value="<?echo $account["name"]?>">      
    <br>      
    <br>Vaše heslo:      
    <br>      
    <input type="password" name="f_pass" title="f_pass">
  
    <br>      
    <br>Heslo znovu:      
    <br>      
    <input type="password" name="df_pass" title="df_pass"> 
    <br>      
    <br>E-mail:      
    <br>    
    <input type="text" name="f_mail" title="f_mail" value="<?echo $account["mail"]?>">      
    <br>        
    </fieldset>
        <center><input type="submit" value="Změnit"></center>
</form>