<?php /* Smarty version 2.6.13, created on 2007-07-10 17:30:57
         compiled from pf_camara_list.htm */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'include_if_exists', 'pf_camara_list.htm', 9, false),array('function', 'doevent', 'pf_camara_list.htm', 85, false),)), $this); ?>
<html>
<head>
<title>Camaras</title>
<link REL="stylesheet" href="include/style.css" type="text/css">
</head>
<body topmargin=5 bgcolor=white <?php echo $this->_tpl_vars['onload']; ?>
>
<?php echo $this->_tpl_vars['includes']; ?>


<?php echo smarty_function_include_if_exists(array('file' => "include/header.php"), $this);?>


<form name="frmSearch" method="GET" action="pf_camara_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><tr>
<td width=30>&nbsp;</td>
<td align=center>
<font size=+0><b>&nbsp;Camaras</b></font>
</td><td width=50 align=center>

<td width=80% align=center>

<table align='center' border='0'>
<tr>
<td width=10>&nbsp;</td>





<td valign=middle align=center>Salto rápido:</td>
<td align=center>
<select onchange="window.location.href=this.options[this.selectedIndex].value;">
<option value="menu.php">Regresar al menú</option>

	<option value="pf_configuracion_list.php" 
>Configuracion</option>


	<option value="pf_log_proceso_list.php" 
>Log Proceso</option>


	<option value="pf_camara_list.php" 
 selected>Camaras</option>


	<option value="pf_menu_list.php" 
>Menu</option>


	<option value="pf_proceso_list.php" 
>Procesos</option>


	<option value="pf_sensorxcamara_list.php" 
>Sensores</option>


	<option value="pf_sistemalog_list.php" 
>Log</option>


	<option value="pf_tarja_list.php" 
>Tarja</option>


	<option value="pf_usuario_list.php" 
>Usuarios</option>

</select>
</td>
<td width=20>&nbsp;</td>


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


<?php echo smarty_function_doevent(array('name' => 'ListOnLoad'), $this);?>



<TABLE WIDTH=95% CELLPADDING=4 CELLSPACING=1 BORDER=0 align=center style="border: solid; border-width: 1px; border-color: #C0C0C0;">
	<tr>
		

 <!-- Add new record -->
<td align=center class='shade'>
 	<a href="pf_camara_add.php" >Añadir nuevo</a>
</td>




<td align=center valign=middle class=shade>
<b>Buscar por: </b> &nbsp;&nbsp;&nbsp;
<select id="ctlSearchField">
<option value="">Cualquier campo</option>
<option value="id_camara" <?php echo $this->_tpl_vars['search_id_camara']; ?>
>Identificador Camara</option>
<option value="nombre_camara" <?php echo $this->_tpl_vars['search_nombre_camara']; ?>
>Nombre de la Camara</option>
<option value="estado_actual" <?php echo $this->_tpl_vars['search_estado_actual']; ?>
>Estado Actual</option>
<option value="tipo_camara" <?php echo $this->_tpl_vars['search_tipo_camara']; ?>
>Tipo de Camara</option>
<option value="proceso_actual" <?php echo $this->_tpl_vars['search_proceso_actual']; ?>
>Proceso Actual</option>
<option value="posicion_puerta" <?php echo $this->_tpl_vars['search_posicion_puerta']; ?>
>Posicion de la Puerta</option>
<option value="x" <?php echo $this->_tpl_vars['search_x']; ?>
>x</option>
<option value="y" <?php echo $this->_tpl_vars['search_y']; ?>
>y</option>
<option value="w" <?php echo $this->_tpl_vars['search_w']; ?>
>w</option>
<option value="h" <?php echo $this->_tpl_vars['search_h']; ?>
>h</option>
<option value="maxpallet" <?php echo $this->_tpl_vars['search_maxpallet']; ?>
>Maximo Numero de Pallets</option>
</select>
&nbsp;
<select id="ctlSearchOption">
<option value="Contains" <?php echo $this->_tpl_vars['search_contains_option_selected']; ?>
>Contiene</option>
<option value="Equals" <?php echo $this->_tpl_vars['search_equals_option_selected']; ?>
>Equivale</option>
<option value="Starts with ..." <?php echo $this->_tpl_vars['search_startswith_option_selected']; ?>
>Empieza con</option>
<option value="More than ..." <?php echo $this->_tpl_vars['search_more_option_selected']; ?>
>Más que</option>
<option value="Less than ..." <?php echo $this->_tpl_vars['search_less_option_selected']; ?>
>Menos que</option>
<option value="Equal or more than ..." <?php echo $this->_tpl_vars['search_equalormore_option_selected']; ?>
>Igual o más</option>
<option value="Equal or less than ..." <?php echo $this->_tpl_vars['search_equalorless_option_selected']; ?>
>Igual o menos</option>
<option value="Empty" <?php echo $this->_tpl_vars['search_empty_option_selected']; ?>
>Vacio</option>
</select>
&nbsp;
<input type=text size=20 <?php if ($this->_tpl_vars['useAJAX']): ?> autocomplete="off" onkeydown="return listenEvent(event,this,'ordinary');" onkeyup="searchSuggest(event,this,'ordinary');" <?php else: ?> onkeydown="e=event; if(!e) e = window.event; if (e.keyCode != 13) return true; e.cancel = true; RunSearch(); return false;" <?php endif; ?>
	  id="ctlSearchFor" <?php echo $this->_tpl_vars['search_searchfor']; ?>
>
&nbsp;
<input type=button class="button" value="Buscar"
onClick="javascript: RunSearch();">
&nbsp;		
<input type=button class=button value="Mostrar todo" 
onClick="javascript: document.forms.frmSearch.a.value = 'showall'; document.forms.frmSearch.submit();"> 	
</td>
<!-- how many records found-->
<td align=center class=shade>
Detalles encontrados: <?php echo $this->_tpl_vars['records_found']; ?>
<br>
Página <?php echo $this->_tpl_vars['page']; ?>
 / <?php echo $this->_tpl_vars['maxpages']; ?>

</td>
<!--Records per page-->
<td align=center class=shade>
Resultados por página:<br>
<select 
onChange="javascript: document.location='pf_camara_list.php?pagesize='+this.options[this.selectedIndex].value;">
<option value="10" <?php echo $this->_tpl_vars['rpp10_selected']; ?>
>10</option>
<option value="20" <?php echo $this->_tpl_vars['rpp20_selected']; ?>
>20</option>
<option value="30" <?php echo $this->_tpl_vars['rpp30_selected']; ?>
>30</option>
<option value="50" <?php echo $this->_tpl_vars['rpp50_selected']; ?>
>50</option>
<option value="100" <?php echo $this->_tpl_vars['rpp100_selected']; ?>
>100</option>
<option value="500" <?php echo $this->_tpl_vars['rpp500_selected']; ?>
>500</option>
</select>
</td></tr></table>
<?php if ($this->_tpl_vars['rowsfound']): ?>


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




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

<table align="center" width="95%" border="0" cellpadding=3 cellspacing=2 style="border: solid; border-width: 1px; border-color: #C0C0C0;">
<!-- table header -->
<tr class="blackshade" valign="top">

<!--<?php if ($this->_tpl_vars['column1show']): ?>-->


<td align="center"><img src="images/icon_edit.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=blackshade>
<a class="blackshade" 
href="pf_camara_list.php?orderby=<?php echo $this->_tpl_vars['order_dir_id_camara']; ?>
id%5Fcamara">
Identificador Camara</a>
</td>
<td><?php echo $this->_tpl_vars['order_image_id_camara']; ?>
</td>
</table>
</td>
<td><table><tr><td class=blackshade>
<a class="blackshade" 
href="pf_camara_list.php?orderby=<?php echo $this->_tpl_vars['order_dir_nombre_camara']; ?>
nombre%5Fcamara">
Nombre de la Camara</a>
</td>
<td><?php echo $this->_tpl_vars['order_image_nombre_camara']; ?>
</td>
</table>
</td>
<td><table><tr><td class=blackshade>
<a class="blackshade" 
href="pf_camara_list.php?orderby=<?php echo $this->_tpl_vars['order_dir_estado_actual']; ?>
estado%5Factual">
Estado Actual</a>
</td>
<td><?php echo $this->_tpl_vars['order_image_estado_actual']; ?>
</td>
</table>
</td>
<td><table><tr><td class=blackshade>
<a class="blackshade" 
href="pf_camara_list.php?orderby=<?php echo $this->_tpl_vars['order_dir_tipo_camara']; ?>
tipo%5Fcamara">
Tipo de Camara</a>
</td>
<td><?php echo $this->_tpl_vars['order_image_tipo_camara']; ?>
</td>
</table>
</td>
<td><table><tr><td class=blackshade>
<a class="blackshade" 
href="pf_camara_list.php?orderby=<?php echo $this->_tpl_vars['order_dir_proceso_actual']; ?>
proceso%5Factual">
Proceso Actual</a>
</td>
<td><?php echo $this->_tpl_vars['order_image_proceso_actual']; ?>
</td>
</table>
</td>
<td><table><tr><td class=blackshade>
<a class="blackshade" 
href="pf_camara_list.php?orderby=<?php echo $this->_tpl_vars['order_dir_posicion_puerta']; ?>
posicion%5Fpuerta">
Posicion de la Puerta</a>
</td>
<td><?php echo $this->_tpl_vars['order_image_posicion_puerta']; ?>
</td>
</table>
</td>
<td><table><tr><td class=blackshade>
<a class="blackshade" 
href="pf_camara_list.php?orderby=<?php echo $this->_tpl_vars['order_dir_x']; ?>
x">
x</a>
</td>
<td><?php echo $this->_tpl_vars['order_image_x']; ?>
</td>
</table>
</td>
<td><table><tr><td class=blackshade>
<a class="blackshade" 
href="pf_camara_list.php?orderby=<?php echo $this->_tpl_vars['order_dir_y']; ?>
y">
y</a>
</td>
<td><?php echo $this->_tpl_vars['order_image_y']; ?>
</td>
</table>
</td>
<td><table><tr><td class=blackshade>
<a class="blackshade" 
href="pf_camara_list.php?orderby=<?php echo $this->_tpl_vars['order_dir_w']; ?>
w">
w</a>
</td>
<td><?php echo $this->_tpl_vars['order_image_w']; ?>
</td>
</table>
</td>
<td><table><tr><td class=blackshade>
<a class="blackshade" 
href="pf_camara_list.php?orderby=<?php echo $this->_tpl_vars['order_dir_h']; ?>
h">
h</a>
</td>
<td><?php echo $this->_tpl_vars['order_image_h']; ?>
</td>
</table>
</td>
<td><table><tr><td class=blackshade>
<a class="blackshade" 
href="pf_camara_list.php?orderby=<?php echo $this->_tpl_vars['order_dir_maxpallet']; ?>
maxpallet">
Maximo Numero de Pallets</a>
</td>
<td><?php echo $this->_tpl_vars['order_image_maxpallet']; ?>
</td>
</table>
</td>
<!--<?php endif; ?>-->
</tr>

<!-- table data -->
<!--<?php $_from = $this->_tpl_vars['rowinfo']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['row']):
?>-->


<tr valign="top"
<?php echo $this->_tpl_vars['row']['shadeclass']; ?>
 
onmouseover="this.className = 'rowselected';" onmouseout="this.className = '<?php echo $this->_tpl_vars['row']['shadeclassname']; ?>
';"
> 




<td align="center">

<a href="pf_camara_edit.php?<?php echo $this->_tpl_vars['row']['1editlink']; ?>
">
Editar</a>

&nbsp;
</td>






<td align="center">

<input type=checkbox name="mdelete[]" value="<?php echo $this->_tpl_vars['row']['1recno']; ?>
">

<input type=hidden name="mdelete1[]" value="<?php echo $this->_tpl_vars['row']['1id1']; ?>
">
&nbsp;</td>





<td>
<?php echo $this->_tpl_vars['row']['1id_camara_value']; ?>

</td>
<td>
<?php echo $this->_tpl_vars['row']['1nombre_camara_value']; ?>

</td>
<td>
<?php echo $this->_tpl_vars['row']['1estado_actual_value']; ?>

</td>
<td>
<?php echo $this->_tpl_vars['row']['1tipo_camara_value']; ?>

</td>
<td>
<?php echo $this->_tpl_vars['row']['1proceso_actual_value']; ?>

</td>
<td>
<?php echo $this->_tpl_vars['row']['1posicion_puerta_value']; ?>

</td>
<td>
<?php echo $this->_tpl_vars['row']['1x_value']; ?>

</td>
<td>
<?php echo $this->_tpl_vars['row']['1y_value']; ?>

</td>
<td>
<?php echo $this->_tpl_vars['row']['1w_value']; ?>

</td>
<td>
<?php echo $this->_tpl_vars['row']['1h_value']; ?>

</td>
<td>
<?php echo $this->_tpl_vars['row']['1maxpallet_value']; ?>

</td>



<!--<?php endforeach; endif; unset($_from); ?>-->
	
</tr>


<?php endif; ?>


</table>
</form>
<p>&nbsp;</p><p align=center><b><?php echo $this->_tpl_vars['message']; ?>
</b></p>

<?php echo $this->_tpl_vars['pagination']; ?>



<?php echo smarty_function_include_if_exists(array('file' => "include/footer.php"), $this);?>

</body>
</html>
