Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="form-group">
- <label for="first_name">First Name</label>
- <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>
- </div>
- <div class="form-group">
- <label for="last_name">Last Name</label>
- <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>
- </div>
- <div class="form-group">
- <label for="username">Username</label>
- <div class="input-group">
- <div class="input-group-prepend">
- <span class="input-group-text">@</span>
- </div>
- <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>
- </div>
- <label id="username-error" class="error" for="username" style="display: none;"></label>
- </div>
- <div class="form-group">
- <label for="password">New Password</label>
- <input type="password" class="form-control" name="password"id="password" minlength="6" placeholder="Password" <?php if(!isset($userdata)){echo "required";}?>>
- </div>
- <div class="form-group">
- <label for="email_id">Email</label>
- <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>
- </div>
- <div class="form-group">
- <label for="mobile_no">Mobile</label>
- <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>
- </div>
- <div class="form-group">
- <label>Profile Picture</label>
- <input type="file" name="profile_image" class="file-upload-default" accept="image/x-png,image/gif,image/jpeg">
- <div class="input-group col-xs-12">
- <input type="text" class="form-control file-upload-info" placeholder="Upload Image" disabled>
- <span class="input-group-append">
- <button class="file-upload-browse btn btn-primary" type="button">Upload</button>
- </span>
- </div>
- </div>
- <div class="form-group">
- <div>
- <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">
- </div>
- </div>
- <label for="status">Status</label>
- <div class="form-check-inline">
- <div class="form-check form-check-success">
- <label class="form-check-label">
- <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"; } ?>>
- Active
- <i class="input-helper"></i></label>
- </div>
- </div>
- <div class="form-check-inline">
- <div class="form-check form-check-danger">
- <label class="form-check-label">
- <input type="radio" class="form-check-input" name="status" id="status_inactive" value="Inactive" <?php if(isset($userdata)){ if($userdata['status'] == 'Inactive'){ echo "checked"; } } ?>>
- Inactive
- <i class="input-helper"></i></label>
- </div>
- </div>
Add Comment
Please, Sign In to add comment