177 lines
6.1 KiB
PHP
177 lines
6.1 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');?>
|
|
<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">Add Department</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 class="active">Department</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>Department</header>
|
|
</div>
|
|
<div class="card-body" id="bar-parent">
|
|
<form action="<?=base_url();?>add_department" 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 type="text" name="name" data-required="1" placeholder="EnterYour Name" class="form-control input-height">
|
|
</div>
|
|
</div>
|
|
<div class="form-group row">
|
|
<label class="control-label col-md-3">Code
|
|
<span class="required"> * </span>
|
|
</label>
|
|
<div class="col-md-5">
|
|
<input name="code" type="text" placeholder="Enter Your Code" class="form-control input-height" /> </div>
|
|
</div>
|
|
<div class="form-group row">
|
|
<label class="control-label col-md-3">No Of The Year
|
|
<span class="required"> * </span>
|
|
</label>
|
|
<div class="col-md-5 search">
|
|
<input id="recherche" name="search" type="search" placeholder="Enter Your Year" class="form-control input-height search" /> </div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div id="resultat" id="resultat" style="display: none;" class=" form-group row resultat ">
|
|
<label class="control-label col-md-5">
|
|
</label>
|
|
<div class="col-md-5">
|
|
<div class="table-responsive">
|
|
<table class="table table-striped table-bordered table-hover table-checkable order-column" id="example4">
|
|
<thead>
|
|
<tr>
|
|
<th>
|
|
<label class="rt-chkbox rt-chkbox-single rt-chkbox-outline">
|
|
<input type="checkbox" class="group-checkable" data-set="#sample_1 .checkboxes" />
|
|
<span></span>
|
|
</label>
|
|
</th>
|
|
<th>Odd</th>
|
|
<th>
|
|
<label class="rt-chkbox rt-chkbox-single rt-chkbox-outline">
|
|
<input type="checkbox" class="group-checkable" data-set="#sample_1 .checkboxes" />
|
|
<span></span>
|
|
</label>
|
|
</th>
|
|
<th>Event</th>
|
|
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
<tr class="odd gradeX">
|
|
<td>
|
|
<label class="rt-chkbox rt-chkbox-single rt-chkbox-outline">
|
|
<input type="checkbox" class="checkboxes" value="1" />
|
|
<span></span>
|
|
</label>
|
|
</td>
|
|
<td>Odd</td>
|
|
<td>
|
|
<label class="rt-chkbox rt-chkbox-single rt-chkbox-outline">
|
|
<input type="checkbox" class="checkboxes" value="1" />
|
|
<span></span>
|
|
</label>
|
|
</td>
|
|
<td>Event</td>
|
|
</tr>
|
|
|
|
<tr class="odd gradeX">
|
|
<td>
|
|
<label class="rt-chkbox rt-chkbox-single rt-chkbox-outline">
|
|
<input type="checkbox" class="checkboxes" value="1" />
|
|
<span></span>
|
|
</label>
|
|
</td>
|
|
<td>Odd</td>
|
|
<td>
|
|
<label class="rt-chkbox rt-chkbox-single rt-chkbox-outline">
|
|
<input type="checkbox" class="checkboxes" value="1" />
|
|
<span></span>
|
|
</label>
|
|
</td>
|
|
<td>Event</td>
|
|
</tr>
|
|
|
|
|
|
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</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>
|
|
$(".departmentclass").click(function(){
|
|
$('#Model').modal('show');
|
|
var id=$(this).attr('data-id');
|
|
//alert(id);
|
|
$('#hiddenid').val(id);
|
|
});
|
|
</script>
|
|
<script>
|
|
var A = 10;
|
|
$('#getyear').keyup(function () {
|
|
var nyear=$(this).val();
|
|
//alert(nyear);
|
|
//var div = document.getElementById('resultat');
|
|
});
|
|
</script>
|
|
<script>
|
|
var input = document.getElementById('recherche');
|
|
var div = document.getElementById('resultat');
|
|
|
|
// When the user type, we show the results
|
|
input.addEventListener('keypress', function() {
|
|
div.style.display = "block";
|
|
});
|
|
|
|
// To hide the div when the cursor isn't in the input
|
|
input.addEventListener('focusout', function() {
|
|
div.style.display = "none";
|
|
});
|
|
</script>
|
|
|