<? session_start();
$brcode = $_SESSION['brcode'];
$user   = $_SESSION['user'];
include("opendb.php");
$us = mysqli_query($db, "select level from bruser where username='$user'") or die(mysqli_error());
$r = mysqli_fetch_row($us);
$user_level = $r[0];

?>
<link type="text/css" href="css2/left.css" rel="stylesheet" />


<base target=main>

<body topmargin="5">
    <div id="cssmenu">
        <? if (strtoupper($user) != 'MANJU') { ?>
            <a href="cbookmnu.php">Cash Book</a>
            <a href="bnkbookmnu.php">Bank Book</a>
            <? if (strtoupper($user) != 'MANJU') { ?>
                <a href="listledgers2.php">Ledger - Date wise</a>
            <? } ?>
            <a href="accounts/genfull.php" target='pl'>Multiple Ledgers </a>
            <a href="accounts/pldetailed.php" target='pl'>Profit and Loss </a>
            <a href="pandlmnu.php" target='pl'>Profit and Loss(D/W)</a>
            <a href="tbmnu.php">Trial Balance -></a>
            <a href="dstate.php">Daily Statement</a>
            <a href="db1.php">Day Book</a>
            <a href="debtagingnew.php" target='a1'>Debtors Aging List(Dr)</a>
            <a href="db4.php" target='a1'>Debtors Aging List(Dr)-SBI</a>
            <a href="db6.php" target='a1'>Creditors Aging List(Dr)-SBI</a>
            <a href="debtaging2.php" target='b1'>Debtors Aging List(Cr)</a>
            <a href="db3_sa.php" target='b1'>Debtors Aging List(Staff)</a>
            <a href="jour1.php">Journal Entries</a>
            <a href="multientry/tdsreport.php">TDS Report</a>
            <a href="drfull.php">Debtors full list</a>
            <a href="crfull.php" target='a1'>creditors full list</a>
            <a href="genfull.php" target='b1'>Gen. full list</a>
            <a href="seanarr.php" target='b1'>Search Narration</a>
            <a href="tcsledgers.php" target='b1'>Customer > 50 Lakhs</a>
        <? } ?>
        <? if ($brcode == 'PSN236') { ?>
            <a href="veh/stkrepo_veh_gw.php">Configuration Wise Veh.Stock Report</a>
            <a href="veh/stkrepo-veh-cat.php">Category Wise Veh.Stock Report</a>
            <a href="mis/conrepo.php">Config Wise Report Summary</a>
            <a href="veh/dwstockrepo.php">Veh.Stock Report</a>
            <a href="veh/dwstockrepo1.php">Allocation</a>
            <a href="veh/stockled_veh.php">Stock Ledger</a>
            <a href="veh/purreg_new.php">Purchase Register</a>
            <a href="veh/purreg_gst.php">Purchase Reg(GST) **</a>
            <a href="veh/purregcat.php">Purchase Register Type</a>
            <a href="veh/purrepo_gsthsn.php">Purchase HSNCode Summary**</a>
            <a href="veh/saleregall.php">Customer List(All)</a>
            <a href="veh/saleregtype.php">Sales Register Type Wise</a>
            <a href="veh/salereg_newgst.php">Sales Register GST**</a>
            <a href="veh/invrepo_gsthsn.php">Sales Reg-HSNCode Summary**</a>
            <a href="veh/invrepo_gsthsnew.php">Sales Reg-HSNCode Summary New</a>
            <a href="veh/salereg_new.php">Sales Register</a>
            <a href="veh/crnote_gst_report.php">Credit Note REPORT</a>
            <a href="veh/salereg2.php">Sales Register (Fin)</a>
            <a href="veh/salereg3.php">Sales Register (Addr)</a>
            <a href="veh/salereg3adrcat.php">Sales Register (Addr) Cat.wise</a>
            <a href="veh/saleregdet.php">Sales Register (Detail)</a>
            <a href="veh/profreg.php">Proforma Invoice Register</a>
            <a href="veh/purretreg.php">Pur-Return Register</a>
            <a href="veh/purretreggst.php">Pur-Return Register GST</a>
            <a href="veh/saleretreg.php">Sales-Return Register</a>
            <a href="veh/stinreg.php">Stock Trans in Register</a>
            <a href="veh/stoutreg.php">Stock Trans out Register</a>
            <a href="veh/pitmreg.php">Purchase Item Register</a>
            <a href="veh/crnotereg.php">Credit Note Register</a>
            <a href="veh/dbnotereg.php">Debit Note Register</a>
        <? } else { ?>
            <a href="veh/stockrepo_veh.php">Veh.Stock Report</a>
            <a href="veh/stkrepo_veh_gw.php">Configuration Wise Veh.Stock Report</a>
            <a href="veh/stkrepo-veh-cat.php">Category Wise Veh.Stock Report</a>
            <a href="mis/conrepo.php">Config Wise Report Summary</a>
            <a href="veh/dwstockrepo.php">D/w Veh.Stock Report</a>
            <a href="veh/dwstockrepo1.php">Allocation</a>
            <a href="veh/stockled_veh.php">Stock Ledger</a>
            <a href="veh/purreg.php">Purchase Register</a>
            <a href="veh/purregcat.php">Purchase Register Type</a>
            <a href="veh/saleregall.php">Customer List(All)</a>
            <a href="veh/saleregtype.php">Sales Register Type Wise</a>
            <a href="veh/salereg.php">Sales Register 1</a>
            <a href="veh/salereg2.php">Sales Register (Fin)</a>
            <a href="veh/salereg3.php">Sales Register (Addr)</a>
            <a href="veh/salereg3adrcat.php">Sales Register (Addr) Cat.wise</a>
            <a href="veh/saleregdet.php">Sales Register (Detail)</a>
            <a href="veh/profreg.php">Proforma Invoice Register</a>
            <a href="veh/purretreg.php">Pur-Return Register</a>
            <a href="veh/saleretreg.php">Sales-Return Register</a>
            <a href="veh/stinreg.php">Stock Trans in Register</a>
            <a href="veh/stoutreg.php">Stock Trans out Register</a>
            <a href="veh/crnote_gst_report.php">Credit Note Report</a>
            <a href="veh/pitmreg.php">Purchase Item Register</a>
            <a href="veh/crnotereg.php">Credit Note Register</a>
        <? } ?>
        <? if ($user_level > 5) { ?>
            <a href="mis/presalerepo.php">Report</a>
            <a href="mis/presalestat.php" target='stat'>Status</a>
            <a href="mis/conrepo.php">Config Wise Report</a>
            <a href="mis/agerepo.php">Age Wise Report</a>
            <a href="mis/itstock.php">Item Stock Report</a>
            <a href="dstate.php">Daily Statement</a>
            <a href="mis/bstate.php">Bank Statement</a>
            <a href="debtaging.php">Debtors Aging(Dr)</a>
            <a href="mis/awrepo.php" target='x'>Summary</a>
            <a href="mis/netreal4.php" target='x'>Netreal-1</a>
            <a href="mis/netreal.php" target='x'>Netreal-2</a>
            <a href="mis/dapending.php" target='x'>Pending DA</a>
            <a href="veh/profinvnewclt.php">Prof. Invoice(New CLT)</a>
            <a href="veh/oform_repo2.php" target='x'>O.F Status</a>
            <a href="mis/ofrepo.php" target='x'>Status at Branch</a>
            <a href="mis/pwstat.php" target='x'>Payment wise status</a>
            <a href="mis/ofrepoarea.php" target='x'>To be sold (areawise)</a>
            <a href="mis/cusmnu.php">Customer List </a>
            <a href="chp.php">Change Password</a>
            <a href="mis/amcmastrep.php">AMC Report</a>
        <? }
        if ($user_level > 2 || $user == 'admin') { ?>
            <a href='machmaster.php'> Model Master</a>
            <a href='configmaster.php'> Config Master</a>
            <a href='veh/segment.php'> Segment Master</a>
            <a href='enginemaster.php'> Engine Master</a>
            <a href='custmaster.php'> Customer Master</a>
            <a href='minput.html'>Machine Input</a>
            <a href='mdet.php'>List Machine Details</a>
            <a href='seamdet.php'>Search Machine Details</a>
            <a href='srepo.php' target='a'>Service Report</a>
            <a href='mshift.php'>Machine Shifting</a>
            <a href='shis.php'>Service History</a>
            <a href="veh/pur_order.php">Purchase Order</a>
            <a href="veh/veh_purch.php">Vehicle Purchase(Eich)</a>
            <a href="veh/purch_ret.php">Purchase Return(VEH) </a>
            <a href="vehaccstart.php">Accessories Purchase </a>
            <a href="veh/purch_ret_itm.php">Purchase Return(ITM) </a>
            <a href="veh/adjitm.php">Adjust Item Stock (IN)</a>
            <a href="veh/seapurchitm.php">Search Item Purchase </a>
            <a href="veh/prnvehinvoice22_gstcess.php?typ=d&invno=" target='a'>Invoice GST+KFC</a>
            <a href="veh/prnvehinvoice22_gstwbody.php?typ=d&invno=" target='a'>Invoice w/body</a>
            <a href="veh/prnvehreturn_gstcess.php?typ=d&invno=" target='a'>Sales Return</a>
            <a href="veh/prnvehinvoice22_gstfl.php?typ=d&invno=" target='a'>Invoice GST(Flood)</a>
            <a href="veh/prnvehinvoice22_gstfl_psn.php?typ=d&invno=" target='a'>Invoice GST(Flood Kerala)</a>
            <a href="veh/prnvehinvoice_dealer_gst.php?typ=d&invno=" target='a'>Invoice GST - (DEALER)</a>
            <a href="veh/prnvehinvoice.php?typ=d&invno=" target='a'>Invoice 8a</a>
            <a href="veh/prnvehinvoice2.php?invno=" target='a'>Invoice 8b</a>
            <a href="veh/p2.php?invno=" target='a'>Pre-Printed</a>
            <a href="veh/p2cst.php?invno=" target='a'>Pre-Printed(CST)</a>
            <a href="veh/p22.php?invno=" target='a'>Pre-Printed Mangalore</a>
            <a href="veh/p23.php?invno=" target='a'>Pre-Printed BLR</a>
            <a href="veh/prnvehinvoice_cst.php?invno=" target='a'>Invoice CST</a>
            <a href="veh/scertreport.php?invno=" target='a'>Sale Cert</a>
            <a href="veh/prnvehinvoice.php?typ=d&invno=" target='a'>Invoice-Dealer</a>
            <a href="veh/prnvehinvoice_cst.php?typ=d&invno=" target='a'>Invoice-Dealer (CST)</a>
            <a href="veh/prntransout.php?invno=1" target='a'>Transfer Out</a>
            <a href="veh/prnprof.php?invno=" target='k'>Prof.Invoice</a>
            <a href="veh/prnprofnew.php?invno=" target='k'>Prof.Invoice Pre.Printed</a>
            <a href="veh/prnprofnew1gst_cess_igst.php?invno=" target='k'>Prof.Invoice Pre.Printed(IGST)</a>
            <a href="veh/prnprofnew1gstigstnew.php?invno=" target='k'>Prof.Invoice Pre.Printed(IGST)w/Logo</a>
            <a href="veh/prnprofnew1gst.php?invno=" target='k'>Prof.Invoice Pre.Printed(PSN)</a>
            <a href="veh/prnprofnew1gstnew.php?invno=" target='k'>Prof.Invoice (PSN**)</a>
            <a href="veh/prnprofnew1gst_cess.php?invno=" target='k'>Prof.Invoice (KFC)</a>
            <a href="veh/prnprofnewgsta4ka.php?invno=" target='k'>Prof.Invoice (PDF)***</a>
            <a href="veh/prnprofnewgsta4ka_b.php?invno=" target='k'>Prof.Invoice with Body(PDF)***</a>
            <a href="veh/prnprofnew1gst_cessnew.php?invno=" target='k'>Prof.Invoice (KFC)w/LOGO</a>
            <a href="veh/prnprofrec.php?invno=" target='b'>Prof.Inv Receipt</a>
            <a href="payrec/prncshrec.php?no=" target='b'>Cash Receipt</a>
            <a href="payrec/prnbnkrec.php?no=" target='b'>Bank Receipt</a>
            <a href="veh/prnadvrec.php?jvno=" target='b'>Advance Receipt</a>
            <a href="veh/duprec.php?jvno=" target='kk'>Receipt</a>
            <a href="veh/prncrnote.php?no=" target='j'>Cr. Note</a>
            <a href="veh/prncrnote_gst.php?no=" target='j'>Cr. Note with GST</a>
            <a href="multientry/prndbnote.php?dbno=" target='jd'>Dr. Note</a>
            <a href="payrec/prnvoucher.php?jvno=" target='b'>Voucher</a>
            <a href="payrec/prnbnkpay.php?no=" target='b'>Bank Payment</a>
            <a href="veh/invoicegst.php">Invoice - Vehicle</a>
            <a href="veh/profinvnew_cess.php">Prof. Invoice(KFC)</a>
            <a href="veh/profrecpt.php">Prof. Receipt</a>
            <a href="veh/invoice-d.php">Invoice Veh to Dealer</a>
            <a href="veh/seainvoice.php">Search Invoice</a>
            <a href="veh/updshipadr.php">Shipping Address Updation</a>
            <a href="veh/veh_sale_ret.php">Sales Returns <br>(VEH from Customer)</a>
            <a href="veh/veh_sale_retd.php">Sales Returns <br>(VEH from Dealer)</a>
            <a href="veh/veh_sale_retold.php">Sales Returns <br>(VEH OLD)</a>
            <a href="veh/customersap.php">**Update Customer SAPID</a>
            <a href="veh/upld_vehinvoicegst.php">**Upload SAP Invoice</a>
            <a href="gstmultislct2_outprof.php">Proforma for Accessories</a>
            <a href="veh/itminvoice.php">Invoice - Item</a>
            <a href="veh/stkadj.php">Stock Adj - Item</a>
            <a href="veh/itstock.php">Item Stock</a>
            <a href="veh/seainvitem.php">Search Item</a>
            <a href="veh/insentive.php" target='in'>Incentive</a>
            <a href="purindex.html">Purchase Order</a>
            <a href="pur_orderview.php">View Purchase Order</a>
            <a href="pbyporder.php" target='x1'>Purchase by P Order</a>
            <a href="porderpnd.php" target='x2'>Pending Purchase Order</a>
            <a href="clporder.php" target='x3'>Closed Purchase Order</a>
            <a href="preturn.php">Purchase Return</a>
            <a href="preturn_old1.php">Purchase Return old</a>
            <a href="veh/oform.php">Order Form</a>
            <a href="veh/seaoform.php">Search Order Form</a>
            <a href="util/scheme.php">Scheme(55000)</a>
            <a href="util/scheme55cmpltd.php">Scheme(55000) Expired</a>
            <a href="util/scheme1.php">Scheme(100000)</a>
            <a href="util/scheme2.php">Scheme(New)</a>
            <a href="util/schemeextd2011cmpltd.php">Scheme(extd2011) Expired</a>
            <a href="util/xwty.php">Extended Warranty</a>
            <a href="util/school.php">School Bus Scheme</a>
            <a href="veh/axlesch1.php">AxleShaft Scheme</a>
            <a href="util/extwtytran.php">Extd 2010 Transaction</a>
            <a href="util/550001.php">55000 Transaction</a>
            <a href="util/1000001.php">1 Lakh Transaction</a>
            <a href="util/schtrans1.php">School Transaction</a>
            <a href="util/axletrans.php">Axle Transaction</a>
            <a href="util/schemnewtrans.php">Scheme(New)</a>
            <a href="util/extwtytranrpt.php">Extd Wty 2010 Reports</a>
            <a href="util/55reportsum.php">55000 Reports</a>
            <a href="util/1lreportsum.php">1Lakh Reports</a>
            <a href="util/schoolsum.php">SchoolBus </a>
            <a href="util/axlesum.php">AxleShaft </a>
            <a href="util/schemenewrpt.php">Scheme (New) </a>
            <a href="veh/insure/newco.php">Ins Co. Master</a>
            <a href="veh/insure/newinsure.php">New Insure</a>
            <a href="veh/insure/renew.php">Renewal</a>
            <a href="veh/insure/repo.php">Report</a>
            <? if ($user_level >= 4) { ?>
                <a href="veh/exseaoform.php">Exchange Details</a>
            <? } ?>
            <a href="veh/oform_repo.php">Report</a>
            <a href="veh/oform_inactive.php">List Inactive</a>
            <a href="veh/supp-mast.php">Supplier</a>
            <a href="veh/corp-mast.php">Corporates</a>
            <a href="veh/cust-mast.php">Customer</a>
            <a href="veh/driver.php">Driver</a>
            <a href="veh/fine.php">Financer</a>
            <a href="veh/branch.php">Branch</a>
            <a href="veh/dist.php">District</a>
            <a href="veh/location.php">Location</a>
            <a href="veh/segment.php">Segment</a>
            <a href="veh/town.php">Town</a>
            <a href="veh/taluk.php">Taluk</a>
            <a href="veh/vehmaster.php">Vehicle</a>
            <a href="veh/itemmaster.php">Item</a>
            <a href="veh/scheme_mast.php">Scheme Master</a>
            <a href="sales/mentry.php" TARGET='Y'>Customer Master</a>
            <a href="sales/entry.php">Executive</a>
            <a href="sales/distentry.php">District Head</a>
            <a href="sales/proentry.php">Product Head</a>
            <a href="sales/repo.php">Report</a>
            <a href="sales/seacomp.php">Competetion Cust List </a>
            <a href="sales/newseacomp.php">New Competetion Cust List </a>
            <a href="veh/sman-mast.php">Prod. Head</a>
            <a href="veh/coo-mast.php">Co-ordinator</a>
            <a href="veh/srep.php">Representative</a>
        <? } ?>
        <? if ($user_level > 2 || $user == 'admin') { ?>
            <a href="veh/opstock.php">Op. Stock</a>
        <? } ?>
        <? if ($user_level == 1 || $user == 'admin' || $user_level >= 2) { ?>
            <a href="veh/advform.php">Advance Receipt</a>
            <a href="mis/agerepo1.php">Age Wise Report</a>
        <? } ?>
        <? if ($user_level > 2 || $user == 'admin') { ?>
            <a href="veh/pantype.php">Pan Type</a>
            <a href="veh/pan-mast.php">Pan Master</a>
            <a href="veh/section.php">Section Master</a>
            <a href="veh/crnote.php">Cr Note (Dis Allowed)</a>
            <a href="veh/crnote_gst.php">Cr Note with GST</a>
            <a href="gst_creditnote.php">Debit Note with GST</a>
            <a href="upld_acpost.php">Upload Cr Note</a>
            <a href="spares/einvoice_crnote_gst.php">E-Inv JSON Download(CR Note)</a>
            <a href="spares/sap_creditnotejson.php">E-Inv JSON Download(CR Note)Multi</a>
            <a href="veh/scert.php">Sale Certificate</a>
            <a href="veh/salecertreport.php">Edit Sale Certificate</a>
            <a href="saleqot.php">Sale Details</a>
            <a href="seacust.php">Customer Search</a>
        <? } ?>
        <? if ($user_level > 2 || $user == 'admin') { ?>
            <a href="veh/veh_transin.php">Stock Transfer IN</a>
            <a href="veh/veh_transout.php">Stock Transfer OUT</a>
            <a href="veh/tcr.php">T C R</a>
            <a href="veh/oform_repo2.php" target='x'>O.F Status</a>
            <a href="spares/purindex.html" target='x'>BodyOrder</a>
            <a href="spares/transin.php" target='x'>TransferIn Body</a>
            <a href="veh/upldeichersap.php" target='x'>Portal_Import</a>
            <a href="portaldetails.php" target='x'>Portal_Report</a>
        <? } ?>
        <? if ($user_level < 2) { ?>
            <a href="veh/prnprofnew.php?invno=" target='k'>Prof.Invoice</a>
        <? } ?>
        <a href="chp.php">Change Password</a>
        <? if ($user_level > 2) { ?>
            <a href="period.php">Period</a>
            <a href="acgroup.php">Group Master</a>
            <a href="ledge.php">Ledger Master</a>
        <? }
        if (strtoupper($user) != 'MANJU') { ?>
            <a href="sealedge.php">Search Ledger</a>
        <? }
        if ($user_level > 2) { ?>
            <a href="pl1.php">Open/Close Stk</a> 
            <a href="payrec/cshrec.php">Cash Receipts</a>
            <a href="payrec/cshpay.php">Cash Payment</a>
            <a href="payrec/brec.php">Bank Receipts</a>
            <a href="payrec/bpay_1.php">Bank Payment</a>
            <a href="accounts/payrec/bpay_1.php">Bank Payment (W/Cheque Print)</a>
            <a href="accounts/breco.php">Bank Reconciliation</a>
        <? } ?>
        <? if ($user_level > 2) { ?>
            <a href="multientry/jour.php" target=x>Journal</a>
            <a href="gstmultislct2.php">GST Multiple</a>
            <a href="gstrpt.php">GST Report</a>
            <a href="spares/sap_gstmultiple.php">GST Multiple from SAP</a>
            <a href="gstmultislct2_out.php">GST Multiple Out</a>
            <a href="spares/einvoice_gstincome.php">E-Inv JSON Download(GST Multiple)</a>
            <a href="spares/sap_spareinvoiceupload.php">SAP Extract Upload</a>
            <a href="spares/sap_spareinvoicejson.php">SAP JSON Download</a>
            <a href="gstrpt_out.php">GST Report Out</a>
            <a href="gstrptrev.php">GST OUT(Reverse) Report</a>
            <a href="multientry/tdsjour.php">TDS Entry</a>
        <? } ?>
        <? if ($user_level > 2) { ?>
            <a href="accounts/payrec/chqbook_reg.php">Cheque Book Registration</a>
            <a href="accounts/payrec/chqbook_cancel.php">Cheque Cancelation</a>
            <a href="accounts/payrec/chqbook_for.php">Cheque Format Selection</a>
            <a href="accounts/payrec/chqbook_list.php">Cheque Book Register</a>
            <a href="accounts/payrec/chqbook_dup.php">Duplicate Cheque Printing</a>
            <a href="accounts/payrec/chqbook_dupcan.php">Duplicate Cheque Printing(Canon)</a>
            <a href="loc-clear.php">Loc-Clearing</a>
            <a href="clearing.php">BranchEntries-Clearing</a>
            <a href="merge_ledger.php">Merge Ledgers</a>
            <a href="br_othdiv.php">Bank Rec from Other Divisions</a>
            <a href="accounts/bankstate.php">*Claim from Bank Statement</a>
        <? } ?>
        <a href='util/dachk.php'>DA Check</a>
        <a href='util/chda.php'>DA Change</a>
        <a href='util/seach.php'>Search Chasis No</a>
        <a href='util/seachjour.php'>Search in Journal</a>
        <a href='util/chsupp.php'>Change Supplier</a>
        <a href='util/reminder.php'>Reminder</a>
        <a href='util/amcmast.php'>AMC Master</a>
        <a href='util/amctrans1.php'>AMC Transaction</a>
        <a href='util/amc.php'>Check AMC</a>
        <a href='util/amcmastrep.php'>AMC Master Report</a>
        <a href='util/upldcust.php'>Upload Competion Customer data</a>
        <a href='util/newupldcust.php'>Upload Competion Customer data(New)</a>
        <a href='util/chkjv.php'>Miss Match Entries</a>
        <a href='util/searchallch.php'>Search Chasis No (All)</a>
        <a href='util/upldjour.php'>***Upload Journal</a>
        <a href='util/gst_upld.php'>***Upload GST Expense</a>
        <a href='spares/einvoice_spareinvoice.php'>E-INVOICE JSON DOWNLOAD</a>
        <a href='spares/einvoice_sparereturn.php'>E-INVOICE(Return) JSON DOWNLOAD</a>
        <a href='spares/upldjson_spr.php'>E-INVOICE JSON UPLOAD</a>
        <a href='util/upldbnkrec.php'>***Upload Bank Receipt</a>
        <a href='util/upldbnkpay.php'>***Upload Bank Payment</a>
        <a href='spares/logreport.php'>Log Report</a>
        <a href='uploadtrans.php'>Upload Bank Statement(FB)</a>
        <a href='uploadtrans_sbi.php'>Upload Bank Statement(SBI)</a>
        <a href='amast/agrp.php'>Asset group</a>
        <a href='amast/amast.php'>Asset Master</a>
        <a href='amast/warr_master.php'>Veh_Warranty Master</a>
        <a href='amast/tcrmast.php'>TCR Master</a>
        <a href='amast/amastrepo.php' target='a'>Asset Report</a>
        <a href='amast/tcrmastrepo.php' target='b'>TCR Report</a>
        <a href='amast/remind.php' target='rem'>Reminder</a>
        
    </div>