Location: PHPKode > projects > Map:catalog[WebGUI] > includes/buscador.php
<?
/**
* @version	    $Id: 'includes/buscador.php' 21-07-2007 05:30:00 Moises Jafet$
* @package	    "[:DRmap(WebGUI):]"
* @copyright	Copyright (C) 2007 Moises Jafet Cornelio-Vargas. All rights reserved.
* @license	    GNU/GPL, see LICENSE.TXT
* 
* [:DRmap(WebGUI):] 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 any later version. As distributed it includes or
* is derivative of works licensed under the GNU General Public License or other free 
* or open source software licenses.
*
* [:DRmap(WebGUI):] 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 and 
* COPYRIGHT.TXT for copyright notices and details.
*/

//Control de acceso directo al fichero. (Moises)
defined( '_VALID_CPTICRD' ) or die( 'Prohibido el Acesso a este Recurso' ); 

/**
* La idea del sufijo de pagina + css ( '<?php echo $pSufijo ?>' ) es poder cargar el 
* buscador en diferentes lugares de la aplicacion por via de un 'include' o 'require', 
* reduciendo la redundancia de codigo Favor ver el comentario en la linea no.35 en 
* 'index.php' para mayor claridad. (Moises)
*/
?>
	
<div id="buscador<?php echo $pSufijo ?>" title="Buscador">  <!-- Buscador -->
<form name="buscador" 
action="buscador.php" method="GET" >
<input name="buscar"  type="text" maxlength="30" alt="buscador" value="::Proyecto::"
onblur="if(this.value=='') this.value='::Proyecto::';" onfocus="if(this.value=='::Proyecto::') this.value='';"
class="boquita<?php echo $pSufijo ?>">
<input type="submit" value="buscar" class="boton<?php echo $pSufijo ?>" />				
</form>
</div> <!-- Fin del Buscador -->
Return current item: Map:catalog[WebGUI]