File manager - Edit - /home/autoph/public_html/voc/home/nav_company_left_dashboard.php
Back
<?php protected_page(); ?> <!---============================================================================================================================---> <!---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> <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---> <!---============================================================================================================================---> <!---============================================================================================================================---> <!---============================================================================================================================---> <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:#ccc;height:200px; border-right:0px solid gray"> <div class="vertical-menu" style=' 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'>☵ COMPANY U.R ANALYSIS</a> <div style='width:100%;float:left;text-align:centerl;font-family:Verdana;font-size:30px;border:0px solid red;background:#ccc;padding:5px'> <?php $FirstDate = date('Y/m/01'); $LastDate = date('Y/m/t'); $getCompany=mysql_query("SELECT * FROM `vts_company` WHERE `comp_status`='1' ORDER BY `comp_code` ASC"); $getAllURbasedOnDateRange =mysql_result(mysql_query("SELECT COUNT('s_id') FROM `vts_service_transaction` WHERE `s_arrived_date`!='' AND `s_date` BETWEEN '$FirstDate' AND '$LastDate' AND `service_status`!='3' AND `service_status`!='2'"),0); echo "<p style='margin:5px;font-family:Verdana;font-size:11px;color:black;padding:3px;background:yellow'>(".$getAllURbasedOnDateRange." )Units Received From ".$FirstDate. "-".$LastDate."</p>"; while($row=mysql_fetch_array($getCompany)){ $selCompID=$row['comp_id']; $getURBasedOnDateRange = mysql_result(mysql_query("SELECT COUNT('s_id') FROM `vts_service_transaction` WHERE `s_arrived_date`!='' AND `s_comp_code`='$selCompID' AND `s_date` BETWEEN '$FirstDate' AND '$LastDate' AND `service_status`!='3' AND `service_status`!='2'"),0); $getDashWidtdh = number_format(($getURBasedOnDateRange / $getAllURbasedOnDateRange) * 100,2,'.',',')."%"; echo "<div style='float:left;width:100%;padding:0px;margin:0px;font-family:Verdana;font-size:10px;border:0px solid red; color:black;background:transparent'>".$row['comp_code']." ( ".$getURBasedOnDateRange." )</div>"; echo "<div style='float:left;width:100%;padding:0px;margin:0px;font-family:Verdana;font-size:8px;border:1px solid #85817f;color:white;background:white;height:15px;margin-bottom:3px '>"; echo "<div style='width:$getDashWidtdh;height:100%;background:#fcb00d;border-right:0px solid #fc590d '></div>"; echo "</div>"; } ?> </div> </div> </div>
| ver. 1.4 |
.
| PHP 7.3.33 | Generation time: 0 |
proxy
|
phpinfo
|
Settings