<div><?php echo  $this->message; ?></div>

<!-- Category Listing -->
<div class="comm_content_block">
					<h3>Profile</h3>

				
<div class="comm_box">
    <h4>Edit Profile</h4>
<form name="frmEditAdmin" id="frmEditAdmin" method="post" action="">
    <table border="0" cellpadding="0" cellspacing="0"  class="form_tbls" width="100%" >

    <tr>
        <th valign="top" width="30%"> Name:</th>
            <td><input type="text" class="txt_area" id="txtFname" name="txtFname" value="<?php echo stripslashes($this->admindetails->vAdminFname);?>"/></td>

    </tr>
   <!--  <tr>
            <th valign="top"> Last Name:</th>
            <td><input type="text" class="txt_area" id="txtLname" name="txtLname" value="<?php echo stripslashes($this->admindetails->vAdminLastname);?>"/></td>

    </tr>-->
     <tr>
            <th valign="top"> Email:</th>
            <td><input type="text" class="txt_area" id="txtEmail" name="txtEmail" value="<?php echo stripslashes($this->admindetails->vAdminEmail);?>"/></td>

    </tr>
    <tr>
    <th>&nbsp;</th>
    <td valign="top">
			<input type="button"  value="Back" name="cancel" class="btn_styles" onclick="window.location ='<?php echo ConfigUrl::base()?>index/dashboard'"/>
            <input type="submit"  value="Submit" name="btnProfile" class="btn_styles"/>
    </td>
    </tr>
    </table>
    </form>
    <H4>Change Password</H4>
    <form name="frmEditPass" id="frmEditPass"  method="post" action="">
    <input type="hidden" value="<?php echo $id;?>" name="id"/>
    <input type="hidden" value="edit" name="act"/>
    <table border="0" cellpadding="0" cellspacing="0"  class="form_tbls" width="100%" >

     <tr>
        <th valign="top" width="30%"> Password:</th>
        <td><input type="password" class="txt_area" id="txtPass" name="txtPass" value=""/></td>

    </tr>
   <tr>
        <th valign="top"> Confirm Password:</th>
        <td><input type="password" class="txt_area" id="txtCpass" name="txtCpass" value=""/></td>
    </tr>
    <tr>
    <th>&nbsp;</th>
    <td valign="top">
	<input type="button"  value="Back" name="Cancel" class="btn_styles" onclick="window.location ='<?php echo ConfigUrl::base()?>index/dashboard'"/>
            <input type="submit"  value="Submit" name="btnPassword" class="btn_styles"/>
               </td>
    </tr>
    </table>
    </form>

</div>
<div class="clear"></div>
</div>
    <script type="text/javascript">
 $(document).ready(function() {
	// validate the comment form when it is submitted

	// validate signup form on keyup and submit
	$("#frmEditAdmin").validate({
		rules: {

                        txtEmail: {
                          	required: true,
                                email: true
			},
                       txtFname: { required: true }
                        


		},
		messages: {

                        txtEmail: {
				required: "Please enter Email",
				 email: "Please enter valid Email"
			},
                         txtFname: {
				required: "Please enter Firstname"
				
			}



		}
                
	});

        // validate signup form on keyup and submit
	$("#frmEditPass").validate({
		rules: {

                        txtPass: {
                          	required: true
			},
                       txtCpass: { required: true }



		},
		messages: {

                        txtPass: {
				required: "Please enter Password"
			},
                         txtCpass: {
				required: "Please enter Confirm Password"

			}



		}

	});

 });
 </script>