".$lang_label["audit_title"].""; if (isset($_GET["offset"])) $offset=$_GET["offset"]; else $offset=0; // Manage GET/POST parameter for subselect on action type. POST parameter are proccessed before GET parameter (if passed) if (isset($_GET["tipo_log"])){ $tipo_log = $_GET["tipo_log"]; $tipo_log_select = " WHERE accion='".$tipo_log."' "; } elseif (isset($_POST["tipo_log"])) { $tipo_log = $_POST["tipo_log"]; if ($tipo_log == "-1"){ $tipo_log_select = ""; unset($tipo_log); } else $tipo_log_select = " WHERE accion='".$tipo_log."' "; } else $tipo_log_select= ""; // generate select echo "

".$lang_label["filter"]; echo "  ".$lang_label["help"]."

"; echo "
"; echo "
"; echo ""; echo ""; echo "
"; $sql2="SELECT COUNT(*) FROM tsesion ".$tipo_log_select." ORDER BY fecha DESC"; $result2=mysql_query($sql2); $row2=mysql_fetch_array($result2); $counter = $row2[0]; if (isset ($tipo_log)) $url = "index.php?sec=godmode&sec2=godmode/admin_access_logs&tipo_log=".$tipo_log; else $url = "index.php?sec=godmode&sec2=godmode/admin_access_logs"; //echo "URLTipolog $tipo_log"; pagination ($counter, $url, $offset); echo '
'; // table header echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; // Skip offset records $query1="SELECT * FROM tsesion ".$tipo_log_select." ORDER BY fecha DESC"; $result=mysql_query($query1); $offset_counter = 0; while ($offset_counter < $offset){ if ($row=mysql_fetch_array($result)) $offset_counter++; else $offset_counter = $offset; //exit condition } $offset_counter = 0; $color=1; // Get data while ($row=mysql_fetch_array($result) and ($offset_counter < $block_size) ){ if ($color == 1){ $tdcolor = "datos"; $color = 0; } else { $tdcolor = "datos2"; $color = 1; } $usuario=$row["ID_usuario"]; echo ''; $offset_counter++; } // end table echo "
'.$lang_label["user"].''.$lang_label["action"].''.$lang_label["date"].''.$lang_label["src_address"].''.$lang_label["comments"].'
'.$usuario; echo ''.$row["accion"]; echo ''.$row["fecha"]; echo ''.$row["IP_origen"]; echo ''.$row["descripcion"]; echo '
"; ?>