Location: PHPKode > projects > NOLA > adminarsalestaxupd.php
<? include('includes/main.php'); ?>
<? include('includes/arfunctions.php'); ?>
<?
     echo texttitle(STR_SALES_TAX_UPDATE);
     if ($id) { //if sales tax selected
          if ($delete) { //if sales tax should be deleted
               if (arsalestaxdelete($id)) die(); //OK
          } elseif ($taxname) { //if sales tax should be updated
               arsalestaxupdate($id, $taxname, $taxrate, $taxbase, $glacctid);
          };
          //edit sales tax
          echo '<form action="adminarsalestaxupd.php" method="post"><input type="hidden" name="id" value="'.$id.'"><table>';
          formarsalestaxupdate($id);
          echo '</table><input type="submit" value="'.STR_SAVE_CHANGES.'"></form><a href="javascript:confirmdelete(\'adminarsalestaxupd.php?delete=1&id='.$id.'\')">'.STR_DELETE_THIS_SALES_TAX.'</a>';
     } else { //select sales tax
          echo '<form action="adminarsalestaxupd.php" method="post"><table>';
          if (formarsalestaxselect('id')) echo '<input type="submit" value="'.STR_EDIT_SELECTION.'">';
          echo '</table></form><a href="adminarsalestaxadd.php">'.STR_ADD_NEW_SALES_TAX.'</a>';
     };
?>
<? include('includes/footer.php'); ?>
Return current item: NOLA