EVOLUTION-NINJA
Edit File: iadmin_client_list.php
<?php $this->load->view('includes/iadmin_header');?> <section class="mid_work_one"> <div class="container-fluid"> <div class="row middle_container"> <div class="row list_h4_search" style="margin-bottom:15px;"> <h4>List of Clients</h4> </div> <div class="clearfix"></div> <div class="table-responsive"> <table class="table prio_table dataTable no-footer"> <thead> <tr> <th>Sl No.</th> <th>Company Name</th> <th>Contact Person</th> <th>Email Id</th> <th>Phone No.</th> <th>Industrial Segment</th> <th>Registration date</th> <th>Expiry date</th> <th>Company Profile</th> <th>Admin</th> <th>Action</th> </tr> </thead> <tbody> <?php foreach ($company as $key => $value) { ?> <tr> <td><?php echo $key+1;?></td> <td><?php echo $value['company_name'];?></td> <td><?php echo $value['first_name'];?></td> <td><?php echo $value['email'];?></td> <td><?php echo $value['mobile_no'];?></td> <td> <select name=""> <?php if(!empty($value['segment'])){ if(in_array("1",$value['segment'])) { ?> <option value="Aerospace & Defense">Aerospace & Defense</option> <?php } } ?> <?php if(!empty($value['segment'])){ if(in_array("2",$value['segment'])) { ?> <option value="Agriculture & Mining">Agriculture & Mining</option> <?php } } ?> <?php if(!empty($value['segment'])){ if(in_array("3",$value['segment'])) { ?> <option value="Automotive">Automotive</option> <?php } } ?> <?php if(!empty($value['segment'])){ if(in_array("4",$value['segment'])) { ?> <option value="Building Materials, Clay & Galss">Building Materials, Clay & Galss</option> <?php } } ?> <?php if(!empty($value['segment'])){ if(in_array("5",$value['segment'])) { ?> <option value="Insurance">Insurance</option> <?php } } ?> </select> </td> <td><?php echo date('d-m-Y',strtotime($value['date_of_creation'])); ?></td> <td><?php echo date('d-m-Y',strtotime($value['date_of_expiry'])); ?></td> <td><a class="btn btn-success btn-xs" style="color: #fff !important; background-color: #f0ad4e !important; border-color: #eea236 !important;" href="<?php echo base_url('/company-profile'); ?>/<?php echo $value['user_id']; ?>">View </a></td> <td><?php if($value['admin']){ $ad=$value['admin']; echo $ad->first_name; }?></td> <td><a class="btn btn-info btn-xs" href="<?php echo base_url('admin-client-edit'); ?>/<?php echo $value['user_id']; ?>"><span class="fa fa-pencil-square-o" aria-hidden="true"></span></a></td> </tr> <?php } ?> </tbody> </table> </div> </div> </div> </section> </body> </html> <script type="text/javascript"> var datatable; var tbody = $('#table_body'); datatable = $('.table').DataTable({ }); jQuery(document).ready(function($) { $('.ul_menu li.dropdown').hover(function() { $(this).find('.dropdown-menu').stop(true, true).delay(200).fadeIn(500); }, function() { $(this).find('.dropdown-menu').stop(true, true).delay(200).fadeOut(500); }); }); </script> <style type="text/css"> .ul_menu li { list-style: none; } /*.table-responsive { overflow-x: hidden !important; }*/ /* @media only screen and (min-width: 320px) and (max-width: 640px) { .table-responsive { overflow-x: auto !important; } }*/ </style> <style type="text/css"> .table-responsive { overflow-x: hidden !important; } .prio_table > thead > tr > th { background: #abf3ad !important; border-bottom: 1px solid #61b79c !important; border-top: 1px solid #61b79c !important; color:#000; } .prio_table > tbody > tr > td { background: #f0fffc; color:#000; } @media only screen and (min-width:320px) and (max-width:640px) { .table-responsive { overflow-x: auto !important; } } @media only screen and (min-width:641px) and (max-width:991px) { .table-responsive { overflow-x: auto !important; } } @media only screen and (min-width:992px) and (max-width:1258px) { .table-responsive { overflow-x: auto !important; } } </style>