<!-- page head start-->
<div class="page-head">
	<h3 class="m-b-less">Ganti Password</h3>
	<!--<span class="sub-title">Welcome to Static Table</span>-->
	<div class="state-information">
		<ol class="breadcrumb m-b-less bg-less">
			<li><a href="index.php">Home</a></li>
			<li><a href="#">Setting</a></li>
			<li class="active"> Ganti Password </li>
		</ol>
	</div>

</div>
<!-- page head end-->

<!--body wrapper start-->
<div class="wrapper">
	<?php
		$ket = @$_GET['ket'];
		
		if($ket != "")
		{
			if($ket == "berhasil")
			{
				echo "<div class=\"alert alert-success\">  
					Data <strong>Berhasil</strong> di Simpan!
				</div>" ;	
			}
			else
			{
				if($ket == "ada")	
					$text = "Maaf, Mata Kuliah yang diinput sudah ada pada database";
				else if($ket == "passbaru")
					$text = "Maaf, Password Baru tidak sama.";
				else if($ket == "passlama")
					$text = "Maaf, Password Lama tidak sama.";
					
				echo "<div class=\"alert alert-danger\">  
					$text
				</div>" ;
			}
		}
	?>
	<div class="alert alert-warning fade in">
		<button data-dismiss="alert" class="close close-sm" type="button">
			<i class="fa fa-times"></i>
		</button>
		<strong>Info!</strong> Field dengan tanda (*) harus di isi! 
	</div>
	<div class="row">
		<div class="col-lg-12">
			<section class="panel">
				<header class="panel-heading">
					Form Setting
				</header>
				<div class="panel-body">
					<div class=" form">
						<form class="cmxform form-horizontal tasi-form" id="commentForm" method="POST" action="content/ganti_password.php">
							<div class="form-group ">
								<label for="cname" class="control-label col-lg-2">Password Lama *</label>
								<div class="col-lg-10">
									<input name="user" type="hidden" value="<?php echo "$user";?>" />
									<input class=" form-control" id="cname" name="pass_lama" minlength="2" type="password" required />
								</div>
							</div>
							<div class="form-group ">
								<label for="cname" class="control-label col-lg-2">Password Baru *</label>
								<div class="col-lg-10">
									<input class=" form-control" id="cname" name="pass_baru1" type="password" required />
								</div>
							</div>
							<div class="form-group ">
								<label for="cname" class="control-label col-lg-2">Ulangi Password Baru *</label>
								<div class="col-lg-10">
									<input class=" form-control" id="cname" name="pass_baru2" type="password" required />
								</div>
							</div>
							<div class="form-group">
								<div class="col-lg-offset-2 col-lg-10">
									<button class="btn btn-success" type="submit"><i class="fa fa-floppy-o"></i> Update</button>
								</div>
							</div>
						</form>
					</div>

				</div>
			</section>
		</div>
	</div>
</div>
<!--body wrapper end-->