".$lang_label["audit_title"]." > ".$lang_label["logs"].""; if (isset($_GET["offset"])) $offset=$_GET["offset"]; else $offset=0; echo ""; echo "
"; echo ""; echo ""; // 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 ""; echo "
"; echo "

".$lang_label["filter"]."

".$lang_label["action"].""; echo ""; 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"; // Prepare query and pagination $query1 = "SELECT * FROM tsesion " . $tipo_log_select." ORDER BY fecha DESC"; if ( $counter > $config["block_size"]) { pagination ($counter, $url, $offset); $query1 .= " LIMIT $offset , ".$config["block_size"]; } $result=mysql_query($query1); // table header echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; $color=1; // Get data while ($row=mysql_fetch_array($result)) { if ($color == 1){ $tdcolor = "datos"; $color = 0; } else { $tdcolor = "datos2"; $color = 1; } echo ''; } // end table echo "
'.$lang_label["user"].''.$lang_label["action"].''.$lang_label["date"].''.$lang_label["src_address"].''.$lang_label["comments"].'
'.$row["ID_usuario"]; echo ''.$row["accion"]; echo ''.$row["fecha"]; echo ''.$row["IP_origen"]; echo ''.$row["descripcion"]; echo '
"; ?>