0byt3m1n1
Path:
C:
/
wamp64
/
www
/
cpms_new
/
ADMIN
/
[
Home
]
File: edit_user.php
<?php $MAIN_HEADING = "Edit User details"; ?> <?php include("include/adminheader.php"); require_once "edit_user_ctrl.php"; ?> <form action="edit_user.php" method="post" enctype="multipart/form-data" name="form1" id="form1"> <table width="670" height="213" align="center"> <tr class="hide"> <th height="36" class="projectboldtxt" scope="row"><div align="left">User id</div></th> <th class="projectboldtxt" scope="row"><label></label> <div align="left"> <div align="left"> <input class="form-control" type="text" name="txtuserid" id="txtuserid" value="<?php echo $_GET['id']; if (isset($_POST['Update'])) { echo $edituserid; }?>" readonly="readonly"/> </div> <label></label> </tr> <tr> <th height="36" class="projectboldtxt" scope="row"><div align="left">Saluration</div></th> <th class="projectboldtxt" scope="row"><label></label> <div align="left"> <div align="left"> <select name="salutation" class="form-control"> <option <?php if(isset($salutation) && $salutation == "mr") echo "selected"; ?> value="mr">Mr</option> <option <?php if(isset($salutation) && $salutation == "ms") echo "selected"; ?> value="ms">Ms</option> <option <?php if(isset($salutation) && $salutation == "dr") echo "selected"; ?> value="dr">Dr</option> </select> </div> </div> <label></label> </th> </tr> <tr> <th width="106" height="24" class="projectboldtxt" scope="row"><div align="left"><span class"projectboldtxt">Name</span></div></th> <th width="552" class="projectboldtxt" scope="row"><label></label> <div align="left"> <input class="form-control" type="text" name="txtname" id="txtname" value= "<?php if (isset($_POST['Update'])){ echo $editname; } else{ echo $name; }?>" /> <span class="valText"> <?php if(isset($error['name_null'])){ echo $error['name_null']; } if(isset($error['name'])){ echo $error['name']; }?> </span> </div> </th> </tr> <tr><td><br/></td></tr> <tr> <th width="106" height="24" class="projectboldtxt" scope="row"><div align="left"><span class"projectboldtxt">UserName</span></div></th> <th width="552" class="projectboldtxt" scope="row"><label></label> <div align="left"> <input class="form-control" type="text" name="txtuser" id="txtuser" value= "<?php if (isset($_POST['Update'])) { echo $editusername; } else { echo $username; } ?>" /> <span class="valText"> <?php if(isset($error['username_null'])) { echo $error['username_null']; } if(isset($error['username'])) { echo $error['username']; } ?> </span></div></th> </tr> <tr><td><br/></td></tr> <tr> <th height="24" scope="row"><div align="left" class="style4">Password</div></th> <td><input class="form-control" type="text" name="txtpassword" id="txtpassword" value=""/> (Leave this field blank, if you have to retain old password)</td> </tr> <tr><td><br/></td></tr> <tr> <th height="24" scope="row"><div align="left" class="style4">Email</div></th> <td><input class="form-control" type="text" name="txtemail" id="txtemail" value="<?php if (isset($_POST['Update'])) { echo $editemail; } else { echo $email; } ?>" /> <span class="valText"> <?php if(isset($error['email_null'])) { echo $error['email_null']; } ?></span></td> </tr> <tr><td><br/></td></tr> <tr> <th width="106" height="24" class="projectboldtxt" scope="row"><div align="left"><span class"projectboldtxt">Designation</span></div></th> <th width="552" class="projectboldtxt" scope="row"><label></label> <div align="left"> <input class="form-control" type="text" name="txtdesignation" id="txtdesignation" value= "<?php if (isset($_POST['Update'])){ echo $editdesignation; } else{ echo $designation; }?>" /> <span class="valText"> <?php if(isset($error['designation_null'])){ echo $error['designation_null']; } if(isset($error['designation'])){ echo $error['designation']; }?> </span> </div> </th> </tr> <tr><td><br/></td></tr> <tr> <th height="24" class="projectboldtxt" scope="row"><div align="left">Photo</div></th> <td> <input type="file" name="photo" id="photo"></td> </tr> <tr><td><br/></td></tr> </table> <label></label> <label></label> <label></label></th> </tr> <tr> <th height="64" scope="row"> </th> <th scope="row"><span class="center"><div><input class="btn btn-success" type="submit" name="Update" id="Update" value="Update" /> </div> </span></th> </tr> </table> </form> <?php include "include/footer.php"; ?>