<%-- 
    Document   : EODinttComputation
    Created on : Mar 18, 2016, 2:00:29 PM
    Author     : Tcs Helpdesk10
--%>

<%@page import="LoginDb.DbHandler"%>
<%@page import="java.sql.Statement"%>
<%@page import="java.sql.ResultSet"%>
<%@page import="java.sql.Connection"%>


<html>
    <head>
        <title>Interest Computation</title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <script src="${pageContext.request.contextPath}/js/Calendar.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
        <link rel="stylesheet" type="text/css" href="/PacsApplication/css/TableCSSCode.css?pacs=<%=((new java.util.Date()).getTime())%>" />
        <link rel="shortcut icon" href="${pageContext.request.contextPath}/img/favicon.ico?pacs=<%=((new java.util.Date()).getTime())%>" type="image/x-icon" />
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <link rel="stylesheet" type="text/css" href="/PacsApplication/css/styles.css?pacs=<%=((new java.util.Date()).getTime())%>"/>
        <link rel="stylesheet" type="text/css" href="/PacsApplication/css/ButtonAndText.css?pacs=<%=((new java.util.Date()).getTime())%>" />
        <link rel="stylesheet" type="text/css" href="/PacsApplication/css/info.css?pacs=<%=((new java.util.Date()).getTime())%>" />
        <script type="text/javascript" src="${pageContext.request.contextPath}/jquery-ui-1.10.4.custom/development-bundle/jquery-1.10.2.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
        <script type="text/javascript" src="/PacsApplication/chromejs/chrome.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
        <script type="text/javascript" src="/PacsApplication/js/iFrame_killer.js"></script>
    </head>
    <body  onload="noBack()">
        <script type="text/javascript">
            function noBack()
            {
                window.history.forward();
            }


            function intt_post()
            {
                document.getElementById("handle_id").value = "InterestPosting";
                document.forms[0].action = '/PacsApplication/interestComputationServlet';
                document.forms[0].submit();
            }
            function download_report()
            {
                document.getElementById("handle_id").value = "downloadReport";
                document.forms[0].action = '/PacsApplication/ExcelReportServlet';

                document.forms[0].submit();
            }





        </script>

        
        <jsp:include page="MenuHead.jsp" flush="true" />
        <br>
        <%!
            String blankNull(String s) {
                return (s == null) ? "" : s;
            }
        %>

        <%
            String error_msg = "";
            Object error = request.getAttribute("message");
            if (error != null) {
                error_msg = error.toString();
            }
        %>


 <fieldset style="border-color: black; background-image: url('/PacsApplication/img/download.jpg'); border-width: 3px">
            <legend style="padding: 8px; border-radius: 20px; background-color: #006600; color: white">EOD INTEREST COMPUTATION</legend>

        <form id="interestComputation" name="interestComputation" method="post" action="interestComputationServlet">
           
            <br>

            <%if (!error_msg.equalsIgnoreCase("")) {%>
                <center><div class="info" id="errorMessage"><center><%= error_msg%></center></div></center>       
                <%}%>
            <br>

            <center>
                <br><br>
                <table style="column-gap: 5px; ">
                    <tr>
                        <td><input name="inttComputation" id="inttComputation" type="button" value="EOD Interest Computation" onclick="intt_post();" /></td>
                        <td>&nbsp;</td>
                        <td><input name="downloadReport" id="downloadReport" type="button" value="Download Report" onclick="download_report();" /></td>
                    </tr>
                </table>
            </center>
            <input name="handle_id" id="handle_id" type="hidden" value="" />
            <input name="screen_name" id="screen_name" type="hidden" value="EODinttComputation.jsp" />
            <input name="reportname" id="reportname" type="hidden" value="EOD_INTT_COMPUTATION_REPORT" />
            <input name="inputparam1" id="inputparam1" type="hidden" value="" />
            <input name="inputparam1" id="inputparam1" type="hidden" value="" />

        </form>
</fieldset>
    </body>
</html>
