<? session_start();
include("opendb.php");
if(strlen($brcode)<=0)
{
 print "<script> alert('Session timed out'); parent.document.location='../index.html'; </script>";
 return;
}

?>
<SCRIPT>
parent.main.document.location="blank.html";
</script>
<style>
 td{font-family:sans-serif;color:black;}
 body{background-color:#5b5858;}
 a{text-decoration:none;}
</style>
<base target=main>
<body topmargin="5" leftmargin="0" link=black vlink=black>
<center>
<font color=white size=4 face=sans-serif><b>Accounts</font><hr>
</center>
<table width=100%>
<?
$us=mysqli_query($db,"select level from bruser where username='$user'")or die(mysqli_error($db));
$r=mysqli_fetch_row($us);
$user_level=$r[0];
if($user_level>2||$user=='admin')
{
?>
<tr bgcolor=silver onMouseOver=bgColor='aliceblue'; onMouseOut=bgColor='silver'><td>&nbsp;&nbsp;<a href="accounts/period.php">Period</a></td></tr>
<tr bgcolor=silver onMouseOver=bgColor='aliceblue'; onMouseOut=bgColor='silver'><td>&nbsp;&nbsp;<a href="accounts/acgroup.php">Group Master</a></td></tr>
<tr bgcolor=silver onMouseOver=bgColor='aliceblue'; onMouseOut=bgColor='silver'><td>&nbsp;&nbsp;<a href="accounts/ledge.php">Ledger Master</a></td></tr>
<tr bgcolor=silver onMouseOver=bgColor='aliceblue'; onMouseOut=bgColor='silver'><td>&nbsp;&nbsp;<a href="accounts/sealedge.php">Search Ledger</a></td></tr>
<tr bgcolor=silver onMouseOver=bgColor='aliceblue'; onMouseOut=bgColor='silver'><td>&nbsp;&nbsp;<a href="accounts/sealedge3.php">Delete Ledger</a></td></tr>
<!--
<tr bgcolor=silver onMouseOver=bgColor='aliceblue'; onMouseOut=bgColor='silver'><td>&nbsp;&nbsp;<a href="accounts/pl1.php">Open/Close Stk</a></td></tr>
-->
<tr bgcolor=silver onMouseOver=bgColor='aliceblue'; onMouseOut=bgColor='silver'>
<td>&nbsp;&nbsp;<a href="accounts/payrec/cshrec.php">Cash Receipts</a></td></tr>
<tr bgcolor=silver onMouseOver=bgColor='aliceblue'; onMouseOut=bgColor='silver'><td>&nbsp;&nbsp;<a href="accounts/payrec/cshpay.php">Cash Payment</a></td></tr>
<tr bgcolor=silver onMouseOver=bgColor='aliceblue'; onMouseOut=bgColor='silver'>
<td>&nbsp;&nbsp;<a href="accounts/payrec/brec.php">Bank Receipts</a></td></tr>
<tr bgcolor=silver onMouseOver=bgColor='aliceblue'; onMouseOut=bgColor='silver'><td>&nbsp;&nbsp;<a href="accounts/payrec/bpay.php">Bank Payment</a></td></tr>
<tr bgcolor=silver onMouseOver=bgColor='aliceblue'; onMouseOut=bgColor='silver'><td>&nbsp;&nbsp;<a href="accounts/breco.php">Bank Reconciliation</a></td></tr>
<tr bgcolor=silver onMouseOver=bgColor='aliceblue'; onMouseOut=bgColor='silver'><td>&nbsp;&nbsp;<a href="accounts/ledreco.php">Ledger Reconciliation</a></td></tr>

<!--
<tr bgcolor=silver onMouseOver=bgColor='aliceblue'; onMouseOut=bgColor='silver'><td>&nbsp;&nbsp;<a href="rec.php">Receipts</a></td></tr><tr bgcolor=silver onMouseOver=bgColor='aliceblue'; onMouseOut=bgColor='silver'><td>&nbsp;&nbsp;<a href="pay.php">Payments</a></td></tr>

<tr bgcolor=silver onMouseOver=bgColor='aliceblue'; onMouseOut=bgColor='silver'><td>&nbsp;&nbsp;<a href="purch.php">Purchase</a></td></tr>
<tr bgcolor=silver onMouseOver=bgColor='aliceblue'; onMouseOut=bgColor='silver'><td>&nbsp;&nbsp;<a href="sale.php">Sales</a></td></tr>

<tr bgcolor=silver onMouseOver=bgColor='aliceblue'; onMouseOut=bgColor='silver'><td>&nbsp;&nbsp;<a href="journal.php">Journal</a></td></tr>
-->
<tr bgcolor=silver onMouseOver=bgColor='aliceblue'; onMouseOut=bgColor='silver'><td>&nbsp;&nbsp;<a href="accounts/multientry/jour.php" target=x>Journal</a></td></tr>
<tr bgcolor=silver onMouseOver=bgColor='aliceblue'; onMouseOut=bgColor='silver'><td>&nbsp;&nbsp;<a href="accounts/acrepomnu.html" onClick=fun1()>Reports -></a></td></tr>
<tr bgcolor=silver onMouseOver=bgColor='aliceblue'; onMouseOut=bgColor='silver'><td>&nbsp;&nbsp;<a href="blank.html" onClick=fundup()>Dup. copy -></a></td></tr>
<?
}
?>
<?if($user_level==2)
{
?>
<tr bgcolor=silver onMouseOver=bgColor='aliceblue'; onMouseOut=bgColor='silver'><td>&nbsp;&nbsp;<a href="accounts/sealedge.php">Search Ledger</a></td></tr>
<tr bgcolor=silver onMouseOver=bgColor='aliceblue'; onMouseOut=bgColor='silver'>

<tr bgcolor=silver onMouseOver=bgColor='aliceblue'; onMouseOut=bgColor='silver'><td>&nbsp;&nbsp;<a href="accounts/acrepomnu.html" onClick=fun1()>Reports -></a></td></tr>
<tr bgcolor=silver onMouseOver=bgColor='aliceblue'; onMouseOut=bgColor='silver'><td>&nbsp;&nbsp;<a href="blank.html" onClick=fundup()>Dup. copy -></a></td></tr>


<?
}
?>
</table>
<br>
<!--
<table width=100%>
<tr bgcolor=silver onMouseOver=bgColor='aliceblue'; onMouseOut=bgColor='silver'><td>&nbsp;&nbsp;<a href="loc-clear.php">Loc-Clearing</a></td></tr>
</table>
-->
<script>
function fun1()
{
 document.location='acrepomnu.html';
}
function fundup()
{
 document.location='dupmnu.html';
}

</script>
