100 lines
3.8 KiB
PHP
100 lines
3.8 KiB
PHP
|
|
<div class="col-md-12 col-sm-12 ">
|
|
<div class="x_panel">
|
|
<div class="x_title">
|
|
<h2>Business Details </h2>
|
|
|
|
<ul class="nav navbar-right panel_toolbox">
|
|
<a href="<?php echo base_url();?>business/add_business" class="btn btn-sm btn-primary">Add Business</a>
|
|
<li><a class="collapse-link"><i class="fa fa-chevron-up"></i></a>
|
|
</li>
|
|
</ul>
|
|
<div class="clearfix"></div>
|
|
</div>
|
|
<div class="x_content">
|
|
<div class="row">
|
|
<div class="col-sm-12">
|
|
<div class="card-box table-responsive">
|
|
|
|
<table id="datatable" class="table table-striped table-bordered dataTable no-footer" width="100%">
|
|
<thead>
|
|
<tr class="headings">
|
|
|
|
|
|
<th class="column-title">Business Name </th>
|
|
<th class="column-title">Email </th>
|
|
<th class="column-title">Phone </th>
|
|
<th class="column-title">Address </th>
|
|
<th class="column-title">City </th>
|
|
<th class="column-title">State </th>
|
|
<th class="column-title">Pincode </th>
|
|
<th class="column-title">Country </th>
|
|
<th class="column-title">Logo </th>
|
|
<th class="column-title" >Action </th>
|
|
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<?php foreach ($tableData as $key => $value) { ?>
|
|
<tr class="even pointer">
|
|
|
|
|
|
<td class=" "> <?php echo $value->business_name; ?> </td>
|
|
<td class=" "><?php echo $value->email; ?> </td>
|
|
<td class=" "><?php echo $value->phone; ?></td>
|
|
<td class=" "><?php echo $value->address; ?></td>
|
|
<td class=" "><?php echo $value->city; ?></td>
|
|
<td class=" "><?php echo $value->state_name; ?></td>
|
|
<td class=" "><?php echo $value->pincode; ?></td>
|
|
<td class=" "><?php echo $value->country; ?> </td>
|
|
<td class=" "><?php echo $value->logo; ?> </td>
|
|
|
|
<td style=" text-align: center; font-size: 16px;">
|
|
<a href="<?php echo base_url()?>business/get_business/<?php echo md5($value->id);?>" ><i class="fa fa-pencil"></i></a>
|
|
|
|
|
|
<a href="<?php echo base_url()?>business/delete_business/<?php echo md5($value->id);?>" ><i class="fa fa-trash"></i></a>
|
|
|
|
|
|
<a> <i id="<?php echo md5($value->id);?>" class="fa fa-eye" title="History"></i></a>
|
|
</td>
|
|
|
|
</tr>
|
|
<?php } ?>
|
|
</tbody>
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<br/>
|
|
|
|
<div style="display:none" id="sub-value">
|
|
|
|
</div>
|
|
|
|
<div class="modal fade bs-example-modal-lg" id="ItemModal" tabindex="-1" role="dialog" aria-hidden="true"></div>
|
|
|
|
<script>
|
|
$(document).on('click','.fa-eye',function(){
|
|
var id = $(this).attr("id")
|
|
$.ajax({
|
|
type: "get",
|
|
url: "<?php echo base_url()?>user/view_business_history/"+id,
|
|
success: function(response) {
|
|
response = JSON.parse(response);
|
|
console.log(response);
|
|
$('.bs-example-modal-lg').html(response);
|
|
$('.bs-example-modal-lg').modal("show");
|
|
},
|
|
error: function(jqXHR, textStatus, err) { alert('text status '+textStatus+', err '+err) }
|
|
});
|
|
});
|
|
</script>
|