Location: PHPKode > projects > TVEz - Media Library > tvez-0.2.1/html/movies/advanced_search.php
<?php

# ------------------------------------------------------------------------------
#
# This file contains the advanced movie search
#
# ------------------------------------------------------------------------------
#
# Copyright (C) 2003 Christian Eheim and Alex Pachikov
#                                                                               
# This file is part of TVEz (tvez.sourceforge.net).
#                                                                               
# TVEz is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#                                                                               
# TVEz is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#                                                                               
# You should have received a copy of the GNU General Public License
# along with TVEz; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#                                                                               
# ------------------------------------------------------------------------------
#
# Created on 02/12/2003 by Christian Eheim (hide@address.com)
#
# LAST MODIFIED:
# $Date: 2004/08/27 02:23:45 $
# $Revision: 1.6 $
# $Author: eheim $
#
# ------------------------------------------------------------------------------

require "movies/search_fields.inc";

$cats = get_genres();

# ------------------------------------------------------------------------------
# Print the menu bar
# ------------------------------------------------------------------------------
echo "
	<br><br>
	<form action=\"".$_SERVER['PHP_SELF']."\" METHOD=\"POST\" name=\"searchform\">
	<table border=\"0\" width=\"500\" align=\"center\">
	<tr>
		<td align=\"center\" valign=\"middle\" colspan=\"2\">
		<h2>".localize_string("Advanced Movie Search")."</h2>
		</td>
	</tr>
	<tr>
		<td align=\"right\" colspan=\"2\">
		&nbsp;
		</td>
	</tr>
	<tr>
		<td align=\"center\" valign=\"middle\">

			<b>".localize_string("Search for").":</b>&nbsp;&nbsp;
			<input type=\"hidden\" name=\"content\" value=\"movies\">
			<input type=\"hidden\" name=\"page\" value=\"movies\">
			<input type=\"text\" name=\"search\" value=\"\" size=\"20\">
			<b>".localize_string("in")."</b>&nbsp;&nbsp;<select name=\"field\">
";
    foreach ( $field_array as $key => $value )
		echo "<option value=\"$key\">$value</option>\n";
echo "
			</select>
	&nbsp;&nbsp;<a href=\"javascript:open_help('help.html',480,320)\"><img src=\"images/icons/unknown.gif\" border=\"0\" align=\"top\" vspace=\"0\" title=\"Search Help\"></a>
		</td>
	</tr>
	<tr>
		<td>
		&nbsp;
		</td>
	</tr>
	<tr>
		<td colspan=\"2\" align=\"right\">
			<b>".localize_string("Genres").":</b>&nbsp;&nbsp;
			<select name=\"genres\">
				<option value=\"\" selected>".localize_string("All genres")."</option>
";
	foreach ($cats as $cat)
		echo "<option value=\"$cat\">$cat</option>\n";
echo "
			</select>
		</td>
	</tr>
	<tr>
		<td colspan=\"2\" align=\"right\">
			<b>".localize_string("Order").":</b>&nbsp;&nbsp;
			<select name=\"order\">
";
    foreach ( $order_array as $key => $value )
		echo "<option value=\"$key\">$value</option>\n";
echo "
			</select>
		</td>
	</tr>
	<tr>
		<td colspan=\"2\" align=\"right\">
			<b>".localize_string("Views").":</b>&nbsp;&nbsp;
			<select name=\"view\">
";
    foreach ( $views as $key => $value )
		echo "<option value=\"$key\">$value</option>\n";
echo "
			</select>
		</td>
	</tr>
	<tr>
		<td colspan=\"2\" align=\"right\">
";

	echo " <b>".localize_string("Voting").":</b>&nbsp;&nbsp;<input type=\"checkbox\" name=\"rating\">\n";

echo "
		</td>
	</tr>
	<tr>
		<td colspan=\"2\" align=\"right\">
		&nbsp;
		</td>
	</tr>
	<tr>
		<td colspan=\"2\" align=\"right\">
	<input name=\"Reset\" type=\"button\" value=\"".localize_string("Clear")."\" onmousedown=\"javascript:document.searchform.search.value='';document.searchform.order.selectedIndex=0;document.searchform.field.selectedIndex=0;document.searchform.genres.selectedIndex=0;document.searchform.view.selectedIndex=0;document.searchform.rating.checked=false;\">
	<input name=\"Submit\" type=\"submit\" value=\"".localize_string("Search")."\">
		</td>
	</tr>
</table>
</form>
		";
Return current item: TVEz - Media Library