<?php @session_start();
@ob_start();
 include "header.php";

 ?>
 <script type="text/javascript">
            $(document).ready(function() {                
				$("#FORMNAME1").validate({
                    rules: {
			old_pass: {
				required: true,
				minlength: 4
			},
			  password: {
				required: true,
				minlength: 4
			},
			confirm_pass: {
				required: true,
				minlength: 4,
				equalTo: "#password"
			},	
		},
		messages: {
			old_pass: " &nbsp;&nbsp; Please Enter Old Password",
		},
			password: {
				required: "&nbsp;&nbsp; Please provide a password",
			},
		confirm_pass: {
				required: "&nbsp;&nbsp; Please provide a password",
				equalTo: "&nbsp;&nbsp;Mismatch"
			},
			email: "&nbsp;&nbsp; Please enter email address ",
                });                
            });
		</script>
		 <style>
			select.error { background-color:#ffa8a8; border: 1px dotted red; float:left;   }
			input.error{ background-color:#ffa8a8; border: 1px dotted red; float:left; }
			textarea.error{ background-color:#ffa8a8; border: 1px dotted red; vertical-align:top; float:left; }
         </style>

 <body>
<div class="container" style="width:98.5%; margin-top:0px;">
<!--start box bg-->
<div class="span11" style="float:left; margin-top:20px; margin-bottom:30px;">
<div class="panel" style="height:600px; ">
<div class="panel-heading-collapse" style="background:  <?php echo THEMECOLOR?>">  <font color="<?php echo THEMEFONRCOLOR?>"> Change Password</font>
</div>

<p>&nbsp;</p>
<?php  $objIms->change_password();?>
<p>&nbsp;</p>


<div class="span6" style="width:48%;" >

<div class="span3">
<form name="FORMNAME1" id="FORMNAME1"  method="POST">
<label><strong style="font-size:12px">Old Password</strong></label>
<input type="password" name="old_pass" style="height:20px;" >
<label><strong style="font-size:12px">New Password</strong></label>
<input type="password" name="password" id="password" style="height:20px;">
<label><strong style="font-size:12px">Confirm Password</strong></label>
<input type="password" name="confirm_pass" id="confirm_pass" style="height:20px;">
<label></label>
<input type="submit" name="save" value="Change" class="btn btn-danger">
</form>
</div>
<p>

<br>
</div>

</div>
</div>
</div>
</body>