<?

/*
FlexCMS (http://www.flexcms.com)
Flexible, Powerful, Affordable.

Contents of this file are protected by the copyright
notice found at http://www.flexcms.com/flex/pages/copyright.html,
and its usage is subject to the terms of the licensing agreement 
available at http://www.flexcms.com/flex/pages/license.html
*/



	// ========================================================================================
	
	// ========================================================================================
	
	$PageTitle = '<img src="'.$ImagesURL.'/admin/admincp_ecom.gif" width="20" height="21" align="middle"> '.$MsgText[9][127];
	$BrowserTitle = $MsgText[9][127];
	$LocationBar = '<a href="'.$IndexURL.'">'.$MsgText[0][1].'</a> > <a href="' . $MainURL . '/options.html">'.$MsgText[0][4].'</a> > <a href="'.$MainURL.'/admin/store-taxes.html">'.$MsgText[9][116].'</a> > '.$MsgText[9][127];
	
	if ($LoggedIn == 'y') {
		
		ReadPermissions();
		Global $Permissions;
		
		if ($Permissions[904] == 'y') {
		
			ReadFormArguments();
			Global $FormArguments;
		
			if (count($FormArguments) > 0) {
						
				$query = "insert into `".$Settings['DBPrefix']."ec-Taxes` (Type, Title, Description, Number, Rate, Arguments1, Arguments2, TaxShipping) values ('".strtoupper($FormArguments['Type'])."','".$FormArguments['Title']."','".$FormArguments['Description']."','".$FormArguments['Number']."',".$FormArguments['Rate'].",'".$FormArguments['Country']."','".$FormArguments['StateProv']."','".$FormArguments['TaxShipping']."');";
				$result = mysql_query($query) or die (mysql_error());
				
				
				$PageContents = '<br><br>'.$MsgText[9][128].'<br><br><a href="'.$MainURL.'/admin/store-taxes.html">'.$MsgText[0][564].'</a>';

									
			}
			
			else {
				$PageContents = $MsgText[0][98];
			}
					
		}
		else {
		
			$PageContents = $MsgText[0][97];
		
		}

	}
	else {
	
		RedirectToLogin();
	
	}

	// ========================================================================================




?>
