McGansWebsite/admin/application/views/department/edit_department.php

128 lines
4.4 KiB
PHP
Raw Normal View History

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" />
<?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">
2023-01-11 07:17:57 +00:00
<div class="page-title">Edit Department</div>
2023-01-05 12:19:39 +00:00
</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();?>/department">Department</a>&nbsp;<i class="fa fa-angle-right"></i>
</li>
2023-01-11 07:17:57 +00:00
<li class="active">Edit Department</li>
2023-01-05 12:19:39 +00:00
</ol>
</div>
</div>
<!-- Midium Model -->
<?php
2023-01-11 07:17:57 +00:00
if(isset($dep) && $dep->num_rows()>0)
2023-01-05 12:19:39 +00:00
{
2023-01-11 07:17:57 +00:00
$d=$dep->row();
$id=$d->id;
$name=$d->name;
$code=$d->code;
$year=$d->year;
$image=$d->image;
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">
2023-01-11 07:17:57 +00:00
<header>Edit department</header>
2023-01-05 12:19:39 +00:00
</div>
<div class="card-body" id="bar-parent">
<form action="<?=base_url();?>edit-department/<?=$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">
2023-01-11 07:17:57 +00:00
<input type="text" value="<?=$name;?>" name="name" data-required="1" placeholder="Enter Subject Name" class="form-control input-height">
2023-01-05 12:19:39 +00:00
</div>
</div>
<div class="form-group row">
2023-01-11 07:17:57 +00:00
<label class="control-label col-md-3">Code
2023-01-05 12:19:39 +00:00
<span class="required"> * </span>
</label>
<div class="col-md-5">
2023-01-11 07:17:57 +00:00
<input name="code" value="<?=$code;?>" type="text" placeholder="Enter Subject Code" class="form-control error" />
2023-01-05 12:19:39 +00:00
</div>
</div>
2023-01-11 07:17:57 +00:00
<div class="form-group row">
<label class="control-label col-md-3">Total Year
2023-01-05 12:19:39 +00:00
<span class="required"> * </span>
</label>
<div class="col-md-5">
2023-01-11 07:17:57 +00:00
<input name="year" value="<?=$year;?>" type="text" placeholder="Enter Yaer" class="form-control input-height" /> </div>
</div>
<div class="form-group row">
<label class="control-label col-md-3">Image
</label>
<div class="compose-editor">
<input name="image" value="" type="file" class="form-control" >
<input name="hiddenImage" value="<?=$image;?>" type="hidden" class="form-control" >
</div>
</div>
<div class="form-group row">
<label class="control-label col-md-3">
</label>
<div class="compose-editor">
<img src="<?=base_url();?>/uploads/department/<?=$image;?>" style="width:75px;height:75px;"/>
2023-01-11 07:17:57 +00:00
</div>
2023-01-05 12:19:39 +00:00
</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');?>