<?php
ob_start();
error_reporting(0);
include("connect.php");
session_start(); 
$ver = $_SESSION["admin_id"];
if(!isset($_SESSION["admin_id"])){
   header('location:http://www.btcover.appexperts.net');
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>BTCOVER : Admin Dashboard</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="css/bootstrap.min.css" />
<link rel="stylesheet" href="css/bootstrap-responsive.min.css" />
<link rel="stylesheet" href="css/uniform.css" />
<link rel="stylesheet" href="css/select2.css" />
<link rel="stylesheet" href="css/matrix-style.css" />
<link rel="stylesheet" href="css/matrix-media.css" />
<link href="font-awesome/css/font-awesome.css" rel="stylesheet" />
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,700,800' rel='stylesheet' type='text/css'>
</head>
<body>

<!--Header-part-->
<div id="header">
  <h1><a href="dashboard.html">BTCOVER Admin</a></h1>
</div>
<!--close-Header-part--> 
<?php include("header.php"); ?>
<!--sidebar-menu-->
<?php include("menu.php"); ?>
<!--sidebar-menu-->

<div id="content">
  <div id="content-header">
    <div id="breadcrumb"> <a href="#" title="Go to Home" class="tip-bottom"><i class="icon-home"></i> Home</a> <a href="" class="current">Insurance Company Detail</a>
	</div>
  </div>
  <div class="container-fluid">
    <div class="row-fluid">
      <div class="span12">
       
       
        <div class="widget-box">
          <div class="widget-title"> <span class="icon"><i class="icon-th"></i></span>
            <h5>Insurance Company Detail</h5>
           <a href="add-insurance-company.php"> <span class="label label-info" style="padding:2px 5px 5px;"> <i class="icon-plus" style="font-size:15px;"></i> Add Insurance Company  </span></a> </div>
          <div class="widget-content nopadding">
            <table class="table table-bordered data-table">
              <thead>
                <tr>
                  <th>#</th>
                  <th>Company Name</th>
				  <th>Action</th>
                </tr>
              </thead>
              <tbody>
			   <?php 
			   $c=1;
				$selrenew3=mysqli_query($con,"select * from tbl_insurance_company where admin_id='$ver'  and status!='Deleted'");	
				if(mysqli_num_rows($selrenew3)>0)
				{
					while($recset=mysqli_fetch_array($selrenew3))
					{
				?>
                <tr>
                  <td><?php echo $c++; ?></td>
                  <td><?php echo $recset['company_name']; ?></td>
                  <td>
				   <a href="company_edit.php?id=<?php echo $recset['company_id'];?>" style="font-size:12px;padding:1px 5px;" onClick="return confirm('Are you sure to edit')" class="btn btn-primary"><i class="icon-edit"></i></a>
				  <?php if($recset['status']=='Deactive') { ?>
						<a href="manager_status_edit.php?id=<?php echo $recset['company_id'];?>" style="font-size:12px;padding:1px 5px;" onClick="return confirm('Are you sure to edit this status')" class="btn btn-success">Activate</a>
				  <?php } else {
					?>
					<a href="manager_status_edit.php?id=<?php echo $recset['company_id'];?>" style="font-size:12px;padding:1px 5px;" onClick="return confirm('Are you sure to edit this status')" class="btn btn-danger">Deactivate</a>
					<?php } ?>	
				  
				  </td>
                 
                </tr>
				<?php }} else { ?>
				 <tr>
                  <td colspan='6'>No Data Available</td>
                </tr>
				<?php } ?>
              </tbody>
            </table>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>

<!--Footer-part-->
<div class="row-fluid">
  <div id="footer" class="span12"> 2019 &copy; BTCOVER. Developed By  <a href="http://www.belltechnology.in/">Bell Technology</a> </div>
</div>
<!--end-Footer-part-->
<script src="js/jquery.min.js"></script> 
<script src="js/jquery.ui.custom.js"></script> 
<script src="js/bootstrap.min.js"></script> 
<script src="js/jquery.uniform.js"></script> 
<script src="js/select2.min.js"></script> 
<script src="js/jquery.dataTables.min.js"></script> 
<script src="js/matrix.js"></script> 
<script src="js/matrix.tables.js"></script>
</body>
</html>
