<link rel="stylesheet" href="images/style.css" type="text/css">
<script type="text/javascript" src="images/script.js"></script>



<table width="100%" border="0" align="center" cellpadding="0" cellspacing="1">

  <tr>

    <td height="50"><table width="100%" border="0" cellpadding="0" cellspacing="0">

        <tr>

          <td width="51%"><a href="index.php"><img src="images/logo.png" width="375" height="120" border="0" /></a></td>

          <td width="15%"><form action="search_acc.php" method="post" enctype="multipart/form-data" name="form2" id="form2">

              <table width="100%" border="0" cellspacing="1" cellpadding="3">

                <tbody>

                  <tr>

                    <td width="58%" align="right">Account <br />

                      Search:</td>

                    <td width="28%" align="right"><input name="accid" type="text" id="accid" size="10" /></td>

                    <td width="14%" align="left"><input type="submit" name="Go2" id="Go2" value="Go" /></td>

                  </tr>

                </tbody>

              </table>

            </form></td>

          <td width="19%" align="center"><form action="search_inv.php" method="post" name="form1" target="_self">

              <table width="100%" border="0" cellspacing="1" cellpadding="3">

                <tbody>

                  <tr>

                    <td width="66%" align="right">Reservation <br />

                    Search:</td>

                    <td width="17%" align="right"><input name="id" type="text" id="id" size="5"></td>

                    <td width="17%" align="left"><input type="submit" name="Go" id="Go" value="Go"></td>

                  </tr>

                </tbody>

              </table>

            </form></td>

          <td width="14%" align="center"><form action="search.php" method="post" name="form1" target="_self">

              <table width="100%" border="0" cellspacing="1" cellpadding="3">

                <tbody>

                  <tr>

                    <td align="right">NID/ Passport <br />

                      Search : </td>

                    <td width="31%" align="right"><input name="id" type="text" id="id" size="5"></td>

                    <td width="16%" align="left"><input type="submit" name="Go" id="Go" value="Go"></td>

                  </tr>

                </tbody>

              </table>

            </form></td>

          <td width="1%" align="center">&nbsp;</td>

        </tr>

      </table></td>

  </tr>

  <tr>

    <td class="menubg"><ul class="menu" id="menu">

        <li><a href="index.php" target="_self" class="menulink">Home</a> </li>

        <?php 





$result=mysql_query("select * from user WHERE userid='$_SESSION[invcox]' and status='1'");

$row=mysql_fetch_array($result);





?>



<?php if($row[a1] == '1'){?><li><a href="#"  class="menulink">RSV Entry</a>

          <ul>

            <?php if($row[a1_sub1] == '1'){?><li><a href="hotel.php" >Arnim Resort</a></li><?php }?>

            <?php if($row[a1_sub3] == '1'){?><li><a href="transport.php" >Transport Service</a></li><?php }?>

            <?php if($row[a1_sub4] == '1'){?><li><a href="tours.php" >Tour / Sightseeing</a></li><?php }?>

            <?php if($row[a1_sub5] == '1'){?><li><a href="package.php" >Package</a></li><?php }?>

            <?php if($row[a1_sub6] == '1'){?><li><a href="invoice.php">All Invoice</a></li><?php }?><br />
            <?php if($row[a1_sub7] == '1'){?><li><a href="all_reservation.php">All Reservation</a></li><?php }?>

          </ul>

        </li>

<?php }?>

<?php if($row[a2] == '1'){?><li><a href="#"  class="menulink">RSV Status</a>

          <ul>

            <?php if($row[a2_sub1] == '1'){?><li><a href="arnim_resort_booking_status.php" >Arnim Resort</a></li><?php }?>

            <?php if($row[a2_sub3] == '1'){?><li><a href="transport_status.php" >Transport Service</a></li><?php }?>

            <?php if($row[a2_sub4] == '1'){?><li><a href="tours_status.php" >Tour / Sightseeing</a></li><?php }?>

            <?php if($row[a2_sub5] == '1'){?><li><a href="package_status.php" >Package</a></li><?php }?>

            <?php if($row[a2_sub6] == '1'){?><li><a href="client_status.php" target="_self" >Client</a></li><?php }?>

            <?php if($row[a2_sub7] == '1'){?><li><a href="travel_agency_status.php" target="_self">Agency</a></li><?php }?>

          </ul>

        </li><?php }?>

<?php if($row[a3] == '1'){?>

        <li><a href="#"  class="menulink">Pay Slip</a>

          <ul>

            <?php if($row[a3_sub1] == '1'){?><li><a href="hotel.php" >Arnim Resort</a></li><?php }?>

            <?php if($row[a3_sub2] == '1'){?><li><a href="print_transfer-voucher.php" >Transport Service</a></li><?php }?>

            <?php if($row[a3_sub3] == '1'){?><li><a href="sightseeing.php" >Tour / Sightseeing</a></li><?php }?>

            <?php if($row[a3_sub4] == '1'){?><li><a href="packege.php" >Packege</a></li><?php }?>

            <?php if($row[a3_sub5] == '1'){?><li><a href="payslip.php">all Pay Slip</a></li><?php }?>

          </ul>

        </li><?php }?>



<?php if($row[a4] == '1'){?>

        <li><a href="#"  class="menulink">Accounts</a>

          <ul>

            <?php if($row[a4_sub1] == '1'){?><li><a href="add_income.php" >Add Income</a></li><?php }?>

            <?php if($row[a4_sub2] == '1'){?><li><a href="income_view.php" >Income View</a></li><?php }?>

            <?php if($row[a4_sub3] == '1'){?><li><a href="add_income_type.php" >Income Type</a></li><?php }?>

            <?php if($row[a4_sub4] == '1'){?><li><a href="add_cost.php" >Add Cost</a></li><?php }?>

            <?php if($row[a4_sub5] == '1'){?><li><a href="cost_view.php" >Cost View</a></li><?php }?>

            <?php if($row[a4_sub6] == '1'){?><li><a href="add_cost_type.php" >Cost Type</a></li><?php }?>

            <?php if($row[a4_sub7] == '1'){?><li><a href="due_list.php" >Due List</a></li><?php }?>


          </ul>

        </li><?php }?>

        <?php if($row[a5] == '1'){?>

        <li><a href="#"  class="menulink">Client Entry</a>
		
          <ul>

            

            <?php if($row[a5_sub1] == '1'){?><li><a href="add_client.php">Add Customer</a></li><?php }?>

            <?php if($row[a5_sub2] == '1'){?><li><a href="add_sales_agent.php">Add Sales Agent</a></li><?php }?>

            <?php if($row[a5_sub3] == '1'){?><li><a href="add_travel_agency.php">Add Travel Agency</a></li><?php }?>

            <?php if($row[a5_sub4] == '1'){?><li><a href="add_corporate_client.php">Add Corporate Client</a></li><?php }?>

            <?php if($row[a5_sub5] == '1'){?><li><a href="add_bank.php" class="menulink">Add Bank Account</a></li><?php }?>

           

          </ul>

        </li> <?php }?>

     

        <?php if($row[a6] == '1'){?>

        <li><a href="#"  class="menulink">Payable / Receivable</a>

          <ul>

            <?php if($row[a6_sub1] == '1'){?><li><a href="add_payable.php">Add Payable</a></li><?php }?>

            <?php if($row[a6_sub2] == '1'){?><li><a href="payable_view.php">Payable View</a></li><?php }?>

            <?php if($row[a6_sub3] == '1'){?><li><a href="add_payable_type.php">Payable Type</a></li><?php }?>

            <?php if($row[a6_sub4] == '1'){?><li><a href="add_receivable.php">Add Receivable</a></li><?php }?>

            <?php if($row[a6_sub5] == '1'){?> <li><a href="receivable_view.php">Receivable View</a></li><?php }?>

            <?php if($row[a6_sub6] == '1'){?><li><a href="add_receivable_type.php">Receivable Type</a></li><?php }?>

            <?php if($row[a6_sub7] == '1'){?><li><a href="cost_view_type.php">Cost View Type</a></li><?php }?>



          </ul>

        </li>

        <?php }?>

        <?php if($row[a7] == '1'){?>

        <li><a href="#" class="menulink">Vendor</a>

          <ul>

            <?php if($row[a7_sub1] == '1'){?><li><a href="add_vendor.php"  class="menulink">Add Vendor</a></li><?php }?>

            <?php if($row[a7_sub2] == '1'){?><li><a href="vendor_payment.php"  class="menulink">Vendor Payment</a></li><?php }?>

            <?php if($row[a7_sub3] == '1'){?><li><a href="suppliers_refund.php"  class="menulink">Suppliers Product Refund</a></li><?php }?>

            <?php if($row[a7_sub4] == '1'){?><li><a href="suppliers_stock.php"  class="menulink">Suppliers Stock</a></li><?php }?>

            <?php if($row[a7_sub5] == '1'){?><li><a href="suppliers_supplier.php" class="menulink">Add Suppliers</a></li><?php }?>

            <?php if($row[a7_sub6] == '1'){?><li><a href="suppliers_add_product_category.php" class="menulink">Suppliers Product Category</a></li><?php }?>

            <?php if($row[a7_sub7] == '1'){?><li><a href="add_product2.php" class="menulink">Suppliers Product</a></li><?php }?>

          </ul>

        </li>

        <?php }?>

        <?php if($row[a8] == '1'){?>

        <li><a href="admin_user.php" class="menulink">USERS</a></li>

        <?php }?>

        <li><a href="logout.php" class="menulink">Logout</a></li>

      </ul></td>

  </tr>

</table>

<script type="text/javascript">

	var menu=new menu.dd("menu");



	menu.init("menu","menuhover");

</script>