Location: PHPKode > projects > Katyshop > katyshop_ro_0.3.2.1/web/advanced_search.php
 * Product: Katyshop
 * @version
 * @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
 * 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");
<title><?php echo APP_NAME; ?></title>
<?php require_once(WEB_DIR . "/includes/html_head.php"); ?>

<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>

<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")); ?>
<td>Cuvinte cheie</td><td><input type="text" name="keywords" value="<?php echo Escape::htmlValue(@$_GET["keywords"]) ?>"></td>
	<select name="id_manufacturer">
	<option value="0">-- Alegeti --</option>
	$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>
<td>Pret minim</td><td><input type="text" name="min_price" value="<?php echo Escape::htmlValue(@$_GET["min_price"]); ?>"></td>
<td>Pret maxim</td><td><input type="text" name="max_price" value="<?php echo Escape::htmlValue(@$_GET["max_price"]); ?>"></td>
<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>
<td><input type="submit" value="Cauta!" class="button"></td>


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