<?php 
if(isset($_COOKIE['user_id'])){
	$head_user_qury=mysqli_query($connation,"SELECT * FROM user_details WHERE user_id='$_COOKIE[user_id]'");
	$head_user_resalt=mysqli_fetch_array($head_user_qury);
}

if(isset($head_user_resalt)){
?>

<link rel="stylesheet" href="main_css.css">


<?php if($head_user_resalt['user_type']==2||$head_user_resalt['user_type']==0){ ?>

<div class="header-main">
<a href="switch-option" title="Dashboard"><div class="menu-btn"><img src="image/dashboard_btn.png"><br>Dashboard</div></a>
<a href="poin-of-sale" title="POS - Point of Sale"><div class="menu-btn"><img src="image/pos_btn.png"><br>POS</div></a>
<a href="stock?type=1" title="Stock Update"><div class="menu-btn"><img src="image/stock_bt.png"><br>Stock</div></a>
<a href="product?clear" title="Product Manage"><div class="menu-btn"><img src="image/product_bt.png"><br>Product</div></a>
<a href="report" title="Report"><div class="menu-btn"><img src="image/report_btn.png"><br>Report</div></a>
<a href="profile" title="User"><div class="menu-btn"><img src="image/user_btn.png"><br>My Profile</div></a>
<a href="logout.php" title="Logout"><div class="menu-btn"><img src="image/logout.png"><br>Logout</div></a>	
</div>

<?php }else{ ?>
<div class="header-main">
<a href="dashboard" title="Dashboard"><div class="menu-btn"><img src="image/dashboard_btn.png"><br>Dashboard</div></a>
<a href="poin-of-sale" title="POS - Point of Sale"><div class="menu-btn"><img src="image/pos_btn.png"><br>POS</div></a>
<a href="sales" title="Sales Summery"><div class="menu-btn"><img src="image/sale_btn.png"><br>Sale's</div></a>
<a href="quotation" title="Quotation List"><div class="menu-btn"><img src="image/quotation.png"><br>Quotation</div></a>
<a href="stock?type=1" title="Stock Update"><div class="menu-btn"><img src="image/stock_bt.png"><br>Stock</div></a>
<a href="customer?clear" title="Customer"><div class="menu-btn"><img src="image/customer.png"><br>Customer</div></a>
<a href="product?clear" title="Product Manage"><div class="menu-btn"><img src="image/product_bt.png"><br>Product</div></a>
<a href="expenses" title="Expenses Manage"><div class="menu-btn"><img src="image/exp_btn.png"><br>Expenses</div></a>
<a href="supplier-summery" title="Supplier"><div class="menu-btn"><img src="image/suppl_btn.png"><br>Purchasing</div></a>
<a href="report" title="Report"><div class="menu-btn"><img src="image/report_btn.png"><br>Report</div></a>
<a href="user" title="User"><div class="menu-btn"><img src="image/user_btn.png"><br>User</div></a>
<a href="easypay.php" title="User"><div class="menu-btn"><img src="image/cash_payment.jpg"><br>Payment Plan</div></a>
<a href="setting" title="Setting"><div class="menu-btn"><img src="image/setting_bt.png"><br>Setting</div></a>
<a href="logout.php" title="Logout"><div class="menu-btn"><img src="image/logout.png"><br>Logout</div></a>	
</div>
<?php } } ?>