<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8" />
	<title>.:SPK_Potensi Wilayah Bidang Pertanian:.</title>
	<link rel="shortcut icon" type="image/x-icon" href="css/images/pavicon.png" />
	<link rel="stylesheet" href="css/style.css" type="text/css" media="all" />
	
	<link rel="stylesheet" href="css/flexslider.css" type="text/css" media="all" />
	
	
	<script src="js/jquery-1.7.2.min.js" type="text/javascript"></script>
	<!--[if lt IE 9]>
		<script src="js/modernizr.custom.js"></script>
	<![endif]-->
	<script src="js/jquery.flexslider-min.js" type="text/javascript"></script>
	<script src="js/functions.js" type="text/javascript"></script>
	  <style type="text/css">
    
      
      body {
    font-family: "Helvetica", "Arial", sans-serif;
    font-size: 12px;
}

form {
    margin: 0 auto;
    width: 960px;
}

form > h1 {
    border-bottom: 1px solid #E5E5E5;
    font-size: 1.5em;
    line-height: 2.5em;
    margin-bottom: 1em;
    text-align: center;
    width: 100%;
}

fieldset {
    border: none;
}

fieldset > legend {
    font-size: 1.25em;
    line-height: 2.5em;
}

input {
    display: inline-block;
    vertical-align: center;
}

input:required:invalid,
input:focus:invalid,
input:required:valid {
    background-position: 97.5% center;
    background-repeat: no-repeat;
}

input:required:invalid,
input:focus:invalid {
    background-image: url("http://i.imgur.com/NSaK8yt.png");
}

input:required:valid {
    background-image: url("http://i.imgur.com/ttb7yp4.png");
}

input[type=submit],
input[type=reset] {
    background: linear-gradient(to bottom, #FFFFFF, #E6E6E6);
    border: 1px solid #999;
    margin: 4px 10px;
    padding: 5px;
    width: 100px;
}

input[type=submit]:hover,
input[type=reset]:hover {
    cursor: pointer;
}

input[type=submit]:active,
input[type=reset]:active {
    background: #D4D4D4;
}

input[type=submit] {
    background: linear-gradient(to bottom, #0088CC, #0044CC);
    border: 1px solid #0088CC;
    color: #FFF;
}

input[type=submit]:active {
    background: #0044CC;
}

select,
input[type*=date],
input[type=text],
input[type=tel], 
input[type=email],
input[type=url],
input[type=password] {
    border: 1px solid #CCC;
    border-radius: 5px;
    padding: 5px;
    width: 225px;
}

select:focus,
input:focus {
    border-color: rgba(82, 168, 236, 0.8);
    border-radius: 5px;
    box-shadow: inset 
                0 
                1px 1px 
                rgba(0, 0, 0, 0.075), 
                0 0 8px 
                rgba(82, 168, 236, 0.6);
    outline: 0;
}

.control-group {
    margin: 10px 0;
}

.control-group > label {
    display: inline-block;
    text-align: right;
    width: 20%;
}

#FormAction {
    border-top: 1px solid #C5C5C5;
    margin-bottom: 1em;
    text-align: center;
    width: 100%;
}
    </style>
</head>
<body>
	<!-- wrapper -->
	<div  id="wrapper">
		<!-- header -->
		<header>
			<div class="shell">
				<h1 id="logo"><a href="#">Core</a></h1>
				
			</div>	
		</header>
		<!-- end of header -->
		<!-- navigation -->
		<nav id="navigation">
			<div class="shell">
				<ul>
					<li><a href="../tabel_user.php"><span class="bottom-arr"></span>USER</a></li>				
					<li><a href="../kriteria/tabel_kriteria.php"><span class="bottom-arr"></span>KRITERIA</a></li>
					<li><a href="../sub_kriteria/tabel_sub.php"><span class="bottom-arr"></span>SUB KRITERIA</a></li>
					<li><a href="../wilayah/tabel_wilayah.php"><span class="bottom-arr"></span>WILAYAH</a></li>
					<li><a href="../penilaian/penilaian.php"><span class="bottom-arr"></span>PENILAIAN</a></li>
					<li><a href="../penilaian/hasil_akhir.php""><span class="bottom-arr"></span>RANGKING</a></li>
					<li><a href="../../../logout.php"><span class="bottom-arr"></span>LOG OUT</a></li>
				</ul>
			</div>	
		</nav>
		<!-- end of navigation -->
		<!-- slider-holder --><!-- end of slider-holder -->
        <!-- services -->
<section class="services">


<?php
include '../../../koneksi.php';
$id = $_GET['id'];
$query = mysql_query("select * from wilayah where id_wilayah=$id");
while ($q = mysql_fetch_array($query)) {
 ?>

    <form  method="POST" enctype="multipart/form-data" action="../update.php" align="center" >
  
        <h1>Form Edit Data Wilayah</h1>
   <fieldset id="UserDataFields">
            <legend>Data Wilayah (wajib diisikan seluruhnya)</legend>

            <div class="control-group" >
				<input type="hidden" name="id" value="<?php echo $id ?>">
                <label for="Register[Nama]">Nama Wilayah</label>
                <input type="text" name="nama_wilayah" id="RegisterUsername" value="<?php echo $q['nama_pwilayah'] ?>" >
            </div>

			<div class="control-group" >
                <label for="Register[Username]">Alamat Wilayah Atau Daerah</label>
                <input type="text" name="alamat_wilayahn" id="RegisterUsername" value="<?php echo $q['alamat_wilayah'] ?>">
            </div>

             
			  <div class="control-group">
                <label for="Register[Email]">Tanggal Pengajuan Wilayah</label>
                <input type="text" name="tanggal" id="RegisterUsername" value="<?php echo $q['tanggal'] ?>">
            </div>
        </fieldset>

       
            

        <fieldset id="FormAction">
            <legend>Selesai?</legend>

           <input type="reset" value="Hapus Form">
            <input type="submit" value="Update" name="update_wilayah">
        </fieldset>
        
    </form>
<?php
}
mysql_close();
?>






</section>
		<!-- end of services -->
		<!-- main -->
	  <div class="main"></div>
		<!-- end of main -->
		<div id="footer-push"></div>
	</div>
	<!-- end of wrapper -->
	<div id="footer">
		<div class="shell">
			<div class="shell">
			
			<p class="copy">Copyright &copy; 2017 Fikom Unisan REZA</p>
			<div class="cl">&nbsp;</div>
		</div>
	</div>
</body>
</html>