Location: PHPKode > projects > NOLA > adminarinvtermsupd.php
<? include('includes/main.php'); ?>
<? include('includes/arfunctions.php'); ?>
<?
     echo texttitle(STR_INVOICE_TERMS_UPDATE);
     if ($id) { //if invoice term selected
          if ($delete) { //if invoice term should be deleted
               if (arinvoicetermsdelete($id)) die(textsuccess(STR_INVOICE_TERMS_DELETED_SUCCESSFULLY)); //OK
          } elseif ($verbal) { //if invoice term should be updated
               arinvoicetermsupdate($id, $verbal, $discountpercent, $discountdays, $netduedays);
          };
          // edit invoice term
          echo '<form action="adminarinvtermsupd.php" method="post"><input type="hidden" name="id" value="'.$id.'"><table>';
          formarinvoicetermsupdate($id);
          echo '</table><input type="submit" value="'.STR_SAVE_CHANGES.'"></form><a href="javascript:confirmdelete(\'adminarinvtermsupd.php?delete=1&id='.$id.'\')">'.STR_DELETE_INVOICE_TERMS.'</a>';
     } else { //select invoice term
          echo '<form action="adminarinvtermsupd.php" method="post"><table>';
          if (formarinvoicetermsselect('id')) echo '<input type="submit" value="'.STR_EDIT_SELECTION.'">';
          echo '</table></form><a href="adminarinvtermsadd.php">'.STR_ADD_NEW_INVOICE_TERMS.'</a>';
     };
?>
<? include('includes/footer.php'); ?>
Return current item: NOLA