<?php
session_start();
if(!isset ($_SESSION['user_id'])){
    header("Location:../index.php?msg=Log in first");
    exit();
}else{
	include('../Server/connection.php');
	include('includes/session.php');
?>

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <!-- Meta, title, CSS, favicons, etc. -->
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">

     <?php
	include 'title.php';
	?>
	
	<link type = "image/png" rel="icon" href="images/brvision.png"/>

    <!-- Bootstrap -->
    <link href="../vendors/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
    <!-- Font Awesome -->
    <link href="../vendors/font-awesome/css/font-awesome.min.css" rel="stylesheet">
    

    <!-- Custom Theme Style -->
    <link href="../build/css/custom.min.css" rel="stylesheet">
	
	<!-- DataTables must-->
  <link rel="stylesheet" href="assests/plugins/datatables/jquery.dataTables.min.css">

  <!-- file input must-->
  <link rel="stylesheet" href="assests/plugins/fileinput/css/fileinput.min.css">
	

	
   </head>

  <body class="nav-md">
    <div class="container body">
	
	
	
      <div class="main_container">
        <div class="col-md-3 left_col">
          <div class="left_col scroll-view">
		  
        
	    <?php  
		include 'includes/role.php';
               ?>

           <div class="clearfix"></div>
            
			<?php
            include 'includes/profile.php';
			print '</br></br>';
			include 'includes/menu.php';
			?>

            <!-- page content -->
        <div class="right_col" role="main">
          <div class="">

            <div class="clearfix"></div>
			
			
			<div class="row">
			
			 
			
			 <div class="col-md-12 col-sm-12 col-xs-12">
                <div class="x_panel">
                  <div class="x_title">
				  
				
				 <a href="dashboard.php">  <h2><span class="glyphicon glyphicon-step-backward"></span> Back</h2></a> </br></br>
				 
				 <?php
							$sql = "SELECT * FROM clients,assignstatus where clients.client_id=assignstatus.client_id and assignstatus.assignedBy_role='CSO'";
                            $result = $conn->query($sql);
							$m = $result->num_rows;
                                 ?>
                 
                      <b>List Of Fowarded Customers:</b>&nbsp&nbsp<font color="green"><?php echo $m; ?></font>

                    <ul class="nav navbar-right panel_toolbox">
                      <li><a class="collapse-link"><i class="fa fa-chevron-up"></i></a>
                      </li>
					
                    </ul>
                    <div class="clearfix"></div>
                  </div>
                  <div class="x_content" style="overflow: auto;">
                 
				  <div class="remove-messages"></div>
					
				<table class="table" id="manageCategoriesTable">
					<thead>
						<tr>
							<th>S/No:</th>							
							<th>Customer</th>
                            <th>Fowarded By</th>							
							<th>Fowarded To</th>
							<th>Remarks</th>
							<th>Status</th>
						</tr>
					</thead>
				</table>
				
					
				
					
                  </div>
                </div>
              </div>

            </div>
			

			
			
			
          </div>
        </div>
        <!-- /page content -->

       
		<?php
		include 'includes/footer.php';
		?>
		
		
      </div>
    </div>
	
	

   
	
	<script src="../vendors/jquery/dist/jquery.min.js"></script>
	
	
    <!-- Bootstrap -->
    <!--<script src="../vendors/bootstrap/dist/js/bootstrap.min.js"></script>-->
	
	<!-- Bootstrap -->
    <script src="../vendors/bootstrap/dist/js/bootstrap10.min.js"></script>
    
    <!-- Custom Theme Scripts -->
    <script src="../build/js/custom.min.js"></script>
	
	<!-- file input must-->
	<script src="assests/plugins/fileinput/js/plugins/canvas-to-blob.min.js'); ?>" type="text/javascript"></script>	
	<script src="assests/plugins/fileinput/js/plugins/sortable.min.js" type="text/javascript"></script>	
	<script src="assests/plugins/fileinput/js/plugins/purify.min.js" type="text/javascript"></script>
	<script src="assests/plugins/fileinput/js/fileinput.min.js"></script>	


	<!-- DataTables must-->
	<script src="assests/plugins/datatables/jquery.dataTables.min.js"></script>
	
	<!--must-->
	<script src="custom/js/fowardedCustomers.js"></script>
	
	
  </body>
</html>



<?php
}

?>