|
@@ -7,24 +7,32 @@
|
|
<link rel="stylesheet" href="../../script/semantic/semantic.min.css">
|
|
<link rel="stylesheet" href="../../script/semantic/semantic.min.css">
|
|
<script type="text/javascript" src="../../script/jquery.min.js"></script>
|
|
<script type="text/javascript" src="../../script/jquery.min.js"></script>
|
|
<script type="text/javascript" src="../../script/semantic/semantic.min.js"></script>
|
|
<script type="text/javascript" src="../../script/semantic/semantic.min.js"></script>
|
|
|
|
+ <style>
|
|
|
|
+
|
|
|
|
+ </style>
|
|
</head>
|
|
</head>
|
|
<body>
|
|
<body>
|
|
- <div class="ui container">
|
|
|
|
- <p>Connection Attempts</p>
|
|
|
|
- <h1 class="ui header">
|
|
|
|
- <span id="normalStatus">Analysising</span>
|
|
|
|
- <div class="sub header"><span id="loginAptCount"></span> login request logged this month with <span id="incorrectRatio"></span> incorrect password attempts.
|
|
|
|
- </h1>
|
|
|
|
- <div class="ui divider"></div>
|
|
|
|
- <div class="ui fluid selection dropdown">
|
|
|
|
- <input type="hidden" name="tablekey" onchange="loadRecords(this);">
|
|
|
|
- <i class="dropdown icon"></i>
|
|
|
|
- <div class="default text">Date</div>
|
|
|
|
- <div id="recordTables" class="menu">
|
|
|
|
-
|
|
|
|
|
|
+ <div class="ui container" style="height: 100% !important;">
|
|
|
|
+ <div>
|
|
|
|
+ <p>Connection Attempts</p>
|
|
|
|
+ <h1 class="ui header">
|
|
|
|
+ <span id="normalStatus">Analysising</span>
|
|
|
|
+ <div class="sub header">
|
|
|
|
+ <span id="loginAptCount"></span> login request logged this month with <span id="incorrectRatio"></span> incorrect password attempts.
|
|
|
|
+ </div>
|
|
|
|
+ </h1>
|
|
|
|
+ <div class="ui divider"></div>
|
|
|
|
+ <div class="ui fluid selection dropdown">
|
|
|
|
+ <input type="hidden" name="tablekey" onchange="loadRecords(this);">
|
|
|
|
+ <i class="dropdown icon"></i>
|
|
|
|
+ <div class="default text">Date</div>
|
|
|
|
+ <div id="recordTables" class="menu">
|
|
|
|
+
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
- <div class="ui divider">
|
|
|
|
|
|
+ <div class="ui divider"></div>
|
|
|
|
+ <div>
|
|
<table class="ui celled table">
|
|
<table class="ui celled table">
|
|
<thead>
|
|
<thead>
|
|
<tr>
|
|
<tr>
|
|
@@ -38,16 +46,19 @@
|
|
<tbody id="records">
|
|
<tbody id="records">
|
|
|
|
|
|
</tbody>
|
|
</tbody>
|
|
- </table>
|
|
|
|
|
|
+ </table>
|
|
</div>
|
|
</div>
|
|
|
|
+ <br><br>
|
|
</div>
|
|
</div>
|
|
- <br><br><br>
|
|
|
|
|
|
+
|
|
<script>
|
|
<script>
|
|
var monthNames = ["Jan", "Feb", "Mar", "Apr", "May", "Jun","Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
|
|
var monthNames = ["Jan", "Feb", "Mar", "Apr", "May", "Jun","Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
|
|
|
|
|
|
$(".ui.dropdown").dropdown();
|
|
$(".ui.dropdown").dropdown();
|
|
|
|
|
|
|
|
+
|
|
initMonthList();
|
|
initMonthList();
|
|
|
|
+
|
|
|
|
|
|
//Get the table that belongs to today. Put in offset if the current month not found in list
|
|
//Get the table that belongs to today. Put in offset if the current month not found in list
|
|
function getCurrentMonthTable(monOffset = 0){
|
|
function getCurrentMonthTable(monOffset = 0){
|
|
@@ -83,18 +94,17 @@
|
|
}
|
|
}
|
|
|
|
|
|
//Select the current month if it exists
|
|
//Select the current month if it exists
|
|
- setTimeout(function(){
|
|
|
|
- if (currentMontHTableExists){
|
|
|
|
- $("#recordTables").parent().dropdown("set selected", getCurrentMonthTable());
|
|
|
|
- }
|
|
|
|
- },300);
|
|
|
|
|
|
+ if (currentMontHTableExists){
|
|
|
|
+ $("#recordTables").parent().dropdown("set selected", getCurrentMonthTable());
|
|
|
|
+ loadRecordsByTableName(getCurrentMonthTable());
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
|
|
}
|
|
}
|
|
});
|
|
});
|
|
}
|
|
}
|
|
|
|
|
|
- function loadRecords(object){
|
|
|
|
- var tableName = object.value;
|
|
|
|
|
|
+ function loadRecordsByTableName(tableName){
|
|
$.ajax({
|
|
$.ajax({
|
|
url: "../../system/auth/logger/list",
|
|
url: "../../system/auth/logger/list",
|
|
data: {record: tableName},
|
|
data: {record: tableName},
|
|
@@ -133,7 +143,12 @@
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- })
|
|
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ function loadRecords(object){
|
|
|
|
+ var tableName = object.value;
|
|
|
|
+ loadRecordsByTableName(tableName);
|
|
}
|
|
}
|
|
|
|
|
|
function updateSummaryText(records){
|
|
function updateSummaryText(records){
|