<!---
<html>
<head>
<?PHP
// print "<title>$pg_title</title>";
?>
<link rel="stylesheet" href="style/app1.css" type="text/css">
<script src="util/javascript/sorttable.js"></script>
</head>
<body >
<div id="banner">
<table border="0" cellspacing="0" cellpadding="8" width="100%">
<tr>
<td>
<? print "<a href=\"$user_home\"><img src=\"style/protonlogo.png\" alt=\"Proton Logo\" border=0></a>"; ?>
</td>
<td>
<div id="banner" class="right">
<?PHP
echo "<a href=\"$PHP_SELF?fuseaction=".$XFA["logout"]."\">Logout</a>";
?>
<p>
</div>
</td>
</tr>
</table>
</div>
--->
<?
if ($isAdmin == 'Y') {
$user_home = $PHP_SELF.'?fuseaction=admin.main';
} elseif ($gid == $isService) {
$user_home = $PHP_SELF.'?fuseaction=service.main';
} elseif ($gid == $isSales) {
$user_home = $PHP_SELF.'?fuseaction=sales.main';
} elseif ($gid == $isWarehouse) {
$user_home = $PHP_SELF.'?fuseaction=inventory.main';
} elseif ($gid == $isSalesAdmin) {
$user_home = $PHP_SELF.'?fuseaction=salesadmin.main';
}
?>
<html>
<head>
<title><? echo $pg_title; ?></title>
<script src="util/javascript/nst_formUtils.js"></script>
<script src="util/javascript/sorttable.js"></script>
<link rel="stylesheet" href="style/app1.css" type="text/css">
</head>
<body class="composite">
<!---<body class="composite" >
<div id="banner">
<table border="0" cellspacing="0" cellpadding="8" width="100%">
<tr>
<td>
<!---<h1><a href="http://proton.com.sg/" id="nst"><span class="alt">Proton</span></a> </h1>--->
</td>
<td>
<div align="right" id="login">
Logged in: <strong class="username"><? echo "$SESSION_UNAME"; ?></strong> |
<?PHP echo "<a href=\"$PHP_SELF?fuseaction=".$XFA["help"]."&SESSION_UNAME=$SESSION_UNAME\">Help</a>";?> |
<?PHP echo "<a href=\"$PHP_SELF?fuseaction=".$XFA["logout"]."&SESSION_UNAME=$SESSION_UNAME\">Logout</a>";?>
</div>
</td>
</tr>
</table>
</div>
<!--- header --->
<div class="tabs">
<table border="0" cellspacing="2" cellpadding="2">
<tr>
<?
if($isAdmin == 'Y') {
echo "<th>";
echo "<ul id=nav>A";
echo "<li><a href=\"$PHP_SELF?fuseaction=".$XFA["admin"]."&SESSION_UNAME=$SESSION_UNAME\">Administration</a>";
echo "<ul>";
echo "<li><a href=\"$PHP_SELF?fuseaction=".$XFA["viewUserGroupList"]."&SESSION_UNAME=$SESSION_UNAME\">User Groups</a></li>";
echo "<li><a href=\"$PHP_SELF?fuseaction=".$XFA["viewUserList"]."&SESSION_UNAME=$SESSION_UNAME\">User</a></li>";
echo "<li><a href=\"$PHP_SELF?fuseaction=".$XFA["viewServiceItemsList"]."&SESSION_UNAME=$SESSION_UNAME\">Service Items</a></li>";
echo "<li><a href=\"$PHP_SELF?fuseaction=".$XFA["viewGST"]."&SESSION_UNAME=$SESSION_UNAME\">GST</a></li>";
echo "<li><a href=\"$PHP_SELF?fuseaction=".$XFA["viewLabourFees"]."&SESSION_UNAME=$SESSION_UNAME\">Labour Fees</a></li>";
echo "<li><a href=\"$PHP_SELF?fuseaction=".$XFA["viewInternalLabourFees"]."&SESSION_UNAME=$SESSION_UNAME\">Internal Labour Fees</a></li>";
echo "<li><a href=\"$PHP_SELF?fuseaction=".$XFA["productslist"]."&SESSION_UNAME=$SESSION_UNAME\">Products</a></li>";
echo "<li><a href=\"$PHP_SELF?fuseaction=".$XFA["accessorieslist"]."&SESSION_UNAME=$SESSION_UNAME\">Accessories</a></li>";
echo "<li><a href=\"$PHP_SELF?fuseaction=".$XFA["viewSalesID"]."&SESSION_UNAME=$SESSION_UNAME\">Reset Sales ID</a></li>";
echo "<li><a href=\"$PHP_SELF?fuseaction=".$XFA["listDiscCat"]."&SESSION_UNAME=$SESSION_UNAME\">List Discount Category</a></li>";
echo "</ul>";
echo "</li>";
echo "</ul>";
echo "</th>";
}
if($isAdmin == 'Y') {
echo "<th>";
echo "<ul id=nav>B";
echo "<li><a href=\"$PHP_SELF?fuseaction=".$XFA["marketing"]."&SESSION_UNAME=$SESSION_UNAME\">Marketing</a></li>";
echo "</ul>";
echo "<th>";
}
if(($isGroup == 'Warehouse') OR ($isAdmin == 'Y')) {
echo "<th>";
echo "<ul id=nav>";
echo "<li><a href=\"$PHP_SELF?fuseaction=".$XFA["inventory"]."&SESSION_UNAME=$SESSION_UNAME\">Inventory</a></li>";
echo "</ul>";
echo "</th>";
}
if(($isGroup == 'SalesAdmin') OR ($isAdmin == 'Y')){
echo "<th>";
echo "<ul id=nav>";
echo "<li><a href=\"$PHP_SELF?fuseaction=".$XFA["salesadmin"]."&SESSION_UNAME=$SESSION_UNAME\">Sales Admin</a>";
echo "</li>";
echo "</ul>";
echo "</th>";
}
if($isGroup == 'Sales') {
echo "<th>";
echo "<ul id=nav>";
echo "<li><a href=\"$PHP_SELF?fuseaction=".$XFA["sales"]."&SESSION_UNAME=$SESSION_UNAME\">Sales</a>";
echo "</li>";
echo "</ul>";
echo "</th>";
}
if($isGroup == 'Service') {
echo "<th>";
echo "<ul id=nav>";
echo "<li>";
echo "<a href=\"$PHP_SELF?fuseaction=".$XFA["service"]."&SESSION_UNAME=$SESSION_UNAME\">Service</a>";
echo "</li>";
echo "</ul>";
echo "</th>";
}
?>
</tr>
</table>
</div>
<!--- end header --->