BBnepal-Accounts/hr/application/views/bustracking-admin/ae-staff copy.php
Sampanna Rimal 9cd05ef3cb commitall
2024-07-10 18:28:19 +05:45

241 lines
9.5 KiB
PHP

<div class="wraper responsive-width">
<main>
<div class="admin_tempblock">
<div class="admin_tempsec">
<div class="admin_sec">
<div class="subsec_sec">
<div class="subject_r subject_r_lng">
<div class="subject_lsec">
<div class="pr-5 ">
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="<?= base_url() . 'dashboard' ?>">Dashboard</a></li>
<li class="breadcrumb-item active" aria-current="page"><?= $title ?></li>
</ol>
</nav>
</div>
<!-- -->
<?php if ($this->session->flashdata('success')) { ?>
<div class="alert alert-success alert-dismissible fade show mr-5" role="alert">
<p><?php echo $this->session->flashdata('success') ?></p>
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>
<?php } ?>
<?php if ($this->session->flashdata('danger')) { ?>
<div class="alert alert-danger alert-dismissible fade show mr-5" role="alert">
<p><?php echo $this->session->flashdata('danger') ?></p>
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>
<?php } ?>
<input type="text" name="sdob" id='sdob' class="nepal-date sdob form-control" placeholder=" DOB (YYYY-mm-dd)" width="100%">
<label class="has-float-label">
<input type="text" name="sdob" id='sdob' class="nepal-date sdob form-control" placeholder=" DOB (YYYY-mm-dd)" width="100%">
<i class="fas fa-calendar-alt cal-icon"></i>
<span>Date Of Birth</span>
</label>
<form action="<?= base_url(); ?>staffs" method="POST" onkeydown=" return event.key != 'Enter'">
<div class="border p-4 mr-5 mt-4">
<div class="card">
<div class="card-header">
Basic Info
</div>
<div class="card-body">
<div class="row justify-content-center">
<div class="col form-group ">
<label class="has-float-label">
<select id="role" class="form-control custom-select" placeholder="Role" name="role" required>
<option value="" selected>
Select Role
</option>
<option value="teacher">
Teacher
</option>
<option value="student">
Student
</option>
</select>
<span>Role</span>
</label>
</div>
<div class="col form-group px-0">
<label class="has-float-label">
<select id="department" class="form-control custom-select" placeholder="Department" name="department">
<option value="" selected>
Select Department
</option>
<?php
foreach ($department_list as $department_key => $department) {
?>
<option value="<?= $department['id'] ?>">
<?= $department['title'] ?>
</option>
<?php
}
?>
</select>
<span>Department</span>
</label>
</div>
<div class="col form-group ">
<label class="has-float-label">
<select id="designation" class="form-control custom-select" placeholder="Designation" name="designation">
<option value="" selected>
Select Designation
</option>
<?php
foreach ($designation_list as $designation_key => $designation) {
?>
<option value="<?= $designation['id'] ?>">
<?= $designation['title'] ?>
</option>
<?php
}
?>
</select>
<span>Designation</span>
</label>
</div>
<div class="w-100 my-0"></div>
<div class="col form-group">
<label class="has-float-label">
<input type="text" id="name" name="name" class=" form-control" placeholder='Enter Full Name' required>
<span>Full Name <b class="text-danger">*</b></span>
</label>
</div>
<div class="col form-group px-0">
<label class="has-float-label">
<input type="text" id="father_name" name="father_name" class=" form-control" placeholder='Enter Father Name'>
<span>Father Name</span>
</label>
</div>
<div class="col form-group ">
<label class="has-float-label">
<input type="text" id="name" name="name" class=" form-control" placeholder='Enter Mother Name'>
<span>Mother Name</span>
</label>
</div>
<div class="w-100 my-0"></div>
<div class="col form-group ">
<label class="has-float-label">
<input type="text" id="email" name="email" class=" form-control" placeholder='Enter Email Address' required>
<span>Email Address <b class="text-danger">*</b></span>
</label>
</div>
<div class="col form-group px-0">
<label class="has-float-label">
<input type="text" id="mobile" name="mobile" class=" form-control" placeholder='Enter Contact Number' required>
<span>Contact Number <b class="text-danger">*</b></span>
</label>
</div>
<div class="col form-group ">
<label class="has-float-label">
<input type="text" id="emergency_number" name="emergency_number" class="form-control" placeholder='Enter Emercengy Contact Number'>
<span>Emergency Contact Number</span>
</label>
</div>
<div class="w-100 my-0"></div>
<div class="col form-group ">
<label class="has-float-label">
<select id="gender" class="form-control custom-select" placeholder="Gender" name="gender" required>
<option value="" selected>
Select Role
</option>
<option value="male">
Male
</option>
<option value="female">
Female
</option>
<option value="other">
Others
</option>
</select>
<span>Gender <b class="text-danger">*</b></span>
</label>
</div>
<div class="col form-group px-0">
<label class="has-float-label">
<select id="martial_status" class="form-control custom-select" placeholder="martial_status" name="martial_status" required>
<option value="" selected>
Select Martial Status
</option>
<option value="married">
Married
</option>
<option value="unmarried">
Unmarried
</option>
</select>
<span>Martial Status <b class="text-danger">*</b></span>
</label>
</div>
<div class="col form-group ">
<label class="has-float-label">
<!-- <input type="text" id="emergency_number" name="emergency_number" class="form-control" placeholder='Enter Emercengy Contact Number'> -->
<input type="text" name="sdob" id='sdob' class="nepal-date sdob form-control" placeholder=" DOB (YYYY-mm-dd)" width="100%">
<i class="fas fa-calendar-alt cal-icon"></i>
<span>Date Of Birth</span>
</label>
</div>
<div class="w-100 my-0"></div>
<input type="submit" name="updateDepartment" class="btn btn-sm btn-success px-5" value="Update">
</div>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</main>
</div>
<!--End right-top side-->
<!-- <script src="<?php echo base_url(); ?>assets-bustracking/js/jquery-3.2.1.slim.min.js"></script> -->
<script src="<?php echo base_url(); ?>assets-bustracking/js/jquery-3.4.1.min.js"></script>
<script src="<?php echo base_url(); ?>assets-bustracking/js/popper.min.js"></script>
<script src="<?php echo base_url(); ?>assets-bustracking/js/bootstrap.min.js"></script>
<script defer src="<?php echo base_url(); ?>assets-bustracking/js/main.js"></script>
<script src="<?php echo base_url(); ?>assets-bustracking/js/jquery.dataTables.min.js"></script>
<script defer src="<?php echo base_url(); ?>assets-bustracking/js/all.js"></script>
<script defer src="<?php echo base_url(); ?>assets-bustracking/js/main.js"></script>
<script src="<?php echo base_url(); ?>assets-bustracking/owl-carousel/js/owl.carousel.min.js"></script>
<script src="<?php echo base_url(); ?>assets-bustracking/js/nepali.datepicker.v3.7.min.js" type="text/javascript"></script>
<script>
$(document).ready(function() {
//table js
$('#tbl').DataTable({
"lengthMenu": [
[25, 50, 100, 150, -1],
[25, 50, 100, 150, "All"]
]
});
//table js end
});
$('#is_active').on('change', function() {
console.log('yes');
$('#status_change').val('yes');
});
</script>