McGansWebsite/admin/application/views/semester/edit_semester.php
dotwingssoftware 6515996f87 20230121
Role, Employee, Department, Degree, Semester, Subject, Faculty Edit Completed
2023-01-21 19:11:47 +05:30

148 lines
5.6 KiB
PHP

<?php $this->load->view('includes/header');?>
<link href="<?=base_url();?>/assets/datatables/plugins/bootstrap/dataTables.bootstrap4.min.css" rel="stylesheet" type="text/css" />
<!--select2-->
<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" />
<div class="page-container">
<!-- start sidebar menu -->
<?php $this->load->view('includes/sidebar');?>
<!-- start page content -->
<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 Semester</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>&nbsp;<a class="parent-item" href="<?=base_url();?>/semester">Semester</a>&nbsp;<i class="fa fa-angle-right"></i>
</li>
<li class="active">Edit Semester</li>
</ol>
</div>
</div>
<!-- Midium Model -->
<div class="row">
<div class="col-md-12 col-sm-12">
<div class="card card-box">
<div class="card-head">
<header>Edit Semester</header>
</div>
<?php
if(isset($getData) && $getData->num_rows()>0)
{
$e=$getData->row();
$id =$e->id;
$name=$e->name;
$year=$e->year;
$subjectId=$e->subjectId;
$departmentId=$e->departmentId;
$degreeId =$e->degreeId;
} ?>
<div class="card-body" id="bar-parent">
<form class="form-horizontal" action="<?=base_url();?>edit-semester/<?=$id;?>" method="post">
<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 name="name" value="<?=$name;?>" type="text" data-validation="required" placeholder="Enter Degree Name" class="form-control input-height" /> </div>
</div>
<div class="form-group row">
<label class="control-label col-md-3">Year
<span class="required"> * </span>
</label>
<div class="col-md-5">
<input name="year" value="<?=$year;?>" type="number" data-validation="required" placeholder="Enter Semester Year" class="form-control input-height" />
</div>
</div>
<div class="form-group row">
<label class="control-label col-md-3">Subject
<span class="required"> * </span>
</label>
<div class="col-md-5">
<select class="form-control select2" name="subjectId" data-validation="required">
<option value="" selected="selected" id="subjectId" >Select</option>
<?php
if(isset($subject) && $subject->num_rows()>0)
{
foreach($subject->result() as $list)
{
?> <option value="<?=$list->id;?>" <?php if($list->id==$subjectId){ echo "selected";}?>><?=$list->name;?></option><?php
}
}
?>
</select>
</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">
<select class="form-control select2" name="departmentId" data-validation="required">
<option value="" selected="selected" id="departentId" >Select</option>
<?php
if(isset($department) && $department->num_rows()>0)
{
foreach($department->result() as $list1)
{
?> <option value="<?=$list1->id;?>" <?php if($list1->id==$departmentId){ echo "selected";}?>><?=$list1->name;?></option><?php
}
}
?>
</select>
</div>
</div>
<div class="form-group row">
<label class="control-label col-md-3">Degree
<span class="required"> * </span>
</label>
<div class="col-md-5">
<select class="form-control select2" name="degreeId" data-validation="required">
<option value="" selected="selected" id="degreeId" >Select</option>
<?php
if(isset($degree) && $degree->num_rows()>0)
{
foreach($degree->result() as $list)
{
?> <option value="<?=$list->id;?>" <?php if($list->id==$degreeId){ echo "selected";}?>><?=$list->name;?></option><?php
}
}
?>
</select>
</div>
</div>
</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>