Files
matrix/build/WebContent/WEB-INF/app/admin/maintenance.jsp
2026-07-21 20:46:27 +05:30

108 lines
5.3 KiB
Plaintext

<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@page language="java" session="true" %>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%@taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<link href="/matrix/css/jquery-ui.css" rel="stylesheet" type="text/css" />
<script language="javascript" src="/matrix/js/lib/constants.js" type="text/javascript"></script>
<script language="javascript" src="/matrix/js/jquery.min.js" type="text/javascript"></script>
<script language="javascript" src="/matrix/js/ui/jquery-ui.js" type="text/javascript"></script>
<script language="javascript" src="/matrix/js/ui/uifuncs.js" type="text/javascript"></script>
<script language="javascript" src="/matrix/js/lib/jsfuncs.js" type="text/javascript"></script>
<script language="javascript" src="/matrix/js/ui/msgdialog.js" type="text/javascript"></script>
<script language="javascript" src="/matrix/js/appjs/user.js" type="text/javascript"></script>
<script language="javascript" src="/matrix/js/ui/select.js" type="text/javascript"></script>
<script language="javascript" src="/matrix/js/validator.js" type="text/javascript"></script>
<link href="/matrix/css/matrix.css" rel="stylesheet" type="text/css" />
<link href="/matrix/css/button.css" rel="stylesheet" type="text/css" />
<link href="/matrix/css/div.css" rel="stylesheet" type="text/css" />
<link href="/matrix/css/textbox.css" rel="stylesheet" type="text/css" />
<link href="/matrix/css/select.css" rel="stylesheet" type="text/css" />
<link href="/matrix/css/table.css" rel="stylesheet" type="text/css" />
<title>Cygnus 1.0 | Maintenance</title>
<link href="/matrix/css/bootstrap-5.3.8.min.css" rel="stylesheet" type="text/css" />
<link href="/matrix/css/matrix-v2.css?v=6" rel="stylesheet" type="text/css" />
<link href="/matrix/css/matrix-shell-v2.css?v=7" rel="stylesheet" type="text/css" />
<link href="/matrix/css/tool-workspace-v3.css?v=1" rel="stylesheet" type="text/css" />
<link href="/matrix/css/admin-hr-v1.css?v=1" rel="stylesheet" type="text/css" />
<script src="/matrix/js/bootstrap-5.3.8.bundle.min.js" defer></script>
<script src="/matrix/js/matrix-shell-v2.js" defer></script>
<link href="/matrix/css/matrix-frame-dialog.css?v=6" rel="stylesheet" type="text/css" />
<script src="/matrix/js/matrix-frame-dialog.js?v=2" defer></script>
<script src="/matrix/js/matrix-accessibility-v1.js?v=1" defer></script>
<link href="/matrix/css/matrix-theme-v2.css?v=4" rel="stylesheet" type="text/css" />
</head>
<body class="matrix-v2 matrix-shell matrix-tool-workspace matrix-maintenance">
<div id='PageFrame'>
<%@ include file="/WEB-INF/app/fragments/app-shell-header.jspf" %>
<%-- Shared shell owns ${Sessvals.menuHtml}. --%>
<div id="formcontainer" class="matrix-tool-workspace__content" style="max-width:1100px">
<!-- Title -->
<div class="title">
<img class="matrix-title-icon" src="/matrix/images/optmale.png" align="absmiddle" />
<span class="matrix-title-text" align="absmiddle">Application Maintenance</span>
<img class="matrix-title-action" src="/matrix/images/reload.png" title="Refresh Grid" onclick="SubmitForm('initmaintenance','_parent','filterform')"/>
</div>
<!-- -->
<div id="FormPanel" class="FormPanel">
<form name="filterform" method="post" id="filterform">
<input type="hidden" id="usid" value="${Sessvals.getUserID()}" />
<table align="center" id="filtertab" style="width:980px;border:1px solid #a7abb4" cellspacing="0">
<tr>
<td>
<div class="widget">
<div class="lblcontainer" style="padding-top:7px">
Up To Date
</div>
<div class="inputcontainer">
<input type="text" class="textbox" name="uptodate" id="uptodate" value="${defaultdate}" style="width:100px;" onblur="validate(this,'t','Date')" onkeydown="return addSlashes(this,event)" />
</div>
</div>
</td>
</tr>
</table>
</form>
<div class="FormPanel matrix-maintenance__actions">
<button id="clearmdedupe" name="clearmdedupe" onclick="deleteData('cmd',this)" style="height:60px;width:200px">Clear Master Dedupe</button>
<button id="clearecache" name="clearecache" onclick="deleteData('cec',this)" style="height:60px;width:200px">Clear Email Cache</button>
</div>
</div>
<input type="hidden" id="bid" value="${Sessvals.getBranchID()}" />
</div>
</div>
</body>
<!-- Page Load Javascript -->
<script language="javascript" type="text/javascript">
function deleteData(oprType,elm){
var uptodate = $('#uptodate').val();
if(confirm('Are you sure you want to '+$(elm).text().toUpperCase()+' up to '+uptodate))
{
LoadingMsg("Processing request, please wait...","ajaxmsg");
$.ajax({
type: "POST",
url: "startmaintenance",
data: "oprtype="+oprType+"&oprby="+$("#usid").val()+"&upto="+uptodate,
success: function(response){
$("#ajaxmsg").remove();
CallMessage(response,3000,200,300);
},
error: function(e){
$("#ajaxmsg").remove();
CallMessage('USRCS02:error:'+e.responseText,3000,200,300);
}
});
}
}
</script>
<!-- -->
</html>