2023-01-05 12:19:39 +00:00
< link href = " <?=base_url();?>/assets/datatables/plugins/bootstrap/dataTables.bootstrap4.min.css " rel = " stylesheet " type = " text/css " />
2023-01-24 10:05:16 +00:00
< 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 " />
2023-01-05 12:19:39 +00:00
< ? php $this -> load -> view ( 'includes/header' ); ?>
<!--< style >
. input - group . input - group - addon {
border - radius : 0 ;
border - color : #d2d6de;
background - color : #fff;
border : 1 px solid #d2d6de;
padding : 6 px 12 px ;
}
. form - control {
width : 100 % ;
height : 34 px ;
padding : 6 px 12 px ;
background - color : #fff;
border : 1 px solid #c2cad8;
box - shadow : none ! important ;
outline : 0 ! important ;
transition : border - color ease - in - out . 15 s , box - shadow ease - in - out . 15 s ;
font - size : 14 px ;
line - height : 1.42857 ;
color : #555;
}
. fa {
padding - top : 8 px ;
}
</ 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 Student </ 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 >
2023-01-24 10:05:16 +00:00
< li >& nbsp ; < a class = " parent-item " href = " <?=base_url();?>/student " > Students </ a >& nbsp ; < i class = " fa fa-angle-right " ></ i >
</ li >
2023-01-05 12:19:39 +00:00
< li class = " active " > Edit Student </ li >
</ ol >
</ div >
</ div >
<!-- Midium Model -->
< ? php
if ( isset ( $stu ) && $stu -> num_rows () > 0 )
{
$s = $stu -> row ();
$id = $s -> id ;
$name = $s -> name ;
2023-01-21 13:41:47 +00:00
$number = $s -> mobileNumber ;
2023-01-24 10:05:16 +00:00
$date = $s -> dob ;
2023-01-05 12:19:39 +00:00
$address = $s -> address ;
2023-01-21 13:41:47 +00:00
$student = $s -> studentId ;
2023-01-05 12:19:39 +00:00
$department = $s -> department ;
2023-01-24 10:05:16 +00:00
$image = $s -> image ;
2023-01-05 12:19:39 +00:00
$gender = $s -> gender ;
2023-01-24 10:05:16 +00:00
if ( $gender == 1 ){ $genType = " Male " ;} else { $genType = " Female " ;}
2023-01-05 12:19:39 +00:00
} ?>
< div class = " row " >
< div class = " col-md-12 col-sm-12 " >
< div class = " card card-box " >
< div class = " card-head " >
< header > Edit Student </ header >
</ div >
< div class = " card-body " id = " bar-parent " >
2023-01-24 10:05:16 +00:00
< form action = " <?=base_url();?>edit-student/<?= $id ;?> " method = " post " enctype = " multipart/form-data " >
2023-01-05 12:19:39 +00:00
< 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 = " name " data - required = " 1 " placeholder = " Enter name " class = " form-control input-height " >
</ div >
2023-01-21 13:41:47 +00:00
</ div >
< div class = " form-group row " >
< label class = " control-label col-md-3 " > Student
< span class = " required " > * </ span >
</ label >
< div class = " col-md-5 " >
< input type = " text " value = " <?= $student ;?> " name = " student " data - required = " 1 " placeholder = " Enter name " class = " form-control input-height " >
</ div >
2023-01-05 12:19:39 +00:00
</ div >
< div class = " form-group row " >
< label class = " control-label col-md-3 " > Mobile .
< span class = " required " > * </ span >
</ label >
< div class = " col-md-5 " >
2023-01-21 13:41:47 +00:00
< input name = " mobileNumber " value = " <?= $number ;?> " type = " text " placeholder = " Enter hod " class = " form-control error " />
2023-01-05 12:19:39 +00:00
</ div >
</ div >
2023-01-24 10:05:16 +00:00
< 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 " value = " <?= $date ;?> " name = " date " class = " form-control input-height formDatePicker " placeholder = " Date Of Birth " size = " 44 " type = " text " data - validation = " required " >
</ div >
</ div >
</ div >
2023-01-05 12:19:39 +00:00
< 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 " rows = " 5 " >< ? = $address ; ?> </textarea>
</ div >
</ div >
< div class = " form-group row " >
< label class = " control-label col-md-3 " > Department .
< span class = " required " > * </ span >
</ label >
< div class = " col-md-5 " >
2023-01-24 10:05:16 +00:00
< select class = " form-control select2 " name = " department " data - validation = " required " >
< option value = " " selected = " selected " id = " department " > Select </ option >
< ? php
if ( isset ( $dep ) && $dep -> num_rows () > 0 )
{
foreach ( $dep -> result () as $list1 )
{
?> <option value="<?=$list1->id;?>" <?php if($list1->id==$department){ echo "selected";}?>><?=$list1->name;?></option><?php
}
}
?>
</ select >
</ div >
2023-01-05 12:19:39 +00:00
</ div >
< div class = " form-group row " >
< label class = " control-label col-md-3 " > Gender
< span class = " required " > * </ span >
</ label >
< div class = " col-md-5 " >
2023-01-24 10:05:16 +00:00
< select class = " form-control select2 " name = " gender " >
< option value = " <?= $gender ;?> " >< ? = $genType ; ?> </option>
< option value = " 1 " > Male </ option >
< option value = " 2 " > Female </ option >
2023-01-05 12:19:39 +00:00
</ select >
</ div >
</ div >
< div class = " form-group row " >
2023-01-24 10:05:16 +00:00
< label class = " control-label col-md-3 " > Image
< span class = " required " > * </ span >
2023-01-05 12:19:39 +00:00
</ label >
2023-01-24 10:05:16 +00:00
< div class = " col-md-5 " >
< input name = " image " value = " <?= $image ;?> " type = " file " placeholder = " Enter Your Image " class = " form-control " multiple >
< input type = " hidden " name = " hiddenImage " value = " <?= $image ;?> " >
</ 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/student/<?= $image ;?> " style = " width:75px;height:75px; " />
2023-01-05 12:19:39 +00:00
</ div >
</ div >
2023-01-08 20:46:58 +00:00
2023-01-05 12:19:39 +00:00
< 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 >
2023-01-24 10:05:16 +00:00
< ? 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 >