<?php 
include "koneksi.php";
if (isset($_SESSION["UserID"]))
{
	header("location:index.php");
}
?>
<!DOCTYPE html>
<link rel="stylesheet" type="text/css" href="style.css">
<html>
  <head>
	<title> Modifikasi Motor </title>
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<?php
		include "part/jss.php";
	?>
	
	
  </head>
  <body>

  
  <div class="container">
	
		<div class="span12">
			<div class="alert alert-info">
					<b><center><h1>MODIFIKASI MOTOR</h1></center></b>
			</div>
					
					<?php
						include "part/menu.php";
					?>
			
			
		<div class="alert alert-info" align='center'>
				<?php
					if (isset($_GET["p"]))
					{
						$p=$_GET["p"];
						if ($p=="1")
						{
							?>
								<div class="alert alert-warning">
								  Username dan password yang anda masukkan tidak terdaftar
								</div>
							<?php
						}
						else if ($p=="2")
						{
							?>
								<div class="alert alert-info">
								  Anda berhasil melakukan logout
								</div>
							<?php
						}
						else if ($p=="3")
                        {
							?>
								<div class="alert alert-info">
								  Anda tidak berhak mengakses halaman tersebut
								</div>
							<?php
						}
					}
				?>
				<form method="post" name="login" action="checklogin.php">
					<table border=0 align="center" cellpadding=5 cellspacing=0>
					<tr>
					<td colspan=3><center><font size=5>LOGIN</font></center></td>
					</tr>
					<tr>
					<td>Username</td>
					<td>:</td>
					<td><input type="text" name="username"></td>
					</tr>
					<tr>
					<td>Password</td>
					<td>:</td>
					<td><input type="password" name="password"></td>
					</tr>
					<tr>
					<td colspan=2></td>
					<td><input type="submit" name="submit" value="LOGIN">
					|   |        <button type="button" onclick="location.href='daftar.html' class="btn btn-primary">DAFTAR</button>
					<a href="daftar.html" class="link-button">DAFTAR</a>
					</tr>
					<tr>
					<td colspan=3><a href="daftar.html">DAFTAR</a></td>
					</tr>
					</table>
				</form>
				
				<form>
  
				
		</div>		
	</div>
  </body>
</html>




