|
|
@ -8,7 +8,7 @@
|
|
|
|
<div id="${infoPrefix}-query" class="d-flex flex-row justify-content-between p-3">
|
|
|
|
<div id="${infoPrefix}-query" class="d-flex flex-row justify-content-between p-3">
|
|
|
|
<div class="d-flex flex-row">
|
|
|
|
<div class="d-flex flex-row">
|
|
|
|
<div class="input-group">
|
|
|
|
<div class="input-group">
|
|
|
|
<select id="logType" class="form-select">
|
|
|
|
<select id="${infoPrefix}logType" name="logType" class="form-select">
|
|
|
|
<option value="">로그유형</option>
|
|
|
|
<option value="">로그유형</option>
|
|
|
|
<option value="log-inout">로그인/아웃</option>
|
|
|
|
<option value="log-inout">로그인/아웃</option>
|
|
|
|
<option value="download">다운로드</option>
|
|
|
|
<option value="download">다운로드</option>
|
|
|
@ -16,17 +16,17 @@
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="input-group" style="margin: 0 1rem 0 1rem">
|
|
|
|
<div class="input-group" style="margin: 0 1rem 0 1rem">
|
|
|
|
<select id="by" onchange="document.getElementById('term').focus();" class="form-select">
|
|
|
|
<select id="${infoPrefix}by" name="by" onchange="document.getElementById('${infoPrefix}term').focus();" class="form-select">
|
|
|
|
<option value="userName">사용자 이름</option>
|
|
|
|
<option value="userName">사용자 이름</option>
|
|
|
|
<option value="userAccount">사용자 계정</option>
|
|
|
|
<option value="userAccount">사용자 계정</option>
|
|
|
|
<option value="userID">사용자 아이디</option>
|
|
|
|
<option value="userID">사용자 아이디</option>
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
<input id="term" type="text" placeholder="조회 조건을 입력하십시오." class="form-control">
|
|
|
|
<input id="${infoPrefix}term" name="term" type="text" placeholder="조회 조건을 입력하십시오." class="form-control">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="input-group">
|
|
|
|
<div class="input-group">
|
|
|
|
<input id="fromDate" type="text" value="${fromDate}" required placeholder="시작일자" class="form-control">
|
|
|
|
<input id="${infoPrefix}fromDate" name="fromDate" type="text" value="${fromDate}" required placeholder="시작일자" class="form-control">
|
|
|
|
<span style="margin: 0 .5rem 0 .5rem"> ~ </span>
|
|
|
|
<span style="margin: 0 .5rem 0 .5rem"> ~ </span>
|
|
|
|
<input id="toDate" type="text" value="${toDate}" required placeholder="종료일자" class="form-control">
|
|
|
|
<input id="${infoPrefix}toDate" name="toDate" type="text" value="${toDate}" required placeholder="종료일자" class="form-control">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
@ -88,15 +88,15 @@ var ${infoPrefix}Control = new DatasetControl({
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
function search${infoPrefix}s() {
|
|
|
|
function search${infoPrefix}s() {
|
|
|
|
let logType = $("#logType").val(),
|
|
|
|
let logType = $("#${infoPrefix}logType").val(),
|
|
|
|
params = {
|
|
|
|
params = {
|
|
|
|
logTypes: logType ? [logType] : [],
|
|
|
|
logTypes: logType ? [logType] : [],
|
|
|
|
fromDate: $("#fromDate").val().replace(/-/gi, ""),
|
|
|
|
fromDate: $("#${infoPrefix}fromDate").val().replace(/-/gi, ""),
|
|
|
|
toDate: $("#toDate").val().replace(/-/gi, "")
|
|
|
|
toDate: $("#${infoPrefix}toDate").val().replace(/-/gi, "")
|
|
|
|
},
|
|
|
|
},
|
|
|
|
terms = $("#${infoPrefix}-query #term").val();
|
|
|
|
terms = $("#${infoPrefix}-query [name='term']").val();
|
|
|
|
if (terms) {
|
|
|
|
if (terms) {
|
|
|
|
switch ($("#${infoPrefix}-query #by").val()) {
|
|
|
|
switch ($("#${infoPrefix}-query [name='by']").val()) {
|
|
|
|
case "userName": params.userName = terms; break;
|
|
|
|
case "userName": params.userName = terms; break;
|
|
|
|
case "userAccount": params.userAccounts = [terms]; break;
|
|
|
|
case "userAccount": params.userAccounts = [terms]; break;
|
|
|
|
case "userID": params.userIDs = [terms]; break;
|
|
|
|
case "userID": params.userIDs = [terms]; break;
|
|
|
@ -139,7 +139,7 @@ ${infoPrefix}Control.onCurrentChange = item => {
|
|
|
|
$("#${infoPrefix}List").setCurrentRow(key);
|
|
|
|
$("#${infoPrefix}List").setCurrentRow(key);
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
$("#term").onEnterPress(search${infoPrefix}s);
|
|
|
|
$("#${infoPrefix}term").onEnterPress(search${infoPrefix}s);
|
|
|
|
|
|
|
|
|
|
|
|
$(function(){
|
|
|
|
$(function(){
|
|
|
|
${onload}
|
|
|
|
${onload}
|
|
|
@ -149,7 +149,7 @@ $(function(){
|
|
|
|
${infoPrefix}Fetch:${syslogFetch},
|
|
|
|
${infoPrefix}Fetch:${syslogFetch},
|
|
|
|
${infoPrefix}Total:${syslogTotal}
|
|
|
|
${infoPrefix}Total:${syslogTotal}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
$("#${infoPrefix}-query #fromDate, #${infoPrefix}-query #toDate").datePicker();
|
|
|
|
$("#${infoPrefix}-query #${infoPrefix}fromDate, #${infoPrefix}-query #${infoPrefix}toDate").datePicker();
|
|
|
|
});
|
|
|
|
});
|
|
|
|
//# sourceURL=${infoPrefix}-main.jsp
|
|
|
|
//# sourceURL=${infoPrefix}-main.jsp
|
|
|
|
</script>
|
|
|
|
</script>
|