File manager - Edit - /home/autoph/public_html/connect/home/rpt01_report_data.php
Back
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style> .loader { border: 16px solid #f3f3f3; border-radius: 50%; border-top: 16px solid blue; border-bottom: 16px solid blue; width: 120px; height: 120px; -webkit-animation: spin 2s linear infinite; animation: spin 2s linear infinite; } @-webkit-keyframes spin { 0% { -webkit-transform: rotate(0deg); } 100% { -webkit-transform: rotate(360deg); } } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } </style> <title></title> <style type="text/css"> body{ background:#fafcfc; } a{ text-decoration:none; } } #wrapper{ width:50%; height:auto; margin:10px auto; border:1px solid #cbcbcb; background:white; } #comment_input_from li{ list-style-type:none; margin:5px auto; } #comment_input_from{ width:100%; margin:0px; background: #dde2e4 ; padding:10px; } #display_area{ width:100%; margin:00px auto; background:#fafcfc; padding:2px; height:200px; overflow:auto; border:0px solid gray; } #submit_name{ width:30%; min-width:150px; margin:20px; padding:20px; } #name, textarea{ width:100%; } </style> </head> <!----==============================================================-----> <!----==============================================================-----> <script type="text/javascript"> function showAdd() { var div = document.getElementById("addForm"); var divD= document.getElementById("display_area"); if (div.style.display == 'none') { div.style.display = ''; divD.style.display = 'none'; } else { divD.style.display = 'none'; } } function showDisplayArea() { var divA = document.getElementById("addForm"); var divD = document.getElementById("display_area"); if (divD.style.display == 'none') { divD.style.display = ''; divA.style.display = 'none'; } else { divD.style.display = ''; divA.style.display = 'none'; } } function viewList() { var div = document.getElementById("details_div"); if (div.style.display == 'none') { div.style.display = ''; } else { div.style.display = 'none'; } } </script> <script type="text/javascript"> function showHide() { var div = document.getElementById("viewRPT001"); if (div.style.display == 'none') { div.style.display = ''; } else { div.style.display = 'none'; } } </script> <body> <div id="viewRPT001" style="display:none;margin:50px;width:1200px;height:90%;border:1px solid gray;position:absolute;z-index:9999;top:10px;left:150px;background:white"> <div class='bgColor' style='vertical-align:top;height:25px;margin:0px;width:100%;border-bottom:1px solid gray;padding:5px;font-family:Verdana;font-weight:normal;color:#043062'>Service Appointment Summary Report: <div style='float:right;font-family:Verdana;font-size:15px;'> <a href='#' onclick="showHide()" style='font-weight:bold;padding:5px'> ✕ </a> </div> </div> <div id="display_appt" style='height:500px;border:0px solid blue'> </div> </div> <div style='border:0px solid gray;width:100%;float:left;margin:0px;min-width:400px;background:white'> <div class='bgColor' style='vertical-align:top;height:35px;margin:0px;width:100%;border-bottom:1px solid gray;padding:5px;font-family:Verdana;font-weight:normal;font-size:18px;color:#043062'> Filter Report Data: <div style='float:right;font-family:Verdana;font-size:15px;'> <a href='mainindex.php?id=rpt01&d=r&ex=refresh' > ♲ </a><!--REFRESH/RELOAD WINDOW--> <a href='mainindex.php?id=rpt01&d=r&ex=true' > ✉ </a> <!--EXTRACT LIST OF COMPANY AND EXPORT TO EXCEL--> <a href='mainindex.php?id=1' style='font-weight:bold'> ✕ </a> </div> </div> <!-- ============================================================================ --> <!-- ============================================================================ --> <div id="" style='height:500px;border:0px solid blue'> <p style='background:#e7e7e9;padding:5px;color:black'>☷ Filter Report:</p> <input type="hidden" id="svUserID" value="<?php echo $userID;?>" style="width:200px;padding:5px;font-family:Verdana;font-size:14px"> <input type="hidden" id="sCompID" value="<?php echo $compID;?>" style="width:200px;padding:5px;font-family:Verdana;font-size:14px"> <input type="hidden" id="sDealID" value="<?php echo $dealID;?>" style="width:200px;padding:5px;font-family:Verdana;font-size:14px"> <div style='width:100%;padding:10px;padding-left:100px;background:white;height:300px;border-top:1px solid lightgray;border-bottom:1px solid lightgray'> <div style='font-family:Verdana;color:black;width:50%;background:lightgray;padding:5px;border:1px solid gray;;border-bottom:0px'>Filter Date:</div> <div style='padding:20px;float:left;font-family:Verdana;color:black;width:25%;background:white;border:1px solid gray;border-right:0px;border-bottom:0px'> From:<br><br><input type="date" id="sDate" style="margin-left:30px;width:200px;padding:5px;height:30px"><br><br> </div> <div style='float:left;font-family:Verdana;color:black;width:25%;background:white;padding:20px;border:1px solid gray;border-left:0px;border-bottom:0px'> From:<br><br><input type="date" id="eDate" style="margin-left:30px;width:200px;padding:5px;height:30px"><br><br> </div> <div style='text-align:center;font-family:Verdana;color:black;width:50%;background:white;padding:15px;border:1px solid gray'> <center><input type="submit" id="submitAppt" value="Generate Report" style="width:50%"></center> </div> </div> </div> <!-- ============================================================================ --> <!-- ============================================================================ --> </div> </body> </html> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> <div id="wait" style="display:none;width:69px;height:89px;border:0px solid red;position:absolute;top:50%;left:50%;padding:2px;"> <img src='images/demo_wait.gif' width="64" height="64" /><br>Loading..</div> <!-- add jquery --> <script type="text/javascript" src="http://code.jquery.com/jquery-1.9.1.js"></script> <script type="text/javascript"> $(document).ready(function(){ //loading gif animator during query or page load $(document).ajaxStart(function(){ $("#wait").css("display", "block"); }); $(document).ajaxComplete(function(){ $("#wait").css("display", "none"); }); $("#submitAppt").click(function(){ var eDate = $("#eDate").val(); var sDate = $("#sDate").val(); var svUserID = $("#svUserID").val(); var sCompID = $("#sCompID").val(); var sDealID = $("#sDealID").val(); if (sDate > eDate) { alert("Error: Invalid Date Entry."); return false; } if (sDate == "") { alert("Error: Invalid Date Entry."); return false; } if (eDate == "") { alert("Error: Invalid Date Entry."); return false; } $.ajax({ url: "report_load_RPTa.php", type: "POST", async: false, data: { "done": 1, "eDate":eDate, "sDate":sDate, "svUserID":svUserID, "carPlate":carPlate, "sCompID":sCompID, "sDealID":sDealID }, success: function(data){ displayFromDatabase(); $('#eDate').val('eDate'); $('#sDate').val('sDate'); $("#display_appt").html(d); } }) }); </script>
| ver. 1.4 |
.
| PHP 7.3.33 | Generation time: 0 |
proxy
|
phpinfo
|
Settings