mySQLSafe($_POST['taxName']); $record["percent"] = $db->mySQLSafe($_POST['percent']); if($_POST['taxId']>0){ $where = "id = ".$db->mySQLSafe($_POST['taxId']); $update =$db->update($glob['dbprefix']."CubeCart_taxes", $record, $where); if($update == TRUE){ $msgTaxType = "

'".$_POST['taxName']."' ".$lang['admin']['settings']['update_success']."

"; } else { $msgTaxType = "

'".$_POST['taxName']."' ".$lang['admin']['settings']['update_fail']."

"; } } else { $insert =$db->insert($glob['dbprefix']."CubeCart_taxes", $record); if($insert == TRUE){ $msgTaxType = "

'".$_POST['taxName']."' ".$lang['admin']['settings']['add_success']."

"; } else { $msgTaxType = "

'".$_POST['taxName']."' ".$lang['admin']['settings']['add_fail']."

"; } } } elseif(isset($_GET['delete'])) { $where = "id = ".$db->mySQLSafe($_GET['delete']); $delete = $db->delete($glob['dbprefix']."CubeCart_taxes", $where, ""); if($delete == TRUE){ $msgTaxType = "

".$lang['admin']['settings']['delete_success']."

"; } else { $msgTaxType = "

".$lang['admin']['settings']['delete_failed']."

"; } } $jsScript = jsGeoLocation("taxCountry", "taxCounty", "-- ".$lang['admin']['all']." --"); include("../includes/header.inc.php"); ?>

select("SELECT * FROM ".$glob['dbprefix']."CubeCart_iso_countries"); ?>
select("SELECT * FROM ".$glob['dbprefix']."CubeCart_iso_counties WHERE countryId = '".$config['taxCountry']."'"); ?>
 

select("SELECT * FROM ".$glob['dbprefix']."CubeCart_taxes"); ?>
0){ $editTax = $db->select("select * FROM ".$glob['dbprefix']."CubeCart_taxes WHERE id = ".$db->mySQLsafe($_GET['edit'])); } ?>
href="?edit=" class="txtLink"> select("SELECT * FROM ".$glob['dbprefix']."CubeCart_inventory WHERE taxType=".$taxTypes[$i]['id']); if($noProducts == FALSE){ ?> href="javascript:decision('','?delete=');" class="txtLink">
%