<?

/*
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][122];
	$BrowserTitle = $MsgText[9][122];
	$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][122];
	
	if ($LoggedIn == 'y') {
		
		ReadPermissions();
		Global $Permissions;
		
		if ($Permissions[904] == 'y') {
		
			if ($Arguments3 != '') {
				
				$query = "select * from `".$Settings['DBPrefix']."ec-Taxes` where RecordNumber='".intval($Arguments3)."' limit 1";
				$result = mysql_query($query) or die (mysql_error());
				$row = mysql_fetch_array($result);
				
				$ActiveSelected[$row['Active']] = ' selected';
				
				if ($row['TaxShipping'] == 1) {
					$TaxShippingChecked = ' checked';
				}
				
				
				$PageContents = '<br><form action="'.$MainURL.'/admin/store-taxes-edit-save" method="post"><input type="hidden" name="ID" value="'.$Arguments3.'"><b>'.$MsgText[9][124].':</b><br><input type="text" name="Title" size="20" maxlength="100" style="'.$FormStyle.'" value="'.str_replace('"','&#34;',$row['Title']).'"><br><br><b>'.$MsgText[9][10].' ('.$MsgText[0][418].'):</b><br><input type="text" name="Description" size="40" maxlength="255" style="'.$FormStyle.'" value="'.str_replace('"','&#34;',$row['Description']).'"><br><br><br><b>'.$MsgText[9][126].' ('.$MsgText[0][418].'):</b><br><input type="text" name="Number" size="20" maxlength="100" style="'.$FormStyle.'" value="'.str_replace('"','&#34;',$row['Number']).'"><br><br><b>'.$MsgText[9][125].':</b><br><input type="text" name="Rate" size="10" maxlength="8" style="'.$FormStyle.'" value="'.str_replace('"','&#34;',$row['Rate']).'">%<br><br><input type="checkbox" name="TaxShipping" value="1"'.$TaxShippingChecked.'> '.$MsgText[9][366].'<br><br><br><b>'.$MsgText[0][416].':</b><br><select name="Active" style="'.$FormStyle.'">
	<option value="1"'.$ActiveSelected[1].'> '.$MsgText[9][76].'</option>
	<option value="0"'.$ActiveSelected[0].'> '.$MsgText[9][77].'</option>
</select><br><br><br><input type="checkbox" name="Remove" value="y"> '.$MsgText[0][156].'
<br><br><br><br><input type="submit" value="'.$MsgText[0][123].'" style="'.$FormStyle.'"></form>';
				
			}
			
			else {
				$PageContents = $MsgText[0][98];
			}
					
		}
		else {
		
			$PageContents = $MsgText[0][97];
		
		}

	}
	else {
	
		RedirectToLogin();
	
	}

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




?>
