<?php
//1 for administrator
//2 for Admission
//3 for Accountants
//4 for IT Manager
$query="SELECT * FROM ".$prefix2."company";
$companyType=mysqli_query($linkid,$query);
$mydata=mysqli_fetch_assoc($companyType);
?>

<div class="sidebar">
  <div class="antiScroll">
    <div class="antiscroll-inner">
      <div class="antiscroll-content">
        <div class="sidebar_inner">
          <form action="#" class="input-append" method="post" >
            <input autocomplete="off" name="query" class="search_query input-medium" size="16" type="text" placeholder="Search..." />
            <button type="submit" class="btn"><i class="icon-search"></i></button>
          </form>
          <div id="side_accordion" class="accordion">
            <div class="accordion-group">
              <div class="accordion-heading"> <a href="#collapseOne" data-parent="#side_accordion" data-toggle="collapse" class="accordion-toggle"> <i class="icon-th"></i> Sales Orders </a> </div>
              <div class="accordion-body collapse" id="collapseOne">
                <div class="accordion-inner">
                  <ul class="nav nav-list">
                    <li><a href="index.php?tab=sales-order-list">Sales Orders (Current)</a></li>
                    <li><a href="index.php?tab=sales-order-history">Sales Orders (History)</a></li>
                  </ul>
                </div>
              </div>
            </div>
            
			<div class="accordion-group">
              <div class="accordion-heading"> <a href="#collapseThree" data-parent="#side_accordion" data-toggle="collapse" class="accordion-toggle"> <i class="icon-th"></i> Money Receipts </a> </div>
              <div class="accordion-body collapse" id="collapseThree">
                <div class="accordion-inner">
                  <ul class="nav nav-list">
                   <li><a href="index.php?tab=money-receipt">Money Receipts</a></li>
                  </ul>
                </div>
              </div>
            </div>
<div class="accordion-group">
              <div class="accordion-heading"> <a href="#collapseTwo" data-parent="#side_accordion" data-toggle="collapse" class="accordion-toggle"> <i class="icon-th"></i> Invoices & Deliveries </a> </div>
              <div class="accordion-body collapse" id="collapseTwo">
                <div class="accordion-inner">
                  <ul class="nav nav-list">
                    <li><a href="../sales/inquiry/sales_orders_view.php?OutstandingOnly=1" target="_blank">Delivery Against Sales Orders </a></li>
					<li><a href="../sales/inquiry/sales_deliveries_view.php?OutstandingOnly=1" target="_blank">Invoice Against Sales Delivery </a></li>
                  <li><a href="index.php?tab=invoices-deliveries">Invoices & Deliveries </a></li>
				  </ul>
                </div>
              </div>
            </div>

			<div class="accordion-group">
              <div class="accordion-heading"> <a href="#collapseEight" data-parent="#side_accordion" data-toggle="collapse" class="accordion-toggle"> <i class="icon-th"></i> VAT Challan </a> </div>
              <div class="accordion-body collapse" id="collapseEight">
                <div class="accordion-inner">
                  <ul class="nav nav-list">
				  
                    <li><a href="index.php?tab=vat-challan">VAT Challan (F)</a></li>
										 <?php

			if($userroll!='1')

			{

			?>
					<li><a href="index.php?tab=vat-challan-rear">VAT Challan (R)</a></li>
					 <?php

			}

			?>
					</ul>
                </div>
              </div>
            </div>
      <div class="accordion-group">
              <div class="accordion-heading"> <a href="#collapseSeven" data-parent="#side_accordion" data-toggle="collapse" class="accordion-toggle"> <i class="icon-cog"></i>  Report </a> </div>
              <div class="accordion-body collapse" id="collapseSeven">
                <div class="accordion-inner">
                  <ul class="nav nav-list">
				 <li><a href="index.php?tab=order-report">Order Summary Report</a></li>
				  <?php

			if($userroll!='1')

			{

			?>
				    <li><a href="index.php?tab=mr-report">Money Receipt Summary</a></li>
                    <li><a href="index.php?tab=accounts-report">Received Payment Report</a></li>
					<li><a href="index.php?tab=invoice-report">Invoice Summary Report</a></li>
					 <?php

			}

			?>
					<li><a href="index.php?tab=vat-challan-report-f">VAT Challan Report (F)</a></li>
					 <?php

			if($userroll!='1')

			{

			?>
					<li><a href="index.php?tab=vat-challan-report-r">VAT Challan Report (R)</a></li>
					 <?php

			}

			?>
				  </ul>
                </div>
              </div>
            </div>
            <?php

			if($userroll=='1' || $userroll=='2')

			{

			?>
            <div class="accordion-group">
              <div class="accordion-heading"> <a href="#collapseSix" data-parent="#side_accordion" data-toggle="collapse" class="accordion-toggle"> <i class="icon-cog"></i> Setup </a> </div>
              <div class="accordion-body collapse" id="collapseSix">
                <div class="accordion-inner">
                  <ul class="nav nav-list">
                    <li><a href="index.php?tab=company-setup">Company Setup</a></li>
                  </ul>
                </div>
              </div>
            </div>
            <?php								  

			  }

				?>
          </div>
        </div>
        <div class="sidebar_info">
          <h6 style="font-size:large"><?php echo $mydata['name'];?></h6>
        </div>
        <div>&nbsp;</div>
        <div class="sidebar_info">
          <p><b style="font-style:italic;">Developed By:<br>
            CDS SOLUTIONS</b><br />
            <img src="img/phn.png" />:<b>+880 167 8077 023</b></p>
        </div>
      </div>
    </div>
  </div>
</div>
