<%--
    Document   : Transactionreport
    Created on : Aug 02, 2018, 3:40:14 PM
    Author     : 1004242
--%>

<%@page import="LoginDb.DbHandler"%>
<%@page import="java.sql.Statement"%>
<%@page import="java.sql.ResultSet"%>
<%@page import="java.sql.Connection"%>
<%@page import="java.util.ArrayList"%>
<%@page import="DataEntryBean.EnquiryBean"%>
<%@page import="java.util.Date"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>




<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <link rel="stylesheet" type="text/css" href="/PacsApplication/css/TableCSSCode.css?pacs=<%=((new java.util.Date()).getTime())%>" />
        <title>DDS REPORTS</title>
       <%-- <link rel="shortcut icon" href="img/favicon.ico?pacs=<%=((new java.util.Date()).getTime())%>" type="image/x-icon" />--%>
        <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="/PacsApplication/chromejs/chrome.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
        <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/js/iFrame_killer.js"></script>
        <script type="text/javascript" src="/PacsApplication/bootstrap/js/bootstrap.min.js"></script>
        <script type="text/javascript" src="/PacsApplication/bootstrap/js/bootstrap.js"></script>
        <link rel="stylesheet" type="text/css" href="/PacsApplication/bootstrap/css/bootstrap.min.css" />
        <link rel="stylesheet" type="text/css" href="/PacsApplication/bootstrap/css/bootstrap.css" />
        <script src="${pageContext.request.contextPath}/js/Calendar.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
</head>
<script>

            function noBack()
            {

                window.history.forward();
            }

      
          
        function submitform(reportForm)
        {
                  if (reportForm.from_date.value == "" || reportForm.to_date.value == "" )
                    {
                        alert("!! Dates must be selected !!");
                        return false;
                    }
                $('#tranType').val($('#tranTypeOrg').val());
                document.reportForm.action = '/PacsApplication/TransactionDDSServlet';
                document.reportForm.submit();
                document.reportForm.reset();
        }


           function printTextArea() {
                childWindow = window.open('','childWindow','location=yes, menubar=yes, toolbar=yes');
                childWindow.document.open();
                childWindow.document.write("Sample print");
                childWindow.print();
                childWindow.document.close();
                childWindow.close();
            }
</script>
               <%
             String error_msg = "";
             Object error = request.getAttribute("message");
             if (error != null) {
                 error_msg = error.toString();
             }
        %>
<style>

legend.scheduler-border {

    text-align: left !important;
    width:inherit; /* Or auto */

    border-bottom:none;
    padding: 8px;
    border-radius: 20px;
    background-color: #006600;
    color: white
}
fieldset.scheduler-border {
    border: 5px groove #ddd !important;
    padding: 0 1.4em 1.4em 1.4em !important;
    margin: 0 0 1.5em 0 !important;
    -webkit-box-shadow:  0px 0px 0px 0px #000;
            box-shadow:  0px 0px 0px 0px #000;
    border-color: black;
    background-image: url('/PacsApplication/img/download.jpg');
    border-width: 3px
}

</style>

    <body onload="noBack()">
    <jsp:include page="MenuHead_DDS.jsp" flush="true" />
    <fieldset class="scheduler-border">
    <legend class="scheduler-border">DDS Reports</legend>
    <div class="container-fluid">
            <form name="reportForm" method="post" action="">

               <%if (!error_msg.equalsIgnoreCase("")) {%>
                <div class="info" id="errorMessage"><center><%= error_msg%></center></div>
                <% }%>
            <div class="row">
                <div class="col-xs-4 col-md-4"></div>
                <div class="col-xs-4 col-md-4">
                     <table>
                    <div class="form-group">
                   
                    <label>Select type of Operation:</label>
                        <select class="selectpicker" id="tranTypeOrg" style="width:auto;" >
                            <option value="single" >DETAILED TRANSACTION REPORT</option>
                            <option value="all" >TOTAL TRANSACTION REPORT</option>
                        </select>
                    </div>
                    
                           <tr>
                            <td style=" font-family: Berlin Sans FB; font-weight:  normal;">From Date: </td><td><input type="text" style="text-align:center;" id="from_date" name="from_date" maxlength="11" resize="yes" ><a href="#" onclick="return getCalendar(document.reportForm.from_date);"><img src="${pageContext.request.contextPath}/img/calendar.gif" name="imgr" border="0" width="15" height="20" /></a></td>
                           </tr>
                           <tr>
                           <td style=" font-family: Berlin Sans FB; font-weight:  normal;">To Date: </td><td><input type="text" style="text-align:center;" id="to_date" name="to_date" maxlength="11" resize="yes"><a href="#" onclick="return getCalendar(document.reportForm.to_date);"><img src="${pageContext.request.contextPath}/img/calendar.gif" name="imgr" border="0" width="15" height="20" /></a></td>
                           </tr>
                        
                    </table>
                           <br>

                    <input type="button"  value="Submit"  onclick="javascript:submitform(reportForm)">
                    <%--<input type="button"  value="testprint"  onclick="javascript:printTextArea()">--%>
                    <input class="btn btn-primary" type="reset" value="Reset">
                    <input type="hidden" name="tranType" id="tranType" value=""/>
                    
                </div>
                <div class="col-xs-4 col-md-4"></div>
              </div>
        </form>
    </div>
    </fieldset>
</body>
<html>







