File manager - Edit - /home/autoph/public_html/weCare/Covid19/ContactTracing/Autohub/ahg_rpt_visitors.php
Back
<?php ob_start(); include 'core/init.php'; protected_page(); $myCurTime=$currentTime; $site=$_GET['id']; $emp=$_GET['emp']; ?> <!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <link href='https://fonts.googleapis.com/css?family=Advent Pro' rel='stylesheet'> <style> body, html { height: 100%; margin: 0; background:white; } .tBalls{ border:1px solid gray; padding:3px;background:lightgray; } .tBallsA{ border:1px solid gray; padding:3px;font-weight:normal; } .bg { background-image: url("covid19A.jpg"); height: 100%; background-position: center; background-repeat: no-repeat; background-size: cover; } .bgA { background-image: url("mini.png"); height: 200px; width:25%; background-position: center; background-repeat: no-repeat; background-size: cover; image-background: rgba(10, 20, 10, 0.9); float:left; } .imgSRC{ float:left; margin:10px; margin-top:-25px; margin:0px; width:70%; text-align:center; } .noPadding{ background: rgba(0, 0, 0, 1); border:0px solid red; max-width:100%; height:100%; padding:0px; } .newsFeed{ float:left; font-family:Sans Serif; font-size:60px; font-weight:bold; color:red; width:25%; border:0px solid yellow; margin-top:0px; padding-left:0px; text-align:left; margin-left:100px; } .newsFeedB{ float:right; font-family:Sans Serif; font-size:60px; font-weight:bold; color:red; width:25%; border:0px solid yellow; margin-top:0px; padding-left:0px; text-align:left; margin-right:100px; } .newsFeedA{ float:left; font-family:Sans Serif; font-size:14px; font-weight:bold; color:black; text-align:center; width:100%; border:0px solid red; margin-top:10px; } .buttonDiv{ float:left; font-family:Candara Light; font-size:100%; text-align:center; font-weight:bold; color:white; width:80%; margin-left:10%; border:0px solid green; margin-top:20px; margin-bottom:20px; } .myButton{ font-family:Calibri; font-size:110%; padding:20px; width:33%; margin:20px; } .textWindow{ width:100%; font-family:._mini_serif-black-webfont; font-size:100%; width:70%; margin-left:15%; border:0px solid blue; text-align:left; padding:5px; margin-bottom:10px; } .tracing{ font-family:Candara Light; font-size:22px; } @media only screen and (max-width:900px) { /* For mobile phones: */ .newsFeed{ width:80%; font-size:40px; text-align:center; margin-top:5px; height:100%; border:0px solid yellow; padding:20px; margin-bottom:50px; margin:1px; paddin-top:50px } .newsFeedB{ display:none; width:100%; font-size:40px; text-align:right; margin-top:5px; height:100%; border:0px solid yellow; padding:20px; margin-bottom:50px; margin:1px; padding-top:20px } .newsFeedA{ float:left; font-family:Advent Pro; font-size:14px; font-weight:bold; color:black; text-align:center; width:100%; border:0px solid red; margin-top:20px; } .noPadding{ position:relative; background: rgba(0, 0, 0, 1); border:0px solid red; height:100%; padding:0px; width:99.5%; margin:0px; } .buttonDiv{ float:left; font-family:Candara Light; font-size:100%; text-align:center; font-weight:bold; color:white; width:90%; margin-left:5%; border:0px solid green; padding-bottom:10px; } .imgSRC{ float:left; margin:10px; margin-top:-25px; margin:0px; width:80%; align:center; margin-left:50px; } .myButton{ font-family:Calibri; font-size:110%; padding:20px; width:95%; } .textWindow{ font-family: 'Advent Pro'; font-size:100%; width:96%; margin-left:2%; border:0px solid blue; text-align:left; padding:5px; margin-bottom:50px; } </style> </head> <script type="text/javascript"> function redirect() { var url = "http://www.(url).com"; window.location(url); } </script> <body> <div style="background:transparent; padding:0px;border:0px solid red; width:100%;height:100%"> <div class="noPadding"> <div class="bg"> <div style="float:left;font-family:Baskerville Old Face;font-size:80px;font-weight:bold;color:red;text-align:left;width:90%;border:0px solid blue;margin-top:50px;margin-left:5%"> <div class="newsFeed"> <img class="imgSRC" src="autohub_logo.png"></img> </div> <div class="newsFeedB"> </div> <div class="newsFeedA"> <div style="width:100%;overflow:auto;min-height:600px"><br> <p style="text-align:center;font-family:Arial;font-size:200%;font-weight:normal">AUTOHUB Contact Tracing and Health Declaration Form - Visitors Report Summary</p> <?php $getLocation = mysql_query("SELECT DISTINCT(vLocation) FROM `ahg_employees` WHERE `vLocation`!=''"); echo "<form ation='GET' post=''>"; echo "<input type='hidden' name='max' value='500'><SELECT id='filterLocation' name='filterLocation' style='float:left;width:300px;padding:5px;font-family:Arial;font-size:14px;margin:5px;margin-left:0px'>"; echo "<option>".$_GET['filterLocation']."</oprion>"; while ($row=mysql_fetch_array($getLocation)){ echo "<option>".$row['vLocation']."</oprion>"; } echo "</select>"; echo "<input type='submit' name='FilterLoc' value='Load Data' style='float:left;width:130px;padding:5px;margin:5px;height:30px'>"; echo "<a href='ahg_report_index.php?no=100&view=&sview=&tab=0&wid=0' style='float:right;padding:5px;background:orange;margin:5px;height:20px;padding-left:15px;padding-right:15px;'> Main Menu </a>"; echo "</form>"; ?> <?php $filterLocation =$_GET['filterLocation']; $limit = $_GET['max']; echo "<table style='width:150%;border-collapse:collapse;'>"; echo "<thead>"; echo "<th class='tBalls' style='width:15%'>Name.</th>"; echo "<th class='tBalls' style='width:5%'>Date</th>"; echo "<th class='tBalls' style='width:5%'>Temp.</th>"; echo "<th class='tBalls' style='width:10%'>Purpose</th>"; echo "<th class='tBalls' style='width:5%'>Fever</th>"; echo "<th class='tBalls' style='width:5%'>Short Breath</th>"; echo "<th class='tBalls' style='width:5%'>Cough</th>"; echo "<th class='tBalls' style='width:5%'>Sore Throat</th>"; echo "<th class='tBalls' style='width:5%'>Headache</th>"; echo "<th class='tBalls' style='width:10%'>Since When?</th>"; echo "<th class='tBalls' style='width:10%'>Travel History</th>"; echo "<th class='tBalls' style='width:10%'>Where</th>"; echo "<th class='tBalls' style='width:5%'>Visit Hospital</th>"; echo "<th class='tBalls' style='width:10%'>Purpose in visiting Hospital</th>"; echo "<th class='tBalls' style='width:5%'>Within Lockdown area</th>"; echo "<th class='tBalls' style='width:15%'>Name of Area/Barangay</th>"; echo "<th class='tBalls' style='width:5%'>Contact with COVID19 Patient?</th>"; echo "</thead>"; $getData = mysql_query("SELECT * FROM `ahg_guests` WHERE `vLocation`='$filterLocation' ORDER BY id DESC LIMIT $limit"); while($row= mysql_fetch_array($getData)){ $no = $no + 1; if($row['vTemp'] > 37 || $row['vFever']==='true' || $row['vShortBreath']==='true' || $row['vCough']==='true' || $row['vSoreThroat']==='true' || $row['vHeadache']==='true' || $row['vHeadache']==='true' || $row['vYesTravel']==='yes' || $row['vHospital']==='yes' || $row['vYesLockdown']==='yes'|| $row['vYesContact']==='yes'){ $bg='#faba8d'; }else{ $bg='#ffffff'; } echo "<tr>"; echo "<td class='tBallsA' style='background:$bg;'>".$row['vName']."</td>"; echo "<td class='tBallsA' style='background:$bg;'>".$row['vDate']."</td>"; echo "<td class='tBallsA' style='background:$bg;'>".$row['vTemp']."</td>"; echo "<td class='tBallsA' style='background:$bg;'>".$row['vPurpose']."</td>"; echo "<td class='tBallsA' style='background:$bg;'>".$row['vFever']."</td>"; echo "<td class='tBallsA' style='background:$bg;'>".$row['vShortBreath']."</td>"; echo "<td class='tBallsA' style='background:$bg;'>".$row['vCough']."</td>"; echo "<td class='tBallsA' style='background:$bg;'>".$row['vSoreThroat']."</td>"; echo "<td class='tBallsA' style='background:$bg;'>".$row['vHeadache']."</td>"; echo "<td class='tBallsA' style='background:$bg;'>".$row['vSinceWhen']."</td>"; echo "<td class='tBallsA' style='background:$bg;'>".$row['vYesTravel']."</td>"; echo "<td class='tBallsA' style='background:$bg;'>".$row['vTravelCity']."</td>"; echo "<td class='tBallsA' style='background:$bg;'>".$row['vHospital']."</td>"; echo "<td class='tBallsA' style='background:$bg;'>".$row['vHospitalPurpose']."</td>"; echo "<td class='tBallsA' style='background:$bg;'>".$row['vYesLockdown']."</td>"; echo "<td class='tBallsA' style='background:$bg;'>".$row['vLockDownArea']."</td>"; echo "<td class='tBallsA' style='background:$bg;'>".$row['vYesContact']."</td>"; echo "</tr>"; } echo "<table>"; ?> </div> </div> </div> </div> </div> </div> </body> </html>
| ver. 1.4 |
.
| PHP 7.3.33 | Generation time: 0 |
proxy
|
phpinfo
|
Settings