Location: PHPKode > projects > NOLA > adminpremplreviewratingadd.php
<? include('includes/main.php'); ?>
<? //adminpremplreviewratingadd.php
     echo texttitle(STR_EMPLOYEE_RATING_ADD);
     if ($description) { //if the user has submitted info
                  $recordSet=&$conn->Execute('select * from premplreviewrating where description='.sqlprep($description));
                  if (!$recordSet) die (texterror(STR_RATING_ALREADY_EXISTS_BY_THAT_NAME));
                  checkpermissions('pay');
                  if ($conn->Execute("insert into premplreviewrating (description) VALUES (".sqlprep($description).")") === false) {
                     echo texterror(STR_ERROR_ADDING_REVIEW_RATING);
                  } else {
                     echo textsuccess(STR_REVIEW_RATING_ADDED_SUCCESSFULLY);
                  };
     };
     echo '<form action="adminpremplreviewratingadd.php" method="post"><input type="hidden" name="nonprintable" value="1"><table><tr><td>'.STR_DESCRIPTION.':</td><td><input type="text" name="description" size="30"></td></tr>';
     echo '</table><input type="submit" value="'.STR_ADD.'"></form>';
?>
<? include('includes/footer.php'); ?>
Return current item: NOLA