<html>
<head>
<title>Planta</title>
<link REL="stylesheet" href="include/style.css" type="text/css">
</head>
<body topmargin=5 {$onload}>
{$includes}



<form name="frmSearch" method="GET" action="pf_planta_list.php">
<input type="Hidden" name="a" value="search">
<input type="Hidden" name="value" value="1">
<input type="Hidden" name="SearchFor" value="">
<input type="Hidden" name="SearchOption" value="">
<input type="Hidden" name="SearchField" value="">
</form>

<TABLE WIDTH=1045 CELLPADDING=5 CELLSPACING=0 align=center class="main_table"><tr><td colspan=2>
{include_if_exists file="include/header.php"}</td></tr>
<tr><td colspan=2>
<table cellspacing=5 cellpadding=0 align=center width=100% style="padding: 5px; border-top: 1px solid #ACA899; border-bottom: 1px solid #ACA899;">
<tr>
<!-- login/logout -->			  
<td width=10%></td>

<!-- Advanced search-->

<td align=center>
<a href="pf_planta_search.php" class="navlinks">Búsqueda avanzada</a>	
</td>
<td width=5>&nbsp;</td>


<!-- export -->

<td align=center>
<a target="_blank" href="pf_planta_export.php" class="navlinks">Exportar resultados</a>
</td><td width=5>&nbsp;</td>

<!-- print -->
<td align=center>
<a target="_blank" href="pf_planta_print.php" class="navlinks">Impresora versión amigable</a>
</td>
<td width=5>&nbsp;</td>

</tr>
</table></td></tr>
<!-- menu block -->
<tr><td valign=top width=20%>
<div class="blackshade">
<table width="100%" cellspacing="0" cellpadding="2" border="0">
<tr><td height=23 align="center" class="bl"><font size=+0><b>Planta<b></font></td></tr>



<!-- list of tables -->
<tr><td><ul>


	<li>&nbsp;&nbsp;<a href="pf_camara_list.php"
 class="tablelinks">dbo.pf_camara</a></li>


	<li>&nbsp;&nbsp;<a href="pf_menu_list.php"
 class="tablelinks">Menu</a></li>


	<li>&nbsp;&nbsp;<a href="pf_planta_list.php"
 class="highlight-table" >Planta</a></li>


	<li>&nbsp;&nbsp;<a href="pf_proceso_list.php"
 class="tablelinks">Procesos</a></li>


	<li>&nbsp;&nbsp;<a href="pf_sensorxcamara_list.php"
 class="tablelinks">Sensores</a></li>


	<li>&nbsp;&nbsp;<a href="pf_sistemalog_list.php"
 class="tablelinks">Log</a></li>


	<li>&nbsp;&nbsp;<a href="pf_tarja_list.php"
 class="tablelinks">Tarja</a></li>


	<li>&nbsp;&nbsp;<a href="pf_usuario_list.php"
 class="tablelinks">Usuarios</a></li>


</ul></td></tr>
</table>


<!-- simple search -->
<table width="100%" cellspacing="0" cellpadding="2" border="0">

<tr><td align=center class="blackshade"><hr>Buscar por:</td></tr>
<tr><td class="blackshade" style="padding-left:10px;">
<select id="ctlSearchField">
<option value="">Cualquier campo</option>
<option value="id_planta" {$search_id_planta}>id_planta</option>
<option value="nombre" {$search_nombre}>nombre</option>
<option value="num_camara" {$search_num_camara}>num_camara</option>
</select>
</td></tr>
<tr><td style="padding-left:10px;">
<select id="ctlSearchOption">
<option value="Contains" {$search_contains_option_selected}>Contiene</option>
<option value="Equals" {$search_equals_option_selected}>Equivale</option>
<option value="Starts with ..." {$search_startswith_option_selected}>Empieza con</option>
<option value="More than ..." {$search_more_option_selected}>Más que</option>
<option value="Less than ..." {$search_less_option_selected}>Menos que</option>
<option value="Equal or more than ..." {$search_equalormore_option_selected}>Igual o más</option>
<option value="Equal or less than ..." {$search_equalorless_option_selected}>Igual o menos</option>
<option value="Empty" {$search_empty_option_selected}>Vacio</option>
</select>
</td></tr>
<tr><td style="padding-left:10px;">
<input type=text size=20 {if $useAJAX} autocomplete="off" onkeydown="listenEvent(event,this,'ordinary');" onkeyup="searchSuggest(event,this,'ordinary');" {else} onkeydown="e=event; if(!e) e = window.event; if (e.keyCode != 13) return true; e.cancel = true; RunSearch(); return false;" {/if}
	  id="ctlSearchFor" {$search_searchfor}>
</td></tr>
<tr><td style="padding-left:10px;">
<a href="#" onClick="javascript: RunSearch();"><img src="include/img/arrowR2.gif" border=0 alt="Buscar!"></a>
	</td></tr>
<!-- how many records found-->
<tr><td align=center class="blackshade"><hr>
Detalles encontrados: {$records_found}</td></tr><tr><td align="center" class="blackshade">
Página {$page} / {$maxpages}&nbsp;&nbsp;&nbsp;
<a href="#" onClick="javascript: document.forms.frmSearch.a.value = 'showall'; document.forms.frmSearch.submit();"><img src="include/img/arrowR2.gif" align="absmiddle" border=0 alt="Mostrar todo"></a>
</td></tr>

<!--Records per page-->
<tr><td class="blackshade"><hr>
Resultados por página:
<select 
onChange="javascript: document.location='pf_planta_list.php?pagesize='+this.options[this.selectedIndex].value;">
<option value="10" {$rpp10_selected}>10</option>
<option value="20" {$rpp20_selected}>20</option>
<option value="30" {$rpp30_selected}>30</option>
<option value="50" {$rpp50_selected}>50</option>
<option value="100" {$rpp100_selected}>100</option>
<option value="500" {$rpp500_selected}>500</option>
</select>
</td></tr>
</table>
</td>
</div>
<!-- main block -->
<td valign=top width=95%>	
<!-- language info -->
<!-- mastertable info -->

<!-- Add new record -->

 
<div class="bl" valign=middle style="padding: 5px;">
 	<a href="pf_planta_add.php" class="addnew">
	<img src="include/img/arrowR5.gif"  alt="Añadir nuevo" align="absmiddle" border=0 />&nbsp;&nbsp;Añadir nuevo</a>
</div>


<!-- table with data -->
<table class="main_table" width=100%><tr><td>
{if $rowsfound}


&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<a class="toplinks" href="#" onClick="if (confirm('?Realmente quiere borrar estos archivos?')) frmAdmin.submit(); return false;">Borrar articulos seleccionados</a>





&nbsp;&nbsp;
<a href="#" class="toplinks" onclick="var c=0; for (i=0;i<frmAdmin.elements['mdelete[]'].length;++i) if (frmAdmin.elements['mdelete[]'][i].checked) c=1;  if(c==0) return true; frmAdmin.action='pf_planta_export.php';frmAdmin.target='_blank';frmAdmin.submit(); frmAdmin.action='pf_planta_list.php'; frmAdmin.target='_self';">
Exportar seleccionados</a>



&nbsp;&nbsp;
<a href="#" class="toplinks" onclick="var c=0; for (i=0;i<frmAdmin.elements['mdelete[]'].length;++i) if (frmAdmin.elements['mdelete[]'][i].checked) c=1;  if(c==0) return true; frmAdmin.action='pf_planta_print.php';frmAdmin.target='_blank';frmAdmin.submit(); frmAdmin.action='pf_planta_list.php'; frmAdmin.target='_self';">
Imprimir seleccionados</a>


<!-- delete form -->
<form method="POST" action="pf_planta_list.php" name="frmAdmin">
	<input type=hidden id="a" name="a" value="delete">

<table width="100%" border=0 cellpadding=3 cellspacing=2 class="data">
<!-- table header -->
<tr class="blackshade" valign="top">

<!--{if $column1show}-->


<td align="center"><img src="images/icon_edit.gif"></td>



<td align="center"><img src="images/icon_view.gif"></td>


<td align="center">
<input type=checkbox onClick = "var i; /*this.checked=!this.checked; */
if ((typeof frmAdmin.elements['mdelete[]'].length)=='undefined')
	frmAdmin.elements['mdelete[]'].checked=this.checked;
else
for (i=0;i<frmAdmin.elements['mdelete[]'].length;++i) 
	frmAdmin.elements['mdelete[]'][i].checked=this.checked;">
</td>



<td><table><tr><td class=navy>
<a class="tablelinks" 
href="pf_planta_list.php?orderby={$order_dir_id_planta}id%5Fplanta">
id_planta</a>
</td>
<td>{$order_image_id_planta}</td>
</table>
</td>
<td><table><tr><td class=navy>
<a class="tablelinks" 
href="pf_planta_list.php?orderby={$order_dir_nombre}nombre">
nombre</a>
</td>
<td>{$order_image_nombre}</td>
</table>
</td>
<td><table><tr><td class=navy>
<a class="tablelinks" 
href="pf_planta_list.php?orderby={$order_dir_num_camara}num%5Fcamara">
num_camara</a>
</td>
<td>{$order_image_num_camara}</td>
</table>
</td>
<!--{/if}-->
</tr>

<!-- table data -->
<!--{foreach from=$rowinfo item=row}-->


<tr valign="top"
{$row.shadeclass} 
onmouseover="this.className = 'rowselected';" onmouseout="this.className = '{$row.shadeclassname}';"
> 




<td align="center">

<a href="pf_planta_edit.php?{$row.1editlink}" class="tablelinks">
Editar</a>

&nbsp;
</td>




<td align="center">
<a href="pf_planta_view.php?{$row.1editlink}" class="tablelinks">
Ver</a>
&nbsp;</td>


<td align="center">

<input type=checkbox name="mdelete[]" value="{$row.1recno}">

<input type=hidden name="mdelete1[]" value="{$row.1id1}">
&nbsp;</td>





<td>
{$row.1id_planta_value}
</td>
<td>
{$row.1nombre_value}
</td>
<td>
{$row.1num_camara_value}
</td>



<!--{/foreach}-->
	
</tr>

</td></tr></table>	
</form>
{/if}

<p align=center><b>{$message}</b></p>

{$pagination}





</td></tr></table>



{doevent name="ListOnLoad"}
</td></tr></table>
{include_if_exists file="include/footer.php"}
</body>
</html>
