Location: PHPKode > projects > Wiki Web Help > wwh-0.3.11/test/wwh/plugins/theme-select/themes.php
<?php
    $cur = $_GET['cur'];
    echo "<select id='seltheme' onchange='theme_select.replacestyles()'>\n";
	$handle=opendir("../../theme");
	while ($file = readdir($handle)) {
		if($file!="." && $file!=".."){
			$selected = $cur==$file ? ' selected' : '' ;
        	echo " <option value='$file'$selected>$file</option>\n";
		}
	}
	closedir($handle);
 ?>
Return current item: Wiki Web Help