<?php
    // session_start();
    // if(empty($_SESSION['username']))
    // {
    //     echo "<meta http-equiv='refresh' content='0; url=login.php'>";
    // }
    // else
    // {
    //     include("../inc/koneksi.php");
    //     $user = $_SESSION['username'];
    //     $nama = $_SESSION['nama'];
    //     $email = $_SESSION['email'];

?>
<!DOCTYPE HTML>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="user-scalable=no, initial-scale=1.0, maximum-scale=1.0 minimal-ui" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black">

<link rel="icon" type="image/png" href="images/splash/android-chrome-192x192.png" sizes="192x192">
<link rel="apple-touch-icon" sizes="196x196" href="images/splash/apple-touch-icon-196x196.png">
<link rel="apple-touch-icon" sizes="180x180" href="images/splash/apple-touch-icon-180x180.png">
<link rel="apple-touch-icon" sizes="152x152" href="images/splash/apple-touch-icon-152x152.png">
<link rel="apple-touch-icon" sizes="144x144" href="images/splash/apple-touch-icon-144x144.png">
<link rel="apple-touch-icon" sizes="120x120" href="images/splash/apple-touch-icon-120x120.png">
<link rel="apple-touch-icon" sizes="114x114" href="images/splash/apple-touch-icon-114x114.png">
<link rel="apple-touch-icon" sizes="76x76" href="images/splash/apple-touch-icon-76x76.png">
<link rel="apple-touch-icon" sizes="72x72" href="images/splash/apple-touch-icon-72x72.png">
<link rel="apple-touch-icon" sizes="60x60" href="images/splash/apple-touch-icon-60x60.png">
<link rel="apple-touch-icon" sizes="57x57" href="images/splash/apple-touch-icon-57x57.png">
<link rel="icon" type="image/png" href="images/splash/favicon-96x96.png" sizes="96x96">
<link rel="icon" type="image/png" href="images/splash/favicon-32x32.png" sizes="32x32">
<link rel="icon" type="image/png" href="images/splash/favicon-16x16.png" sizes="16x16">
<link rel="shortcut icon" href="images/splash/favicon.ico" type="image/x-icon" />
<link href='https://fonts.googleapis.com/css?family=Roboto:400,100,100italic,300,300italic,400italic,500,500italic,700,700italic,900,900italic' rel='stylesheet' type='text/css'>
    
<title>Tagor.</title>

<link rel="stylesheet" type="text/css" href="styles/style.css">
<link rel="stylesheet" type="text/css" href="styles/menu.css">
<link rel="stylesheet" type="text/css" href="styles/framework.css">
<link rel="stylesheet" type="text/css" href="styles/font-awesome.css">

<script type="text/javascript" src="scripts/jquery.js"></script>
<script type="text/javascript" src="scripts/plugins.js"></script>
<script type="text/javascript" src="scripts/custom.js"></script>

<script src="http://maps.google.com/maps?file=api&v=2&key=AIzaSyCe-95nlLo7bu1FWl94IwoZ14o5WnE9L_M&sensor=false" type="text/javascript"></script>
<style type="text/css">
	body {font:10pt arial; }
	.main { text-align:center; font:12pt Arial; width:100%; height:auto; }
	.eventtext {width:100%; margin-top:20px; font:10pt Arial; text-align:left; line-height:25px; background-color:#EDF4F8;
	padding:5px; border:1px dashed #C2DAE7;}
	#mapa {width:100%; height:340px; border:5px solid #DEEBF2;}

	.code {border:1px dashed #cecece; background-color:#F7F7F7; padding:5px;}
	.small {font:9pt arial; color:gray; padding:2px; }
	.jimi { margin:0px;}
	</style>
	<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
</head>

<body>
<div class="gallery-fix"></div><!-- Fix Gallery next/prev error on Android -->
<div class="sidebar-tap-close"></div><!-- Overlay for content to close Sidebar -->

<div class="header-fixed header-light">
    <a href="index.php" class="header-icon-1"><i class="fa fa-home" style="font-size: 24px; margin-top: 20px;"></i></a>
	<a href="index.php" class="header-logo"></a>
</div>>              
<div id="page-content">
    <div id="page-content-scroll"><!--Enables this element to be scrolled -->        
        <div class="header-clear"></div>
        <div class="content-strip">
            <div class="strip-content">
                <h4>Pengaturan</h4>
                <p>Ganti Password</p>
            </div>
            <div class="overlay"></div>
            <img class="preload-image" data-original="images/jmp.jpg" alt="img">
        </div>
		<div class="decoration"></div>
		<div class="content">
			<div class="container no-bottom">
				<div class="contact-form no-bottom"> 
					<div class="formSuccessMessageWrap" id="formSuccessMessageWrap">
						<div class="container">
							<div class="decoration"></div>
							<p class="center-text">Terima kasih telah memberikan komentar.</p>
						</div>
					</div>

					<form action="ganti_password.php" method="POST" class="contactForm">
						<fieldset>
							<div class="formFieldWrap">
								<label class="field-title contactNameField" for="contactNameField">Password Lama:<span>(required)</span></label>
								<input type="text" name="nama" class="contactField" placeholder="Masukan Password Lama" />
							</div>
							<div class="formFieldWrap">
								<label class="field-title contactEmailField" for="contactEmailField">Password Baru: <span>(required)</span></label>
								<input type="text" name="lokasi" class="contactField" placeholder="Masukan Password Baru"/>
							</div>
							<div class="formFieldWrap">
								<label class="field-title contactEmailField" for="contactEmailField">Password Baru (Ulangi): <span>(required)</span></label>
								<input type="text" name="lokasi" class="contactField" placeholder="Ulangi Password Baru"/>
							</div>
							<div class="formSubmitButtonErrorsWrap contactFormButton">
								<button class="buttonWrap button button-green contactSubmitButton">Ganti Password!</button>
							</div>
						</fieldset>
					</form>
					<div class="decoration"></div>
				</div>
            </div>
		</div>
        <div class="footer-clear disabled"></div>
    </div>
    
    <a href="#" class="back-to-top-badge"><i class="fa fa-caret-up"></i>Back to top</a>
</div>
    
<script type="text/javascript">
	if (GBrowserIsCompatible())
	{
		map = new GMap2(document.getElementById("mapa"));
		map.addControl(new GLargeMapControl());
		map.addControl(new GMapTypeControl(3));
		map.setCenter( new GLatLng(-4.5407415, 129.8852402), 12,0);
		
		// Create a marker
		var marker = new GMarker(new GLatLng(<?php echo "$r[5]";?>, <?php echo "$r[6]";?>))
		// Add the marker to the map	
		map.addOverlay(marker)
	
	}
	 
</script>
</body>
<?php 
    //} 
?>