<?php
header("Content-type: text/html; charset=windows-1256");

//Report Version For Tiba
session_start();
if($_SESSION['dbName']==""){
header("location:../index.php");
}

print <<< HERE
<HTML>
<HEAD>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1256" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<TITLE> User Access Report </TITLE>

<style type="text/css">

table.master th { font-size: 14px; 
                  font-weight: bold;
                  font-family:Times-New-Roman;
                }				 
table.master td { font-size: 14px; 
                  font-family:Times-New-Roman;
                 }
table.detail th { font-size: 13px; 
                  font-weight: bold;
                  font-family:Times-New-Roman;
				  border-top:1px solid black;
				  border-bottom:1px solid black;
				  border-left:1px solid black;
                }				 
				 
table.detail td { font-size: 12px; 
                  font-family:Times-New-Roman;
				  border-left:1px solid black;
                 }				 
				 
				
				 

</style>


</HEAD>

<BODY>
HERE;

include("config.inc.php");


$connection = mysql_connect($config['dbServer'],$config['dbUser'],$config['dbPass'],true,65536)	or die("Could not connect to DB");
mysql_select_db($_SESSION['dbName'],$connection) or die("Could not find DB");

$connection1 = mysql_connect($config['dbServer'],$config['dbUser'],$config['dbPass'],true,65536)	or die("Could not connect to DB");
mysql_select_db($config['dbName_log'],$connection1) or die("Could not find DB");


//mysql_set_charset('utf8',$connection);

//Read From Setup Table							
$querysetup= " select DecimalBase, DecimalBase1, DecimalBase2, base1, base2, grid_color1, grid_color2, Setup_vatno, ".
             " Date_Format(Setup_VatStartDate,'%Y%m%d') As Setup_VatStartDate, ifNull(Setup_VatPercentage,0) As Setup_VatPercentage, ".
			 " Company_Name, Company_NameF, Company_Memo, Company_MemoF, Company_Capital, Company_CapitalF ".
			 " from setup ";
$resultsetup=mysql_query($querysetup,$connection) or die(mysql_error());
while($rowsetup=mysql_fetch_array($resultsetup)){
	extract($rowsetup);
}

//Read From PurchaseSetup Table
$queryPurchaseSetup="Select PurchaseTTC From PurchaseSetup";
$resultPurchaseSetup=mysql_query($queryPurchaseSetup,$connection) or die(mysql_error());
while($rowPurchaseSetup=mysql_fetch_array($resultPurchaseSetup)){
	extract($rowPurchaseSetup);
}

//Read From Module Table
$querymodule=" Select ifNull(Module_AdditionalTaxes,0) As Module_AdditionalTaxes, ifNull(Module_ShowInvoiceAging,0) As Module_ShowInvoiceAging, ".
             " ifNull(Module_ShowLayoutProj,0) As Module_ShowLayoutProj, ifNull(Module_ShowLayoutCost,0) As Module_ShowLayoutCost ".
			 " From Module ";
$resultmodule=mysql_query($querymodule,$connection) or die(mysql_error());
while($rowmodule=mysql_fetch_array($resultmodule)){
	extract($rowmodule);
}

	

$TotalQty = 0;

if($_GET['user_code'] != '')
{
	$query = " Select Purchase_ID, Purchase_Reference, Date_Format(Purchase_Date,'%d/%m/%Y') As Purchase_Date, Purchase_Date As InvoiceDate, ".
			 " Date_Format(Journaldt_valuedate,'%d/%m/%Y') As MaturityDate, Purchases.Currency_code As CurrencyCode, Purchase_ChargeAccountAmt AS ChargeAccountAmt,".
			 " Purchase_Remark, Purchase_InvoiceNo, Journal.Journal_RefGovernment, Purchases.Project_Code As ProjectCode, Purchases.Costcent_code As CostcentCode,  ".
			 " Purchases.Supplier_code As SupplierCode,	Suppliers.Ledger_name As SupplierName,	Suppliers.Ledger_nameF As SupplierNameF, Supplier_PaymentTerms,  ".
			 " Supplier_Representative As SupplierContact, Supplier_Address As SupplierAddress, Supplier_VAT, Supplier_VatNo As SupplierVatNo,  ".
			 " Round(Purchase_Taxable, ".$DecimalBase.") As PurchaseTaxable, Round(Purchase_NoneTaxable, ".$DecimalBase."), ".
			 " Round(Purchase_Total, ".$DecimalBase.") As GrossTotal, ".
			 " Round(Purchase_DiscountPer, ".$DecimalBase.") As PurchaseDiscountPer, Round(Purchase_DiscountAmount, ".$DecimalBase.") As PurchaseDiscountAmount,  ".
			 " Round(Purchase_VAT, ".$DecimalBase.") As Purchase_VAT, Round(Purchase_VATBase1, ".$DecimalBase.") As Purchase_VATBase1, ".
			 " Round((Purchase_Total + IfNull(Purchase_VAT,0) - IfNull(Purchase_DiscountAmount,0) + (ifNull(Purchase_Tax1,0) + ifNull(Purchase_Tax2,0) + ifNull(Purchase_Tax3,0) + ifNull(Purchase_Tax4,0) + ifNull(Purchase_Tax5,0))), ".$DecimalBase.") As Purchase_NetTotal,  ".
			 " Round((Purchase_TotalBase2 + IfNull(Purchase_VATBase2,0) - IfNull(Purchase_DiscountBase2,0) + (ifNull(Purchase_Tax1Base2,0) + ifNull(Purchase_Tax2Base2,0) + ifNull(Purchase_Tax3Base2,0) + ifNull(Purchase_Tax4Base2,0) + ifNull(Purchase_Tax5Base2,0))), ".$DecimalBase.") As Purchase_NetTotalBase2,  ".
			 " Round((Purchase_TotalBase1 + IfNull(Purchase_VATBase1,0) - IfNull(Purchase_DiscountBase1,0) + (ifNull(Purchase_Tax1Base1,0) + ifNull(Purchase_Tax2Base1,0) + ifNull(Purchase_Tax3Base1,0) + ifNull(Purchase_Tax4Base1,0) + ifNull(Purchase_Tax5Base1,0))), ".$DecimalBase.") As Purchase_NetTotalBase1,  ".
			 " Round(Purchase_Charges, ".$DecimalBase.") As PurchaseCharges, Round(Purchase_ChargesBase1, ".$DecimalBase.") As PurchaseChargesBase1, Round(Purchase_ChargesBase2, ".$DecimalBase.") As PurchaseChargesBase2, ".
			 " Purchase_DebitAccount As PurchaseDebitAccount, if(Purchase_Mode=0, 'Credit', if(Purchase_Mode=1,'Cash', 'Check')) As PurchaseMode, ".
			 " Round((ifNull(Purchase_Tax1,0) + ifNull(Purchase_Tax2,0) + ifNull(Purchase_Tax3,0) + ifNull(Purchase_Tax4,0) + ifNull(Purchase_Tax5,0)), ".$DecimalBase.") As Purchase_TotalTaxes  ".
			 " From Purchases ".
			 " Left Join Suppliers on Purchases.Supplier_code = Suppliers.Ledger_Number ".
			 " Left Join Journal on Purchases.Journal_Id = Journal.Journal_Id ";
			
			 
		 
	$result=mysql_query($query,$connection) or die(mysql_error());
	while($rows=mysql_fetch_array($result)){
		extract($rows);
	}
	
		

	
	echo "<table border='0' width='635px' cellspacing=0 cellpadding=0 class='master' style='table-layout:fixed;' >
		  <col width=250>
		  <col width=160>
		  <col width=225>";
	echo "<tr>";
	echo "	<td align='left' valign='top' style='font-size:18px; font-style:italic; font-weight:bold;'>".nl2br($Company_Name)."</td>";
	
	if($_GET['PLang'] != 'AR') {
		echo "	<td align='center' rowspan='3'><img src='LogoFile.php' width='140px' height='80px' /></td>";
	} else {
		echo "	<td align='center' rowspan='3'><img src='LogoFile1.php' width='140px' height='80px' /></td>";
	}	
	
	echo "	<td align='right' valign='top' style='font-size:18px; font-style:italic; font-weight:bold;'>".nl2br($Company_NameF)."</td>";
	echo "</tr>";
	echo "<tr>";
	echo "	<td align='left' style='font-size:11px;'>".nl2br($Company_Capital)."</td>";
	echo "	<td align='right' style='font-size:11px;'>".nl2br($Company_CapitalF)."</td>";
	echo "</tr>";
	echo "<tr>";
	echo "	<td align='left' style='font-size:10px;'>".nl2br($Company_Memo)."</td>";
	echo "	<td align='right' style='font-size:10px;'>".nl2br($Company_MemoF)."</td>";
	echo "</tr>";
	echo "<tr><td align='left' colspan='3' style='height:20px;'>&nbsp;</td></tr>";
	
	if($_GET['PLang'] != 'AR') {
		echo "<tr>";
		echo "	<td align='left' colspan='2' style='font-size:14px; font-weight:bold; border-bottom:3px solid black;'>VAT NUMBER: ".$Setup_vatno."</td>";
		echo "	<td align='center' style='font-size:14px; font-style:italic;'>USER ACCESS FULL REPORT</td>";
		echo "</tr>";
	} else {
		echo "<tr>";
		echo "	<td align='left' colspan='2' style='font-size:14px; font-weight:bold; border-bottom:3px solid black;'>VAT NUMBER: ".$Setup_vatno."</td>";
		echo "	<td align='center' style='font-size:18px;'>شراء</td>";
		echo "</tr>";
	}
	
	echo "</table>";
	
	if($_GET['PLang'] != 'AR') {
	
	} else {
		echo "<table border='0' width='635' cellspacing=0 cellpadding=0 class='master' style='table-layout:fixed;' dir='rtl'>
			  <col width=635>";
		
		echo "<tr>";
		echo "	<td><div style='position:relative; float:left; border:1px solid black; width:250px; margin-top:5px;'>";
		echo "			<table border='0' width='250px' cellspacing=0 cellpadding=0 style='table-layout:fixed;' >
						<col width=70>
						<col width=80>
						<col width=100>";
		echo "			<tr><td align='right' style='font-size:13px; font-weight:bold;'>رقم:</td>";
		echo "				<td align='right' colspan='2' style='font-size:13px; font-weight:bold; padding-left:3px;'>".$Purchase_Reference."</td></tr>";
		echo "			<tr><td align='right' style='font-size:13px; font-weight:bold;'>التاريخ:</td>";	
		echo "				<td align='right' style='font-size:13px; font-weight:bold; padding-left:3px;'>".$Purchase_Date."</td>";	
		echo "				<td align='center' style='font-size:13px; font-weight:bold;'>&nbsp;</td>";	
		echo "			</tr>";
		echo "			<tr><td align='right' style='font-size:13px; font-weight:bold;'>عرض رقم:</td>";
		echo "				<td align='right' colspan='2' style='font-size:13px; font-weight:bold;'>&nbsp;</td></tr>";
		echo "			<tr><td align='right' style='font-size:13px; font-weight:bold;'>عرض رقم:</td>";	
		echo "				<td align='right' colspan='2' style='font-size:13px; font-weight:bold;'>&nbsp;</td></tr>";
		echo "			</tr>";
		echo "			</table>";
		echo "		</div>";
		echo "		<div style='position:relative; float:right; border:1px solid black; width:350px; min-height:65px; margin-top:5px;'>";
		echo "			<table border='0' width='350px' cellspacing=0 cellpadding=0 style='table-layout:fixed;' >
						<col width=350>";
		echo "			<tr><td align='right' style='font-size:13px; font-weight:bold;'>".$SupplierNameF."</td></tr>";	
		echo "			<tr><td align='right' style='font-size:12px; font-weight:bold;'>".$SupplierAddress."</td></tr>";	
		echo "			<tr><td align='right' style='font-size:12px; font-weight:bold;'>رقم حساب: ".$SupplierCode."&nbsp;&nbsp;&nbsp;عملة: ".$CurrencyCode."</td></tr>";	
		echo "			</table>";
		echo "		</div>";
		echo "	</td>";
		echo "</tr>";
		
		echo "</table>";
	}

	
	}
	$query_users = "select * from users where User_account='".$_GET['user_code']."'";
    //echo $query_users; exit;
	$result_users=mysql_query($query_users,$connection1) or die(mysql_error());
	//echo $result_users; exit;
	$num = mysql_num_rows($result_users);
	//echo $num; exit;
	$rows_users = mysql_fetch_array($result_users);
	extract($rows_users);
	echo "<div style='border: 2px solid black; margin-top: 10px; padding: 4px; font-size: 18px;font-weight:bold; text-align: center; width: 600px'>
	      User Information
	     </div>
		 <div style='border: 2px solid black; border-top: none; padding: 7px; font-size: 10px; width: 594px'>
		 <table width='100%'>
		 <tr>
		 <td style='width:150px'><b><u>User Code:</u></b></td>
		 <td style='width:150px'>".$User_account."</td>
		 <td><b><u>Username:</u></b></td>
		 <td>".$User_Name."</td>
		 </tr>
		 <tr>
		 <td style='width:150px'><b><u>Full Name:</u></b></td>
		 <td style='width:150px'>".$FullName."</td>
		 <td style='width:150px'><b><u>Password Expiry Date:</u></b></td>
		 <td>";
		 if($user_expirydate == '0000-00-00' || $user_expirydate == '' || $user_expirydate == null)
		 {
		    echo "None";
		 }
		 else
		 {
		    echo $user_expirydate;
		 }
		 echo "</td>
		 </tr>
		 <tr>
		 <td><b><u>Account Deactivated?:</u></b></td>
		 <td>";
		 if($user_deactivate == 1)
		 {
		    echo "Yes";
		 }
		 else
		 {
		    echo "No";
		 }
		 echo "</td>
		 <td><b><u>Date Deactivated (if so):</u></b></td>
		 <td>";
		 if($user_deactivate == 1)
		 {
		    echo $user_deactivate_date;
		 }
		 else
		 {
		    echo "Not Deactivated";
		 }
		 echo "</td>
		 </tr>
		 <tr>
		 <td><b><u>Is Group?:</u></b></td>
		 <td>";
		  if($User_IsGroup == 1)
		 {
		    echo "Yes";
		 }
		 else
		 {
		    echo "No";
		 }
		 echo "</td>
		 </tr>
		 </table>
		 </div>
		 <div style='border: 2px solid black; margin-top: 15px; padding: 4px; font-size: 18px;font-weight:bold; text-align: center; width: 600px'>
	      User Access
	     </div>";
		 $queryschema="select concat(CompanyName,'_',Diryear) as txtSchemaAssigned from ".$_SESSION['dbLabel'].".listuserdir where usercode='".$user_code."' order by concat(CompanyName,Diryear)";
	//echo $queryschema; exit;
	$result_Assignedschemas=mysql_query($queryschema,$connection);
	$row=mysql_fetch_assoc($result_Assignedschemas);
	extract($row);
		 $querylog="select  FA_AccountType as FA_AccountType1,FA_AccountTypeApp as FA_AccountTypeApp,FA_AccountTypeMod as FA_AccountTypeMod,FA_AccountTypeDel as FA_AccountTypeDel,".
		" FA_FixedAssets as FA_FixedAssets1,FA_FixedAssetsApp as FA_FixedAssetsApp1,FA_FixedAssetsMod as FA_FixedAssetsMod,FA_FixedAssetsDel as FA_FixedAssetsDel,".
		" FI_Area as FI_Area1,FI_AreaApp as FI_AreaApp,FI_AreaMod as FI_AreaMod,FI_AreaDel as FI_AreaDel,".
		" FA_Banks as FA_Banks1,FA_BankApp as FA_BankApp,FA_BankMod as FA_BankMod,FA_BankDel as FA_BankDel,".
		" FA_Budget as FA_Budget1,FA_BudgetApp as FA_BudgetApp,FA_BudgetMod as FA_BudgetMod,FA_BudgetDel as FA_BudgetDel,".
		" FA_Charging as FA_Charging1,FA_ChargingApp as FA_ChargingApp,FA_ChargingMod as FA_ChargingMod,FA_ChargingDel as FA_ChargingDel,".
		" FA_Contra as FA_Contra1,FA_ContraApp as FA_ContraApp,FA_ContraMod as FA_ContraMod,FA_ContraDel as FA_ContraDel,".
		" FA_Costcenter as FA_Costcenter1,FA_CostcenterApp as FA_CostcenterApp,FA_CostcenterMod  as FA_CostcenterMod,FA_CostcenterDel  as FA_CostcenterDel,".
		" FA_CreditNote as FA_CreditNote1,FA_CreditNoteApp as FA_CreditNoteApp,FA_CreditNoteMod as FA_CreditNoteMod,FA_CreditNoteDel as FA_CreditNoteDel,".
		" FA_Currency as FA_Currency1,FA_CurrencyApp as FA_CurrencyApp,FA_CurrencyMod as FA_CurrencyMod,FA_CurrencyDel as FA_CurrencyDel,".
		" FA_DebitNote  as FA_DebitNote1,FA_DebitNoteApp as FA_DebitNoteApp,FA_DebitNoteMod as FA_DebitNoteMod,FA_DebitNoteDel as FA_DebitNoteDel,".
		" RA_FinancialAccounts as RA_FinancialAccounts1,".
		" FA_Journal as FA_Journal1,FA_JournalApp as FA_JournalApp,FA_JournalMod as FA_JournalMod,FA_JournalDel as FA_JournalDel,".
		" FA_InvoicesAllocation as FA_InvoicesAllocation1,".
		" FA_Ledger as FA_Ledger1,FA_LedgerApp as FA_LedgerApp,FA_LedgerMod as FA_LedgerMod,FA_LedgerDel as FA_LedgerDel,".
		" FA_Payment as FA_Payment1,FA_PaymentApp as FA_PaymentApp,FA_PaymentMod as FA_PaymentMod,FA_PaymentDel as FA_PaymentDel,".
		" FA_PaymentRqst as FA_PaymentRqst1,FA_PaymentRqstApp as FA_PaymentRqstApp,FA_PaymentRqstMod as FA_PaymentRqstMod,FA_PaymentRqstDel as FA_PaymentRqstDel,".
		" FA_Project as FA_Project1,FA_ProjectApp as FA_ProjectApp,FA_ProjectMod as FA_ProjectMod,FA_ProjectDel as FA_ProjectDel,".
		" FA_PurchaseJV as FA_PurchaseJV1,FA_PurchaseJVApp as FA_PurchaseJVApp,FA_PurchaseJVMod as FA_PurchaseJVMod,FA_PurchaseJVDel as FA_PurchaseJVDel,".
		" FA_Receipt as FA_Receipt1,FA_ReceiptApp as FA_ReceiptApp,FA_ReceiptMod as FA_ReceiptMod,FA_ReceiptDel as FA_ReceiptDel,".
		" FA_ReportOptions as FA_ReportOptions1,".
		" FA_SalesJV as FA_SalesJV1,FA_SalesJVApp as FA_SalesJVApp,FA_SalesJVMod as FA_SalesJVMod,FA_SalesJVDel as FA_SalesJVDel,".
		" FA_transactionpaymnetrqst as FA_transactionpaymnetrqst1,FA_transactionpaymnetrqstApp as FA_transactionpaymnetrqstApp,FA_transactionpaymnetrqstMod as FA_transactionpaymnetrqstMod,FA_transactionpaymnetrqstDel as FA_transactionpaymnetrqstDel,".
		" FI_Adjustment as FI_Adjustment1,FI_AdjustmentApp as FI_AdjustmentApp,FI_AdjustmentMod as FI_AdjustmentMod,FI_AdjustmentDel as FI_AdjustmentDel,".
		" FI_FBudgetInv as FI_BudgetInv1,FI_BudgetInvApp as FI_BudgetInvApp,FI_BudgetInvMod as FI_BudgetInvMod,FI_BudgetInvDel as FI_BudgetInvDel,".
		" FI_FBudgetInvAmendment as FI_FBudgetInvAmendment1,FI_BudgetInvAmendmentApp as FI_BudgetInvAmendmentApp,FI_BudgetInvAmendmentMod as FI_BudgetInvAmendmentMod,FI_BudgetInvAmendmentDel as FI_BudgetInvAmendmentDel,".
		" FI_FBudgetInvSetup as FI_FBudgetInvSetup1,FI_BudgetInvSetupApp as FI_BudgetInvSetupApp,FI_BudgetInvSetupMod as FI_BudgetInvSetupMod,FI_BudgetInvSetupDel as FI_BudgetInvSetupDel,".
		" FI_Category as FI_Category1,FI_CategoryApp as FI_CategoryApp,FI_CategoryMod as FI_CategoryMod,FI_CategoryDel as FI_CategoryDel,".
		" FI_CEPtable as FI_CEPtable1,FI_CEPtableApp as FI_CEPtableApp,FI_CEPtableMod as FI_CEPtableMod,FI_CEPtableDel as FI_CEPtableDel,".
		" FI_Charges as FI_Charges1,FI_ChargesApp as FI_ChargesApp,FI_ChargesMod as FI_ChargesMod,FI_ChargesDel as FI_ChargesDel,".
		" Clients as Clients1,ClientsApp as ClientApp,ClientsMod as ClientMod,ClientsDel as ClientDel,".
		" FI_ClientGrp as FI_ClientGrp1,FI_ClientGrpApp as FI_ClientGrpApp,FI_ClientGrpMod as FI_ClientGrpMod,FI_ClientGrpDel as FI_ClientGrpDel,".
		" FI_Delivery as FI_Delivery1,FI_DeliveryApp as FI_DeliveryApp,FI_DeliveryMod as FI_DeliveryMod,FI_DeliveryDel as FI_DeliveryDel,".
		" FI_Grouping as FI_Grouping1,FI_GroupingApp as FI_GroupingApp,FI_GroupingMod as FI_GroupingMod,FI_GroupingDel as FI_GroupingDel,".
		" FI_Items as FI_Items1,FI_ItemsApp as FI_ItemsApp,FI_ItemsMod as FI_ItemsMod,FI_ItemsDel as FI_ItemsDel,".
		" FI_Production as FI_Production1,FI_ProductionApp as FI_ProductionApp,FI_ProductionMod as FI_ProductionMod,FI_ProductionDel as FI_ProductionDel,".
		" FI_ProductionReq as FI_ProductionReq1,FI_ProductionReqApp as FI_ProductionReqApp,FI_ProductionReqMod as FI_ProductionReqMod,FI_ProductionReqDel as FI_ProductionReqDel,".
		" FI_ProductionTemp as FI_ProductionTemp1,FI_ProductionTempApp as FI_ProductionTempApp,FI_ProductionTempMod as FI_ProductionTempMod,FI_ProductionTempDel as FI_ProductionTempDel,".
		" FI_Purchases as FI_Purchases1,FI_PurchasesApp as FI_PurchasesApp,FI_PurchasesMod as FI_PurchasesMod,FI_PurchasesDel as FI_PurchasesDel,".
		" FI_Grn as FI_Grn1,FI_GrnApp as FI_GrnApp,FI_GrnMod as FI_GrnMod,FI_GrnDel as FI_GrnDel,".
		" FI_ReturnGrn as FI_ReturnGrn1,FI_ReturnGrnApp as FI_ReturnGrnApp,FI_ReturnGrnMod as FI_ReturnGrnMod,FI_ReturnGrnDel as FI_ReturnGrnDel,".
		" FI_ReportOptions as FI_ReportOptions1,".
		" FI_PurchaseOrder as FI_PurchaseOrder1,FI_PurchaseOrderApp as FI_PurchaseOrderApp,FI_PurchaseOrderMod as FI_PurchaseOrderMod,FI_PurchaseOrderDel as FI_PurchaseOrderDel,".
		" FI_PurchaseRequest as FI_PurchaseRequest1,FI_PurchaseRequestApp as FI_PurchaseRequestApp,FI_PurchaseRequestMod as FI_PurchaseRequestMod,FI_PurchaseRequestDel as FI_PurchaseRequestDel,".
		" FI_ReturnDelivery as FI_ReturnDelivery1,FI_ReturnDeliveryApp as FI_ReturnDeliveryApp,FI_ReturnDeliveryMod as FI_ReturnDeliveryMod,FI_ReturnDeliveryDel as FI_ReturnDeliveryDel,".
		" FI_ReturnPurchase as FI_ReturnPurchase1,FI_ReturnPurchaseApp as FI_ReturnPurchaseApp,FI_ReturnPurchaseMod as FI_ReturnPurchaseMod,FI_ReturnPurchaseDel as FI_ReturnPurchaseDel,".
		" FI_ReturnRma as FI_ReturnRma1,FI_ReturnRmaApp as FI_ReturnRmaApp,FI_ReturnRmaMod as FI_ReturnRmaMod,FI_ReturnRmaDel as FI_ReturnRmaDel,".
		" FI_ReturnSales as FI_ReturnSales1,FI_ReturnSalesApp as FI_ReturnSalesApp,FI_ReturnSalesMod as FI_ReturnSalesMod,FI_ReturnSalesDel as FI_ReturnSalesDel,".
		" FI_RmTransfer as FI_RRmTransfer1,FI_RmTransferApp as FI_RmTransferApp,FI_RmTransferMod as FI_RmTransferMod,FI_IRmTransferDel as FI_IRmTransferDel,".
		" FI_Rma as FI_Rma1,FI_RmaApp as FI_RmaApp,FI_RmaMod as FI_RmaMod,FI_RmaDel as FI_RmaDel,".
		" FI_Sales as FI_Sales1,FI_SalesApp as FI_SalesApp,FI_SalesMod as FI_SalesMod,FI_SalesDel as FI_SalesDel,".
		" FI_SalesOrder as FI_SalesOrder1,FI_SalesOrderApp as FI_SalesOrderApp,FI_SalesOrderMod as FI_SalesOrderMod,FI_SalesOrderDel as FI_SalesOrderDel,".
		" FI_Salesmen as FI_Salesmen1,FI_SalesmenApp as FI_SalesmenApp,FI_SalesmenMod as FI_SalesmenMod,FI_SalesmenDel as FI_SalesmenDel,".
		" FI_Shipment as FI_Shipment1,FI_ShipmentMod as FI_ShipmentMod,FI_ShipmentDel as FI_ShipmentDel,".
		" FI_stockeval as FI_stockeval1,FI_stockevalApp as FI_stockevalApp,FI_stockevalMod as FI_stockevalMod,FI_stockevalDel as FI_stockevalDel,".
		" FI_SubGrouping as FI_SubGrouping1,FI_SubGroupingApp as FI_SubGroupingApp,FI_SubGroupingMod as FI_SubGroupingMod,FI_SubGroupingDel as FI_SubGroupingDel,".
		" FI_Suppliers as FI_Suppliers1,FI_SuppliersApp as FI_SuppliersApp,FI_SuppliersMod as FI_SuppliersMod,FI_SuppliersDel as FI_SuppliersDel,".
		" FI_SupplierGrp as FI_SupplierGrp1,FI_SupplierGrpApp as FI_SupplierGrpApp,FI_SupplierGrpMod as FI_SupplierGrpMod,FI_SupplierGrpDel as FI_SupplierGrpDel,".
		" FI_Transfer as FI_Transfer1,FI_TransferApp as FI_TransferApp,FI_TransferMod as FI_TransferMod,FI_TransferDel as FI_TransferDel,".
		" FI_ITransfer as FI_ITransfer1,FI_ITransferApp as FI_ITransferApp,FI_ITransferMod as FI_ITransferMod,FI_ITransferDel as FI_ITransferDel,".
		" FI_Transportation as FI_Transportation1,FI_TransportationApp as FI_TransportationApp,FI_TransportationMod as FI_TransportationMod,FI_TransportationDel as FI_TransportationDel,".
		" FI_Warehouse as FI_Warehouse1,FI_WarehouseApp as FI_WarehouseApp,FI_WarehouseMod as FI_WarehouseMod,FI_WarehouseDel as FI_WarehouseDel,".
		" FI_WayBill as FI_WayBill1,FI_WayBillApp as FI_WayBillApp,FI_WayBillMod as FI_WayBillMod,FI_WayBillDel as FI_WayBillDel,".
		" FP_Attendance as FP_Attendance1,payroll as payroll1,FP_AttendanceApp as FP_AttendanceApp,FP_AttendanceMod as FP_AttendanceMod,FP_AttendanceDel as FP_AttendanceDel,".
		" FP_Bonus as FP_Bonus1,FP_BonusApp as FP_BonusApp,FP_BonusMod as FP_BonusMod,FP_BonusDel as FP_BonusDel,".
		" FP_Dept as FP_Dept1,FP_DeptApp as FP_DeptApp,FP_DeptMod as FP_DeptMod,FP_DeptDel as FP_DeptDel,".
		" FP_Employee as FP_Employee1,FP_EmployeeApp as FP_EmployeeApp,FP_EmployeeMod as FP_EmployeeMod,FP_EmployeeDel as FP_EmployeeDel,".
		" FP_Generate as FP_Generate1,FP_GenerateApp as FP_GenerateApp,FP_GenerateMod as FP_GenerateMod,FP_GenerateDel as FP_GenerateDel,".
		" FP_Grades as FP_Grades1,FP_GradesApp as FP_GradesApp,FP_GradesMod as FP_GradesMod,FP_GradesDel as FP_GradesDel,".
		" FP_Insurance as FP_Insurance1,FP_InsuranceApp as FP_InsuranceApp,FP_InsuranceMod as FP_InsuranceMod,FP_InsuranceDel as FP_InsuranceDel,".
		" FP_Loan as FP_Loan1,FP_LoanApp as FP_LoanApp,FP_LoanMod as FP_LoanMod,FP_LoanDel as FP_LoanDel,".
		" FP_Parameters as FP_Parameters1,FP_ParametersApp as FP_ParametersApp,FP_ParametersMod as FP_ParametersMod,FP_ParametersDel as FP_ParametersDel,".
		" FP_Fpreemp as FP_Fpreemp1,FP_preempApp as FP_preempApp,FP_preempMod as FP_preempMod,FP_preempDel as FP_preempDel,".
		" FP_Project as FP_Project1,FP_ProjectApp as FP_ProjectApp,FP_ProjectMod as FP_ProjectMod,FP_ProjectDel as FP_ProjectDel,".
		" FP_ReportOptions as FP_ReportOptions1,".
		" FP_Vacation as FP_Vacation1,FP_VacationApp as FP_VacationApp,FP_VacationMod as FP_VacationMod,FP_VacationDel as FP_VacationDel,".
		" FI_IN as FI_IN1,FI_INDel,FI_INMod,FI_OUT as FI_OUT1,FI_OUTDel,FI_OUTMod,FI_INapp,FI_Outapp,".
		" RA_StatementofAccount as RA_StatementofAccount1,".
		" RA_Trialbalance as RA_Trialbalance1,".
		" RA_StatementofProject as RA_StatementofProject1,".
		" RA_StatmentofCostcenter as RA_StatmentofCostcenter1,".
		" RA_Aging as RA_Aging1,".
		" RA_AgingOfSupplierInvoices as RA_AgingOfSupplierInvoices1,".
		" RA_AgingOfClientInvoices as RA_AgingOfClientInvoices1,".
		" RA_FinancialAccounts as RA_FinancialAccounts1,".
		" FA_DailyReport as FA_DailyReport1,".
		" RA_StatisticsReport as RA_StatisticsReport1,".
		" RA_SalesJV as RA_SalesJV1,".
		" RA_TransactionJV as RA_TransactionJV1,".
		" RA_PurchasesJV as RA_PurchasesJV1,".
		" RA_GeneralLedger as RA_GeneralLedger1,".
		" RI_ListTransaction as RI_ListTransaction1,".
		" RI_Inventory as RI_Inventory1,".
		" RI_SalesReports as RI_SalesReports1,".
		" FI_PorderPurRequest as FI_PorderPurRequest1,".
		" RI_SatementofItems as RI_SatementofItems1,".
		" RI_YearlySales as RI_YearlySales1,".
		" RI_Aging as RI_Aging1,".
		" RI_InvComparisonReport as RI_InvComparisonReport1,".
		" RI_TargetRebateReport as RI_TargetRebateReport1,".
		" RI_PorderReport as RI_PorderReport1,".
		" RI_PurchaseReports as RI_PurchaseReports1,".
		" RI_SalesOrderReport as RI_SalesOrderReport1,RI_GrnReports as RI_GrnReports1,RI_ListofProduction as RI_ListofProduction1,Edatacom as Edatacom1, ".
		" Accounting as Accounting1,Inventory as Inventory1,FA_ExceedBudgetLimit as FA_ExceedBudgetLimit1,FI_RVPostTransaction as FI_RVPostTransaction1,FI_RepostAdjustment as FI_RepostAdjustment1,
		ClientsCreditLimit as ClientsCreditLimit1 ,FI_DeliverySalesPrice as FI_DeliverySalesPrice1,FI_SellingPriceInItems as FI_SellingPriceInItems1,FI_CostPriceInItems as FI_CostPriceInItems1,
		FI_ItemSelling1 as FI_ItemSelling1,FI_ItemSelling2 as FI_ItemSelling2,FI_ItemSelling3 as FI_ItemSelling3,FI_ItemSelling4 as FI_ItemSelling4,FI_ItemSelling5 as FI_ItemSelling5,
		FI_ItemSelling6 as FI_ItemSelling6,FI_PurchaseCategory as FI_PurchaseCategory1,FI_PurchasesVATMod as FI_PurchasesVATMod1,FI_RepostPurchase as FI_RepostPurchase1,
		FI_PorderConfirmed as FI_PorderConfirmed1,FI_DelConfirmedPO as FI_DelConfirmedPO1,FI_ModConfirmedPO as FI_ModConfirmedPO1,FI_RepostPorder as FI_RepostPorder1,PRqst_Approvedby as PRqst_Approvedby1,".
		"FI_ReturnPurchasesVAT as FI_ReturnPurchasesVAT1,FI_RepostPReturn as FI_RepostPReturn1,FI_RMAReturnSheetRMA as FI_RMAReturnSheetRMA1,FI_RMAReturnSheetReturnRMA as FI_RMAReturnSheetReturnRMA1,
		FI_RSalesCheckSalesman as FI_RSalesCheckSalesman1,FI_ReturnSalesVAT as FI_ReturnSalesVAT1,FI_ReturnSalesPrintPay as FI_ReturnSalesPrintPay1,FI_RepostSReturn as FI_RepostSReturn1 ,".
		"  FI_RMASheetPending as FI_RMASheetPending1,FI_RMASheetRMA as FI_RMASheetRMA1,FI_SalesCheckSalesman as FI_SalesCheckSalesman1,FI_SalesVAT as FI_SalesVAT1,FI_SalesWithPrice as FI_SalesWithPrice1, ".
		" FI_SalesPrintReceipt as FI_SalesPrintReceipt1,FI_RepostSales as FI_RepostSales1,FI_SOrderWithPrice as FI_SOrderWithPrice1,FI_SorderCanceledQty as FI_SorderCanceledQty1,FI_SorderConfirmed as FI_SorderConfirmed1,  ".
		"  login_disapprovesorder as login_disapprovesorder1 ,Unmodify_SorderPrice as Unmodify_SorderPrice1,Login_AllowPrice as Login_AllowPrice1,FI_SorderRejectUnconfirmed as FI_SorderRejectUnconfirmed1,FI_RepostSorder as FI_RepostSorder1, ".
		" FI_SorderPosQty as FI_SorderPosQty1,FP_DetailGenerateDel as FP_DetailGenerateDel1,FP_AnalysisReport as FP_AnalysisReport1,FP_ArabicReports as FP_ArabicReports1,RP_BankStatement as RP_BankStatement1,RP_CollectionofRepPay as RP_CollectionofRepPay1, ".
		" RP_Employee as RP_Employee1,RP_Evaluation as RP_Evaluation1,FP_Overtime as FP_Overtime1,RP_Query as RP_Query1,RP_TimeSheet as RP_TimeSheet1,Rep_Accounting as Rep_Accounting1,Rep_General as Rep_General1,Rep_Inventory as Rep_Inventory1, ".
		"  RA_Amortization as RA_Amortization1,RA_AvgDays as RA_AvgDays1,RA_TabSheetBudget as RA_TabSheetBudget1,RA_CreditLimitRoster as RA_CreditLimitRoster1,RA_IncomeStmt as RA_IncomeStmt1,RA_IncomeStatBalanceSheet as RA_IncomeStatBalanceSheet1, ".
		"  FA_InterrestRate as FA_InterrestRate1,RA_ListofCheckBills as RA_ListofCheckBills1,RA_ListofDueInvoices as RA_ListofDueInvoices1,RA_ListofRecPayDebCred as RA_ListofRecPayDebCred1,RA_MonthDistBudgetForCast as RA_MonthDistBudgetForCast1, ".
		"  RA_TabSheetPaymentRqst as RA_TabSheetPaymentRqst1,RA_PrePayment as RA_PrePayment1,RA_Query as RA_Query1,RA_AccountReconciliation as RA_AccountReconciliation1,RA_SalesmanComm as RA_SalesmanComm1, ".
		"  RA_unmovedAcounts as RA_unmovedAcounts1,RI_tabsheetbooksbalance as RI_tabsheetbooksbalance1,RI_BudgetInvTabSheet as RI_BudgetInvTabSheet1,RI_TabSheetexport as RI_TabSheetexport1,RI_InvByEntryNo as RI_InvByEntryNo1, ".
		"   RI_InvoiceProject as RI_InvoiceProject1,RI_Invoices as RI_Invoices1,RI_ItemsPerWarehouseSize as RI_ItemsPerWarehouseSize1,RI_ListOfDeliveryQty as RI_ListOfDeliveryQty1,RI_LISTOFDUEITEMS as RI_LISTOFDUEITEMS1,RI_ListofItems as RI_ListofItems1, ".
		"   RI_listofPICharges as RI_listofPICharges1,RI_ListofRMA as RI_ListofRMA1,RI_Packing as RI_Packing1,RI_ProfitperItems as RI_ProfitperItems1,RI_Query as RI_Query1,RI_SalesStatistics as RI_SalesStatistics1,RI_SoldbySalesman as RI_SoldbySalesman1,RI_StkMovement as RI_StkMovement1, ".
		"   RI_TranspPage as RI_TranspPage1,RI_CltSaleR_ShowSalesman as RI_CltSaleR_ShowSalesman1,FC_CashRegister as FC_CashRegister1,FC_CashRegisterApp as FC_CashRegisterApp,FC_CashRegisterMod as FC_CashRegisterMod, ".
		" FC_CashRegisterMod  as FC_CashRegisterMod,FC_CashRegisterDel as FC_CashRegisterDel,FC_AddClient as FC_AddClient1,FC_CashRegisterCoupon as FC_CashRegisterCoupon1,FC_CashRegisterCustomer as FC_CashRegisterCustomer1, ".
		"  FC_CashRegisterCancel as FC_CashRegisterCancel1,FC_CashRegisterCheck as FC_CashRegisterCheck1,FC_ConfirmCustomer as FC_ConfirmCustomer1,FC_CashRegisterCredit as FC_CashRegisterCredit1,FC_CashRegisterDisc as FC_CashRegisterDisc1, ".
		"  Fc_forcingvendor as Fc_forcingvendor1,FC_PermToCancelCash as FC_PermToCancelCash1,FC_CashRegisterPosting as FC_PostingByCashRegister1,Promotion as Promotion1,ReturnQuantity as ReturnQuantity1,FC_CashRegisterScroll as FC_CashRegisterScroll1, ".
		"   FC_CashRegScrollOk as FC_CashRegScrollOk1,FC_CashRegScrollPrint as FC_CashRegScrollPrint1,FC_CashRegisterSearch as FC_CashRegisterSearch1,FC_ShowBtnOpenDrawer as FC_ShowBtnOpenDrawer1,Rc_cashFlow as Rc_cashFlow1, ".
		"   Closing_RetailReport as Closing_RetailReport1,RC_ForcingUserAccount as RC_ForcingUserAccount1,RC_ItemsSizes as RC_ItemsSizes1,RC_ListOfInvoices as RC_ListOfInvoices1,RC_SalesmenCommission as RC_SalesmenCommission1,  ".
		"   FI_Shipmentconfirmed as FI_Shipmentconfirmed1,RA_TabSheetMonthlyAmount as RA_TabSheetMonthlyAmount1,RI_SaleR_ShowSalesman as RI_SaleR_ShowSalesman1,Costcenter as Costcenter1,CostcenterApp as CostcenterApp, ".
		"   CostcenterMod as CostcenterMod,CostcenterDel as CostcenterDel,Currency as Currency1,CurrencyApp as CurrencyApp,CurrencyMod as CurrencyMod,CurrencyDel as CurrencyDel,U_BackupFile as U_BackupFile1,U_CashRegister as U_CashRegister1, ".
		"   U_CloseCompany as U_CloseCompany1,U_CloseYear as U_CloseYear1,FU_ClosingPeriod as FU_ClosingPeriod1,U_DeleteCompany as U_DeleteCompany1,U_DeleteYear as U_DeleteYear1,U_DistributingCostcenter as U_DistributingCostcenter1,U_FillSetupFile as U_FillSetupFile1, ".
		"   U_MergerDataBase as U_MergerDataBase1,U_NewCompany as U_NewCompany1,U_NewYear as U_NewYear1,U_Ports as U_Ports1,U_PostToChecksAndBills as U_PostToChecksAndBills1,U_PostToItems as U_PostToItems1,U_PostToLedger as U_PostToLedger1,U_ReNumberJV as U_ReNumberJV1, ".
		"   U_TransferAccount as U_TransferAccount1,U_TransferItem as U_TransferItem1,FA_FIPAddress as FA_FIPAddress1,FA_IPAddressApp as FA_IPAddressApp,FA_IPAddressMod as FA_IPAddressMod,FA_IPAddressDel as FA_IPAddressDel,approved_level as approved_level1,FI_PurchaseRequestItems as FI_PurchaseRequestItems1, ".
		"   fi_pendingpurchaserequest as fi_pendingpurchaserequest1,fi_pendingtransferrequest as fi_pendingtransferrequest1,fi_pendingadjustmentrequest as fi_pendingadjustmentrequest1,Perc_creditlimit,Fi_POS,RI_Statistics,FI_Statistics,RA_Statistics, FI_SorderAllowConfirmCash, FI_PRequestConfirmed ".
		" ,prequestapproved_level,porderapproved_level,approved_level,transferrequestapproved_level,adjustmentrequestapproved_level,login_preqapprove,login_preqreject,login_prequndproc,login_pordapprove
		,login_pordreject,login_treqapprove,login_treqreject,login_areqapprove,login_areqreject, FI_SetDeliveryStatus, FI_DeliveryStatusFrom, FI_DeliveryStatusTo, FI_DeliveryStatus,
		 Login_Purchase_Pending, Login_location ".
		" from ".$_SESSION['dbLabel'].".login where upper(login_schema)=upper('".$txtSchemaAssigned."') and user_account='".$_GET['user_code']."'";
		//echo $querylog; exit;
//echo $querylog;
$resultlog=mysql_query($querylog) or die(mysql_error());
while($rows=mysql_fetch_array($resultlog)){
	extract($rows);
}
$query="select  Access_UserManager as Access_UserManager1,Access as Access1
					from ".$_SESSION['dbLabel'].".users where  user_account='".$user_code."'";
		$result=mysql_query($query,$connection);
		$rows=mysql_fetch_array($result);
			extract($rows);	
			
		$query="select Access as Access1
					from ".$_SESSION['dbLabel'].".login where upper(login_schema)=upper('".$txtSchemaAssigned."') and user_account='".$user_code."'";
		$result=mysql_query($query,$connection);
		$rows=mysql_fetch_array($result);
			extract($rows);
			$querysetup= " select ifnull(module_project,0) as module_project,ifnull(module_projectdt,0) as module_projectdt,
					  ifnull(module_costcenter,0) as module_costcenter,ifnull(module_costcenterdt,0) as module_costcenterdt,
					  ifnull(Module_Delivery,0) as Module_Delivery,ifnull(Module_production,0) as Module_production,
					  ifnull(Module_Pack,0) as Module_Pack,ifnull(Module_SalesJV,0) as Module_SalesJV1,  
					  ifnull(Module_PurchaseJv,0) as Module_PurchaseJv, ifnull(Module_fixedassets,0) as Module_fixedassets,
					  ifnull(Module_charging,0) as Module_charging,ifnull(Module_bill,0) as Module_bill,ifnull(Module_budget,0) as Module_budget,
					  ifnull(Module_Accounting ,0) as Module_Accounting,ifnull(Module_Inventory,0) as Module_Inventory,
					  ifnull(Module_ItemAging,0) as Module_ItemAging,ifnull(Module_ipaddress,0) as Module_ipaddress,
					  ifnull(Module_PaymentRqst,0) as Module_PaymentRqst,ifnull(Module_YearlyReport,0) as Module_YearlyReport,
					  ifnull(Module_TransferItem,0) as Module_TransferItem,ifnull(module_budgetinv,0) as module_budgetinv,
					  ifnull(Module_RMA,0) as Module_RMA, ifnull(Module_Grn,0) as Module_Grn, ifNull(Module_LimitProject,0) As Module_LimitProject, 
					  ifNull(Module_Purchase_Pending,0) As Module_Purchase_Pending,ifNull(module_locationGrn,0) As module_locationGrn,
					  ifNull(module_locationPurchases,0) As module_locationPurchases,ifNull(module_locationDelivery,0) As module_locationDelivery,
					  ifNull(module_locationadjustment,0) As module_locationadjustment,ifNull(module_locationTransfer,0) As module_locationTransfer,
					  ifNull(module_locationproduction,0) As module_locationproduction
					  from ".$HTTP_SESSION_VARS['dbName'].".module ";
$resultsetup=mysql_query($querysetup,$connection) or die(mysql_error());
while($rowsetup=mysql_fetch_array($resultsetup)){
	extract($rowsetup);
}
   ?>
   <div style="border: 2px solid black; border-top: none; padding: 7px; font-size: 12px; width: 594px">
   <?php
   if($Module_Accounting==1){
   ?>
   <div style="width: 72px; border-bottom: dotted 2px black; margin: auto; text-align: center; margin-bottom: 10px; font-size: 14px"><b>Accounting</b></div>
   <div style="font-size: 10px;">
   <table width="100%" style="border-collapse: collapse;">
   <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Section</th>
   <th style="padding: 3px; border: 1px solid black; font-size: 14px;">View</th>
   <th style="padding: 3px; border: 1px solid black; font-size: 14px;">Insert</th>
   <th style="padding: 3px; border: 1px solid black; font-size: 14px;">Update</th>
   <th style="padding: 3px; border: 1px solid black; font-size: 14px;">Delete</th>
   </tr>
   <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Accounting</th>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($Accounting1==1){ ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; border: 1px solid black"></td>
   <td style="padding: 3px; border: 1px solid black"></td>
   <td style="padding: 3px; border: 1px solid black"></td>
   </tr>
   <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Account Type</th>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FA_AccountType1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php  if($FA_AccountTypeApp==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FA_AccountTypeMod==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FA_AccountTypeDel==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   </tr>
   <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Area</th>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_Area1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_AreaApp==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_AreaMod==1) {?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_AreaDel==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   </tr>
    <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Banks</th>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FA_Banks1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FA_BankApp==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FA_BankMod==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FA_BankDel==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   </tr>
   <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Contra</th>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FA_Contra1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FA_ContraApp==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FA_ContraMod==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FA_ContraDel==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   </tr>
   <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Costcenter</th>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FA_Costcenter1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FA_CostcenterApp==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FA_CostcenterMod==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FA_CostcenterDel==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   </tr>
    <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Credit Note</th>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FA_CreditNote1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FA_CreditNoteApp==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FA_CreditNoteMod==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FA_CreditNoteDel==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   </tr>
   <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Currency</th>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FA_Currency1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FA_CurrencyApp==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FA_CurrencyMod==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FA_CurrencyDel==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   </tr>
   <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Debit Note</th>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FA_DebitNote1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FA_DebitNoteApp==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FA_DebitNoteMod==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FA_DebitNoteDel==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   </tr>
    <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Financial Accounts</th>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($RA_FinancialAccounts1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"></td>
   </tr>
   <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Invoices Allocation</th>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FA_InvoicesAllocation1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"></td>
   </tr>
    <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Journal</th>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FA_Journal1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FA_JournalApp==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FA_JournalMod==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FA_JournalDel==1) {  ?><img src="img/check.png" height="15"><?php } ?></td>
   </tr>
   <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Ledger</th>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FA_Ledger1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FA_LedgerApp==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FA_LedgerMod==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FA_LedgerDel==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   </tr>
   <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Payment</th>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FA_Payment1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FA_PaymentApp==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FA_PaymentMod==1) {?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FA_PaymentDel==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   </tr>
   <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Payment Request</th>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FA_PaymentRqst1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FA_PaymentRqstApp==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FA_PaymentRqstMod==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FA_PaymentRqstDel==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   </tr>
   <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Project A</th>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FA_Project1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FA_ProjectApp==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FA_ProjectMod==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FA_ProjectDel==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   </tr>
   <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Receipt</th>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FA_Receipt1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FA_ReceiptApp==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FA_ReceiptMod==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FA_ReceiptDel==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   </tr>
   <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Report Options in Accounting</th>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FA_ReportOptions1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"></td>
   </tr>
   <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Transaction Pay Request</th>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FA_transactionpaymnetrqst1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FA_transactionpaymnetrqstApp==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FA_transactionpaymnetrqstMod==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FA_transactionpaymnetrqstDel==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   </tr>
   <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Checks to be Deposited</th>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($RA_ListofCheckBills1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"></td>
   </tr>
   </table>
   </div>
   
   <?php
   }
   ?>
   
   <div style="page-break-after: always;"></div>
   
   <?php
   if($Module_Inventory==1){
   ?>
   
   <div style="width: 62px; border-bottom: dotted 2px black; margin: auto; text-align: center; margin-bottom: 10px; margin-top: 10px; font-size: 14px"><b>Inventory</b></div>
   
   <div style="font-size: 16px;">
   <table width="100%" style="border-collapse: collapse;">
   <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Section</th>
   <th style="padding: 3px; border: 1px solid black; font-size: 14px;">View</th>
   <th style="padding: 3px; border: 1px solid black; font-size: 14px;">Insert</th>
   <th style="padding: 3px; border: 1px solid black; font-size: 14px;">Update</th>
   <th style="padding: 3px; border: 1px solid black; font-size: 14px;">Delete</th>
   <th style="padding: 3px; border: 1px solid black; font-size: 14px;">Others</th>
   </tr>
   <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Inventory</th>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($Inventory1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"></td>
   </tr>
   <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Adjustment</th>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_Adjustment1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_AdjustmentApp==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_AdjustmentMod==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_AdjustmentDel==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black; font-size: 14px; font-weight:bold; width: 176px">
   <table width="100%" style="border-collapse: collapse;">
   <th align="left" style="padding: 3px;  font-size: 14px; width: 180px">Repost Transaction</th>
   <td style="padding: 3px; text-align: center; "><?php if($FI_RepostAdjustment1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   </table>
   </td>
   </tr>
   <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Category</th>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_Category1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_CategoryApp==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_CategoryMod==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_CategoryDel==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"></td>
   </tr>
    <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">CEP Table</th>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_CEPtable1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_CEPtableApp==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_CEPtableMod==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_CEPtableDel==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"></td>
   </tr>
   <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Charges</th>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_Charges1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_ChargesApp==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_ChargesMod==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_ChargesDel==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
    <td style="padding: 3px; text-align: center; border: 1px solid black"></td>
   </tr>
   <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Clients</th>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($Clients1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($ClientApp==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($ClientMod==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($ClientDel==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
    <td style="padding: 3px; text-align: center; border: 1px solid black; font-size: 14px; font-weight:bold; width: 176px">
	<table width="100%" style="border-collapse: collapse;">
   <th align="left" style="padding: 3px; font-size: 14px; width: 180px">Credit Limit</th>
   <td style="padding: 3px; text-align: center;"><?php if($ClientsCreditLimit1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   </table>
	</td>
   </tr>
    <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Client Group</th>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_ClientGrp1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_ClientGrpApp==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_ClientGrpMod==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_ClientGrpDel==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
    <td style="padding: 10px; border: 1px solid black"></td>
   </tr>
   <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Sales</th>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_Delivery1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_DeliveryApp==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_DeliveryMod==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_DeliveryDel==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black; font-size: 14px; font-weight:bold; width: 176px">
   <table width="100%" style="border-collapse: collapse;">
   <th align="left" style="padding: 3px; font-size: 14px; width: 180px">Sales Price</th>
   <td style="padding: 3px; text-align: center;"><?php if($FI_DeliverySalesPrice1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   </table>
   </td>  
  </tr>
   <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Grouping</th>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_Grouping1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_GroupingApp==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_GroupingMod==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_GroupingDel==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
    <td style="padding: 10px; border: 1px solid black"></td>
   </tr>
    <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Items</th>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_Items1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_ItemsApp==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_ItemsMod==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_ItemsDel==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
    <td style="padding: 3px; text-align: center; border: 1px solid black; font-size: 14px; font-weight:bold; width: 176px">
	<table width="100%" style="border-collapse: collapse;">
	<tr>
   <th align="left" style="padding: 3px; font-size: 14px; width: 180px">Selling Price Tab Sheet</th>
   <td style="padding: 3px; text-align: center; "><?php if($FI_SellingPriceInItems1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   </tr>
   <tr>
   <th align="left" style="padding: 3px;  font-size: 14px; width: 180px">Cost Price</th>
   <td style="padding: 3px; text-align: center; "><?php if($FI_CostPriceInItems1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   </tr>
   <tr>
   <th align="left" style="padding: 3px;  font-size: 14px; width: 180px">Selling I</th>
   <td style="padding: 3px; text-align: center; "><?php if($FI_ItemSelling1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   </tr>
   <tr>
   <th align="left" style="padding: 3px;  font-size: 14px; width: 180px">Selling II</th>
   <td style="padding: 3px; text-align: center; "><?php if($FI_ItemSelling2==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   </tr>
   <tr>
   <th align="left" style="padding: 3px;  font-size: 14px; width: 180px">Selling III</th>
   <td style="padding: 3px; text-align: center; "><?php if($FI_ItemSelling3==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   </tr>
   <tr>
   <th align="left" style="padding: 3px;  font-size: 14px; width: 180px">Selling IV</th>
   <td style="padding: 3px; text-align: center; "><?php if($FI_ItemSelling4==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   </tr>
   <tr>
   <th align="left" style="padding: 3px; font-size: 14px; width: 180px">Selling V</th>
   <td style="padding: 3px; text-align: center; "><?php if($FI_ItemSelling5==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   </tr>
   <tr>
   <th align="left" style="padding: 3px;  font-size: 14px; width: 180px">Selling VI</th>
   <td style="padding: 3px; text-align: center; "><?php if($FI_ItemSelling6==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   </tr>
   </table>
	</td>
   </tr>
   <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Production</th>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_Production1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_ProductionApp==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_ProductionMod==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_ProductionDel==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
    <td style="padding: 3px; text-align: center; border: 1px solid black"></td>
   </tr>
    <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Production Request</th>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_ProductionReq1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_ProductionReqApp==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_ProductionReqMod==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_ProductionReqDel==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
    <td style="padding: 3px; text-align: center; border: 1px solid black"></td>
   </tr>
   <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Production Template</th>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_ProductionTemp1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_ProductionTempApp==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_ProductionTempMod==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_ProductionTempDel==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
    <td style="padding: 3px; text-align: center; border: 1px solid black"></td>
   </tr>
   <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Purchases</th>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_Purchases1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_PurchasesApp==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_PurchasesMod==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_PurchasesDel==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black; font-size: 14px; font-weight:bold; width: 176px">
   <table width="100%" style="border-collapse: collapse;">
   <tr>
   <th align="left" style="padding: 3px;  font-size: 14px; width: 180px">Modify VAT</th>
   <td style="padding: 3px; text-align: center; "><?php if($FI_PurchasesVATMod1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   </tr>
   <tr>
   <th align="left" style="padding: 3px; font-size: 14px; width: 180px">Repost Transaction</th>
   <td style="padding: 3px; text-align: center; "><?php if($FI_RepostPurchase1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   </tr>
   </table>
</td>  
  </tr>
   <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Purchases Order</th>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_PurchaseOrder1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_PurchaseOrderApp==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_PurchaseOrderMod==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_PurchaseOrderDel==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black; font-size: 14px; font-weight:bold; width: 196px">
   <table width="100%" style="border-collapse: collapse;">
   <tr>
   <th align="left" style="padding: 3px; font-size: 14px; width: 180px">Confirm Purchase Order</th>
   <td style="padding: 3px; text-align: center; "><?php if($FI_PorderConfirmed1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   </tr>
   <tr>
   <th align="left" style="padding: 3px; font-size: 14px; width: 180px">Delete Purchase Order</th>
   <td style="padding: 3px; text-align: center;"><?php if($FI_DelConfirmedPO1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   </tr>
   <tr>
   <th align="left" style="padding: 3px; font-size: 14px; width: 180px">Modify Purchase Order</th>
   <td style="padding: 3px; text-align: center;"><?php if($FI_ModConfirmedPO1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   </tr>
   <tr>
   <th align="left" style="padding: 3px; font-size: 14px; width: 180px">Report Transaction</th>
   <td style="padding: 3px; text-align: center;"><?php if($FI_RepostPorder1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   </tr>
   </table>

   </td>  
  </tr>
   <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Purchases Request</th>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_PurchaseRequest1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_PurchaseRequestApp==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_PurchaseRequestMod==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_PurchaseRequestDel==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
    <td style="padding: 3px; text-align: center; border: 1px solid black; font-size: 14px; font-weight:bold; width: 196px">
    <table width="100%" style="border-collapse: collapse;">
   <tr>
   <th align="left" style="padding: 3px; font-size: 14px; width: 180px">Pur Request Approved By</th>
   <td style="padding: 3px; text-align: center; "><?php if($PRqst_Approvedby1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   </tr>
   <tr>
   <th align="left" style="padding: 3px; font-size: 14px; width: 180px">Pur Request Confirmed</th>
   <td style="padding: 3px; text-align: center;"><?php if($FI_PRequestConfirmed==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   </tr>
   </table>
	</td>
   </tr>
   <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Report Options in Inventory</th>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_ReportOptions1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"></td>
    <td style="padding: 3px; text-align: center; border: 1px solid black"></td>
   </tr>
   <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Return Delivery</th>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_ReturnDelivery1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_ReturnDeliveryApp==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_ReturnDeliveryMod==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_ReturnDeliveryDel==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
    <td style="padding: 3px; text-align: center; border: 1px solid black"></td>  
  </tr>
   <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Return Purchases</th>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_ReturnPurchase1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_ReturnPurchaseApp==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_ReturnPurchaseMod==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_ReturnPurchaseDel==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black; font-size: 14px; font-weight:bold; width: 196px">
   <table width="100%" style="border-collapse: collapse;">
   <tr>
   <th align="left" style="padding: 3px; font-size: 14px; width: 180px">Modify Vat</th>
   <td style="padding: 3px; text-align: center; "><?php if($FI_ReturnPurchasesVAT1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   </tr>
   <tr>
   <th align="left" style="padding: 3px; font-size: 14px; width: 180px">Repost Transaction</th>
   <td style="padding: 3px; text-align: center;"><?php if($FI_RepostPReturn1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   </tr>
   </table>
   </td>  
  </tr>
   <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Return Sales</th>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_ReturnSales1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_ReturnSalesApp==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_ReturnSalesMod==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_ReturnSalesDel==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
    <td style="padding: 3px; text-align: center; border: 1px solid black; font-size: 14px; font-weight:bold; width: 196px">
	<table width="100%" style="border-collapse: collapse;">
   <tr>
   <th align="left" style="padding: 3px; font-size: 14px; width: 180px">Check Salesman</th>
   <td style="padding: 3px; text-align: center; "><?php if($FI_RSalesCheckSalesman1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   </tr>
   <tr>
   <th align="left" style="padding: 3px; font-size: 14px; width: 180px">Modify Vat</th>
   <td style="padding: 3px; text-align: center;"><?php if($FI_ReturnSalesVAT1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   </tr>
   <tr>
   <th align="left" style="padding: 3px; font-size: 14px; width: 180px">Print Payment</th>
   <td style="padding: 3px; text-align: center; "><?php if($FI_ReturnSalesPrintPay1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   </tr>
   <tr>
   <th align="left" style="padding: 3px; font-size: 14px; width: 180px">Repost Transaction</th>
   <td style="padding: 3px; text-align: center;"><?php if($FI_RepostSReturn1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   </tr>
   </table>
	</td>
   </tr>
   <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Rm Transfer</th>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_RRmTransfer1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_RmTransferApp==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_RmTransferMod==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_IRmTransferDel==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black; font-size: 14px; font-weight:bold; width: 196px">
   </td>  
  </tr>
   <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Sales Order</th>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_SalesOrder1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_SalesOrderApp==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_SalesOrderMod==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_SalesOrderDel==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
    <td style="padding: 3px; text-align: center; border: 1px solid black; font-size: 14px; font-weight:bold; width: 196px">
	<table width="100%" style="border-collapse: collapse;">
   <tr>
   <th align="left" style="padding: 3px; font-size: 14px; width: 180px">Allow Zero Price</th>
   <td style="padding: 3px; text-align: center; "><?php if($Login_AllowPrice1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   </tr>
   <tr>
   <th align="left" style="padding: 3px; font-size: 14px; width: 180px">Canceled Quantity</th>
   <td style="padding: 3px; text-align: center;"><?php if($FI_SorderCanceledQty1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   </tr>
   <tr>
   <th align="left" style="padding: 3px; font-size: 14px; width: 180px">Confirm</th>
   <td style="padding: 3px; text-align: center; "><?php if($FI_SorderConfirmed1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   </tr>
   <tr>
   <th align="left" style="padding: 3px; font-size: 14px; width: 180px">Disapprove</th>
   <td style="padding: 3px; text-align: center;"><?php if($login_disapprovesorder1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   </tr>
   <tr>
   <th align="left" style="padding: 3px; font-size: 14px; width: 180px">UnModify Price</th>
   <td style="padding: 3px; text-align: center; "><?php if($Unmodify_SorderPrice1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   </tr>
   <tr>
   <th align="left" style="padding: 3px; font-size: 14px; width: 180px">Print Prices</th>
   <td style="padding: 3px; text-align: center;"><?php if($FI_SOrderWithPrice1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   </tr>
   <tr>
   <th align="left" style="padding: 3px; font-size: 14px; width: 180px">Reject Unconfirmed</th>
   <td style="padding: 3px; text-align: center; "><?php if($FI_SorderRejectUnconfirmed1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   </tr>
   <tr>
   <th align="left" style="padding: 3px; font-size: 14px; width: 180px">Repost Transaction</th>
   <td style="padding: 3px; text-align: center;"><?php if($FI_RepostSorder1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   </tr>
    <tr>
   <th align="left" style="padding: 3px; font-size: 14px; width: 180px">Show Positive Qty</th>
   <td style="padding: 3px; text-align: center; "><?php if($FI_SorderPosQty1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   </tr>
   <tr>
   <th align="left" style="padding: 3px; font-size: 14px; width: 180px">Allow Confirm Cash Order</th>
   <td style="padding: 3px; text-align: center;"><?php if($FI_SorderAllowConfirmCash==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   </tr>
   </table>
	</td>
   </tr>
   <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Salesmen</th>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_Salesmen1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_SalesmenApp==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_SalesmenMod==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_SalesmenDel==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black; font-size: 14px; font-weight:bold; width: 196px">
   </td>  
  </tr>
  <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Shipment</th>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_Shipment1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"></td>
    <td style="padding: 3px; text-align: center; border: 1px solid black; font-size: 14px; font-weight:bold; width: 196px">
	</td>
   </tr>
   <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Shipment Routing Pending</th>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_Shipmentconfirmed1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black; font-size: 14px; font-weight:bold; width: 196px">
   </td>  
  </tr>
  <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Stock Evaluation</th>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_stockeval1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_stockevalApp==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_stockevalMod==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_stockevalDel==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
    <td style="padding: 3px; text-align: center; border: 1px solid black; font-size: 14px; font-weight:bold; width: 196px">
	</td>
   </tr>
   <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Subgroup</th>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_SubGrouping1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_SubGroupingApp==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_SubGroupingMod==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_SubGroupingDel==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black; font-size: 14px; font-weight:bold; width: 196px">
   </td>  
  </tr>
   <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Suppliers</th>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_Suppliers1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_SuppliersApp==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_SuppliersMod==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_SuppliersDel==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
    <td style="padding: 3px; text-align: center; border: 1px solid black; font-size: 14px; font-weight:bold; width: 196px">
	</td>
   </tr>
   <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Supplier Group</th>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_SupplierGrp1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_SupplierGrpApp==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_SupplierGrpMod==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_SupplierGrpDel==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black; font-size: 14px; font-weight:bold; width: 196px">
   </td>  
  </tr>
  <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Transfer</th>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_Transfer1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_TransferApp==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_TransferMod==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_TransferDel==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
    <td style="padding: 3px; text-align: center; border: 1px solid black; font-size: 14px; font-weight:bold; width: 196px">
	</td>
   </tr>
   <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Transportation</th>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_Transportation1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_TransportationApp==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_TransportationMod==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_TransportationDel==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black; font-size: 14px; font-weight:bold; width: 196px">
   </td>  
  </tr>
  <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Warehouse</th>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_Warehouse1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_WarehouseApp==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_WarehouseMod==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_WarehouseDel==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
    <td style="padding: 3px; text-align: center; border: 1px solid black; font-size: 14px; font-weight:bold; width: 196px">
	</td>
   </tr>
   <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Purchase Request Items</th>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_PurchaseRequestItems1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black; font-size: 14px; font-weight:bold; width: 196px">
   <table width="100%" style="border-collapse: collapse;">
   <tr>
   <th align="left" style="padding: 3px; font-size: 14px; width: 180px">Purchase Request</th>
   <td style="padding: 3px; text-align: center; "><?php if($fi_pendingpurchaserequest1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   </tr>
   <tr>
   <th align="left" style="padding: 3px; font-size: 14px; width: 180px">Transfer Request</th>
   <td style="padding: 3px; text-align: center;"><?php if($fi_pendingtransferrequest1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   </tr>
   <tr>
   <th align="left" style="padding: 3px; font-size: 14px; width: 180px">Adjustment Request</th>
   <td style="padding: 3px; text-align: center; "><?php if($fi_pendingadjustmentrequest1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   </tr>
   </table>
   </td>  
  </tr>
  <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Stock In</th>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_IN1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_INapp==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_INMod==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_INDel==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
    <td style="padding: 3px; text-align: center; border: 1px solid black; font-size: 14px; font-weight:bold; width: 196px">
	</td>
   </tr>
   <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Stock Out</th>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_OUT1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_Outapp==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_OUTMod==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_OUTDel==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black; font-size: 14px; font-weight:bold; width: 196px">
   </td>  
  </tr>
  <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Statistics</th>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($Chk_StatisticsView==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"></td>
    <td style="padding: 3px; text-align: center; border: 1px solid black; font-size: 14px; font-weight:bold; width: 196px">
	</td>
   </tr>
    <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Preq Approve</th>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($login_preqapprove==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black; font-size: 14px; font-weight:bold; width: 196px">
   </td>  
  </tr>
   <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Preq Reject</th>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($login_preqreject==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"></td>
    <td style="padding: 3px; text-align: center; border: 1px solid black; font-size: 14px; font-weight:bold; width: 196px">
	</td>
   </tr>
   <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Preq Und Proc</th>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($login_prequndproc==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black; font-size: 14px; font-weight:bold; width: 196px">
   </td>  
  </tr>
   <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Pord Approve</th>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($login_pordapprove==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"></td>
    <td style="padding: 3px; text-align: center; border: 1px solid black; font-size: 14px; font-weight:bold; width: 196px">
	</td>
   </tr>
   <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Pord Reject</th>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($login_pordreject==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"></td>
    <td style="padding: 3px; text-align: center; border: 1px solid black; font-size: 14px; font-weight:bold; width: 196px">
	</td>
   </tr>
   <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Treq Approve</th>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($login_treqapprove==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black; font-size: 14px; font-weight:bold; width: 196px">
   </td>  
  </tr>
   <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Treq Reject</th>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($login_treqreject==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"></td>
    <td style="padding: 3px; text-align: center; border: 1px solid black; font-size: 14px; font-weight:bold; width: 196px">
	</td>
   </tr>
   <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Areq Approve</th>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($login_areqapprove==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black; font-size: 14px; font-weight:bold; width: 196px">
   </td>  
  </tr>
   <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Areq Reject</th>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($login_areqreject==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"></td>
    <td style="padding: 3px; text-align: center; border: 1px solid black; font-size: 14px; font-weight:bold; width: 196px">
	</td>
   </tr>
    <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Delivery Status</th>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_DeliveryStatus==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black; font-size: 14px; font-weight:bold; width: 196px">
   </td>  
  </tr>
   <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Set Delivery Status</th>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FI_SetDeliveryStatus==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"></td>
    <td style="padding: 3px; text-align: center; border: 1px solid black; font-size: 14px; font-weight:bold; width: 196px">
	</td>
   </tr>
   </table>
   </div>
   
   <?php
   }
   ?>
   
   <div style="width: 69px; border-bottom: dotted 2px black; margin: auto; text-align: center; margin-bottom: 10px; margin-top: 10px; font-size: 14px;"><b>Payroll</b></div>
   
   <div style="font-size: 16px;">
   <table width="100%" style="border-collapse: collapse;">
   <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Section</th>
   <th style="padding: 3px; border: 1px solid black; font-size: 14px;">View</th>
   <th style="padding: 3px; border: 1px solid black; font-size: 14px;">Insert</th>
   <th style="padding: 3px; border: 1px solid black; font-size: 14px;">Update</th>
   <th style="padding: 3px; border: 1px solid black; font-size: 14px;">Delete</th>
   </tr>
   <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Payroll</th>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($payroll1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"></td>
   </tr>
   <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Attendance</th>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FP_Attendance1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FP_AttendanceApp==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FP_AttendanceMod==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FP_AttendanceDel==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   </tr>
   <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Bonus</th>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FP_Bonus1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FP_BonusApp==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FP_BonusMod==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FP_BonusDel==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   </tr>
    <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Costcenter</th>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($Costcenter1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($CostcenterApp==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($CostcenterMod==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($CostcenterDel==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   </tr>
   <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Currency</th>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($Currency1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($CurrencyApp==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($CurrencyMod==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($CurrencyDel==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   </tr>
   <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Department</th>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FP_Dept1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FP_DeptApp==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FP_DeptMod==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FP_DeptDel==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   </tr>
    <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Employee</th>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FP_Employee1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FP_EmployeeApp==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FP_EmployeeMod==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FP_EmployeeDel==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   </tr>
   <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Generate</th>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FP_Generate1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FP_GenerateApp==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FP_GenerateMod==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FP_GenerateDel==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   </tr>
   <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Grades</th>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FP_Grades1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FP_GradesApp==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FP_GradesMod==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FP_GradesDel==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   </tr>
    <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Insurance</th>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FP_Insurance1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FP_InsuranceApp==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FP_InsuranceMod==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FP_InsuranceDel==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   </tr>
   <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Loan</th>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FP_Loan1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FP_LoanApp==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FP_LoanMod==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FP_LoanDel==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   </tr>
    <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Parameters</th>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FP_Parameters1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FP_ParametersApp==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FP_ParametersMod==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FP_ParametersDel==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   </tr>
   <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">PreEmployee</th>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FP_Fpreemp1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FP_preempApp==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FP_preempMod==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FP_preempDel==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   </tr>
   <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">ProjectP</th>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FP_Project1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FP_ProjectApp==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FP_ProjectMod==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FP_ProjectDel==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   </tr>
   <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Report Options in Payroll</th>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FP_ReportOptions1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"></td>
   </tr>
   <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Vacation</th>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FP_Vacation1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FP_VacationApp==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FP_VacationMod==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($FP_VacationDel==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   </tr>
   </table>
   </div>
   
   <div style="width: 69px; border-bottom: dotted 2px black; margin: auto; text-align: center; margin-bottom: 10px; margin-top: 10px; font-size: 14px;"><b>Access</b></div>
   
   <div style="font-size: 16px;">
   <table width="100%" style="border-collapse: collapse;">
   <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Section</th>
   <th style="padding: 3px; border: 1px solid black; font-size: 14px;">View</th>
   </tr>
   <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Access</th>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($Access1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   </tr>
   <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">User Manager</th>
   <td style="padding: 3px; text-align: center; border: 1px solid black"><?php if($Access_UserManager1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   </tr>
   </table>
   </div>
   
   <div style="width: 69px; border-bottom: dotted 2px black; margin: auto; text-align: center; margin-bottom: 10px; margin-top: 10px; font-size: 14px"><b>Reports</b></div>
   
   <div style="font-size: 16px;">
   <table width="100%" style="border-collapse: collapse;">
   <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Section</th>
   <th style="padding: 3px; border: 1px solid black; font-size: 14px;">View</th>
   </tr>
   <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Accounting</th>
   <td style="padding: 3px; border: 1px solid black; font-size: 14px; text-align: center;"><?php if($Rep_Accounting1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   </tr>
   <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">General</th>
   <td style="padding: 3px; border: 1px solid black; font-size: 14px; text-align: center;"><?php if($Rep_General1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   </tr>
   <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Inventory</th>
   <td style="padding: 3px; border: 1px solid black; font-size: 14px; text-align: center;"><?php if($Rep_Inventory1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   </tr>
   </table>
   </div>
   
   <div style="page-break-after: always;"></div>
   
   <div style="width: 69px; border-bottom: dotted 2px black; margin: auto; text-align: center; margin-bottom: 10px; margin-top: 10px; font-size: 14px;"><b>Utilities</b></div>
   
   <div style="font-size: 16px;">
   <table width="100%" style="border-collapse: collapse;">
   <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Section</th>
   <th style="padding: 3px; border: 1px solid black; font-size: 14px;">View</th>
   </tr>
   <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Backup File</th>
   <td style="padding: 3px; border: 1px solid black; font-size: 14px; text-align: center;"><?php if($U_BackupFile1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   </tr>
   <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Cash Register</th>
   <td style="padding: 3px; border: 1px solid black; font-size: 14px; text-align: center;"><?php if($U_CashRegister1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   </tr>
   <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Close Company</th>
   <td style="padding: 3px; border: 1px solid black; font-size: 14px; text-align: center;"><?php if($U_CloseCompany1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   </tr>
   <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Close Year</th>
   <td style="padding: 3px; border: 1px solid black; font-size: 14px; text-align: center;"><?php if($U_CloseYear1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   </tr>
   <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Closing Period</th>
   <td style="padding: 3px; border: 1px solid black; font-size: 14px; text-align: center;"><?php if($FU_ClosingPeriod1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   </tr>
   <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Delete Company</th>
   <td style="padding: 3px; border: 1px solid black; font-size: 14px; text-align: center;"><?php if($U_DeleteCompany1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   </tr>
   <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Delete Year</th>
   <td style="padding: 3px; border: 1px solid black; font-size: 14px; text-align: center;"><?php if($U_DeleteYear1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   </tr>
   <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Distributing Costcenter</th>
   <td style="padding: 3px; border: 1px solid black; font-size: 14px; text-align: center;"><?php if($U_DeleteCompany1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   </tr>
   <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Fill Setup File</th>
   <td style="padding: 3px; border: 1px solid black; font-size: 14px; text-align: center;"><?php if($U_DeleteYear1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   </tr>
   <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Merger Database</th>
   <td style="padding: 3px; border: 1px solid black; font-size: 14px; text-align: center;"><?php if($U_MergerDataBase1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   </tr>
   <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">New Company</th>
   <td style="padding: 3px; border: 1px solid black; font-size: 14px; text-align: center;"><?php if($U_NewCompany1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   </tr>
     <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">New Year</th>
   <td style="padding: 3px; border: 1px solid black; font-size: 14px; text-align: center;"><?php if($U_NewYear1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   </tr>
   <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Ports</th>
   <td style="padding: 3px; border: 1px solid black; font-size: 14px; text-align: center;"><?php if($U_Ports1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   </tr>
   <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Post To Checks and Bills</th>
   <td style="padding: 3px; border: 1px solid black; font-size: 14px; text-align: center;"><?php if($U_PostToChecksAndBills1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   </tr>
   <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Post To Items</th>
   <td style="padding: 3px; border: 1px solid black; font-size: 14px; text-align: center;"><?php if($U_PostToItems1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   </tr>
   <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Post To Ledger</th>
   <td style="padding: 3px; border: 1px solid black; font-size: 14px; text-align: center;"><?php if($U_PostToLedger1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   </tr>
   <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Re Number Jv</th>
   <td style="padding: 3px; border: 1px solid black; font-size: 14px; text-align: center;"><?php if($U_ReNumberJV1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   </tr>
    <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Transfer Account</th>
   <td style="padding: 3px; border: 1px solid black; font-size: 14px; text-align: center;"><?php if($U_PostToLedger1==1) { ?><img src="img/check.png" height="15"><?php } ?></td>
   </table>
   </div>
   
   <div style="page-break-after: always;"></div>
   
   <?php
   $query="select  FI_SalebelowLandedCost as FI_SalebelowLandedCost,".
		" fastprinttransaction as fastprinttransaction,".
		" Posted as Posted,".
		" ExporttoExcel as ExporttoExcel,".
		" FI_ShowCostPrice as FI_ShowCostPrice,".
		" Unmodify_SellingPrice as Unmodify_SellingPrice,".
		" FA_LedgerAccess as FA_LedgerAccess,".
		" DailyInvoiceModification as DailyInvoiceModification,".
		" FixJVofSales as FixJVofSales,".
		" ShowTransaction as ShowTransaction,".
		" ModifyingOldTransactions as ModifyingOldTransactions,".
		" ShowDepositJVBtn as ShowDepositJVBtn,".
		" FA_ManagingRequiredCost as FA_ManagingRequiredCost,".
		" AskBeforeCloseAcc as AskBeforeCloseAcc,".
		" Show_group as Show_group,".
		" RA_RequiredCostcenter as RA_RequiredCostcenter,".
		" Login_negativeQty as Login_negativeQty,".
		" AskBeforeCloseInv as AskBeforeCloseInv,".
		" ModifyVAT as ModifyVAT,".
		" RI_OpInvForNewYear as RI_OpInvForNewYear,".
		" Login_ModifyAllPending as Login_ModifyAllPending,".
		" Login_modAdjIsInvoice as Login_modAdjIsInvoice,".
		" Login_modAdjIsInvoice as Login_modAdjIsInvoice,".
		" FI_PricePerUnit as FI_PricePerUnit,".
		" Login_ShowLoggedUser as Login_ShowLoggedUser,".
		" Login_ModifyDiscount as Login_ModifyDiscount,".
		" FI_RepRestrictProject as FI_RepRestrictProject,".
		" FI_RepRestrictCostcenter as FI_RepRestrictCostcenter,".
		" FI_RepRestrictWarehouse as FI_RepRestrictWarehouse, ".
		" RMA_In as RMA_In, ".
		" RMA_Out as RMA_Out, ".
		" Login_Decimal as Login_Decimal, ".
		" FI_PurchaseCategory as FI_PurchaseCategory, ".
		" login_maturitydate as login_maturitydate, ".
		" Perc_creditlimit as Perc_creditlimit ".
		" from ".$_SESSION['dbLabel'].".login where upper(login_schema)=upper('".$txtSchemaAssigned."') and user_account='".$_GET['user_code']."'";

		//echo $query; exit;
		//echo $_SESSION['dbLabel']."<br>".$txtSchemaAssigned; exit;
		$result=mysql_query($query,$connection);
		$rows=mysql_fetch_array($result);
		extract($rows);


if($FI_SalebelowLandedCost=='') $FI_SalebelowLandedCost=0;
if($fastprinttransaction=='') $fastprinttransaction=0;
if($Posted=='') $Posted=0;
if($DeliveryStatus_Type=='') $DeliveryStatus_Type=0;

if($ExporttoExcel=='') $ExporttoExcel=0;
if($FI_ShowCostPrice=='') $FI_ShowCostPrice=0;
if($Unmodify_SellingPrice=='') $Unmodify_SellingPrice=0;
if($FA_LedgerAccess=='') $FA_LedgerAccess=0;
if($DailyInvoiceModification=='') $DailyInvoiceModification=0;
if($FixJVofSales=='') $FixJVofSales=0;
if($ShowTransaction=='') $ShowTransaction=0;
if($ModifyingOldTransactions=='') $ModifyingOldTransactions=0;
if($ShowDepositJVBtn=='') $ShowDepositJVBtn=0;
if($FA_ManagingRequiredCost=='') $FA_ManagingRequiredCost=0;
if($AskBeforeCloseAcc=='') $AskBeforeCloseAcc=0;
if($Show_group=='') $Show_group=0;
if($RA_RequiredCostcenter=='') $RA_RequiredCostcenter=0;
if($Login_negativeQty=='') $Login_negativeQty=0;
if($AskBeforeCloseInv=='') $AskBeforeCloseInv=0;
if($ModifyVAT=='') $ModifyVAT=0;
if($RI_OpInvForNewYear=='') $RI_OpInvForNewYear=0;
if($Login_ModifyAllPending=='') $Login_ModifyAllPending=0;
if($Login_modAdjIsInvoice=='') $Login_modAdjIsInvoice=0;
if($FI_PricePerUnit=='') $FI_PricePerUnit=0;
if($Login_ShowLoggedUser=='') $Login_ShowLoggedUser=0;
if($Login_ModifyDiscount=='') $Login_ModifyDiscount=0;
if($FI_RepRestrictProject=='') $FI_RepRestrictProject=0;
if($FI_RepRestrictCostcenter=='') $FI_RepRestrictCostcenter=0;
if($FI_RepRestrictWarehouse=='') $FI_RepRestrictWarehouse=0;
if($login_maturitydate=='') $login_maturitydate=0;
if($approved_level1=='') $approved_level1=0;
if($Perc_creditlimit=='') $Perc_creditlimit=0;
	
   ?>
   
   <div style="width: 154px; border-bottom: dotted 2px black; margin: auto; text-align: center; margin-bottom: 10px; margin-top: 10px; font-size: 14px;"><b>Access on Multi Forms</b></div>
   
   <div style="font-size: 16px;">
   <table width="100%" style="border-collapse: collapse;">
   <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Section</th>
   <th style="padding: 3px; border: 1px solid black; font-size: 14px;">Enabled / Disabled</th>
   </tr>
   <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Price Below Landed Cost</th>
   <td style="padding: 3px; border: 1px solid black; font-size: 14px; text-align: center; font-weight: bold;"><?php if($FI_SalebelowLandedCost==1) { ?><img src="img/check.png" height="15"><?php } else echo "Disabled"; ?></td>
   </tr>
   <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Print Transactions</th>
   <td style="padding: 3px; border: 1px solid black; font-size: 14px; text-align: center; font-weight: bold;"><?php if($fastprinttransaction==1) { ?><img src="img/check.png" height="15"><?php } else echo "Disabled"; ?></td>
   </tr>
   <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Posted</th>
   <td style="padding: 3px; border: 1px solid black; font-size: 14px; text-align: center; font-weight: bold;"><?php if($Posted==1) { ?><img src="img/check.png" height="15"><?php } else echo "Disabled"; ?></td>
   </tr>
   <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Export To Excel</th>
   <td style="padding: 3px; border: 1px solid black; font-size: 14px; text-align: center; font-weight: bold;"><?php if($ExporttoExcel==1) { ?><img src="img/check.png" height="15"><?php } else echo "Disabled"; ?></td>
   </tr>
   <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Show Cost Price</th>
   <td style="padding: 3px; border: 1px solid black; font-size: 14px; text-align: center; font-weight: bold;"><?php if($FI_ShowCostPrice==1) { ?><img src="img/check.png" height="15"><?php } else echo "Disabled"; ?></td>
   </tr>
   <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Selling Price (not Rectifying)</th>
   <td style="padding: 3px; border: 1px solid black; font-size: 14px; text-align: center; font-weight: bold;"><?php if($Unmodify_SellingPrice==1) { ?><img src="img/check.png" height="15"><?php } else echo "Disabled"; ?></td>
   </tr>
   <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Ledger Access</th>
   <td style="padding: 3px; border: 1px solid black; font-size: 14px; text-align: center; font-weight: bold;"><?php if($FA_LedgerAccess==1) { ?><img src="img/check.png" height="15"><?php } else echo "Disabled"; ?></td>
   </tr>
   <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">No Daily Modification</th>
   <td style="padding: 3px; border: 1px solid black; font-size: 14px; text-align: center; font-weight: bold;"><?php if($DailyInvoiceModification==1) { ?><img src="img/check.png" height="15"><?php } else echo "Disabled"; ?></td>
   </tr>
   <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Fix Jv of Sales</th>
   <td style="padding: 3px; border: 1px solid black; font-size: 14px; text-align: center; font-weight: bold;"><?php if($FixJVofSales==1) { ?><img src="img/check.png" height="15"><?php } else echo "Disabled"; ?></td>
   </tr>
   <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">See Other Transaction</th>
   <td style="padding: 3px; border: 1px solid black; font-size: 14px; text-align: center; font-weight: bold;"><?php if($ShowTransaction==1) { ?><img src="img/check.png" height="15"><?php } else echo "Disabled"; ?></td>
   </tr>
   <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Modifying Old Transactions</th>
   <td style="padding: 3px; border: 1px solid black; font-size: 14px; text-align: center; font-weight: bold;"><?php if($ModifyingOldTransactions==1) { ?><img src="img/check.png" height="15"><?php } else echo "Disabled"; ?></td>
   </tr>
     <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Show Deposit Checks</th>
   <td style="padding: 3px; border: 1px solid black; font-size: 14px; text-align: center; font-weight: bold;"><?php if($ShowDepositJVBtn==1) { ?><img src="img/check.png" height="15"><?php } else echo "Disabled"; ?></td>
   </tr>
   <?php
   if($module_costcenter==1 || $module_costcenterdt==1){
   ?>
   <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Managing Required CostCenter</th>
   <td style="padding: 3px; border: 1px solid black; font-size: 14px; text-align: center; font-weight: bold;"><?php if($FA_ManagingRequiredCost==1) { ?><img src="img/check.png" height="15"><?php } else echo "Disabled"; ?></td>
   </tr>
   <?php 
   }
   ?>
   <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Ask Before Closing Accounting</th>
   <td style="padding: 3px; border: 1px solid black; font-size: 14px; text-align: center; font-weight: bold;"><?php if($AskBeforeCloseAcc==1) { ?><img src="img/check.png" height="15"><?php } else echo "Disabled"; ?></td>
   </tr>
   <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Show Group</th>
   <td style="padding: 3px; border: 1px solid black; font-size: 14px; text-align: center; font-weight: bold;"><?php if($Show_group==1) { ?><img src="img/check.png" height="15"><?php } else echo "Disabled"; ?></td>
   </tr>
   <?php
   if($module_costcenter==1 || $module_costcenterdt==1){
   ?>
   <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Required CostCenter</th>
   <td style="padding: 3px; border: 1px solid black; font-size: 14px; text-align: center; font-weight: bold;"><?php if($RA_RequiredCostcenter==1) { ?><img src="img/check.png" height="15"><?php } else echo "Disabled"; ?></td>
   </tr>
   <?php
   }
   ?>
   <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Negative Qty</th>
   <td style="padding: 3px; border: 1px solid black; font-size: 14px; text-align: center; font-weight: bold;"><?php if($Login_negativeQty==1) { ?><img src="img/check.png" height="15"><?php } else echo "Disabled"; ?></td>
   </tr>
    <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Ask Before Closing Inventory</th>
   <td style="padding: 3px; border: 1px solid black; font-size: 14px; text-align: center; font-weight: bold;"><?php if($AskBeforeCloseInv==1) { ?><img src="img/check.png" height="15"><?php } else echo "Disabled"; ?></td>
   </tr>
   <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Modify Vat</th>
   <td style="padding: 3px; border: 1px solid black; font-size: 14px; text-align: center; font-weight: bold;"><?php if($ModifyVAT==1) { ?><img src="img/check.png" height="15"><?php } else echo "Disabled"; ?></td>
   </tr>
   <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Opening Inventory For new Year</th>
   <td style="padding: 3px; border: 1px solid black; font-size: 14px; text-align: center; font-weight: bold;"><?php if($RI_OpInvForNewYear==1) { ?><img src="img/check.png" height="15"><?php } else echo "Disabled"; ?></td>
   </tr>
    <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Modify All Pending</th>
   <td style="padding: 3px; border: 1px solid black; font-size: 14px; text-align: center; font-weight: bold;"><?php if($Login_ModifyAllPending==1) { ?><img src="img/check.png" height="15"><?php } else echo "Disabled"; ?></td>
   </tr>
   <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Adjustment is Invoice</th>
   <td style="padding: 3px; border: 1px solid black; font-size: 14px; text-align: center; font-weight: bold;"><?php if($Login_modAdjIsInvoice==1) { ?><img src="img/check.png" height="15"><?php } else echo "Disabled"; ?></td>
   </tr>
   <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Sale Price per unit</th>
   <td style="padding: 3px; border: 1px solid black; font-size: 14px; text-align: center; font-weight: bold;"><?php if($FI_PricePerUnit==1) { ?><img src="img/check.png" height="15"><?php } else echo "Disabled"; ?></td>
   </tr>
    <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Show Logged User</th>
   <td style="padding: 3px; border: 1px solid black; font-size: 14px; text-align: center; font-weight: bold;"><?php if($Login_ShowLoggedUser==1) { ?><img src="img/check.png" height="15"><?php } else echo "Disabled"; ?></td>
   </tr>
    <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Modify Discount</th>
   <td style="padding: 3px; border: 1px solid black; font-size: 14px; text-align: center; font-weight: bold;"><?php if($Login_ModifyDiscount==1) { ?><img src="img/check.png" height="15"><?php } else echo "Disabled"; ?></td>
   </tr>
   <?php
   if($module_project==1 || $module_projectdt==1){	
   ?>
    <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Report Project Restrict</th>
   <td style="padding: 3px; border: 1px solid black; font-size: 14px; text-align: center; font-weight: bold;"><?php if($FI_RepRestrictProject==1) { ?><img src="img/check.png" height="15"><?php } else echo "Disabled"; ?></td>
   </tr>
   <?php
   }
   ?>
   <?php
   if($module_costcenter==1 || $module_costcenterdt==1){	
   ?>
   <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Report CostCenter Restrict</th>
   <td style="padding: 3px; border: 1px solid black; font-size: 14px; text-align: center; font-weight: bold;"><?php if($FI_RepRestrictCostcenter==1) { ?><img src="img/check.png" height="15"><?php } else echo "Disabled"; ?></td>
   </tr>
   <?php
   }
   ?>
   <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Report Warehouse Restrict</th>
   <td style="padding: 3px; border: 1px solid black; font-size: 14px; text-align: center; font-weight: bold;"><?php if($FI_RepRestrictWarehouse==1) { ?><img src="img/check.png" height="15"><?php } else echo "Disabled"; ?></td>
   </tr>
    <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Modify Maturity Date</th>
   <td style="padding: 3px; border: 1px solid black; font-size: 14px; text-align: center; font-weight: bold;"><?php if($login_maturitydate==1) { ?><img src="img/check.png" height="15"><?php } else echo "Disabled"; ?></td>
   </tr>
   </table>
   <br>
   <table width="100%" style="border-collapse: collapse;">
   <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Section</th>
   <th style="padding: 3px; border: 1px solid black; font-size: 14px;">Value</th>
   </tr>
   <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Category</th>
   <td style="padding: 3px; border: 1px solid black; font-size: 14px; text-align: center; font-weight: bold;"><?php
   if($FI_PurchaseCategory1==0){
       echo "Local & Export";
   }
   else
     if($FI_PurchaseCategory1==1){
	 echo "Local";
	 }
	 else
	    if($FI_PurchaseCategory1==2){
		echo "Export";
		}
   ?></td>
   </tr>
   <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Decimal</th>
   <td style="padding: 3px; border: 1px solid black; font-size: 14px; text-align: center; font-weight: bold;"><?php
   if($Login_Decimal=='')
	$Login_Decimal=0;
	echo $Login_Decimal;
   ?></td>
   </tr>
   <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Approved Level</th>
   <td style="padding: 3px; border: 1px solid black; font-size: 14px; text-align: center; font-weight: bold;"><?php
   echo $approved_level1;
   ?></td>
   </tr>
    <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Delivery Status Level</th>
   <td style="padding: 3px; border: 1px solid black; font-size: 14px; text-align: center; font-weight: bold;"><?php
   if($deliverystatus_level!='')
     echo $deliverystatus_level;
	 else  
	   echo "-";
   ?></td>
   </tr>
   <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">Credit limit Percentage</th>
   <td style="padding: 3px; border: 1px solid black; font-size: 14px; text-align: center; font-weight: bold;"><?php
   echo $Perc_creditlimit;
   ?></td>
   </tr>
   <?php
   if($Module_RMA==1){
   ?>
   <tr style="">
   <th align="left" style="padding: 3px; border: 1px solid black; font-size: 14px;">RMA In</th>
   <td style="padding: 3px; border: 1px solid black; font-size: 14px; text-align: center; font-weight: bold;"><?php
   echo $RMA_In;
   ?></td>
   </tr>
   <?php
   }
   ?>
   </table>
   
   </div>
   
   <?php
   $querydt = " select ID,loginstk.project_code, loginstk.costcent_code,
			loginstk.group_code, loginstk.subGroup_code,
			loginstk.warehouse_code,if(Default_Project=1,'True','False'),if(Default_Costcenter=1,'True','False'),if(default_warehouse=1,'True','False'),ClientSalesmen,MasterProject,MasterCostCenter, towarehouse_code ".
		   " from ".$_SESSION['dbLabel'].".loginstk ".
		   " left join ".$HTTP_SESSION_VARS['dbName'].".project on ".$HTTP_SESSION_VARS['dbName'].".project.project_code=loginstk.project_code ".
		   " left join ".$HTTP_SESSION_VARS['dbName'].".costcent on ".$HTTP_SESSION_VARS['dbName'].".costcent.costcent_code=loginstk.costcent_code ".
		   " left join ".$HTTP_SESSION_VARS['dbName'].".grouping on ".$HTTP_SESSION_VARS['dbName'].".grouping.group_code=loginstk.group_code ".
		   " left join ".$HTTP_SESSION_VARS['dbName'].".subgroup on ".$HTTP_SESSION_VARS['dbName'].".subgroup.subgroup_code=loginstk.subgroup_code ".
		   " left join ".$HTTP_SESSION_VARS['dbName'].".warehouse on ".$HTTP_SESSION_VARS['dbName'].".warehouse.warehouse_code=loginstk.warehouse_code ".
		   " where loginstk.user_account='".$_GET['user_code']."'";


$resultdt = mysql_query($querydt, $connection);
$number = mysql_num_rows($resultdt);
if($number!=0){
   ?>
   
   <div style="width: 87px; border-bottom: dotted 2px black; margin: auto; text-align: center; margin-bottom: 10px; margin-top: 10px; font-size: 14px;"><b>Item Access</b></div>
   <table width="100%" style="border-collapse: collapse;">
   <tr>
   <th colspan="2" style="padding: 3px; border: 1px solid black; font-size: 12px;">Project</th>
   <th colspan="2" style="padding: 3px; border: 1px solid black; font-size: 12px;">CostCenter</th>
   <th rowspan="2" style="padding: 3px; border: 1px solid black; font-size: 12px;">Group</th>
   <th rowspan="2" style="padding: 3px; border: 1px solid black; font-size: 12px;">Sub Group</th>
   <th rowspan="2" style="padding: 3px; border: 1px solid black; font-size: 12px;">Warehouse</th>
   <th rowspan="2" style="padding: 3px; border: 1px solid black; font-size: 12px;">To Warehouse</th>
   <th rowspan="2" style="padding: 3px; border: 1px solid black; font-size: 12px;">Client Salesman</th>
   </tr>
   <tr style="">
   <th style="padding: 3px; border: 1px solid black; font-size: 12px; width: 100px">Master</th>
   <th style="padding: 3px; border: 1px solid black; font-size: 12px; width: 62px">Details</th>
   <th style="padding: 3px; border: 1px solid black; font-size: 12px;">Master</th>
   <th style="padding: 3px; border: 1px solid black; font-size: 12px;">Details</th>
   
   </tr>
   <?php
   
while($rowsdt=mysql_fetch_array($resultdt)){
   ?>
   
   
   <tr style="">
   <td style="padding: 3px; border: 1px solid black; font-size: 12px; text-align: center; font-weight: bold; width: 75px;"><?php
   if($rowsdt[10]!='')
   echo $rowsdt[10];
   else
   echo "-";
   ?></td>
   <td style="padding: 3px; border: 1px solid black; font-size: 12px; text-align: left; font-weight: bold;"><?php
    
   if($rowsdt[1]!='')
   echo $rowsdt[1];
   else
   echo "-";
  if($rowsdt[6] == "True")
   {
       ?>
	   <img src="img/check.png" height="10">
	   <?php
   }
   ?></td>
   <td style="padding: 3px; border: 1px solid black; font-size: 12px; text-align: center; font-weight: bold;"><?php
   if($rowsdt[11]!='')
   echo $rowsdt[11];
   else
   echo "-";
   ?></td>
   <td style="padding: 3px; border: 1px solid black; font-size: 12px; text-align: left; font-weight: bold;"><?php
   if($rowsdt[2]!='')
   echo $rowsdt[2];
   else
   echo "-";
    if($rowsdt[7] == "True")
   {
       ?>
	   <img src="img/check.png" height="10">
	   <?php
   }
   ?></td>
   <td style="padding: 3px; border: 1px solid black; font-size: 12px; text-align: center; font-weight: bold;"><?php
   if($rowsdt[3]!= '')
   echo $rowsdt[3];
   else
   echo "-";
   ?></td>
   <td style="padding: 3px; border: 1px solid black; font-size: 12px; text-align: center; font-weight: bold;"><?php
   if($rowsdt[4]!='')
   echo $rowsdt[4];
   else
   echo "-";
   ?></td>
   <td style="padding: 3px; border: 1px solid black; font-size: 12px; text-align: left; font-weight: bold;"><?php
   if($rowsdt[5]!='')
   echo $rowsdt[5];
   else
   echo "-";
     if($rowsdt[8] == "True")
   {
       ?>
	   <img src="img/check.png" height="10">
	   <?php
   }
   ?></td>
   <td style="padding: 3px; border: 1px solid black; font-size: 12px; text-align: center; font-weight: bold;"><?php
   if($rowsdt[12]!= '')
   echo $rowsdt[12];
   else
   echo "-";
   ?></td>
   <td style="padding: 3px; border: 1px solid black; font-size: 12px; text-align: center; font-weight: bold;"><?php
   if($rowsdt[9]!='')
   echo $rowsdt[9];
   else
   echo "-";
   ?></td>
   </tr>
   
   <?php
   }
   }
   ?>
   </table>
   <?php
   $querydt = " select id,ledgerstk.ledger_number,if(ledger_include=0,'No','Yes'),ledger_name ".
		   " from ".$_SESSION['dbLabel'].".ledgerstk ".
		   " left join ".$HTTP_SESSION_VARS['dbName'].".ledger on ".$HTTP_SESSION_VARS['dbName'].".ledger.ledger_number=ledgerstk.ledger_number ".
		   " where user_account='".$_GET['user_code']."'";


$resultdt = mysql_query($querydt, $connection);
$number = mysql_num_rows($resultdt);
if($number!=0){
   ?>
   
   <div style="width: 100px; border-bottom: dotted 2px black; margin: auto; text-align: center; margin-bottom: 10px; margin-top: 10px; font-size: 14px;"><b>Ledger Access</b></div>
   
   <table width="100%" style="border-collapse: collapse;">
   <tr style="">
   <th style="padding: 3px; border: 1px solid black; font-size: 14px;">Ledger Number</th>
   <th style="padding: 3px; border: 1px solid black; font-size: 14px;">Ledger Name</th>
   <th style="padding: 3px; border: 1px solid black; font-size: 14px;">Included?</th>
   </tr>
   <?php
   while($rowsdt=mysql_fetch_array($resultdt)){
     ?>
	 <tr style="">
   <th style="padding: 3px; border: 1px solid black; font-size: 14px;"><?php echo $rowsdt[1]; ?></th>
   <th style="padding: 3px; border: 1px solid black; font-size: 14px; text-align: left;"><?php echo $rowsdt[3]; ?></th>
   <th style="padding: 3px; border: 1px solid black; font-size: 14px;"><?php echo $rowsdt[2]; ?></th>
   </tr>
	 <?php
	 }
   ?>
   </table>
   
   <?php
   }
   ?>
   
   <?php
   $querydt = " select id,ledgerrepstk.ledger_number,if(ledger_include=0,'No','Yes'),ledger_name ".
		   " from ".$_SESSION['dbLabel'].".ledgerrepstk ".
		   " left join ".$HTTP_SESSION_VARS['dbName'].".ledger on ".$HTTP_SESSION_VARS['dbName'].".ledger.ledger_number=ledgerrepstk.ledger_number ".
		   " where user_account='".$_GET['user_code']."'";


$resultdt = mysql_query($querydt, $connection);
$number = mysql_num_rows($resultdt);
if($number!=0){
   ?>
   
   <div style="width: 155px; border-bottom: dotted 2px black; margin: auto; text-align: center; margin-bottom: 10px; margin-top: 10px; font-size: 14px;"><b>Report Ledger Access</b></div>
   
    <table width="100%" style="border-collapse: collapse;">
   <tr style="">
   <th style="padding: 3px; border: 1px solid black; font-size: 14px;">Ledger Number</th>
   <th style="padding: 3px; border: 1px solid black; font-size: 14px;">Ledger Name</th>
   <th style="padding: 3px; border: 1px solid black; font-size: 14px;">Included?</th>
   </tr>
   <?php
   while($rowsdt=mysql_fetch_array($resultdt)){
   ?>
   <tr style="">
   <th style="padding: 3px; border: 1px solid black; font-size: 14px;"><?php echo $rowsdt[1]; ?></th>
   <th style="padding: 3px; border: 1px solid black; font-size: 14px; text-align: left;"><?php echo $rowsdt[3]; ?></th>
   <th style="padding: 3px; border: 1px solid black; font-size: 14px;"><?php echo $rowsdt[2]; ?></th>
   </tr>
   <?php
   }
   ?>
   </table>
   <?php
   }
   ?>
   
   <?php
   $querydt = " select concat(CompanyName,Diryear),if(ifnull(AllowLockedPeriod,0)=0,'False','True'),date_Format(LockedPeriod,'%d-%m-%Y'),
			LockedPeriodDays,if(ifnull(LockViewPeriod,0)=0,'False','True'),date_Format(ViewPeriodDate,'%d-%m-%Y'),if(ifnull(ViewLockDaily,0)=0,'False','True'),
				ViewNumberOfDays ".
		   "  ".
		   " from ".$_SESSION['dbLabel'].".listuserdir ".
		   " where usercode='".$_GET['user_code']."'";

//echo $querydt;
$resultdt = mysql_query($querydt, $connection);
$number = mysql_num_rows($resultdt);
if($number != 0){
   ?>
   
   <div style="width: 155px; border-bottom: dotted 2px black; margin: auto; text-align: center; margin-bottom: 10px; margin-top: 10px; font-size: 14px;"><b>Locked Period</b></div>
   
   <table width="100%" style="border-collapse: collapse;">
   <tr style="">
   <th style="padding: 3px; border: 1px solid black; font-size: 14px;">Lock Trans</th>
   <th style="padding: 3px; border: 1px solid black; font-size: 14px;">Company Year</th>
   <th style="padding: 3px; border: 1px solid black; font-size: 14px;">Up to Date</th>
   <th style="padding: 3px; border: 1px solid black; font-size: 14px;">Only Allowed</th>
   <th style="padding: 3px; border: 1px solid black; font-size: 14px;">Lock View Period</th>
   <th style="padding: 3px; border: 1px solid black; font-size: 14px;">View Period Date</th>
   <th style="padding: 3px; border: 1px solid black; font-size: 14px;">View Lock Daily</th>
   <th style="padding: 3px; border: 1px solid black; font-size: 14px;">View Period Date</th>
   </tr>
   <?php
   while($rowsdt=mysql_fetch_array($resultdt)){
   ?>
   <tr style="">
   <th style="padding: 3px; border: 1px solid black; font-size: 14px;"><?php echo $rowsdt['1']; ?></th>
   <th style="padding: 3px; border: 1px solid black; font-size: 14px;"><?php echo $rowsdt['0']; ?></th>
   <th style="padding: 3px; border: 1px solid black; font-size: 14px;"><?php echo $rowsdt['2']; ?></th>
   <th style="padding: 3px; border: 1px solid black; font-size: 14px;"><?php echo $rowsdt['3']; ?></th>
   <th style="padding: 3px; border: 1px solid black; font-size: 14px;"><?php echo $rowsdt['4']; ?></th>
   <th style="padding: 3px; border: 1px solid black; font-size: 14px;"><?php echo $rowsdt['5']; ?></th>
   <th style="padding: 3px; border: 1px solid black; font-size: 14px;"><?php echo $rowsdt['6']; ?></th>
   <th style="padding: 3px; border: 1px solid black; font-size: 14px;"><?php echo $rowsdt['7']; ?></th>
   </tr>
   <?php
   }
   ?>
   </table>
   
   <?php
   }
   ?>
   
   </div>
   <?php
print <<< HERE

<script language=javascript>
if (typeof(window.print) != 'undefined')
{
    window.print();
}
</script>
</BODY>
</HTML>
HERE;
?>

