<!doctype html>
<html lang="en">

<!-- Mirrored from preview.colorlib.com/theme/bootstrap/login-form-01/ by HTTrack Website Copier/3.x [XR&CO'2014], Fri, 25 Mar 2022 11:26:43 GMT -->
<head><script nonce="789ce894-210e-4e07-9ad1-bf5c56954734">(function(w,d){!function(a,e,t,r){a.zarazData=a.zarazData||{},a.zarazData.executed=[],a.zarazData.tracks=[],a.zaraz={deferred:[]},a.zaraz.track=(e,t)=>{for(key in a.zarazData.tracks.push(e),t)a.zarazData["z_"+key]=t[key]},a.zaraz._preSet=[],a.zaraz.set=(e,t,r)=>{a.zarazData["z_"+e]=t,a.zaraz._preSet.push([e,t,r])},a.addEventListener("DOMContentLoaded",(()=>{var t=e.getElementsByTagName(r)[0],z=e.createElement(r),n=e.getElementsByTagName("title")[0];n&&(a.zarazData.t=e.getElementsByTagName("title")[0].text),a.zarazData.w=a.screen.width,a.zarazData.h=a.screen.height,a.zarazData.j=a.innerHeight,a.zarazData.e=a.innerWidth,a.zarazData.l=a.location.href,a.zarazData.r=e.referrer,a.zarazData.k=a.screen.colorDepth,a.zarazData.n=e.characterSet,a.zarazData.o=(new Date).getTimezoneOffset(),z.defer=!0,z.src="../../../cdn-cgi/zaraz/sd0d9.js?z="+btoa(encodeURIComponent(JSON.stringify(a.zarazData))),t.parentNode.insertBefore(z,t)}))}(w,d,0,"script");})(window,document);</script>

<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400&amp;display=swap" rel="stylesheet">
<link rel="stylesheet" href="fonts%2c_icomoon%2c_style.css%2bcss%2c_owl.carousel.min.css%2bcss%2c_bootstrap.min.css%2bcss%2c_style.css.pagespeed.cc.EhPjMoZSd_.css" />
<style type="text/css">
	span{
		color: olive;
	}
</style>
<?php
include "connection.php";
if(!empty($_POST)){
  $location=$_POST['location'];
  $long=$_POST['long'];

  $sql="SELECT * FROM location1 WHERE location_name='$location'";
  $result =mysqli_query($conn,$sql);
   $row=mysqli_fetch_array($result);
        $latitude=$row['latitude'];
        $longtitude=$row['longtitude'];
        $temperature=$row['temperature'];
        $precipitation=$row['precipitation'];
        $wind=$row['wind'];
        $humidity=$row['humidity'];
        $cloud=$row['cloud'];
        $location=$row['location_name'];

}
?>

<title>Login #2</title>
</head>
<body>
<div class="d-lg-flex half">
<!-- <div class="bg order-1 order-md-2" style="background-image: url(image/<?php echo $image; ?>);"></div> -->
<div class="bg order-1 order-md-2">
	<center style='margin-top: 150px;
'>
		 <h2>Your Location Based Weather Report</h2><br>
		 <p><b>Location:<span><?php echo $location; ?></b></span></p>
		 <p><b>Latitude:<span><?php echo $latitude; ?></b></span></p>
		 <p><b>Longtitude:<span><?php echo $longtitude; ?></b></span></p>
         <p><b>Temperature:<span><?php echo $temperature; ?>°c</b></span></p>
         <p><b>Precipitation:<span><?php echo $precipitation; ?>%</b></span></p>
         <p><b>Wind:<span><?php echo $wind; ?>km/h</b></span></p>
         <p><b>Humidity:<span><?php echo $humidity; ?>%</b></span></p>
         <p><b>Cloud Status:<span><?php echo $cloud; ?></b></span></p>
		
	</center>
</div>
<div class="contents order-2 order-md-1">
<div class="container">
 <iframe style="height: 650px;width: 680px" src="https://maps.google.com/maps?q=<?php echo $latitude; ?>,<?php echo $longtitude; ?>&output=embed"></iframe>
</div>
</div>
</div>
</div>
<script src="js/jquery-3.3.1.min.js"></script>
<script src="js/popper.min.js%2bbootstrap.min.js%2bmain.js.pagespeed.jc.knpfk1Gqze.js"></script><script>eval(mod_pagespeed_kuJAr8zZic);</script>
<script>eval(mod_pagespeed_Hwy1FMvIvF);</script>
<script>eval(mod_pagespeed_R4pSQ1BWYQ);</script>
<script defer src="https://static.cloudflareinsights.com/beacon.min.js/v652eace1692a40cfa3763df669d7439c1639079717194" integrity="sha512-Gi7xpJR8tSkrpF7aordPZQlW2DLtzUlZcumS8dMQjwDHEnw9I7ZLyiOj/6tZStRBGtGgN6ceN6cMH8z7etPGlw==" data-cf-beacon='{"rayId":"6f174b12ef6f9a95","token":"cd0b4b3a733644fc843ef0b185f98241","version":"2021.12.0","si":100}' crossorigin="anonymous"></script>
</body>

<!-- Mirrored from preview.colorlib.com/theme/bootstrap/login-form-01/ by HTTrack Website Copier/3.x [XR&CO'2014], Fri, 25 Mar 2022 11:26:45 GMT -->
</html>