860 lines
36 KiB
PHP
860 lines
36 KiB
PHP
|
|
<div class="x_panel">
|
|
<div class="x_title">
|
|
<h2>Asset Master</h2>
|
|
<div class="clearfix"></div>
|
|
</div>
|
|
<div class="x_content">
|
|
<ul class="nav nav-tabs bar_tabs" id="myTab" role="tablist">
|
|
<li class="nav-item">
|
|
<a class="nav-link" id="manufacture-tab" data-toggle="tab" href="#manufacture" role="tab" aria-controls="manufacture" aria-selected="true">Manufacturer</a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a class="nav-link" id="supplier-tab" data-toggle="tab" href="#supplier" role="tab" aria-controls="supplier" aria-selected="false">Supplier</a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a class="nav-link" id="service_privoder-tab" data-toggle="tab" href="#service_privoder" role="tab" aria-controls="service_privoder" aria-selected="false">Service Provider</a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a class="nav-link" id="insurence-tab" data-toggle="tab" href="#insurence" role="tab" aria-controls="insurence" aria-selected="false">Insurance</a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a class="nav-link" id="location-tab" data-toggle="tab" href="#location" role="tab" aria-controls="location" aria-selected="false">Location</a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a class="nav-link" id="catogary-tab" data-toggle="tab" href="#catogary" role="tab" aria-controls="catogary" aria-selected="false">Category</a>
|
|
</li>
|
|
</ul>
|
|
|
|
|
|
<div class="tab-content" id="myTabContent">
|
|
|
|
|
|
|
|
|
|
<!------------------------------ MANUFACTURE DATA ------------------------------->
|
|
<div class="tab-pane fade" id="manufacture" role="tabpanel" aria-labelledby="manufacture-tab">
|
|
<ul class="nav navbar-right panel_toolbox">
|
|
<?php if(user()->action_permit != 'view' ) { ?>
|
|
<a type="button" class="manufacture" id="" style=" text-align: center; font-size: 25px; color:#2A3F54; ">
|
|
<li class="fa fa-plus-circle" title="Add New"></li></a>
|
|
<?php } ?>
|
|
</ul> </br>
|
|
<div class="card-box table-responsive">
|
|
<table class="table table-bordered table-striped" cellspacing="0" width="100%">
|
|
<thead>
|
|
<tr class="headings">
|
|
<th class="column-title" width="15%">Name </th>
|
|
<th class="column-title" width="15%">Phone </th>
|
|
<th class="column-title" width="15%">Email </th>
|
|
<th class="column-title" width="10%">GST </th>
|
|
<th class="column-title" width="15%">Address </th>
|
|
<th class="column-title" width="15%">City </th>
|
|
<th class="column-title" width="15%">State </th>
|
|
<th class="column-title" width="10%">Pincode </th>
|
|
<th class="column-title" width="10%">Action </th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?php foreach ($manufacturerData as $key => $value) { ?>
|
|
<tr class="even pointer">
|
|
<td class=" "><?php echo $value->name; ?></td>
|
|
<td class=" "><?php echo $value->phone; ?></td>
|
|
<td class=" "><?php echo $value->email; ?></td>
|
|
<td class=" "><?php echo $value->gst; ?></td>
|
|
<td class=" "><?php echo $value->address; ?></td>
|
|
<td class=" "><?php echo $value->city; ?></td>
|
|
<td class=" "><?php echo $value->state; ?></td>
|
|
<td class=" "><?php echo $value->pincode; ?></td>
|
|
<?php if(user()->action_permit != 'view' ) { ?>
|
|
<td>
|
|
<a class="manufacture" id="<?php echo md5($value->id); ?>" style="font-size: 16px;" >
|
|
<i class="fa fa-pencil" title="Edit"></i></a>
|
|
|
|
<a class="deleteManufacturerData" data-toggle="modal" data-target=".bs-example-modal-sm" style="font-size: 16px;" id="<?php echo md5($value->id); ?>">
|
|
<i class="fa fa-trash " ></i></a>
|
|
<!-- <a href="<?php echo base_url()?>Asset/deleteThirdPartyData/<?php echo md5($value->id); ?>" style="font-size: 16px;"><i class="fa fa-trash" title="Delete"></i></a> -->
|
|
</td>
|
|
<?php } ?>
|
|
</tr>
|
|
<?php } ?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<!------------------------------ SUPPLIER DATA ------------------------------>
|
|
<div class="tab-pane fade" id="supplier" role="tabpanel" aria-labelledby="asset_usage-tab">
|
|
<ul class="nav navbar-right panel_toolbox">
|
|
<?php if(user()->action_permit != 'view' ) { ?>
|
|
<a type="button" class="supplier" id="" style=" text-align: center; font-size: 25px; color:#2A3F54; ">
|
|
<li class="fa fa-plus-circle" title="Add New"></li></a>
|
|
<?php } ?>
|
|
</ul> </br>
|
|
<div class="card-box table-responsive">
|
|
<table class="table table-bordered table-striped" cellspacing="0" width="100%">
|
|
<thead>
|
|
<tr class="headings">
|
|
<th class="column-title" width="15%">Name </th>
|
|
<th class="column-title" width="15%">Phone </th>
|
|
<th class="column-title" width="15%">Email </th>
|
|
<th class="column-title" width="10%">GST </th>
|
|
<th class="column-title" width="15%">Address </th>
|
|
<th class="column-title" width="15%">City </th>
|
|
<th class="column-title" width="15%">State </th>
|
|
<th class="column-title" width="10%">Pincode </th>
|
|
<th class="column-title" width="10%">Action </th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?php foreach ($supplierData as $key => $value) { ?>
|
|
<tr class="even pointer">
|
|
<td class=" "><?php echo $value->name; ?></td>
|
|
<td class=" "><?php echo $value->phone; ?></td>
|
|
<td class=" "><?php echo $value->email; ?></td>
|
|
<td class=" "><?php echo $value->gst; ?></td>
|
|
<td class=" "><?php echo $value->address; ?></td>
|
|
<td class=" "><?php echo $value->city; ?></td>
|
|
<td class=" "><?php echo $value->state; ?></td>
|
|
<td class=" "><?php echo $value->pincode; ?></td>
|
|
<?php if(user()->action_permit != 'view' ) { ?>
|
|
<td>
|
|
<a class="supplier" id="<?php echo md5($value->id); ?>" style="font-size: 16px;" >
|
|
<i class="fa fa-pencil" title="Edit"></i></a>
|
|
|
|
<a class="deleteSupplierData" data-toggle="modal" data-target=".bs-example-modal-sm" style="font-size: 16px;" id="<?php echo md5($value->id); ?>">
|
|
<i class="fa fa-trash " ></i></a>
|
|
<!-- <a href="<?php echo base_url()?>Asset/deleteThirdPartyData/<?php echo md5($value->id); ?>" style="font-size: 16px;"><i class="fa fa-trash" title="Delete"></i></a> -->
|
|
</td>
|
|
<?php } ?>
|
|
</tr>
|
|
<?php } ?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<!------------------------------ SERVICE PROVIDER DATA ---------------------->
|
|
<div class="tab-pane fade" id="service_privoder" role="tabpanel" aria-labelledby="service_privoder-tab">
|
|
<ul class="nav navbar-right panel_toolbox">
|
|
<?php if(user()->action_permit != 'view' ) { ?>
|
|
<a type="button" class="service_privoder" id="" style=" text-align: center; font-size: 25px; color:#2A3F54; ">
|
|
<li class="fa fa-plus-circle" title="Add New"></li></a>
|
|
<?php } ?>
|
|
</ul> </br>
|
|
<div class="card-box table-responsive">
|
|
<table class="table table-bordered table-striped" cellspacing="0" width="100%">
|
|
<thead>
|
|
<tr class="headings">
|
|
<th class="column-title" width="15%">Name </th>
|
|
<th class="column-title" width="15%">Phone </th>
|
|
<th class="column-title" width="15%">Email </th>
|
|
<th class="column-title" width="10%">GST </th>
|
|
<th class="column-title" width="15%">Address </th>
|
|
<th class="column-title" width="15%">City </th>
|
|
<th class="column-title" width="15%">State </th>
|
|
<th class="column-title" width="10%">Pincode </th>
|
|
<th class="column-title" width="10%">Action </th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?php foreach ($service_privoder as $key => $value) { ?>
|
|
<tr class="even pointer">
|
|
<td class=" "><?php echo $value->name; ?></td>
|
|
<td class=" "><?php echo $value->phone; ?></td>
|
|
<td class=" "><?php echo $value->email; ?></td>
|
|
<td class=" "><?php echo $value->gst; ?></td>
|
|
<td class=" "><?php echo $value->address; ?></td>
|
|
<td class=" "><?php echo $value->city; ?></td>
|
|
<td class=" "><?php echo $value->state; ?></td>
|
|
<td class=" "><?php echo $value->pincode; ?></td>
|
|
<?php if(user()->action_permit != 'view' ) { ?>
|
|
<td>
|
|
<a class="service_privoder" id="<?php echo md5($value->id); ?>" style="font-size: 16px;" >
|
|
<i class="fa fa-pencil" title="Edit"></i></a>
|
|
|
|
<a class="deleteServicePrivoderData" data-toggle="modal" data-target=".bs-example-modal-sm" style="font-size: 16px;" id="<?php echo md5($value->id); ?>">
|
|
<i class="fa fa-trash " ></i></a>
|
|
<!-- <a href="<?php echo base_url()?>Asset/deleteThirdPartyData/<?php echo md5($value->id); ?>" style="font-size: 16px;"><i class="fa fa-trash" title="Delete"></i></a> -->
|
|
</td>
|
|
<?php } ?>
|
|
</tr>
|
|
<?php } ?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<!------------------------------ INSURENCE DATA ------------------------------>
|
|
<div class="tab-pane fade" id="insurence" role="tabpanel" aria-labelledby="insurence-tab">
|
|
<ul class="nav navbar-right panel_toolbox">
|
|
<?php if(user()->action_permit != 'view' ) { ?>
|
|
<a type="button" class="insurence" id="" style=" text-align: center; font-size: 25px; color:#2A3F54; ">
|
|
<li class="fa fa-plus-circle" title="Add New"></li></a>
|
|
<?php } ?>
|
|
</ul> </br>
|
|
<div class="card-box table-responsive">
|
|
<table class="table table-bordered table-striped" cellspacing="0" width="100%">
|
|
<thead>
|
|
<tr class="headings">
|
|
<th class="column-title" width="15%">Name </th>
|
|
<th class="column-title" width="15%">Phone </th>
|
|
<th class="column-title" width="15%">Email </th>
|
|
<th class="column-title" width="10%">GST </th>
|
|
<th class="column-title" width="15%">Address </th>
|
|
<th class="column-title" width="15%">City </th>
|
|
<th class="column-title" width="15%">State </th>
|
|
<th class="column-title" width="10%">Pincode </th>
|
|
<th class="column-title" width="10%">Action </th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?php foreach ($insurence as $key => $value) { ?>
|
|
<tr class="even pointer">
|
|
<td class=" "><?php echo $value->name; ?></td>
|
|
<td class=" "><?php echo $value->phone; ?></td>
|
|
<td class=" "><?php echo $value->email; ?></td>
|
|
<td class=" "><?php echo $value->gst; ?></td>
|
|
<td class=" "><?php echo $value->address; ?></td>
|
|
<td class=" "><?php echo $value->city; ?></td>
|
|
<td class=" "><?php echo $value->state; ?></td>
|
|
<td class=" "><?php echo $value->pincode; ?></td>
|
|
<?php if(user()->action_permit != 'view' ) { ?>
|
|
<td>
|
|
<a class="insurence" id="<?php echo md5($value->id); ?>" style="font-size: 16px;" >
|
|
<i class="fa fa-pencil" title="Edit"></i></a>
|
|
|
|
<a class="deleteInsurenceData" data-toggle="modal" data-target=".bs-example-modal-sm" style="font-size: 16px;" id="<?php echo md5($value->id); ?>">
|
|
<i class="fa fa-trash " ></i></a>
|
|
<!-- <a href="<?php echo base_url()?>Asset/deleteThirdPartyData/<?php echo md5($value->id); ?>" style="font-size: 16px;"><i class="fa fa-trash" title="Delete"></i></a> -->
|
|
</td>
|
|
<?php } ?>
|
|
</tr>
|
|
<?php } ?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<!------------------------------ LOCATION DATA ------------------------------>
|
|
<div class="tab-pane fade" id="location" role="tabpanel" aria-labelledby="location-tab">
|
|
<ul class="nav navbar-right panel_toolbox">
|
|
<?php if(user()->action_permit != 'view' ) { ?>
|
|
<a type="button" class="location" id="" style=" text-align: center; font-size: 25px; color:#2A3F54; ">
|
|
<li class="fa fa-plus-circle" title="Add New"></li></a>
|
|
<?php } ?>
|
|
</ul> </br>
|
|
<div class="card-box table-responsive">
|
|
<table class="table table-bordered table-striped" cellspacing="0" width="100%">
|
|
<thead>
|
|
<tr class="headings">
|
|
<th class="column-title" width="15%">Location </th>
|
|
<!-- <th class="column-title" width="10%">Action </th> -->
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?php foreach ($locationsData as $key => $value) { ?>
|
|
<tr class="even pointer">
|
|
<td class=" "><?php echo $value->location; ?></td>
|
|
<!-- <?php if(user()->action_permit != 'view' ) { ?>
|
|
<td>
|
|
<a class="location" id="<?php echo md5($value->id); ?>" style="font-size: 16px;" >
|
|
<i class="fa fa-pencil"></i></a>
|
|
|
|
<a href="<?php echo base_url()?>Asset/deleteThirdPartyData/<?php echo md5($value->id); ?>" style="font-size: 16px;"><i class="fa fa-trash"></i></a>
|
|
</td>
|
|
<?php } ?> -->
|
|
</tr>
|
|
<?php } ?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<!------------------------------ CATOGARY DATA ------------------------------>
|
|
<div class="tab-pane fade" id="catogary" role="tabpanel" aria-labelledby="catogary-tab">
|
|
<ul class="nav navbar-right panel_toolbox">
|
|
<?php if(user()->action_permit != 'view' ) { ?>
|
|
<a type="button" class="catogary" id="" style=" text-align: center; font-size: 25px; color:#2A3F54; ">
|
|
<li class="fa fa-plus-circle" title="Add New"></li></a>
|
|
<?php } ?>
|
|
</ul> </br>
|
|
<div class="card-box table-responsive">
|
|
<table class="table table-bordered table-striped" cellspacing="0" width="100%">
|
|
<thead>
|
|
<tr class="headings">
|
|
<th class="column-title" width="15%">Catogary </th>
|
|
<th class="column-title" width="15%">Depreciation % </th>
|
|
<th class="column-title" width="10%">Action </th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?php foreach ($categoriesData as $key => $value) { ?>
|
|
<tr class="even pointer">
|
|
<td class=" "><?php echo $value->name; ?></td>
|
|
<td class=" "><?php echo $value->depreciation_percentage; ?></td>
|
|
<?php if(user()->action_permit != 'view' ) { ?>
|
|
<td>
|
|
<a class="catogary" id="<?php echo md5($value->id); ?>" style="font-size: 16px;" >
|
|
<i class="fa fa-pencil" title="Edit"></i></a>
|
|
|
|
<a class="deleteCategoriesData" data-toggle="modal" data-target=".bs-example-modal-sm" style="font-size: 16px;" id="<?php echo md5($value->id); ?>">
|
|
<i class="fa fa-trash " ></i></a>
|
|
<!-- <a href="<?php echo base_url()?>Asset/deleteCategoriesFormData/<?php echo md5($value->id); ?>" style="font-size: 16px;"><i class="fa fa-trash" title="Delete"></i></a> -->
|
|
</td>
|
|
<?php } ?>
|
|
</tr>
|
|
<?php } ?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<!-- ------------------------------------------------------------------------- -->
|
|
|
|
|
|
|
|
<div class="modal bs-example-modal-sm" tabindex="-1" role="dialog" aria-hidden="true" id="edit-form"> </div>
|
|
|
|
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<!-- EMPLOYEE MASTER
|
|
###################################################################################################################
|
|
###################################################################################################################
|
|
################################################################################################################### -->
|
|
|
|
|
|
<div class="x_panel">
|
|
<div class="x_title">
|
|
<h2>Employee Master</h2>
|
|
<div class="clearfix"></div>
|
|
</div>
|
|
<div class="x_content">
|
|
<ul class="nav nav-tabs bar_tabs" id="myTab" role="tablist">
|
|
|
|
<li class="nav-item">
|
|
<a class="nav-link" id="department-tab" data-toggle="tab" href="#department" role="tab" aria-controls="department" aria-selected="false">Department</a>
|
|
</li>
|
|
|
|
<li class="nav-item">
|
|
<a class="nav-link" id="leave-tab" data-toggle="tab" href="#leave" role="tab" aria-controls="leave" aria-selected="false">Leave</a>
|
|
</li>
|
|
|
|
<li class="nav-item">
|
|
<a class="nav-link" id="decline-tab" data-toggle="tab" href="#decline" role="tab" aria-controls="decline" aria-selected="false">Decline Reason</a>
|
|
</li>
|
|
</ul>
|
|
|
|
|
|
<div class="tab-content" id="myTabContent">
|
|
|
|
|
|
|
|
|
|
<!------------------------------ DEPARTMENT DATA ------------------------------>
|
|
<div class="tab-pane fade" id="department" role="tabpanel" aria-labelledby="department-tab">
|
|
<ul class="nav navbar-right panel_toolbox">
|
|
<?php if(user()->action_permit != 'view' ) { ?>
|
|
<a type="button" class="department" id="" style=" text-align: center; font-size: 25px; color:#2A3F54; ">
|
|
<li class="fa fa-plus-circle" title="Add New"></li></a>
|
|
<?php } ?>
|
|
</ul> </br>
|
|
<div class="card-box table-responsive">
|
|
<table class="table table-bordered table-striped" cellspacing="0" width="100%">
|
|
<thead>
|
|
<tr class="headings">
|
|
<th class="column-title" width="15%">Name </th>
|
|
<th class="column-title" width="10%">Action </th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?php foreach ($departmentData as $key => $value) { ?>
|
|
<tr class="even pointer">
|
|
<td class=" "><?php echo $value->name; ?></td>
|
|
<?php if(user()->action_permit != 'view' ) { ?>
|
|
<td>
|
|
<a class="department" id="<?php echo md5($value->id); ?>" style="font-size: 16px;" >
|
|
<i class="fa fa-pencil" title="Edit"></i></a>
|
|
|
|
<a class="deleteDepartmentData" data-toggle="modal" data-target=".bs-example-modal-sm" style="font-size: 16px;" id="<?php echo md5($value->id); ?>">
|
|
<i class="fa fa-trash " ></i></a>
|
|
<!-- <a href="<?php echo base_url()?>Asset/deleteCategoriesFormData/<?php echo md5($value->id); ?>" style="font-size: 16px;"><i class="fa fa-trash" title="Delete"></i></a> -->
|
|
</td>
|
|
<?php } ?>
|
|
</tr>
|
|
<?php } ?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- ------------------------------------------------------------------------- -->
|
|
|
|
|
|
<!------------------------------ LEAVE DATA ------------------------------------->
|
|
<div class="tab-pane fade" id="leave" role="tabpanel" aria-labelledby="leave-tab">
|
|
<ul class="nav navbar-right panel_toolbox">
|
|
<?php if(user()->action_permit != 'view' ) { ?>
|
|
<a type="button" class="leave" id="" style=" text-align: center; font-size: 25px; color:#2A3F54; ">
|
|
<li class="fa fa-plus-circle" title="Add New"></li></a>
|
|
<?php } ?>
|
|
</ul> </br>
|
|
<div class="card-box table-responsive">
|
|
<table class="table table-bordered table-striped" cellspacing="0" width="100%">
|
|
<thead>
|
|
<tr class="headings">
|
|
<th class="column-title" width="15%">Leave Type </th>
|
|
<th class="column-title" width="15%">Days </th>
|
|
<th class="column-title" width="10%">Action </th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?php foreach ($leaveData as $key => $value) { ?>
|
|
<tr class="even pointer">
|
|
<td class=" "><?php echo $value->type; ?></td>
|
|
<td class=" "><?php echo $value->days; ?></td>
|
|
<?php if(user()->action_permit != 'view' ) { ?>
|
|
<td>
|
|
<a class="leave" id="<?php echo md5($value->id); ?>" style="font-size: 16px;" >
|
|
<i class="fa fa-pencil" title="Edit"></i></a>
|
|
|
|
<a class="deleteLeaveData" data-toggle="modal" data-target=".bs-example-modal-sm" style="font-size: 16px;" id="<?php echo md5($value->id); ?>">
|
|
<i class="fa fa-trash " ></i></a>
|
|
<!-- <a href="<?php echo base_url()?>Asset/deleteCategoriesFormData/<?php echo md5($value->id); ?>" style="font-size: 16px;"><i class="fa fa-trash" title="Delete"></i></a> -->
|
|
</td>
|
|
<?php } ?>
|
|
</tr>
|
|
<?php } ?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- ------------------------------------------------------------------------- -->
|
|
|
|
|
|
<!------------------------------ DECLINE REASON ------------------------------>
|
|
<div class="tab-pane fade" id="decline" role="tabpanel" aria-labelledby="decline-tab">
|
|
<ul class="nav navbar-right panel_toolbox">
|
|
<?php if(user()->action_permit != 'view' ) { ?>
|
|
<a type="button" class="decline" id="" style=" text-align: center; font-size: 25px; color:#2A3F54; ">
|
|
<li class="fa fa-plus-circle" title="Add New"></li></a>
|
|
<?php } ?>
|
|
</ul> </br>
|
|
<div class="card-box table-responsive">
|
|
<table class="table table-bordered table-striped" cellspacing="0" width="100%">
|
|
<thead>
|
|
<tr class="headings">
|
|
<th class="column-title" width="15%">Reason</th>
|
|
<th class="column-title" width="10%">Action </th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?php foreach ($enum_value as $key => $value) { ?>
|
|
<tr class="even pointer">
|
|
<td class=" "><?php echo $value->enum_value; ?></td>
|
|
<?php if(user()->action_permit != 'view' ) { ?>
|
|
<td>
|
|
<a class="decline" id="<?php echo md5($value->id); ?>" style="font-size: 16px;" >
|
|
<i class="fa fa-pencil" title="Edit"></i></a>
|
|
|
|
<a class="deletedeclineData" data-toggle="modal" data-target=".bs-example-modal-sm" style="font-size: 16px;" id="<?php echo md5($value->id); ?>">
|
|
<i class="fa fa-trash " ></i></a>
|
|
|
|
</td>
|
|
<?php } ?>
|
|
</tr>
|
|
<?php } ?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- ------------------------------------------------------------------------- -->
|
|
|
|
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<input type="hidden" class="form-control" id="change_active" value="<?php echo $this->session->flashdata('msg'); ?>" />
|
|
|
|
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
|
|
|
|
<script>
|
|
|
|
$(document).ready(function(){
|
|
|
|
if ($('#change_active').val() == "location") {
|
|
$('#location-tab').removeClass('nav-link').addClass('nav-link active');
|
|
$('#location').removeClass('tab-pane fade').addClass('tab-pane fade show active');
|
|
}
|
|
else if ($('#change_active').val() == "categories") {
|
|
$('#catogary-tab').removeClass('nav-link').addClass('nav-link active');
|
|
$('#catogary').removeClass('tab-pane fade').addClass('tab-pane fade show active');
|
|
}
|
|
else if ($('#change_active').val() == "department") {
|
|
$('#department-tab').removeClass('nav-link').addClass('nav-link active');
|
|
$('#department').removeClass('tab-pane fade').addClass('tab-pane fade show active');
|
|
}
|
|
else if ($('#change_active').val() == "1") {
|
|
$('#manufacture-tab').removeClass('nav-link').addClass('nav-link active');
|
|
$('#manufacture').removeClass('tab-pane fade').addClass('tab-pane fade show active');
|
|
}
|
|
else if ($('#change_active').val() == "2") {
|
|
$('#supplier-tab').removeClass('nav-link').addClass('nav-link active');
|
|
$('#supplier').removeClass('tab-pane fade').addClass('tab-pane fade show active');
|
|
}
|
|
else if ($('#change_active').val() == "3") {
|
|
$('#service_privoder-tab').removeClass('nav-link').addClass('nav-link active');
|
|
$('#service_privoder').removeClass('tab-pane fade').addClass('tab-pane fade show active');
|
|
}
|
|
else if ($('#change_active').val() == "4") {
|
|
$('#insurence-tab').removeClass('nav-link').addClass('nav-link active');
|
|
$('#insurence').removeClass('tab-pane fade').addClass('tab-pane fade show active');
|
|
}
|
|
else if ($('#change_active').val() == "leave") {
|
|
$('#leave-tab').removeClass('nav-link').addClass('nav-link active');
|
|
$('#leave').removeClass('tab-pane fade').addClass('tab-pane fade show active');
|
|
}
|
|
else if ($('#change_active').val() == "decline") {
|
|
$('#decline-tab').removeClass('nav-link').addClass('nav-link active');
|
|
$('#decline').removeClass('tab-pane fade').addClass('tab-pane fade show active');
|
|
}
|
|
else{
|
|
|
|
}
|
|
});
|
|
|
|
$(document).on('click','.manufacture',function(){
|
|
|
|
var id = $(this).attr("id")
|
|
if (id) {
|
|
var URL = "<?php echo base_url();?>Asset/getThirdPartyForm/"+id
|
|
}
|
|
else {
|
|
var URL = "<?php echo base_url();?>Asset/getThirdPartyForm/"+"manufacture"
|
|
}
|
|
$.ajax({
|
|
url: URL,
|
|
type:"GET",
|
|
success:function(data){
|
|
$("#manufacture-tab").attr('class', 'nav-link active');
|
|
$('#edit-form').html(JSON.parse(data));
|
|
$('.bs-example-modal-sm').modal("show");
|
|
|
|
}
|
|
});
|
|
});
|
|
|
|
$(document).on('click','.supplier',function(){
|
|
var id = $(this).attr("id")
|
|
if (id) {
|
|
var URL = "<?php echo base_url();?>Asset/getThirdPartyForm/"+id
|
|
}
|
|
else {
|
|
var URL = "<?php echo base_url();?>Asset/getThirdPartyForm/"+"supplier"
|
|
}
|
|
$.ajax({
|
|
url: URL,
|
|
type:"GET",
|
|
success:function(data){
|
|
$('#edit-form').html(JSON.parse(data));
|
|
$('.bs-example-modal-sm').modal("show");
|
|
|
|
}
|
|
});
|
|
});
|
|
|
|
|
|
$(document).on('click','.service_privoder',function(){
|
|
var id = $(this).attr("id")
|
|
if (id) {
|
|
var URL = "<?php echo base_url();?>Asset/getThirdPartyForm/"+id
|
|
}
|
|
else {
|
|
var URL = "<?php echo base_url();?>Asset/getThirdPartyForm/"+"service_privoder"
|
|
}
|
|
$.ajax({
|
|
url: URL,
|
|
type:"GET",
|
|
success:function(data){
|
|
|
|
$('#edit-form').html(JSON.parse(data));
|
|
$('.bs-example-modal-sm').modal("show");
|
|
|
|
}
|
|
});
|
|
});
|
|
|
|
|
|
$(document).on('click','.insurence',function(){
|
|
var id = $(this).attr("id")
|
|
if (id) {
|
|
var URL = "<?php echo base_url();?>Asset/getThirdPartyForm/"+id
|
|
}
|
|
else {
|
|
var URL = "<?php echo base_url();?>Asset/getThirdPartyForm/"+"insurence"
|
|
}
|
|
$.ajax({
|
|
url: URL,
|
|
type:"GET",
|
|
success:function(data){
|
|
|
|
$('#edit-form').html(JSON.parse(data));
|
|
$('.bs-example-modal-sm').modal("show");
|
|
|
|
}
|
|
});
|
|
});
|
|
|
|
|
|
$(document).on('click','.location',function(){
|
|
var id = $(this).attr("id")
|
|
if (id) {
|
|
var URL = "<?php echo base_url();?>Asset/getLocationForm/"+id
|
|
}
|
|
else {
|
|
var URL = "<?php echo base_url();?>Asset/getLocationForm/"+"location"
|
|
}
|
|
$.ajax({
|
|
url: URL,
|
|
type:"GET",
|
|
success:function(data){
|
|
$('#edit-form').html(JSON.parse(data));
|
|
$('.bs-example-modal-sm').modal("show");
|
|
}
|
|
});
|
|
});
|
|
|
|
|
|
$(document).on('click','.catogary',function(){
|
|
var id = $(this).attr("id");
|
|
if (id) {
|
|
var URL = "<?php echo base_url();?>Asset/getCatogaryForm/"+id
|
|
}
|
|
else {
|
|
var URL = "<?php echo base_url();?>Asset/getCatogaryForm/"+"catogary"
|
|
}
|
|
console.log(URL);
|
|
$.ajax({
|
|
url: URL,
|
|
type:"GET",
|
|
success:function(data){
|
|
|
|
$('#edit-form').html(JSON.parse(data));
|
|
$('.bs-example-modal-sm').modal("show");
|
|
|
|
}
|
|
});
|
|
});
|
|
|
|
$(document).on('click','.department',function(){
|
|
var id = $(this).attr("id");
|
|
if (id) {
|
|
var URL = "<?php echo base_url();?>Asset/getDepartmentForm/"+id
|
|
}
|
|
else {
|
|
var URL = "<?php echo base_url();?>Asset/getDepartmentForm/"+"department"
|
|
}
|
|
console.log(URL);
|
|
$.ajax({
|
|
url: URL,
|
|
type:"GET",
|
|
success:function(data){
|
|
|
|
$('#edit-form').html(JSON.parse(data));
|
|
$('.bs-example-modal-sm').modal("show");
|
|
|
|
}
|
|
});
|
|
});
|
|
|
|
|
|
$(document).on('click','.leave',function(){
|
|
var id = $(this).attr("id");
|
|
if (id) {
|
|
var URL = "<?php echo base_url();?>Asset/getLeaveForm/"+id
|
|
}
|
|
else {
|
|
var URL = "<?php echo base_url();?>Asset/getLeaveForm/"+"leave"
|
|
}
|
|
console.log(URL);
|
|
$.ajax({
|
|
url: URL,
|
|
type:"GET",
|
|
success:function(data){
|
|
|
|
$('#edit-form').html(JSON.parse(data));
|
|
$('.bs-example-modal-sm').modal("show");
|
|
|
|
}
|
|
});
|
|
});
|
|
|
|
|
|
$(document).on('click','.decline',function(){
|
|
var id = $(this).attr("id");
|
|
if (id) {
|
|
var URL = "<?php echo base_url();?>Asset/getDeclineForm/"+id
|
|
}
|
|
else {
|
|
var URL = "<?php echo base_url();?>Asset/getDeclineForm/"+"decline"
|
|
}
|
|
console.log(URL);
|
|
$.ajax({
|
|
url: URL,
|
|
type:"GET",
|
|
success:function(data){
|
|
|
|
$('#edit-form').html(JSON.parse(data));
|
|
$('.bs-example-modal-sm').modal("show");
|
|
|
|
}
|
|
});
|
|
});
|
|
|
|
$('.deleteManufacturerData').click(function() {
|
|
var id = $(this).attr('id');
|
|
var url = "<?php echo base_url()?>Asset/deleteThirdPartyData";
|
|
|
|
$.ajax({
|
|
url: "<?php echo base_url()?>Asset/getDeleteConfirmationPopup",
|
|
type:"GET",
|
|
success:function(data){
|
|
$('#edit-form').html(JSON.parse(data));
|
|
$('.delete_id').attr('value',id);
|
|
$('.delete_url').attr('action',url);
|
|
}
|
|
});
|
|
});
|
|
|
|
$('.deleteSupplierData').click(function() {
|
|
var id = $(this).attr('id');
|
|
var url = "<?php echo base_url()?>Asset/deleteThirdPartyData";
|
|
|
|
$.ajax({
|
|
url: "<?php echo base_url()?>Asset/getDeleteConfirmationPopup",
|
|
type:"GET",
|
|
success:function(data){
|
|
$('#edit-form').html(JSON.parse(data));
|
|
$('.delete_id').attr('value',id);
|
|
$('.delete_url').attr('action',url);
|
|
}
|
|
});
|
|
});
|
|
|
|
$('.deleteServicePrivoderData').click(function() {
|
|
var id = $(this).attr('id');
|
|
var url = "<?php echo base_url()?>Asset/deleteThirdPartyData";
|
|
|
|
$.ajax({
|
|
url: "<?php echo base_url()?>Asset/getDeleteConfirmationPopup",
|
|
type:"GET",
|
|
success:function(data){
|
|
$('#edit-form').html(JSON.parse(data));
|
|
$('.delete_id').attr('value',id);
|
|
$('.delete_url').attr('action',url);
|
|
}
|
|
});
|
|
});
|
|
|
|
$('.deleteInsurenceData').click(function() {
|
|
var id = $(this).attr('id');
|
|
var url = "<?php echo base_url()?>Asset/deleteThirdPartyData";
|
|
|
|
$.ajax({
|
|
url: "<?php echo base_url()?>Asset/getDeleteConfirmationPopup",
|
|
type:"GET",
|
|
success:function(data){
|
|
$('#edit-form').html(JSON.parse(data));
|
|
$('.delete_id').attr('value',id);
|
|
$('.delete_url').attr('action',url);
|
|
}
|
|
});
|
|
});
|
|
|
|
$('.deleteCategoriesData').click(function() {
|
|
var id = $(this).attr('id');
|
|
var url = "<?php echo base_url()?>Asset/deleteCategoriesFormData";
|
|
|
|
$.ajax({
|
|
url: "<?php echo base_url()?>Asset/getDeleteConfirmationPopup",
|
|
type:"GET",
|
|
success:function(data){
|
|
$('#edit-form').html(JSON.parse(data));
|
|
$('.delete_id').attr('value',id);
|
|
$('.delete_url').attr('action',url);
|
|
}
|
|
});
|
|
});
|
|
|
|
$('.deleteDepartmentData').click(function() {
|
|
var id = $(this).attr('id');
|
|
var url = "<?php echo base_url()?>Asset/deleteDepartmentFormData";
|
|
|
|
$.ajax({
|
|
url: "<?php echo base_url()?>Asset/getDeleteConfirmationPopup",
|
|
type:"GET",
|
|
success:function(data){
|
|
$('#edit-form').html(JSON.parse(data));
|
|
$('.delete_id').attr('value',id);
|
|
$('.delete_url').attr('action',url);
|
|
}
|
|
});
|
|
});
|
|
|
|
$('.deleteLeaveData').click(function() {
|
|
var id = $(this).attr('id');
|
|
var url = "<?php echo base_url()?>Asset/deleteLeaveFormData";
|
|
|
|
$.ajax({
|
|
url: "<?php echo base_url()?>Asset/getDeleteConfirmationPopup",
|
|
type:"GET",
|
|
success:function(data){
|
|
$('#edit-form').html(JSON.parse(data));
|
|
$('.delete_id').attr('value',id);
|
|
$('.delete_url').attr('action',url);
|
|
}
|
|
});
|
|
});
|
|
|
|
$('.deletedeclineData').click(function() {
|
|
var id = $(this).attr('id');
|
|
var url = "<?php echo base_url()?>Asset/deleteDeclineFormData";
|
|
|
|
$.ajax({
|
|
url: "<?php echo base_url()?>Asset/getDeleteConfirmationPopup",
|
|
type:"GET",
|
|
success:function(data){
|
|
$('#edit-form').html(JSON.parse(data));
|
|
$('.delete_id').attr('value',id);
|
|
$('.delete_url').attr('action',url);
|
|
}
|
|
});
|
|
});
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
|