Location: PHPKode > projects > mediaIndex > includes/searchbox.php
<?php
$match = isset($_POST['match']) ? stripslashes($_POST['match']) : "";
$query = isset($_POST['query']) ? $_POST['query'] : "filenames";
$action = $GLOBALS['action']=="file" ? "?dir=".dirname($GLOBALS['path']) : "?dir=".$GLOBALS['path'];
?>

<form method="post" action="<?=$action?>">
	<input type="text" size="19" name="match" value="<?=$match?>" />
	<input type="submit" name="submit" value="Search" /><br />
	<input id="filenames" type="radio" name="query" value="filenames" <?=$query=="filenames"?"checked":""?>/> <label for="filenames">Filenames</label>
	<input id="descriptions" type="radio" name="query" value="descriptions" <?=$query=="descriptions"?"checked":""?>/> <label for="descriptions">Descriptions</label>
</form>
Return current item: mediaIndex