File: /home/barbeatleanalyti/public_html/baris.beatleanalytics.com/salcalculation.php
<?php
// Include common files.
include_once("site/include/config.php");
include_once(INCLUDE_PATH."/dbClass.php");
$objDB = new MySQLCN();
include_once(INCLUDE_PATH."/functions.php");
include_once(INCLUDE_PATH."/storeconfig.php");
$storeconfig = new storeconfig();
include_once(TEMPLATE_PATH."/common_include.php");
// Create a new object for MySQLCN
include_once(INCLUDE_PATH."/empsalarybreakup.php");
$objSalary = new include_empsalarybreakup();
// Check if data is variable is exists or not into query string or post data.
//print_r($_REQUEST);
$PFType = $_REQUEST['PFType'];
$bas = $_REQUEST['bas'];
$acn = $_REQUEST['acn'];
$MonthlyBasic = $_REQUEST['MonthlyBasic'];
if($acn == 'BasicCalculation'){
$bas = $objSalary->BasicCalculation($PFType,$bas,$MonthlyBasic);
echo $bas;
}
?>