McGansWebsite/admin/application/views/faculty/edit_faculty.php
dotwingssoftware f2a40c268b 20230207
1. Have to test and deploy in server.  2. add faculty detail into employee table and student detail  into employee table, 3. Change Teaching Assistant into multiple select 4. User Profile
2023-02-07 18:41:26 +05:30

187 lines
7.3 KiB
PHP

<link href="<?=base_url();?>/assets/datatables/plugins/bootstrap/dataTables.bootstrap4.min.css" rel="stylesheet" type="text/css" />
<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" />
<?php $this->load->view('includes/header');?>
<!--<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 Faculty</div>
</div>
<ol class="breadcrumb page-breadcrumb pull-right">
<li><i class="fa fa-home"></i>&nbsp;<a class="parent-item" href="<?=base_url();?>/dashboard">Home</a>&nbsp;<i class="fa fa-angle-right"></i>
</li>
<li class="active">Edit Faculty</li>
</ol>
</div>
</div>
<!-- Midium Model -->
<?php
if(isset($fac) && $fac->num_rows()>0)
{
$f=$fac->row();
$id=$f->id;
$facultyId=$f->facultyId;
$name=$f->name;
$email=$f->email;
$dob=$f->dob;
$address=$f->address;
$gender=$f->gender;
$mobileNumber=$f->mobileNumber;
$designation=$f->designation;
$image=$f->image;
$employeeId=$f->employeeId;
if($gender==1){$genType="Male";}else{$genType="Female";}
} ?>
<div class="row">
<div class="col-md-12 col-sm-12">
<div class="card card-box">
<div class="card-head">
<header>Edit Faculty</header>
</div>
<div class="card-body" id="bar-parent">
<form action="<?=base_url();?>edit-faculty/<?=$id;?>" method="post" enctype="multipart/form-data">
<div class="form-body">
<div class="form-group row">
<label class="control-label col-md-3">Faculty Id
<span class="required"> * </span>
</label>
<div class="col-md-5">
<input type="text" value="<?=$facultyId;?>" name="facultyId" data-required="1" placeholder="Enter name" class="form-control input-height">
</div>
</div>
<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="name" data-required="1" placeholder="Enter name" class="form-control input-height">
</div>
<input type="hidden" name="employeeId" value="<?=$employeeId;?>"/>
</div>
<div class="form-group row">
<label class="control-label col-md-3">Email
<span class="required"> * </span>
</label>
<div class="col-md-5">
<div class="input-group">
<input type="email" value="<?=$email;?>"class="form-control input-height" name="email" placeholder="Email Address" data-validation="required">
</div>
</div>
</div>
<div class="form-group row">
<label class="control-label col-md-3">Mobile Number
<span class="required"> * </span>
</label>
<div class="col-md-5">
<input name="mobileNumber" value="<?=$mobileNumber;?>" type="text" placeholder="Enter Staff" class="form-control error" />
</div>
</div>
<div class="form-group row">
<label class="control-label col-md-3">Designation
<span class="required"> * </span>
</label>
<div class="col-md-5">
<input name="designation" value="<?=$designation;?>" type="text" placeholder="Enter Staff" class="form-control error" />
</div>
</div>
<div class="form-group row">
<label class="control-label col-md-3">Date Of Birth
<span class="required"> * </span>
</label>
<div class="col-md-5">
<div class="input-append date" id="dp3">
<input type="date" name="dob" value="<?=$dob;?>" class=" form-control input-height formDatePicker" placeholder="Date Of Birth" size="44" type="text" data-validation="required">
<!--<span class="add-on"><i class="fa fa-calendar"></i></span>-->
</div>
</div>
</div>
<div class="form-group row">
<label class="control-label col-md-3">Gender
<span class="required"> * </span>
</label>
<div class="col-md-5">
<select class="form-control select2" name="gender">
<option value="<?=$gender;?>"><?=$genType;?></option>
<option value="1">Male</option>
<option value="2">Female</option>
</select>
</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" placeholder="address" class="form-control-textarea"><?=$address;?></textarea>
</div>
</div>
<div class="form-group row">
<label class="control-label col-md-3">Profile Img
</label>
<div class="compose-editor">
<input type="file" name="image" placeholder="Enter img" class="form-control error">
<input type="hidden" value="<?=$image;?>" name="hiddenImage" >
</div>
</div>
<div class="form-group row">
<label class="control-label col-md-3">
</label>
<div class="col-md-5">
<img src="<?=base_url()?>uploads/faculty/<?=$image;?>" style="width:75px;height:75px;" />
</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">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>