<?php htmltage("ແກ້ໄຂລະຫັດຜ່ານ"); 
include_once("c_changepwd.php");
?>
<div class="contentpage">
<div id="dialogparent_chpwd">
<div class="mask"></div>
<div id="dialog_chpwd">
<p class=" close_ico"><a href="?d=<?php echo $_GET['d'];?>&start=<?php echo $_GET['start'];?>"><img width='20' height='20' src='img/del.ico'></a></p>
	<h1 class="h1">ແກ້ໄຂລະຫັດຜ່ານ</h1>

	<!-- The table Select From -->
	<!-- validation only  -->
<input type="hidden" id="wid" value="<?=$_SESSION['w_id']?>" />
<?php //echo $sql ;?>
<form method="post" id="frmChangepass" onsubmit='return rechpwd();'>
	<table class = "changepwd editable">
	  <?php 
		$i = 1;
		while($row = mysql_fetch_array($usr, MYSQL_ASSOC)){ ?>
		<tr>
			
				<span><?//= ($i+$start) ?></span>
				<input type="hidden" name="type[]" class="type" value="unchanged" />
				<input type="hidden" name="usr_id[]" value="<?=$row['sysuserid'] ?>" class='user_id' />
			
			<th>ລະຫັດຜ່ານເກົ່າ:</th>
			<td class="">
			<input type="password" name="old_password[]" class = "old_password" size = "" value="" />
			<input type="hidden" class = "h_old_password" id='h_old_password' size = "" value="<?=$row['password']?>" />
			<input type="hidden" name="h_input_old_password[]" class = "h_input_old_password" id='h_input_old_password' value="" />
			
			</td>	
			</tr>
			<tr>
			<th>ປ້ອນລະຫັດຜ່ານໃໝ່:</th>
			<td class=""><input type="password" name="new_password[]" class = "new_password" size = "" value="" /></td>
			</tr>
			<tr>
			<th>ຢືນຢັນລະຫັດຜ່ານໃໝ່:</th>				
			<td class=""><input type="password" name="confirm_pass[]" class='confirm_pass' size = "" value="" /></td>												
		</tr>
		<?php $i++;} ?>	
	</table>
	<?php if(isset($_SESSION['sys_id'])){ ?>
	<div class="menubox">		
	
		<input type="button" id="reset" class = "btn2 " value="  &#3725;&#3771;&#3713;&#3776;&#3749;&#3765;&#3713;  " />
		<input type="submit" name='btnsave' class = "btn2 " value="  &#3738;&#3761;&#3737;&#3735;&#3766;&#3713;  "  id="right" onclick="return confirm('ທ່ານຕ້ອງການບັນທຶກແທ້ບໍ...?')"/>
	</div>
	<? }?>
</form>
</div>
</div>
</div>
</div>
