Location: PHPKode > projects > Katyshop > katyshop_ro_0.3.2.1/web/advanced_search.php
<?php
/**
 * Product: Katyshop
 * @version 0.3.2.1
 * @author Catalin Hulea - hide@address.com
 * @copyright Copyright (C) 2007 Catalin Hulea
 * @license GNU General Public License version 3
 * 			You can find a copy of GNU GPL v3 at this path: /docs/LICENSE
 * @link https://sourceforge.net/projects/katyshop
 *
 * This program 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 3 of the License, or
 * (at your option) any later version.
 *
 * This program 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 this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 */
require_once(dirname(__FILE__) . "/init.php");
?>
<html>
<head>
<title><?php echo APP_NAME; ?></title>
<?php require_once(WEB_DIR . "/includes/html_head.php"); ?>
</head>

<body>
<div id="container">
<?php require_once(WEB_DIR . "/includes/header.php"); ?>
<div id="middle">
<div id="left_vertical_line">
<?php require_once(WEB_DIR . "/includes/left.php"); ?>
<div id="content">
<h1>Cautare avansata</h1>
<?php require_once(WEB_DIR . "/includes/print_messages.php"); ?>

<dl id="advanced_search">
<dt class="title"><b>Informatii despre produs</b></dt>
<dd>

<form action="search.php" method="get">
<?php echo Tools::http_build_hidden_inputs($_GET, array("keywords", "min_price", "max_price", "id_manufacturer", "only_current_category")); ?>
<table>
<tr>
<td>Cuvinte cheie</td><td><input type="text" name="keywords" value="<?php echo Escape::htmlValue(@$_GET["keywords"]) ?>"></td>
</tr>
<tr>
<td>Producator</td>
<td>
	<select name="id_manufacturer">
	<option value="0">-- Alegeti --</option>
	<?php
	$db = Application::getDb();
	$list = $db->tbManufacturer->search(array(), 0, 500, "title");
	for($i = 0; $i < count($list); $i++)
	{
		$selected = ($list[$i]->id == @$_GET["id_manufacturer"]) ? "selected" : "";
		?>
		<option value="<?php echo Escape::htmlValue($list[$i]->id); ?>" <?php echo $selected; ?>><?php echo Escape::html($list[$i]->title); ?></option>
		<?php
	}
	?>
	</select>
</td>
</tr>
<tr>
<td>Pret minim</td><td><input type="text" name="min_price" value="<?php echo Escape::htmlValue(@$_GET["min_price"]); ?>"></td>
</tr>
<tr>
<td>Pret maxim</td><td><input type="text" name="max_price" value="<?php echo Escape::htmlValue(@$_GET["max_price"]); ?>"></td>
</tr>
<tr>
<td colspan="2"><input type="checkbox" name="only_current_category" value="1" style="display: inline; " <?php echo (@$_GET["only_current_category"] == "1") ? "checked" : ""; ?> id="chck_only_current_category"><label for="chck_only_current_category"> Cauta doar in categoria curenta</label></td>
</tr>
<tr>
<td>&nbsp;</td>
<td><input type="submit" value="Cauta!" class="button"></td>
</tr>
</table>
</form>

</dd>
</dl>


</div>
<?php require_once(WEB_DIR . "/includes/right.php"); ?>
<?php require_once(WEB_DIR . "/includes/footer.php"); ?>
</div>
</div>
</div>
</body>
</html>
Return current item: Katyshop