455 lines
20 KiB
PHP
455 lines
20 KiB
PHP
|
|
<div class="x_panel">
|
|
<div class="x_title">
|
|
<h2>Details</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 active" 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">Catogary</a>
|
|
</li>
|
|
</ul>
|
|
|
|
|
|
<div class="tab-content" id="myTabContent">
|
|
|
|
|
|
|
|
|
|
<!------------------------------ MANUCTURE ------------------------------->
|
|
<div class="tab-pane fade show active" 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"></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="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%">Gst </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->address; ?></td>
|
|
<td class=" "><?php echo $value->city; ?></td>
|
|
<td class=" "><?php echo $value->state; ?></td>
|
|
<td class=" "><?php echo $value->pincode; ?></td>
|
|
<td class=" "><?php echo $value->gst; ?></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"></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>
|
|
|
|
|
|
|
|
<!------------------------------ 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"></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="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%">Gst </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->address; ?></td>
|
|
<td class=" "><?php echo $value->city; ?></td>
|
|
<td class=" "><?php echo $value->state; ?></td>
|
|
<td class=" "><?php echo $value->pincode; ?></td>
|
|
<td class=" "><?php echo $value->gst; ?></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"></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>
|
|
|
|
|
|
<!------------------------------ 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"></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="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%">Gst </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->address; ?></td>
|
|
<td class=" "><?php echo $value->city; ?></td>
|
|
<td class=" "><?php echo $value->state; ?></td>
|
|
<td class=" "><?php echo $value->pincode; ?></td>
|
|
<td class=" "><?php echo $value->gst; ?></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"></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>
|
|
|
|
|
|
<!------------------------------ 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"></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="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%">Gst </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->address; ?></td>
|
|
<td class=" "><?php echo $value->city; ?></td>
|
|
<td class=" "><?php echo $value->state; ?></td>
|
|
<td class=" "><?php echo $value->pincode; ?></td>
|
|
<td class=" "><?php echo $value->gst; ?></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"></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>
|
|
|
|
|
|
<!------------------------------ 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"></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"></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="10%">Action </th> -->
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?php foreach ($categoriesData as $key => $value) { ?>
|
|
<tr class="even pointer">
|
|
<td class=" "><?php echo $value->name; ?></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>
|
|
|
|
<!-- ------------------------------------------------------------------------------------------------------- -->
|
|
|
|
|
|
|
|
<div class="modal bs-example-modal-sm" tabindex="-1" role="dialog" aria-hidden="true" id="edit-form"> </div>
|
|
|
|
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
$(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){
|
|
|
|
$('#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"
|
|
}
|
|
$.ajax({
|
|
url: URL,
|
|
type:"GET",
|
|
success:function(data){
|
|
|
|
$('#edit-form').html(JSON.parse(data));
|
|
$('.bs-example-modal-sm').modal("show");
|
|
|
|
}
|
|
});
|
|
});
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
|