Location: PHPKode > projects > Axis Groupware > musiclib/searchpage.php
<?
$phpgw_info["flags"] = array ("currentapp" => "musiclib",
							 "enable_nextmatchs_class" => True);
$GLOBALS['phpgw_info']['cursor_focus'] = "document.songkey.searchFor.focus();
										  document.songkey.searchFor.select();";

include ("../header.inc.php"); #PHP Groupware header

include ("inc/config.inc.php");
include ("inc/functions.inc.php");
include ("inc/sidebar.inc.php");
$title = "Searches";
include ("inc/header.inc.php");
?>
	The searches on the sidebar search by keyword.<br>
	Here are a few more:<br>
	<br>
	<h2>Search Songs by Song Name</h2>
	  <form action="<? echo $GLOBALS['phpgw']->link("/musiclib/searches.php"); ?>" method="post" name="songsong">
		<p><input type="hidden" name="action" value="doSearch">
		<input type="hidden" name="search" value="songsong">
		<input type="hidden" name="mode" value="song">
		<input type="hidden" name="table" value="1">
		<input class="field" type="text" name="searchFor" size="32" value="<? echo stripslashes($searchFor); ?>"></p>
	  </form>
	<h2>Search Songs by Artist</h2>
	  <form action="<? echo $GLOBALS['phpgw']->link("/musiclib/searches.php"); ?>" method="post" name="songartist">
		<p><input type="hidden" name="action" value="doSearch">
		<input type="hidden" name="search" value="songartist">
		<input type="hidden" name="mode" value="song">
		<input type="hidden" name="table" value="1">
		<input class="field" type="text" name="searchFor" size="32" value="<? echo stripslashes($searchFor); ?>"></p>
	  </form>
	<h2>Search Albums by Artist</h2>
	  <form action="<? echo $GLOBALS['phpgw']->link("/musiclib/searches.php"); ?>" method="post" name="albumartist">
		<p><input type="hidden" name="action" value="doSearch">
		<input type="hidden" name="search" value="albumartist">
		<input type="hidden" name="mode" value="album">
		<input type="hidden" name="table" value="1">
		<input class="field" type="text" name="searchFor" size="32" value="<? echo stripslashes($searchFor); ?>"></p>
	  </form>
	<h2>Search Albums by Album Name</h2>
	  <form action="<? echo $GLOBALS['phpgw']->link("/musiclib/searches.php"); ?>" method="post" name="albumalbum">
		<p><input type="hidden" name="action" value="doSearch">
		<input type="hidden" name="search" value="albumalbum">
		<input type="hidden" name="mode" value="album">
		<input type="hidden" name="table" value="1">
		<input class="field" type="text" name="searchFor" size="32" value="<? echo stripslashes($searchFor); ?>"></p>
	  </form>
	<h2>Search Misc by Filename</h2>
	  <form action="<? echo $GLOBALS['phpgw']->link("/musiclib/searches.php"); ?>" method="post" name="albumalbum">
		<p><input type="hidden" name="action" value="doSearch">
		<input type="hidden" name="search" value="miscfile">
		<input type="hidden" name="mode" value="misc">
		<input type="hidden" name="table" value="2">
		<input class="field" type="text" name="searchFor" size="32" value="<? echo stripslashes($searchFor); ?>"></p>
	  </form>
	<h2>Search Misc by Path</h2>
	  <form action="<? echo $GLOBALS['phpgw']->link("/musiclib/searches.php"); ?>" method="post" name="albumalbum">
		<p><input type="hidden" name="action" value="doSearch">
		<input type="hidden" name="search" value="miscpathsearch">
		<input type="hidden" name="mode" value="misc">
		<input type="hidden" name="table" value="2">
		<input class="field" type="text" name="searchFor" size="32" value="<? echo stripslashes($searchFor); ?>"></p>
	  </form>
<?
#include("inc/footer.inc.php");
?>
Return current item: Axis Groupware