View file waplend/changestyle.php

File size: 719B
<?php
	
	$papka = opendir ("css");
	echo "<div style='text-align: center'><div class='contur'><div class='header'>Скины:<br/>
<form action='skin.php' method='get'>
<label><select name='them' class='do_button'>";
	
	while ($file = readdir ($papka))
    {
    	if ($file!="." && $file!=".." && $file!="index.php" && $file!=".htaccess")
    	{
    		$css=explode(".",$file);
    		if ($themes==$css['0'])
    		{
    			$select="selected='selected'";
    		}
    echo "<option value='".$css['0']."' ".$select.">".$css['0']."</option>"; 
    $select="";
    	}
    }
echo"
	</select></label>
	
<input type='submit' class='button' value='Менять!'/>
	</form>
</div>
	</div></div>";
	
?>