Location: PHPKode > scripts > Photos > photos/search.inc.php
<?php

// This file is part of Photos
// Copyright (c) 2001-2004 Alex King
// see LICENSE.txt for more information

?>
<form name="imageForm" method="get" action="index.php" onsubmit="if (!validateSearchData()) { return false; }">
<input type="hidden" name="screen" value="list">
<div class="groupBorder"<?
// hack to handle weird spacing with IE and mozilla
	if (strstr(strtolower($HTTP_SERVER_VARS["HTTP_USER_AGENT"]), "msie") != false) {
		print('style="width: 100%;"');
	}
?>>
<div class="groupHeader"><?php print($lang->str("search")); ?></div>
	<table width="100%" cellpadding="5" cellspacing="0" border="0">
		<tr class="rowOdd">
			<td align="right"><?php print($lang->str("title_desc")); ?></td>
			<td colspan="3"><input type="text" name="title" value="" style="width: 98%;" class="onePixelBorder"></td>
			<td align="right"><?php print($lang->str("id")); ?></td>
			<td><input type="text" name="id" value="" style="width: 95%;" class="onePixelBorder"></td>
		</tr>
		<tr class="rowEven">
			<td align="right"><?php print($lang->str("keywords")); ?></td>
			<td><input type="text" name="keywords" value="" style="width: 95%;" class="onePixelBorder"></td>
			<td align="right"><?php print($lang->str("people")); ?></td>
			<td colspan="3"><input type="text" name="people" value="" style="width: 95%;" class="onePixelBorder"></td>
		</tr>
		<tr class="rowOdd">
			<td align="right"><?php print($lang->str("event")); ?></td>
			<td><input type="text" name="event" value="" style="width: 95%;" class="onePixelBorder"></td>
			<td align="right"><?php print($lang->str("in_outdoors")); ?></td>
			<td colspan="3">
				<select name="indoors" class="onePixelBorder">
					<option value="" selected></option>
					<option value="Indoors"><?php print($lang->str("indoors")); ?></option>
					<option value="Outdoors"><?php print($lang->str("outdoors")); ?></option>
				</select>
			</td>
		</tr>
		<tr class="rowEven">
			<td align="right"><?php print($lang->str("location")); ?></td>
			<td><input type="text" name="location" value="" style="width: 95%;" class="onePixelBorder"></td>
			<td align="right"><?php print($lang->str("state")); ?></td>
			<td>
				<select name="state" style="width: 50px;" class="onePixelBorder">
					<option value="" selected>
<?
$result = mysql_query("SELECT DISTINCT state FROM $database->table_name ORDER BY state");
while (list($temp) = mysql_fetch_array($result)) {
	print('<option value="'.$temp.'">'.$temp.'</option>');
}
?>
				</select>
			</td>
			<td align="right"><?php print($lang->str("country")); ?></td>
			<td>
				<select name="country" style="width: 100px;" class="onePixelBorder">
					<option value="" selected>
<?
$result = mysql_query("SELECT DISTINCT country FROM $database->table_name ORDER BY country");
while (list($temp) = mysql_fetch_array($result)) {
	print('<option value="'.$temp.'">'.$temp.'</option>');
}
?>
				</select>
			</td>
		</tr>
		<tr class="rowOdd">
			<td align="right"><?php print($lang->str("photographer")); ?></td>
			<td>
				<select name="photographer" class="onePixelBorder">
					<option value="" selected>
<?
$result = mysql_query("SELECT DISTINCT photographer FROM $database->table_name ORDER BY photographer");
while (list($temp) = mysql_fetch_array($result)) {
	if (!empty($temp)) {
		print('<option value="'.$temp.'">'.$temp.'</option>');
	}
}
?>
				</select>
			</td>
			<td align="right"><?php print($lang->str("url")); ?></td>
			<td colspan="3"><input type="text" name="URL" value="" style="width: 95%;" class="onePixelBorder"></td>
		</tr>
		<tr class="rowEven">
			<td align="right"><?php print($lang->str("date_taken")); ?></td>
			<td colspan="5" nowrap>
<?
	$temp = array(array("",""));
	for ($i = 1; $i < 13; $i++) {
		$temp[] = array(substr($i+100,1)
		               ,$i
		               );
	}
	$month = get_dropdown("datetaken_from_month", $temp, "","", 'onchange="if (document.imageForm.datetaken_to_month.value == \'\') { setSelectToValue(document.imageForm.datetaken_to_month, this.value); }"');
	$temp = array(array("",""));
	for ($i = 1; $i < 32; $i++) {
		$temp[] = array(substr($i+100,1)
		               ,$i
		               );
	}
	$day = get_dropdown("datetaken_from_day", $temp, "","", 'onchange="if (document.imageForm.datetaken_to_day.value == \'\') { setSelectToValue(document.imageForm.datetaken_to_day, this.value); }"');
	$temp = array(array("",""));
		for ($i = $custom->datetaken_year_range[0]; $i <= $custom->datetaken_year_range[1]; $i++) {
		$temp[] = array($i
		               ,$i
		               );
	}
	$year = get_dropdown("datetaken_from_year", $temp, "","", 'onchange="if (document.imageForm.datetaken_to_year.value == \'\') { setSelectToValue(document.imageForm.datetaken_to_year, this.value); }"');
	for ($i = 0; $i < strlen($custom->date_format); $i++) {
		$temp = substr($custom->date_format, $i, 1);
		switch ($temp) {
			case "y":
				print($year);
				break;
			case "m":
				print($month);
				break;
			case "d":
				print($day);
				break;
		}
	}
?>
				&nbsp;
				<input type="button" value="<?php print($lang->str("choose_date")); ?>" onclick="showPicker('date_from',selectedDate('imageForm','datetaken_from'));" />
 				<input type="button" value="<?php print($lang->str("clear")); ?>" onclick="setDateDropDowns('clear', document.imageForm.datetaken_from_month, document.imageForm.datetaken_from_day, document.imageForm.datetaken_from_year);" />
			</td>
		</tr>
		<tr class="rowEven">
			<td align="right"><?php print($lang->str("to")); ?></td>
			<td colspan="5" nowrap>
<?
	$temp = array(array("",""));
	for ($i = 1; $i < 13; $i++) {
		$temp[] = array(substr($i+100,1)
		               ,$i
		               );
	}
	$month = get_dropdown("datetaken_to_month", $temp, "","", '');
	$temp = array(array("",""));
	for ($i = 1; $i < 32; $i++) {
		$temp[] = array(substr($i+100,1)
		               ,$i
		               );
	}
	$day = get_dropdown("datetaken_to_day", $temp, "","", '');
	$temp = array(array("",""));
		for ($i = $custom->datetaken_year_range[0]; $i <= $custom->datetaken_year_range[1]; $i++) {
		$temp[] = array($i
		               ,$i
		               );
	}
	$year = get_dropdown("datetaken_to_year", $temp, "","", '');
	for ($i = 0; $i < strlen($custom->date_format); $i++) {
		$temp = substr($custom->date_format, $i, 1);
		switch ($temp) {
			case "y":
				print($year);
				break;
			case "m":
				print($month);
				break;
			case "d":
				print($day);
				break;
		}
	}
?>
				&nbsp;
				<input type="button" value="<?php print($lang->str("choose_date")); ?>" onclick="showPicker('date_to',selectedDate('imageForm','datetaken_to'));" />
				<input type="button" value="<?php print($lang->str("clear")); ?>" onclick="setDateDropDowns('clear', document.imageForm.datetaken_to_month, document.imageForm.datetaken_to_day, document.imageForm.datetaken_to_year);" />
			</td>
		</tr>
		<tr class="rowEven">
			<td align="right">&nbsp;</td>
			<td colspan="2" nowrap>
				<input type="button" value="<?php print($lang->str("today")); ?>" onclick="setDateDropDowns('today', document.imageForm.datetaken_from_month, document.imageForm.datetaken_from_day, document.imageForm.datetaken_from_year); setDateDropDowns('today', document.imageForm.datetaken_to_month, document.imageForm.datetaken_to_day, document.imageForm.datetaken_to_year);" />
				<input type="button" value="<?php print($lang->str("last_week")); ?>" onclick="setDateDropDowns('last_week', document.imageForm.datetaken_from_month, document.imageForm.datetaken_from_day, document.imageForm.datetaken_from_year); setDateDropDowns('today', document.imageForm.datetaken_to_month, document.imageForm.datetaken_to_day, document.imageForm.datetaken_to_year);" />
				<input type="button" value="<?php print($lang->str("last_30_days")); ?>" onclick="setDateDropDowns('last_30', document.imageForm.datetaken_from_month, document.imageForm.datetaken_from_day, document.imageForm.datetaken_from_year); setDateDropDowns('today', document.imageForm.datetaken_to_month, document.imageForm.datetaken_to_day, document.imageForm.datetaken_to_year);" />
			</td>
			<td colspan="3" align="right"><a href="javascript:toggleDiv('searchDetails');"><?php print($lang->str("more_search_options")); ?></a></td>
		</tr>
<!-- shim row -->
		<tr>
			<td width="1%" style="padding: 0px;"><img src="images/clear.gif" height="1" width="85"></td>
			<td width="50%" style="padding: 0px;"><img src="images/clear.gif" height="1" width="150"></td>
			<td width="1%" style="padding: 0px;"><img src="images/clear.gif" height="1" width="85"></td>
			<td width="5%" style="padding: 0px;"><img src="images/clear.gif" height="1" width="50"></td>
			<td width="1%" style="padding: 0px;"><img src="images/clear.gif" height="1" width="50"></td>
			<td width="1%" style="padding: 0px;"><img src="images/clear.gif" height="1" width="50"></td>
		</tr>
	</table>
	<div id="searchDetails" style="display: none;" class="groupDetails">
		<table width="100%" cellpadding="5" cellspacing="0" border="0">
			<tr class="rowOdd">
				<td align="right">
					<?php print($lang->str("iso")); ?>
				</td>
				<td>
					<nobr>
						<?php print($lang->str("more_than")); ?>
						<select name="ISO_more" class="onePixelBorder" onchange="setSearchLessThan('ISO');">
							<option value="" selected></option>
							<option value="50">50</option>
							<option value="100">100</option>
							<option value="200">200</option>
							<option value="400">400</option>
							<option value="800">800</option>
							<option value="1600">1600</option>
							<option value="3200">3200</option>
						</select>
						<?php print($lang->str("and_less_than")); ?>
						<select name="ISO_less" class="onePixelBorder">
							<option value="" selected></option>
							<option value="50">50</option>
							<option value="100">100</option>
							<option value="200">200</option>
							<option value="400">400</option>
							<option value="800">800</option>
							<option value="1600">1600</option>
							<option value="3200">3200</option>
						</select>
					</nobr>
				</td>
				<td width="1%" align="right">
					<?php print($lang->str("orientation")); ?>
				</td>
				<td width="33%">
					<select name="orientation" class="onePixelBorder">
						<option value="" selected></option>
						<option value="0"><?php print($lang->str("landscape")); ?></option>
						<option value="1"><?php print($lang->str("portrait")); ?></option>
					</select>
				</td>
			</tr>
			<tr class="rowEven">
				<td align="right">
					<nobr><?php print($lang->str("aperture")); ?></nobr>
				</td>
				<td> 
<?
/*
$result = mysql_query("SELECT DISTINCT fnumber FROM $database->table_name ORDER BY fnumber");
$options = array(array("",""));
while (list($temp) = mysql_fetch_array($result)) {
	if (!empty($temp)) {
		if ($temp == 999) {
			$options[] = array($temp, "INF");
		}
		else {
			$options[] = array($temp, "f ".get_friendly_fnumber($temp));
		}
	}
}
// $options = array_unique($options);
$more = get_dropdown("fnumber_more", $options, "", "", 'onchange="setSearchLessThan(\'fnumber\');"');
$less = get_dropdown("fnumber_less", $options, "", "");
*/
?>
					<nobr>
						<?php print($lang->str("more_than")); ?>
						<select name="fnumber_more" class="onePixelBorder" onchange="setSearchLessThan('fnumber');">
<?php
ob_start();
?>
							<option value="" selected></option>
							<option value="1.8">f 1.8</option>
							<option value="2.8">f 2.8</option>
							<option value="3.5">f 3.5</option>
							<option value="4">f 4.0</option>
							<option value="5">f 5.0</option>
							<option value="6">f 6.0</option>
							<option value="7">f 7.0</option>
							<option value="8">f 8.0</option>
							<option value="9">f 9.0</option>
							<option value="10">f 10.0</option>
							<option value="11">f 11.0</option>
							<option value="15">f 15.0</option>
							<option value="20">f 20.0</option>
							<option value="25">f 25.0</option>
							<option value="30">f 30.0</option>
							<option value="999">INF</option>
<?php
$options = ob_get_contents();
ob_end_clean();
print($options);
?>
						</select>
						<?php print($lang->str("and_less_than")); ?>
						<select name="fnumber_less" class="onePixelBorder">
<?php
print($options);
?>
						</select>
					</nobr>
				</td>
				<td width="1%" align="right" nowrap> 
					<?php print($lang->str("portfolio_shot")); ?>
				</td>
				<td width="33%">
					<select name="portfolio" class="onePixelBorder">
						<option value="" selected></option>
						<option value="1"><?php print($lang->str("yes")); ?></option>
						<option value="0"><?php print($lang->str("no")); ?></option>
					</select>
				</td>
			</tr>
			<tr class="rowOdd">
				<td align="right">
					<nobr><?php print($lang->str("exposure_time")); ?></nobr>
				</td>
				<td>
<?
$result = mysql_query("SELECT DISTINCT shutter FROM $database->table_name ORDER BY shutter");
$options = array(array("",""));
while (list($temp) = mysql_fetch_array($result)) {
	if (!empty($temp)) {
		if (get_friendly_shutter($temp)  != false) {
			$options[] = array($temp, $lang->str("seconds", array(get_friendly_shutter($temp))));
		}
	}
}
$more = get_dropdown("shutter_more", $options, "", "", 'onchange="setSearchLessThan(\'shutter\');"');
$less = get_dropdown("shutter_less", $options, "", "");
?>
					<nobr>
						<?php print($lang->str("more_than")); ?>
						<select name="shutter_more" class="onePixelBorder" onchange="setSearchLessThan('shutter');">
<?php
ob_start();
?>
							<option value="" selected></option>
							<option value="0.00025"><?php print($lang->str("seconds", array('1/4000'))); ?></option>
							<option value="0.00050"><?php print($lang->str("seconds", array('1/2000'))); ?></option>
							<option value="0.00067"><?php print($lang->str("seconds", array('1/1500'))); ?></option>
							<option value="0.00080"><?php print($lang->str("seconds", array('1/1250'))); ?></option>
							<option value="0.00100"><?php print($lang->str("seconds", array('1/1000'))); ?></option>
							<option value="0.00133"><?php print($lang->str("seconds", array('1/750'))); ?></option>
							<option value="0.00200"><?php print($lang->str("seconds", array('1/500'))); ?></option>
							<option value="0.00250"><?php print($lang->str("seconds", array('1/400'))); ?></option>
							<option value="0.00286"><?php print($lang->str("seconds", array('1/350'))); ?></option>
							<option value="0.00400"><?php print($lang->str("seconds", array('1/250'))); ?></option>
							<option value="0.00556"><?php print($lang->str("seconds", array('1/180'))); ?></option>
							<option value="0.00800"><?php print($lang->str("seconds", array('1/125'))); ?></option>
							<option value="0.01000"><?php print($lang->str("seconds", array('1/100'))); ?></option>
							<option value="0.01111"><?php print($lang->str("seconds", array('1/90'))); ?></option>
							<option value="0.01250"><?php print($lang->str("seconds", array('1/80'))); ?></option>
							<option value="0.01667"><?php print($lang->str("seconds", array('1/60'))); ?></option>
							<option value="0.02222"><?php print($lang->str("seconds", array('1/45'))); ?></option>
							<option value="0.03333"><?php print($lang->str("seconds", array('1/30'))); ?></option>
							<option value="0.04000"><?php print($lang->str("seconds", array('1/25'))); ?></option>
							<option value="0.05000"><?php print($lang->str("seconds", array('1/20'))); ?></option>
							<option value="0.06667"><?php print($lang->str("seconds", array('1/15'))); ?></option>
							<option value="0.10000"><?php print($lang->str("seconds", array('1/10'))); ?></option>
							<option value="0.12500"><?php print($lang->str("seconds", array('1/8'))); ?></option>
							<option value="0.16667"><?php print($lang->str("seconds", array('1/6'))); ?></option>
							<option value="0.20000"><?php print($lang->str("seconds", array('1/5'))); ?></option>
							<option value="0.25000"><?php print($lang->str("seconds", array('1/4'))); ?></option>
							<option value="1.00000"><?php print($lang->str("seconds", array('1'))); ?></option>
							<option value="1.50000"><?php print($lang->str("seconds", array('1.5'))); ?></option>
							<option value="2.00000"><?php print($lang->str("seconds", array('2'))); ?></option>
							<option value="3.00000"><?php print($lang->str("seconds", array('3'))); ?></option>
							<option value="4.00000"><?php print($lang->str("seconds", array('4'))); ?></option>
							<option value="8.00000"><?php print($lang->str("seconds", array('8'))); ?></option>
							<option value="10.00000"><?php print($lang->str("seconds", array('10'))); ?></option>
							<option value="15.00000"><?php print($lang->str("seconds", array('15'))); ?></option>
							<option value="20.00000"><?php print($lang->str("seconds", array('20'))); ?></option>
							<option value="30.00000"><?php print($lang->str("seconds", array('30'))); ?></option>
<?php
$options = ob_get_contents();
ob_end_clean();
print($options);
?>
						</select>
						<?php print($lang->str("and_less_than")); ?>
						<select name="shutter_less" class="onePixelBorder">
<?php
print($options);
?>
						</select>
					</nobr>
				</td>
				<td width="1%" align="right" nowrap> 
					<?php print($lang->str("need_details")); ?>
				</td>
				<td width="33%">
					<select name="needdetails" class="onePixelBorder">
						<option value="" selected></option>
						<option value="1"><?php print($lang->str("yes")); ?></option>
						<option value="0"><?php print($lang->str("no")); ?></option>
					</select>
				</td>
			</tr>
			<tr>
				<td align="right">
					<nobr><?php print($lang->str("focal_length")); ?></nobr>
				</td>
				<td> 
					<nobr>
						<?php print($lang->str("more_than")); ?>
						<select name="focal_length_more" class="onePixelBorder" onchange="setSearchLessThan('focal_length');">
<?php
ob_start();
?>
							<option value="" selected></option>
							<option value="14">14 mm</option>
							<option value="28">28 mm</option>
							<option value="35">35 mm</option>
							<option value="50">50 mm</option>
							<option value="70">70 mm</option>
							<option value="105">105 mm</option>
							<option value="135">135 mm</option>
							<option value="175">175 mm</option>
							<option value="200">200 mm</option>
							<option value="250">250 mm</option>
							<option value="300">300 mm</option>
							<option value="350">350 mm</option>
							<option value="400">400 mm</option>
							<option value="450">450 mm</option>
							<option value="500">500 mm</option>
							<option value="550">550 mm</option>
							<option value="600">600 mm</option>
<?php
$options = ob_get_contents();
ob_end_clean();
print($options);
?>
						</select>
						<?php print($lang->str("and_less_than")); ?>
						<select name="focal_length_less" class="onePixelBorder">
<?php
print($options);
?>
						</select>
					</nobr>
<?
/*
$result = mysql_query("SELECT DISTINCT focal_length FROM $database->table_name ORDER BY focal_length");
$options = array(array("",""));
while (list($temp) = mysql_fetch_array($result)) {
	if (!empty($temp)) {
		$options[] = array($temp, $temp." mm");
	}
}
$more = get_dropdown("focal_length_more", $options, "", "", 'onchange="setSearchLessThan(\'focal_length\');"');
$less = get_dropdown("focal_length_less", $options, "", "");
*/
?>
				</td>
				<td align="right" nowrap>
					<?php print($lang->str("camera_make")); ?>
				</td>
				<td>
<?
$result = mysql_query("SELECT DISTINCT camera_make FROM $database->table_name ORDER BY camera_make");
$options = array(array("",""));
while (list($temp) = mysql_fetch_array($result)) {
	if (!empty($temp)) {
		$options[] = array($temp, $temp);
	}
}
print(get_dropdown("camera_make", $options, "", ""));
?>
				</td>
			</tr>
			<tr class="rowOdd">
				<td align="right">
					<?php print($lang->str("flash")); ?>
				</td>
				<td>
					<select name="flash" class="onePixelBorder">
						<option value="" selected></option>
						<option value="1"><?php print($lang->str("on")); ?></option>
						<option value="0"><?php print($lang->str("off")); ?></option>
					</select>
				</td>
				<td align="right" nowrap> 
					<?php print($lang->str("camera_model")); ?>
				</td>
				<td>
<?
$result = mysql_query("SELECT DISTINCT camera_model FROM $database->table_name ORDER BY camera_model");
$options = array(array("",""));
while (list($temp) = mysql_fetch_array($result)) {
	if (!empty($temp)) {
		$options[] = array($temp, $temp);
	}
}
print(get_dropdown("camera_model", $options, "", ""));
?>
				</td>
			</tr>
			<tr class="rowEven">
				<td align="right"><?php print($lang->str("last_modified")); ?></td>
				<td colspan="5" nowrap>
<?
$temp = array(array("",""));
for ($i = 1; $i < 13; $i++) {
	$temp[] = array(substr($i+100,1)
				   ,$i
				   );
}
$month = get_dropdown("dateentered_from_month", $temp, "","", 'onchange="if (document.imageForm.dateentered_to_month.value == \'\') { setSelectToValue(document.imageForm.dateentered_to_month, this.value); }"');
$temp = array(array("",""));
for ($i = 1; $i < 32; $i++) {
	$temp[] = array(substr($i+100,1)
				   ,$i
				   );
}
$day = get_dropdown("dateentered_from_day", $temp, "","", 'onchange="if (document.imageForm.dateentered_to_day.value == \'\') { setSelectToValue(document.imageForm.dateentered_to_day, this.value); }"');
$temp = array(array("",""));
for ($i = $custom->datetaken_year_range[0]; $i <= $custom->datetaken_year_range[1]; $i++) {
	$temp[] = array($i
				   ,$i
				   );
}
$year = get_dropdown("dateentered_from_year", $temp, "","", 'onchange="if (document.imageForm.dateentered_to_year.value == \'\') { setSelectToValue(document.imageForm.dateentered_to_year, this.value); }"');
for ($i = 0; $i < strlen($custom->date_format); $i++) {
	$temp = substr($custom->date_format, $i, 1);
	switch ($temp) {
		case "y":
			print($year);
			break;
		case "m":
			print($month);
			break;
		case "d":
			print($day);
			break;
	}
}
?>
					&nbsp;
					<input type="button" value="<?php print($lang->str("choose_date")); ?>" onclick="showPicker('dateentered_from',selectedDate('imageForm','dateentered_from'));" />
					<input type="button" value="<?php print($lang->str("clear")); ?>" onclick="setDateDropDowns('clear', document.imageForm.dateentered_from_month, document.imageForm.dateentered_from_day, document.imageForm.dateentered_from_year);" />
				</td>
			</tr>
			<tr class="rowEven">
				<td align="right"><?php print($lang->str("to")); ?></td>
				<td colspan="5" nowrap>
<?
$temp = array(array("",""));
for ($i = 1; $i < 13; $i++) {
	$temp[] = array(substr($i+100,1)
				   ,$i
				   );
}
$month = get_dropdown("dateentered_to_month", $temp, "","", '');
$temp = array(array("",""));
for ($i = 1; $i < 32; $i++) {
	$temp[] = array(substr($i+100,1)
				   ,$i
				   );
}
$day = get_dropdown("dateentered_to_day", $temp, "","", '');
$temp = array(array("",""));
for ($i = $custom->datetaken_year_range[0]; $i <= $custom->datetaken_year_range[1]; $i++) {
	$temp[] = array($i
				   ,$i
				   );
}
$year = get_dropdown("dateentered_to_year", $temp, "","", '');
for ($i = 0; $i < strlen($custom->date_format); $i++) {
	$temp = substr($custom->date_format, $i, 1);
	switch ($temp) {
		case "y":
			print($year);
			break;
		case "m":
			print($month);
			break;
		case "d":
			print($day);
			break;
	}
}
?>
					&nbsp;
					<input type="button" value="<?php print($lang->str("choose_date")); ?>" onclick="showPicker('dateentered_to',selectedDate('imageForm','dateentered_to'));" />
					<input type="button" value="<?php print($lang->str("clear")); ?>" onclick="setDateDropDowns('clear', document.imageForm.dateentered_to_month, document.imageForm.dateentered_to_day, document.imageForm.dateentered_to_year);" />
				</td>
			</tr>
			<tr class="rowEven">
				<td align="right">&nbsp;</td>
				<td colspan="2" nowrap>
					<input type="button" value="<?php print($lang->str("today")); ?>" onclick="setDateDropDowns('today', document.imageForm.dateentered_from_month, document.imageForm.dateentered_from_day, document.imageForm.dateentered_from_year); setDateDropDowns('today', document.imageForm.dateentered_to_month, document.imageForm.dateentered_to_day, document.imageForm.dateentered_to_year);" />
					<input type="button" value="<?php print($lang->str("last_week")); ?>" onclick="setDateDropDowns('last_week', document.imageForm.dateentered_from_month, document.imageForm.dateentered_from_day, document.imageForm.dateentered_from_year); setDateDropDowns('today', document.imageForm.dateentered_to_month, document.imageForm.dateentered_to_day, document.imageForm.dateentered_to_year);" />
					<input type="button" value="<?php print($lang->str("last_30_days")); ?>" onclick="setDateDropDowns('last_30', document.imageForm.dateentered_from_month, document.imageForm.dateentered_from_day, document.imageForm.dateentered_from_year); setDateDropDowns('today', document.imageForm.dateentered_to_month, document.imageForm.dateentered_to_day, document.imageForm.dateentered_to_year);" />
				</td>
				<td colspan="3" align="right">&nbsp;</td>
			</tr>
		</table>
	</div>
	<table width="100%" cellpadding="5" cellspacing="0" border="0">
		<tr class="rowButtons">
			<td colspan="3">
				<input type="submit" name="submit" value="<?php print($lang->str("button_search")); ?>" accesskey="<?php print($lang->str("accesskey_search_button")); ?>">
				&nbsp;
				<select name="result_view" class="onePixelBorder">
					<option value="thumbnail" selected><?php print($lang->str("list_view")); ?></option>
					<option value="contact_sheet"><?php print($lang->str("contact_sheet")); ?></option>
				</select>
				&nbsp;
				<?php print($lang->str("show_per_page", array('<input type="text" size="5" name="items_per_page" value="10">'))); ?>
			</td>
			<td colspan="3" align="right" nowrap>
				<input type="button" onclick="clearSearchData();" value="<?php print($lang->str("clear")); ?>">
			</td>
		</tr>
	</table>
</div>
</form>
Return current item: Photos