Location: PHPKode > projects > NOLA > adminprpaytypeupd.php
<? include('includes/main.php'); ?>
<? include('includes/prfunctions.php'); ?>
<?
     echo texttitle(STR_PAYROLL_PAY_TYPE_UPDATE);
     if ($delete) {
          prpaytypedelete($id);
          unset($id);
     };
     if ($id) {
          if ($name) {
               if ($type==1) $vacation=1; //set correct variable from type select box
               if ($type==2) $sick=1;
               prpaytypeupdate($id, $name, $description, $multiplier, $vacation, $sick);
          };
          echo '<form action="adminprpaytypeupd.php" method="post" name="mainform"><input type="hidden" name="nonprintable" value="1"><table>';
          echo '<input type="hidden" name="id" value="'.$id.'">';
          formprpaytypeupdate($id);
          echo '</table><input type="submit" value="'.STR_SAVE_CHANGES.'"></form> <a href="javascript:confirmdelete(\'adminprpaytypeupd.php?delete=1&id='.$id.'\')">'.STR_DELETE_THIS_PAYMENT_TYPE.'</a>';
     } else {
          echo '<form action="adminprpaytypeupd.php" method="post"><table>';
          formprpaytypeselect('id');
          echo '</table><input type="submit" value="'.STR_EDIT_SELECTION.'"></form>';
          echo '<a href="adminprpaytypeadd.php">'.STR_ADD_NEW_PAYMENT_TYPE.'</a>';
     };
?>
<? include('includes/footer.php'); ?>
Return current item: NOLA