| Current File : /www-data/newsites/adminpanel/application/views/user_profile.php |
<div class="main-panel">
<div class="container">
<div class="page-inner">
<div class="page-header">
</div>
<div class="row">
<div class="col-md-12">
<div class="card">
<div class="card-header">
<div class="card-title">View/Edit Profile</div>
<div class="card-category"></div>
</div>
<form id="exampleValidation" action="<?php echo base_url('Users/updatadmin');?>" method="post" enctype="multipart/form-data">
<div class="card-body">
<?php foreach($profile as $pro){
?>
<div class="form-group form-show-validation row">
<label for="name" class="col-lg-3 col-md-3 col-sm-4 mt-sm-2 text-right">Name <span class="required-label">*</span></label>
<div class="col-lg-4 col-md-9 col-sm-8">
<input type="text" class="form-control" id="username" name="username" placeholder="Enter Name" value="<?php echo $pro['name'];?>">
<input type="hidden" name="userid" value="<?php echo $pro['id'];?>" />
<span class="text-danger"><?php echo form_error('username');?></span>
</div>
</div>
<div class="form-group form-show-validation row">
<label for="username" class="col-lg-3 col-md-3 col-sm-4 mt-sm-2 text-right">Login <span class="required-label">*</span></label>
<div class="col-lg-4 col-md-9 col-sm-8">
<div class="input-group">
<input type="text" class="form-control" placeholder="Login" aria-label="username" aria-describedby="username-addon" value="<?php echo $pro['login'];?>" id="loginname" name="loginname" >
<span class="text-danger"><?php echo form_error('loginname');?></span>
</div>
</div>
</div>
<div class="form-group form-show-validation row">
<label for="email" class="col-lg-3 col-md-3 col-sm-4 mt-sm-2 text-right">Email Address <span class="required-label">*</span></label>
<div class="col-lg-4 col-md-9 col-sm-8">
<input type="email" class="form-control" name="email" id="email" placeholder="Enter Email Address" value="<?php echo $pro['email'];?>" readonly >
<small id="emailHelp" class="form-text text-muted">We'll never share your email with anyone else.</small>
</div>
</div>
<div class="form-group form-show-validation row">
<label for="password" class="col-lg-3 col-md-3 col-sm-4 mt-sm-2 text-right">Employee ID <span class="required-label">*</span></label>
<div class="col-lg-4 col-md-9 col-sm-8">
<input type="text" readonly class="form-control" id="employee_id" name="employee_id" value="<?php echo $pro['employee_id'];?>" placeholder="Enter employee id" >
<span class="text-danger"><?php echo form_error('employee_id');?></span>
</div>
</div>
<div class="form-group form-show-validation row">
<label for="confirmpassword" class="col-lg-3 col-md-3 col-sm-4 mt-sm-2 text-right">Mobile <span class="required-label">*</span></label>
<div class="col-lg-4 col-md-9 col-sm-8">
<input type="text" class="form-control" id="mobile_no" name="mobile_no" value="<?php echo $pro['mobile_no'];?>" placeholder="Enter Mobile No" >
<span class="text-danger"><?php echo form_error('mobile_no');?></span>
</div>
</div>
<div class="form-group form-show-validation row">
<label for="confirmpassword" class="col-lg-3 col-md-3 col-sm-4 mt-sm-2 text-right">Designation <span class="required-label">*</span></label>
<div class="col-lg-4 col-md-9 col-sm-8">
<select name="designation" id="designation" class="form-control">
<?php
$org=$this->db->query('select * from designation order by id asc');
foreach($org->result() as $op){
?>
<option value="<?php echo $op->id;?>" <?php if($this->input->post('designation') == $op->id){ echo 'selected'; }?>><?php echo $op->name;?></option>
<?php
}
?>
</select>
<span class="text-danger"><?php echo form_error('designation');?></span>
</div>
</div>
<div class="form-group form-show-validation row">
<label for="confirmpassword" class="col-lg-3 col-md-3 col-sm-4 mt-sm-2 text-right">Profile <span class="required-label">*</span></label>
<div class="col-lg-4 col-md-9 col-sm-8">
<input type="text" class="form-control" id="profile" name="profile" value="<?php echo $pro['roles_id'];?>" placeholder="Enter Profile">
<span class="text-danger"><?php echo form_error('profile');?></span>
</div>
</div>
<div class="form-group form-show-validation row">
<label for="confirmpassword" class="col-lg-3 col-md-3 col-sm-4 mt-sm-2 text-right">Active Status <span class="required-label">*</span></label>
<div class="col-lg-4 col-md-9 col-sm-8">
<input type="checkbox" class="form-control1" id="activestatus" name="activestatus" value="1" <?php if($pro['active'] == 1){ echo 'checked'; }?>>
</div>
</div>
<div class="form-group form-show-validation row">
<label for="confirmpassword" class="col-lg-3 col-md-3 col-sm-4 mt-sm-2 text-right">Password <span class="required-label">*</span></label>
<div class="col-lg-4 col-md-9 col-sm-8">
<input type="text" class="form-control" readonlyid="confirmpassword" name="password" value="" placeholder="" >
</div>
</div>
<div class="separator-solid"></div>
<div class="separator-solid"></div>
<div class="form-group form-show-validation row">
<label class="col-lg-3 col-md-3 col-sm-4 mt-sm-2 text-right">Upload Image <span class="required-label">*</span></label>
<div class="col-lg-4 col-md-9 col-sm-8">
<div class="input-file input-file-image">
<img class="img-upload-preview img-circle" width="100" height="100" src="<?php echo base_url('assets/img/'.$pro['image']);?>" alt="preview">
<input type="file" class="form-control form-control-file" id="profileimage" name="profileimage" accept="image/*" style="z-index:9999">
<input type="hidden" class="form-control form-control-file" id="profileimage" name="old_image" accept="image/*" value="<?php echo $pro['image'];?>" >
<label for="uploadImg" class="btn btn-primary btn-round btn-lg"><i class="fa fa-file-image"></i> Upload a Image</label>
</div>
</div>
</div>
<div class="form-check">
<div class="row">
<label class="col-lg-3 col-md-3 col-sm-4 mt-sm-2 text-right">Agree <span class="required-label">*</span></label>
<div class="col-lg-4 col-md-9 col-sm-8 d-flex align-items-center">
<div class="custom-control custom-checkbox">
<input type="checkbox" class="custom-control-input" id="agree" name="agree" required>
<label class="custom-control-label" for="agree">Agree with terms and conditions</label>
</div>
</div>
</div>
</div>
<?php
}?>
</div>
<div class="card-action">
<div class="row">
<div class="col-md-12">
<input class="btn btn-success" type="submit" value="Update">
<button class="btn btn-danger">Cancel</button>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>