File manager - Edit - /home/autoph/public_html/voc/home/nav_vehicle_left_dashboard.php
Back
<!---============================================================================================================================---> <!---LOADING NEWLY ENCODED APPOINTMENT LIST FOR UPDATING---> <!---============================================================================================================================---> <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> <!-- AUTO LOAD DASHBOARD DATA / REFRESH DASHBOARD DATA --> <!-- AUTO LOAD DASHBOARD DATA / REFRESH DASHBOARD DATA --> <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"); }); //alert("Its working"); $("#updateApptRecord").click(function(){ var recNum = $("#recNum").val(); var updateApptPlate= $("#updateApptPlate").val(); //var updateCarModel= $("#updateCarModel").val(); var updateApptRO= $("#updateApptRO").val(); var updateJobType= $("#updateJobType").val(); var updateGJCust= $("#updateGJCust").val(); var updateGJComp= $("#updateGJComp").val(); var updateGJWarranty= $("#updateGJWarranty").val(); var updateQSCust= $("#updateQSCust").val(); var updateQSComp= $("#updateQSComp").val(); var updateQSSSP= $("#updateQSSSP").val(); var updateBPCust= $("#updateBPCust").val(); var updateBPInsurance= $("#updateBPInsurance").val(); var updateBPWarranty= $("#updateBPWarranty").val(); var updateGJWarrantySub= $("#updateGJWarrantySub").val(); if (updateApptRO == "") { alert("Invalid Input. Please input the correct R.O number."); return false; } $.ajax({ url: "update_new_appointment_record.php", type: "POST", async: false, data: { "done": 1, "recNum" :recNum, "updateGJWarrantySub" :updateGJWarrantySub, "updateApptPlate": updateApptPlate, //"pdateCarModel": updateCarModel, "updateApptRO": updateApptRO, "updateJobType": updateJobType, "updateGJCust": updateGJCust, "updateGJComp": updateGJComp, "updateGJWarranty": updateGJWarranty, "updateQSCust": updateQSCust, "updateQSComp": updateQSComp, "updateQSSSP": updateQSSSP, "updateBPCust": updateBPCust, "updateBPInsurance": updateBPInsurance, "updateBPWarranty": updateBPWarranty }, success: function(data){ //showActiveService(); alert("New Record Saved."); //displayFromDatabase(); //$('#updateApptRO').val(''); } }) }); }); </script> <script type="text/javascript"> function showHideAppt() { var div = document.getElementById("showNewAppt"); if (div.style.display == 'none') { div.style.display = ''; } else { div.style.display = 'none'; } } function showChecked() { var div = document.getElementById("showCheckedInVehicle"); if (div.style.display == 'none') { div.style.display = ''; } else { div.style.display = 'none'; } } </script> <!---============================================================================================================================---> <!---END OF SCRIPT---> <!---============================================================================================================================---> <div id="showCheckedInVehicle" style='display:none;border:1px solid blue;width:99%;height:88%;min-height:300px;float:left;margin:5px;background:lightgray;position:absolute;top:5px;left:5px;z-index:99999'> <h2 style='margin:0px;font-family:Verdana;font-size:22px;font-weight:normal;padding:5px;padding-bottom:-5px;color:black;border:0px solid red;'>☶ Checked-In Vehicles</h2> <i style='font-family:Verdana;font-size:10px;color:black;padding-left:30px'>List of checked-in Vehicles inside this facility. Checked-in vehicles are combination of Service Appointment, Walk-In, Guest, Pre-owned and Brand New units parked inside your building </i> <div style='border:1px solid gray;width:99.4%;height:90%;min-height:250px;float:left;margin:5px;background:white;top:-10px;padding:0px'> <div class='bgColor' style='vertical-align:top;height:25px;margin:0px;width:100%;border-bottom:1px solid gray;padding:2px;font-family:Verdana;font-weight:normal;color:#043062;padding-right:5px'> ☶ List of Checked-In Vehicle: <div style='float:right;font-family:Verdana;font-size:15px;width:20px;background:transparent'> <a href='#' onclick="showChecked()" style='font-weight:bold;background:none'> ✕ </a> </div> </div> <div style="overflow:auto;border:1px solid gray;width:100%;height:100%;"> </div> </div> </div> <!---============================================================================================================================---> <!---============================================================================================================================---> <div id="showNewAppt" style='display:none;border:1px solid blue;width:99%;height:88%;min-height:300px;float:left;margin:5px; background:lightgray;position:absolute;top:5px;left:5px;z-index:99999'> <h2 style='margin:0px;font-family:Verdana;font-size:22px;font-weight:normal;padding:5px;padding-bottom:-5px;color:black;border:0px solid red;'>☶ Daily Service Appointment</h2> <i style='font-family:Verdana;font-size:10px;color:black;padding-left:30px'>List of newly received service appointment </i> <div style='border:1px solid gray;width:99.4%;height:90%;min-height:250px;float:left;margin:5px; background:white;top:-10px;padding:0px'> <div class='bgColor' style='vertical-align:top;height:25px;margin:0px;width:100%;border-bottom:1px solid gray;padding:2px;font-family:Verdana;font-weight:normal;color:#043062;padding-right:5px'>☶ List of Active Vehicle for Service: <div style='float:right;font-family:Verdana;font-size:15px;width:20px;background:transparent'> <a href='#' onclick="showHideAppt()" style='font-weight:bold;background:none'> ✕ </a> </div> </div> <div style='font-family:Vehicle;color:black;width:20%; padding:15px;border-right:1px solid gray;height:95%;min-height:100px;float:left;margin:0px;min-width:250px;background:white'> </div> </div> </div> <script type="text/javascript"> $(document).ready(function() { $('.tablecell').click(function() { return false; }).dblclick(function() { window.open("your_url"); return false; }); }); </script> <script language="javascript" type="text/javascript"> function showApptInfo(row) { var x=row.cells; document.getElementById("recNum").value = x[0].innerHTML; document.getElementById("updateApptPlate").value = x[1].innerHTML; document.getElementById("updateApptRO").value = x[2].innerHTML; //document.getElementById("updateJobType").value = x[4].innerHTML; document.getElementById("updateCarModel").value = x[4].innerHTML; } </script> <!---============================================================================================================================---> <!---END CODE LOAD NEW SERVICE APPT---> <!---============================================================================================================================---> <div style="background:#e4e0bf;height:200px; border-right:0px solid gray"> <div class="vertical-menu" style='min-width:300px;width:100%;border-bottom:0px solid black'> <a href="#" class="active" style='padding:3px;padding-left:5px;font-family:Verdana;font-size:16px;font-weight:normal;color:#000'>☵ VEHICLE DATABASE</a> <div id="list1" style='width:100%;float:left;text-align:centerl;font-family:Verdana;font-size:30px;border:0px solid red;background:#e4e0bf ;padding:5px'> <?php $ActiveCountRegVehicle=mysql_result(mysql_query("SELECT COUNT('v_id') FROM `vts_vehicle_lists` WHERE `v_brand`!=''"),0); $DeletedCountRegVehicle=mysql_result(mysql_query("SELECT COUNT() FROM `vts_vehicle_lists` WHERE `v_status`='0'"),0); $getBrand=mysql_query("SELECT * FROM `vts_brands` WHERE `b_status`='1' ORDER BY `b_name` ASC"); while($row=mysql_fetch_array($getBrand)){ $getRatio=0; $bID=$row['b_id']; $bName=$row['b_name']; $getBrandRatio=mysql_result(mysql_query("SELECT COUNT('v_id') FROM `vts_vehicle_lists` WHERE `v_brand`!='' AND `v_brand`='$bName'"),0); //$getRatio = (($getBrandRatio / $ActiveCountRegVehicle) * 100); $getRatio = number_format(($getBrandRatio / $ActiveCountRegVehicle) * 100,2,'.',',')."%"; echo "<p style='float:left;padding:0px;margin:0px;font-family:Verdana;font-size:12px;border:0px solid red; min-width:70px;width:60%;color:black;background:transparent'>".$row['b_name']." :(".$getRatio.")</p>"; echo "<div style='float:left;padding:0px;margin:0px;font-family:Verdana;font-size:12px;border:1px solid #85817f; min-width:150px;width:100%;color:white;background:#fff ;height:10px;margin-bottom:6px '>"; echo "<div style='width:$getRatio;height:100%;background: #f99414 ;border-right:0px solid #fc590d '></div>"; echo "</div>"; $getRatio=0; $getBrandRatio=0; } ?> </div> </div> </div>
| ver. 1.4 |
.
| PHP 7.3.33 | Generation time: 0 |
proxy
|
phpinfo
|
Settings