<?php
$mode		= $this->uri->segment(3);

if ($mode == "act_ubah" || $mode == "act_edt") {
	$act		= "simpan";
	$idp		= $datpil->user_id;
	$username	= $datpil->username;
	$password	= "123";
	$nama		= $datpil->nama_lengkap;
	$nip		= $datpil->nama_lengkap;
	$level		= $datpil->level;
	$groupid	= $datpil->pengguna_id;
	
} else {
	$act		= "act_add";
	$idp		= "";
	$username	= "";
	$password	= "";
	$nama		= "";
	$nip		= "";
	$level		= "";
}
?>
<div class="navbar navbar-inverse">
	<div class="container" style="z-index: 0">
		<div class="navbar-header">
			<span class="navbar-brand" href="#">Manage Pengguna</span>
		</div>
	</div><!-- /.container -->
	<?php echo $this->session->flashdata("k_passwod");?>
</div><!-- /.navbar -->
	
	<form action="<?php echo base_URL(); ?>user_siakad/password_save/<?php echo $act; ?>" method="post" accept-charset="utf-8" enctype="multipart/form-data">
	
	<input type="hidden" name="idp" value="<?php echo $idp; ?>">
	<input type="hidden" name="act" value="<?php echo $act; ?>">
	
	<div class="row-fluid well" style="overflow: hidden">
	
		<div class="col-lg-12">
			<table width="100%" class="table-form">
			<tr><td width="20%">Nama Lengkap</td><td><b><input type="text" name="nama_lengkap" disabled value="<?php echo $nama; ?>" style="width: 300px" class="form-control" tabindex="4" ></b></td></tr>
			<tr><td width="20%">Username</td><td><b><input type="text" name="username" required value="<?php echo $username; ?>" style="width: 300px" class="form-control" tabindex="1" ></b></td></tr>
			<tr><td>Password lama</td><td><input type="password" name="passw1" class="form-control" style="width: 200px" autofocus required></td></tr>		
			<tr><td>Password baru</td><td><input type="password" name="passw2" class="form-control" style="width: 200px" required></td></tr>		
			<tr><td>Ulangi Password baru</td><td><input type="password" class="form-control" name="passw3" style="width: 200px" required></td></tr>
			<tr><td colspan="2">
			<br><button type="submit" class="btn btn-primary" tabindex="7" ><i class="icon icon-ok icon-white"></i> Simpan</button>
			<a href="<?php echo base_URL(); ?>admin" class="btn btn-success" tabindex="8" ><i class="icon icon-arrow-left icon-white"></i> Kembali</a>
			</td></tr>
			</table>
		</div>
	</div>
	</form>
