<?php




//user.php









include('db_con.php');




include('header.php');




if (isset($_SESSION['user_id'])) {




		$user_type = $_SESSION['user_type'];




		$user_id = $_SESSION['user_id'];




		$user_name = $_SESSION['user_name'];




		$branch_id = $_SESSION['branch_id'];




		$branch_name = $_SESSION['branch_name'];




		$store_id = $_SESSION['store_id'];




    $store_name = $_SESSION['store_name'];




}else{




	header('Location: login');




	die();




}









//if(!isset($_SESSION["type"]))




//{




//	header('location:login');




//}









//if($_SESSION["type"] != 'master')




//{




//	header("location:index.php");




//}


































include('header.php');




?>




		<?php include('top-pannel.php');?>




		<span id="alert_action"></span>




		<div class="row">




			<div class="col-lg-12">




				<div class="panel panel-default">




                    <div class="panel-heading">




                    	<div class="row">




                        	<div class="col-lg-10 col-md-10 col-sm-8 col-xs-6">









                            	<h3 class="panel-title">Stock By Store</h3>




                            </div>




                            




                        </div>




                       




                        <div class="clear:both"></div>




                   	</div>




                   	<div class="panel-body">




                   		<div class="row"><div class="col-sm-12 table-responsive">




                   			<table id="_dataTable" class="table table-bordered table-striped">




                   				<thead>




									<tr>




										<th>No.</th>									




										<th>Name</th>




										<th>Type</th>




										<th>Size</th>




										<th>Cost</th>




										<th>Store</th>




										<th>Stock </th>




										




										




									</tr>




								</thead>




                   			</table>




                   		</div>




                   	</div>




               	</div>




           	</div>




        </div>




        




<script>









$(document).ready(function(){









	









	var _dataTable = $('#_dataTable').DataTable({




		"processing": true,




		"serverSide": true,




		"order": [],




		"ajax":{




			url:"stock_fetch.php",




			type:"POST"




		},




		"columnDefs":[




			{




				"target":[1,2,3,4,5,6],




				"orderable":false




			}




		],




		"pageLength": 25




	});









	




	









});




	  




</script>









<?php




//include('footer.php');




?>




