<?php /*?>             <?php
			 $user=$_SESSION['UN'];
			  if($user=='admin')
			 {
		  ?>
            
            <section class="ac-container">
                 <div style="width:315px;">
					<input id="ac-1" name="accordion-1" type="checkbox" />
					<label for="ac-1">User permissions</label>
					<article class="ac-small">
					 <ul>
					<li class="list"><a  href="/<?php echo $dir?>user_management/add_user.php">Add User</a></li>
					<li class="list"><a  href="/<?php echo $dir?>user_management/view_user.php">view User</a></li>
					</ul>
					</article>
				</div>
                
                <div style="width:315px;">
					<input id="ac-14" name="accordion-1" type="checkbox" />
					<label for="ac-14">signup management</label>
					<article class="ac-small">
					 <ul>
                    <li class="list"><a  href="/<?php echo $dir?>user_management/customers.php">view Customers</a></li>
					</ul>
					</article>
				</div>
                
                
				<div style="width:315px;">
					<input id="ac-2" name="accordion-1" type="checkbox" />
					<label for="ac-2">Logo Management</label>
					<article class="ac-small">
					  <ul>
					<li class="list"><a  href="/<?php echo $dir?>logo_management/logo_mainindex.php">Logo And Other Images</a></li>
					</ul>
					</article>
				</div>
                
                <div style="width:315px;">
					<input id="ac-6" name="accordion-1" type="checkbox" />
					<label for="ac-6">Content Management</label>
					<article class="ac-small">
					  <ul>
					<li class="list"><a  href="/<?php echo $dir?>menu_content_management/edit_menucontent.php?id=1">About</a></li>
                    <li class="list"><a  href="/<?php echo $dir?>menu_content_management/edit_menucontent.php?id=2">FAQS</a></li>
                    <li class="list"><a  href="/<?php echo $dir?>menu_content_management/edit_menucontent.php?id=3">Contact</a></li>
					</ul>
					</article>
				</div>
                
				<div style="width:315px;">
					<input id="ac-3" name="accordion-1" type="checkbox" />
					<label for="ac-3">Categories Management</label>
					<article class="ac-small">
					  <ul>
					<li class="list"><a  href="/<?php echo $dir?>category-management/add_cat.php">Add Category</a></li>
                    <li class="list"><a  href="/<?php echo $dir?>category-management/view_cat.php">View Category</a></li>
                    <li class="list"><a  href="/<?php echo $dir?>category-management/view_cancelcat.php">View Cancelled Category</a></li>
					</ul>
                    </article>
				</div>
                
                
                
				<div style="width:315px;">
					<input id="ac-4" name="accordion-1" type="checkbox" />
					<label for="ac-4">SubCategories Management</label>
					<article class="ac-small">
					  <ul>
					<li class="list"><a  href="/<?php echo $dir?>subcategory-management/add.php">Add SubCategory</a></li>
                    <li class="list"><a  href="/<?php echo $dir?>subcategory-management/viewsearch.php">View SubCategory</a></li>
					</ul>
					</article>
				</div>
                
                <div style="width:315px;">
					<input id="ac-5" name="accordion-1" type="checkbox" />
					<label for="ac-5">Product Management</label>
					<article class="ac-small">
					  <ul>
					<li class="list"><a  href="/<?php echo $dir?>product-management/add_product.php">Add Product</a></li>
                    <li class="list"><a  href="/<?php echo $dir?>product-management/view.php">View </a></li>
 					<li class="list"><a  href="/<?php echo $dir?>product-management/viewproductsearch.php">Search Product</a></li>
					</ul>
					</article>
				</div>
                
                 <div style="width:315px;">
					<input id="ac-11" name="accordion-1" type="checkbox" />
					<label for="ac-11">Bank Management</label>
					<article class="ac-small">
					  <ul>
					<li class="list"><a  href="/<?php echo $dir?>bank/add_product.php">Add Bank Details</a></li>
                    <li class="list"><a  href="/<?php echo $dir?>bank/viewproduct.php">View Bank Details</a></li>
					</ul>
					</article>
				</div>
                
                
                
                
                <div style="width:315px;">
					<input id="ac-7" name="accordion-1" type="checkbox" />
					<label for="ac-7">Stock Management</label>
					<article class="ac-small">
					  <ul>
					<li class="list"><a  href="/<?php echo $dir?>stock_management/view_stock.php">View Stock</a></li>
                    <li class="list"><a  href="/<?php echo $dir?>sales_management/tot_purchase.php">Total Sales</a></li>
                    
                    <li class="list"><a  href="/<?php echo $dir?>sales_management/sales_tax.php">View Sales Tax</a></li>
                    <li class="list"><a  href="/<?php echo $dir?>sales_management/sales_return.php">Add Sales Return</a></li>
                    
                    <li class="list"><a  href="/<?php echo $dir?>sales_management/view_sales_return.php">View Sales Return</a></li>
                    <li class="list"><a  href="/<?php echo $dir?>sales_management/add_awb.php">Add AWB Number</a></li>
                    
                    <li class="list"><a  href="/<?php echo $dir?>sales_management/add_delivery.php">Add Delivery Report</a></li>
                    <li class="list"><a  href="/<?php echo $dir?>sales_management/add_payment.php">Add Payment Report</a></li>
					</ul>
					</article>
				</div>
                
                <div style="width:315px;">
					<input id="ac-8" name="accordion-1" type="checkbox" />
					<label for="ac-8">Purchase Management</label>
					<article class="ac-small">
					  <ul>
					<li class="list"><a  href="/<?php echo $dir?>purchase_management/search_sup.php">Add Purchase</a></li>
                    <li class="list"><a  href="/<?php echo $dir?>purchase_management/view_pur.php">View Purchase</a></li>
                    <li class="list"><a  href="/<?php echo $dir?>purchase_management/purchase_return.php">Add Purchase Return</a></li>
                    <li class="list"><a  href="/<?php echo $dir?>purchase_management/view_pur_return.php">View Purchase Return</a></li>
                    <li class="list"><a  href="/<?php echo $dir?>purchase_management/view_pur_tax.php">View Purchase Tax</a></li>
					</ul>
					</article>
				</div>
                
                <div style="width:315px;">
					<input id="ac-9" name="accordion-1" type="checkbox" />
					<label for="ac-9">Payment Management</label>
					<article class="ac-small">
					  <ul>
					<li class="list"><a  href="/<?php echo $dir?>purchase_management/have_topay.php">Amount Have to Pay</a></li>
                     <li class="list"><a  href="/<?php echo $dir?>payment_management/payment.php">Payment</a></li>
                    <li class="list"><a  href="/<?php echo $dir?>payment_management/receipt_add.php">Receipt</a></li>
                    <li class="list"><a  href="/<?php echo $dir?>payment_management/view_cash.php">View Cash</a></li>
                    <li class="list"><a  href="/<?php echo $dir?>payment_management/view_bank.php">View Bank</a></li>
                    <li class="list"><a  href="/<?php echo $dir?>payment_management/search_cash.php"> Cash Report</a></li>
                    <li class="list"><a  href="/<?php echo $dir?>payment_management/search_bank.php"> Bank Report</a></li>
					</ul>
					</article>
				</div>
                
               <div style="width:315px;">
					<input id="ac-10" name="accordion-1" type="checkbox" />
					<label for="ac-10">Admin</label>
					<article class="ac-small">
					  <ul>
					<li class="list"><a  href="/<?php echo $dir;?>change-password.php">Account Security</a></li>
                     <li class="list"><a  href="/<?php echo $dir;?>logout.php">Logout</a></li>                    
					</ul>
					</article>
				</div>
                
                
                <div style="width:315px; margin-top:20px; margin-left:20px; font-family:Georgia, 'Times New Roman', Times, serif;">
					
					Copyright &copy; <?php echo date('Y');?> <?php echo $HEADERNAME;?>
                    <p style="margin-left:40px;">Theme by <a href="<?php echo $VIEWSITE;?>" target="_blank"><?php echo $DEVELOPED;?></a></p>
					
				</div>
                </section>
                <?php }  else {?>
                
                
                
                
                <?php 
				
			 $sql="SELECT * FROM  admin WHERE adm_name='$user'" ;
             $result=mysql_query($sql);
             $row = mysql_fetch_array($result);
			  ?>
              
              
               <section class="ac-container">
                
                <div style="width:315px;">
					<input id="ac-7" name="accordion-1" type="checkbox" />
					<label for="ac-7">Stock Management</label>
					<article class="ac-small">
					  <ul>
                     <?php if($row['view_stock']!=0) { ?> 
					<li class="list"><a  href="/<?php echo $dir?>stock_management/view_stock.php">View Stock</a></li>
                    <?php } ?>
                    
                    
                    
                     <?php if($row['total_sales']!=0) { ?>
                    <li class="list"><a  href="/<?php echo $dir?>sales_management/tot_purchase.php">Total Sales</a></li>
                    <?php } ?>
                    
                    
                    <?php if($row['sale_tax']!=0) { ?>
                    <li class="list"><a  href="/<?php echo $dir?>sales_management/sales_tax.php">View Sales Tax</a></li>
                    <?php } ?>
                    
                    
                    
                     <?php if($row['sale_return']!=0) { ?>
                    <li class="list"><a  href="/<?php echo $dir?>sales_management/sales_return.php">Add Sales Return</a></li>
                    <?php } ?>
                    
                    
                    
                     <?php if($row['viewsale_return']!=0) { ?>
                    <li class="list"><a  href="/<?php echo $dir?>sales_management/view_sales_return.php">View Sales Return</a></li>
                    <?php } ?>
                    
                    
                    
                     <?php if($row['awb_no']!=0) { ?>
                    <li class="list"><a  href="/<?php echo $dir?>sales_management/add_awb.php">Add AWB Number</a></li>
                    <?php } ?>
                    
                    
                    
                     <?php if($row['delivery_report']!=0) { ?>
                    <li class="list"><a  href="/<?php echo $dir?>sales_management/add_delivery.php">Add Delivery Report</a></li>
                    <?php } ?>
                    
                    
                    
                     <?php if($row['payment_report']!=0) { ?>
                    <li class="list"><a  href="/<?php echo $dir?>sales_management/add_payment.php">Add Payment Report</a></li>
                    <?php } ?>
					</ul>
					</article>
				</div>
                
                <div style="width:315px;">
					<input id="ac-8" name="accordion-1" type="checkbox" />
					<label for="ac-8">Purchase Management</label>
					<article class="ac-small">
                    
					  <ul>
                    <?php if($row['add_purchase']!=0) { ?>
					<li class="list"><a  href="/<?php echo $dir?>purchase_management/search_sup.php">Add Purchase</a></li>
                    <?php } ?>
                    
                    <?php if($row['view_purchase']!=0) { ?>
                    <li class="list"><a  href="/<?php echo $dir?>purchase_management/view_pur.php">View Purchase</a></li>
                    <?php } ?>
                    
                    
                    
                    <?php if($row['pur_return']!=0) { ?>
                    <li class="list"><a  href="/<?php echo $dir?>purchase_management/purchase_return.php">Add Purchase Return</a></li>
                    <?php } ?>
                    
                     
                     <?php if($row['viewpur_return']!=0) { ?>
                    <li class="list"><a  href="/<?php echo $dir?>purchase_management/view_pur_return.php">View Purchase Retur</a></li>
                    <?php } ?>
                    
                    
                    <?php if($row['viewpur_tax']!=0) { ?>
                    <li class="list"><a  href="/<?php echo $dir?>purchase_management/view_pur_tax.php">View Purchase Tax</a></li>
                    <?php } ?>
					</ul>
					</article>
				</div>
                
                <div style="width:315px;">
					<input id="ac-9" name="accordion-1" type="checkbox" />
					<label for="ac-9">Payment Management</label>
					<article class="ac-small">
					  <ul>
                     <?php if($row['haveto_pay']!=0) { ?>
					<li class="list"><a  href="/<?php echo $dir?>purchase_management/have_topay.php">Amount Have to Pay</a></li>
                    <?php } ?>
                    
                    <?php if($row['payment']!=0) { ?>
                    <li class="list"><a  href="/<?php echo $dir?>payment_management/payment.php">Payment</a></li>
                    <?php } ?>
                    
                    <?php if($row['receipt']!=0) { ?>
                    <li class="list"><a  href="/<?php echo $dir?>payment_management/receipt.php">Receipt</a></li>
                    <?php } ?>
                    
                    <?php if($row['cash']!=0) { ?>
                    <li class="list"><a  href="/<?php echo $dir?>payment_management/cash.php">Cash</a></li>
                    <?php } ?>
                    
                    <?php if($row['view_cash']!=0) { ?>
                    <li class="list"><a  href="/<?php echo $dir?>payment_management/view_cash.php">View Cash</a></li>
                    <?php } ?>
                    
                    <?php if($row['bank']!=0) { ?>
                    <li class="list"><a  href="/<?php echo $dir?>payment_management/ban.php">Bank</a></li>
                    <?php } ?>
                    
                    <?php if($row['view_bank']!=0) { ?>
                    <li class="list"><a  href="/<?php echo $dir?>payment_management/view_bank.php">View Bank</a></li>
                    <?php } ?>
					</ul>
					</article>
				</div>
                
               <div style="width:315px;">
					<input id="ac-10" name="accordion-1" type="checkbox" />
					<label for="ac-10">Admin</label>
					<article class="ac-small">
					  <ul>
					<li class="list"><a  href="/<?php echo $dir;?>change-password.php">Account Security</a></li>
                     <li class="list"><a  href="/<?php echo $dir;?>logout.php">Logout</a></li>                    
					</ul>
					</article>
				</div>
                
                
                <div style="width:315px; margin-top:20px; margin-left:20px; font-family:Georgia, 'Times New Roman', Times, serif;">
					
					Copyright &copy; <?php echo date('Y');?> <?php echo $HEADERNAME;?>
                    <p style="margin-left:40px;">Theme by <a href="<?php echo $VIEWSITE;?>" target="_blank"><?php echo $DEVELOPED;?></a></p>
					
				</div>
                </section>
			  
                
                
               <?php } ?>
                    
                  
                    
                   
         <?php */?>