6515996f87
Role, Employee, Department, Degree, Semester, Subject, Faculty Edit Completed
194 lines
7.0 KiB
PHP
194 lines
7.0 KiB
PHP
<link href="<?=base_url();?>/assets/datatables/plugins/bootstrap/dataTables.bootstrap4.min.css" rel="stylesheet" type="text/css" />
|
|
<?php $this->load->view('includes/header');?>
|
|
<link href="<?=base_url();?>assets/select2/css/select2.css" rel="stylesheet" type="text/css" />
|
|
<link href="<?=base_url();?>assets/select2/css/select2-bootstrap.min.css" rel="stylesheet" type="text/css" />
|
|
|
|
<style>
|
|
.input-group .input-group-addon {
|
|
border-radius: 0;
|
|
border-color: #d2d6de;
|
|
background-color: #fff;
|
|
border: 1px solid #d2d6de;
|
|
padding: 6px 12px;
|
|
}
|
|
.form-control{
|
|
width: 100%;
|
|
height: 34px;
|
|
padding: 6px 12px;
|
|
background-color: #fff;
|
|
border: 1px solid #c2cad8;
|
|
box-shadow: none!important;
|
|
outline: 0!important;
|
|
transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
|
|
font-size: 14px;
|
|
line-height: 1.42857;
|
|
color: #555;
|
|
}
|
|
.fa{
|
|
padding-top:8px;
|
|
}
|
|
</style>
|
|
<div class="page-container">
|
|
<?php $this->load->view('includes/sidebar');?>
|
|
<div class="page-content-wrapper">
|
|
<div class="page-content">
|
|
<div class="page-bar">
|
|
<div class="page-title-breadcrumb">
|
|
<div class=" pull-left">
|
|
<div class="page-title">Edit Employee</div>
|
|
</div>
|
|
<ol class="breadcrumb page-breadcrumb pull-right">
|
|
<li><i class="fa fa-home"></i> <a class="parent-item" href="<?=base_url();?>/dashboard">Home</a> <i class="fa fa-angle-right"></i>
|
|
</li>
|
|
<li> <a class="parent-item" href="<?=base_url();?>/employee">Employee</a> <i class="fa fa-angle-right"></i>
|
|
</li>
|
|
<li class="active">Edit Employee</li>
|
|
</ol>
|
|
</div>
|
|
</div>
|
|
<!-- Midium Model -->
|
|
<?php
|
|
if(isset($emp) && $emp->num_rows()>0)
|
|
{
|
|
$e=$emp->row();
|
|
$eid=$e->id;
|
|
$name=$e->name;
|
|
$mobileNumber=$e->mobileNumber;
|
|
$address=$e->address;
|
|
$email=$e->email;
|
|
$image =$e->image;
|
|
$pincode=$e->pincode;
|
|
$username=$e->username;
|
|
$password=$e->password;
|
|
$roleId=$e->roleId;
|
|
$roleName=$e->roleName;
|
|
} ?>
|
|
|
|
<div class="row">
|
|
<div class="col-md-12 col-sm-12">
|
|
<div class="card card-box">
|
|
<div class="card-head">
|
|
<header>Edit Employee</header>
|
|
</div>
|
|
<div class="card-body" id="bar-parent">
|
|
<form action="<?=base_url();?>edit-employee/<?=$eid;?>" method="post" enctype="multipart/form-data">
|
|
<div class="form-body">
|
|
<div class="form-group row">
|
|
<label class="control-label col-md-3">Name
|
|
<span class="required"> * </span>
|
|
</label>
|
|
<div class="col-md-5">
|
|
<input type="text" value="<?=$name;?>" name="employeename" data-validation="required" placeholder="Enter patient name" class="form-control input-height">
|
|
</div>
|
|
</div>
|
|
<div class="form-group row">
|
|
<label class="control-label col-md-3">Role
|
|
<span class="required"> * </span>
|
|
</label>
|
|
<div class="col-md-5">
|
|
<select class="form-control select2" name="roleId" data-validation="required">
|
|
<option value="" selected="selected" id="departentId" >Select</option>
|
|
<?php
|
|
if(isset($role) && $role->num_rows()>0)
|
|
{
|
|
foreach($role->result() as $roles)
|
|
{
|
|
?> <option value="<?=$roles->id;?>" <?php if($roles->id==$roleId){ echo "selected";}?>><?=$roles->name;?></option><?php
|
|
}
|
|
}
|
|
?>
|
|
|
|
</select>
|
|
</div>
|
|
</div>
|
|
<div class="form-group row">
|
|
<label class="control-label col-md-3">Mobile No.
|
|
<span class="required"> * </span>
|
|
</label>
|
|
<div class="col-md-5">
|
|
<input type="text" name="mobileNumber" value="<?=$mobileNumber;?>" data-validation="required" placeholder="Enter mobile number" class="form-control input-height" /> </div>
|
|
</div>
|
|
<div class="form-group row">
|
|
<label class="control-label col-md-3">Address
|
|
<span class="required"> * </span>
|
|
</label>
|
|
<div class="col-md-5">
|
|
<textarea name="address" data-validation="required" placeholder="address" class="form-control-textarea" rows="5"><?=$address;?></textarea>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="form-group row">
|
|
<label class="control-label col-md-3">Email
|
|
</label>
|
|
<div class="col-md-5">
|
|
<div class="input-group">
|
|
<input type="email" data-validation="required" value="<?=$email;?>" class="form-control input-height" name="email" placeholder="Enter Email Address">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group row">
|
|
<label class="control-label col-md-3">Profile Image
|
|
</label>
|
|
<div class="col-md-5 compose-editor">
|
|
<input name="image" type="file" placeholder="Enter Your Image"class="form-control default" multiple>
|
|
<input type="hidden" name="hiddenImage" value="<?=$image;?>">
|
|
</div>
|
|
|
|
</div>
|
|
<div class="form-group row">
|
|
<label class="control-label col-md-3">
|
|
<span class="required"> * </span>
|
|
</label>
|
|
<div class="col-md-5">
|
|
<img src="<?=base_url();?>/uploads/employee/<?=$image;?>" style="width:75px;height:75px;" />
|
|
</div>
|
|
</div>
|
|
<div class="form-group row">
|
|
<label class="control-label col-md-3">Pincode.
|
|
<span class="required"> * </span>
|
|
</label>
|
|
<div class="col-md-5">
|
|
<input name="code" value="<?=$pincode;?>" data-validation="required" type="text" placeholder="Enter Code" class="form-control error" />
|
|
</div>
|
|
</div>
|
|
<div class="form-group row">
|
|
<label class="control-label col-md-3">UserName.
|
|
<span class="required"> * </span>
|
|
</label>
|
|
<div class="col-md-5">
|
|
<input name="username" data-validation="required" value="<?=$username;?>" type="text" placeholder="Enter Username" class="form-control input-height" /> </div>
|
|
</div>
|
|
<div class="form-group row">
|
|
<label class="control-label col-md-3">Password.
|
|
<span class="required"> * </span>
|
|
</label>
|
|
<div class="col-md-5">
|
|
<input name="password" type="password" placeholder="Enter Password" class="form-control input-height" /> </div>
|
|
<input type="hidden" name="hiddenPassword" value="<?=$password;?>">
|
|
</div>
|
|
</div>
|
|
<div class="form-actions">
|
|
<div class="row">
|
|
<div class="offset-md-3 col-md-9">
|
|
<input type="submit" name="submit" class="btn btn-info m-r-20" value="Submit">
|
|
<button type="button" class="btn btn-default" data-dismiss="">Cancel</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- Modal -->
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<?php $this->load->view('includes/footer');?>
|
|
<script src="<?=base_url();?>assets/select2/js/select2.js"></script>
|
|
<script src="<?=base_url();?>assets/select2/js/select2-init.js"></script>
|
|
<script src="<?=base_url();?>assets/jquery.form-validator.min.js"></script>
|