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

{include_if_exists file="include/header.php"}

<form name="frmSearch" method="GET" action="pf_sistemalog_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;Log</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" 
>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" 
 selected>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>


{doevent name="ListOnLoad"}


<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_sistemalog_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" {$search_id}>id</option>
<option value="stringerror" {$search_stringerror}>Texto</option>
<option value="fecha" {$search_fecha}>Fecha</option>
<option value="procedimiento" {$search_procedimiento}>Procedimiento</option>
</select>
&nbsp;
<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>
&nbsp;
<input type=text size=20 {if $useAJAX} autocomplete="off" onkeydown="return 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}>
&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: {$records_found}<br>
Página {$page} / {$maxpages}
</td>
<!--Records per page-->
<td align=center class=shade>
Resultados por página:<br>
<select 
onChange="javascript: document.location='pf_sistemalog_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>
{if $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_sistemalog_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">

<!--{if $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_sistemalog_list.php?orderby={$order_dir_id}id">
id</a>
</td>
<td>{$order_image_id}</td>
</table>
</td>
<td><table><tr><td class=blackshade>
<a class="blackshade" 
href="pf_sistemalog_list.php?orderby={$order_dir_stringerror}stringerror">
Texto</a>
</td>
<td>{$order_image_stringerror}</td>
</table>
</td>
<td><table><tr><td class=blackshade>
<a class="blackshade" 
href="pf_sistemalog_list.php?orderby={$order_dir_fecha}fecha">
Fecha</a>
</td>
<td>{$order_image_fecha}</td>
</table>
</td>
<td><table><tr><td class=blackshade>
<a class="blackshade" 
href="pf_sistemalog_list.php?orderby={$order_dir_procedimiento}procedimiento">
Procedimiento</a>
</td>
<td>{$order_image_procedimiento}</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_sistemalog_edit.php?{$row.1editlink}">
Editar</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_value}
</td>
<td>
{$row.1stringerror_value}
</td>
<td>
{$row.1fecha_value}
</td>
<td>
{$row.1procedimiento_value}
</td>



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


{/if}


</table>
</form>
<p>&nbsp;</p><p align=center><b>{$message}</b></p>

{$pagination}


{include_if_exists file="include/footer.php"}
</body>
</html>
