Virajsinh

form

Oct 24th, 2019
306
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.44 KB | None | 0 0
  1. <div class="form-group">
  2. <label for="first_name">First Name</label>
  3. <input type="text" class="form-control text-capitalize" name="first_name" id="first_name" placeholder="First Name" onkeypress="return isAlphabetKey(event)" value="<?php if(isset($userdata)){ echo $userdata['first_name']; }?>" autocomplete="off" required>
  4. </div>
  5. <div class="form-group">
  6. <label for="last_name">Last Name</label>
  7. <input type="text" class="form-control text-capitalize" name="last_name" id="last_name" placeholder="Last Name" onkeypress="return isAlphabetKey(event)" value="<?php if(isset($userdata)){ echo $userdata['last_name']; }?>" autocomplete="off" required>
  8. </div>
  9. <div class="form-group">
  10. <label for="username">Username</label>
  11. <div class="input-group">
  12. <div class="input-group-prepend">
  13. <span class="input-group-text">@</span>
  14. </div>
  15. <input type="text" class="form-control text-lowercase" placeholder="Username" onkeypress="return isAlphabetKey(event)" pattern="[a-zA-Z]+" name="username" value="<?php if(isset($userdata)){ echo $userdata['username']; }?>" aria-label="Username" required>
  16. </div>
  17. <label id="username-error" class="error" for="username" style="display: none;"></label>
  18. </div>
  19. <div class="form-group">
  20. <label for="password">New Password</label>
  21. <input type="password" class="form-control" name="password"id="password" minlength="6" placeholder="Password" <?php if(!isset($userdata)){echo "required";}?>>
  22. </div>
  23. <div class="form-group">
  24. <label for="email_id">Email</label>
  25. <input type="email" class="form-control" name="email_id" id="email_id" onkeypress="return SpaceNotAllow(event)" placeholder="Email" value="<?php if(isset($userdata)){ echo $userdata['email_id']; }?>" autocomplete="off" required>
  26. </div>
  27. <div class="form-group">
  28. <label for="mobile_no">Mobile</label>
  29. <input type="text" class="form-control" name="mobile_no" id="mobile_no" minlength="10" maxlength="10" pattern="/(6|7|8|9)\d{9}/" onkeypress="return isNumberKey(event)" placeholder="Mobile" value="<?php if(isset($userdata)){ echo $userdata['mobile_no']; }?>" autocomplete="off" required>
  30. </div>
  31. <div class="form-group">
  32. <label>Profile Picture</label>
  33.  
  34. <input type="file" name="profile_image" class="file-upload-default" accept="image/x-png,image/gif,image/jpeg">
  35.  
  36. <div class="input-group col-xs-12">
  37. <input type="text" class="form-control file-upload-info" placeholder="Upload Image" disabled>
  38. <span class="input-group-append">
  39. <button class="file-upload-browse btn btn-primary" type="button">Upload</button>
  40. </span>
  41. </div>
  42. </div>
  43. <div class="form-group">
  44. <div>
  45. <img src="<?php if(isset($userdata) && $userdata['profile_image'] != ''){ echo base_url().'assets/uploaded/users/'.$userdata['profile_image']; } ?>" id="preview" class="img-thumbnail" height="100px" width="100px">
  46. </div>
  47. </div>
  48. <label for="status">Status</label>
  49. <div class="form-check-inline">
  50. <div class="form-check form-check-success">
  51. <label class="form-check-label">
  52. <input type="radio" class="form-check-input" name="status" id="status_active" value="Active" <?php if(isset($userdata)){ if($userdata['status'] == 'Active'){ echo "checked"; } }else{ echo "checked"; } ?>>
  53. Active
  54. <i class="input-helper"></i></label>
  55. </div>
  56. </div>
  57. <div class="form-check-inline">
  58. <div class="form-check form-check-danger">
  59. <label class="form-check-label">
  60. <input type="radio" class="form-check-input" name="status" id="status_inactive" value="Inactive" <?php if(isset($userdata)){ if($userdata['status'] == 'Inactive'){ echo "checked"; } } ?>>
  61. Inactive
  62. <i class="input-helper"></i></label>
  63. </div>
  64. </div>
Add Comment
Please, Sign In to add comment