$show = TRUE;
// Check for '???_id' element
-if ((countRequestPost() > 0) && (!ifPostContainsSelections('grade_id'))) {
+if ((countRequestPost() > 0) && (!isFormSent('add_grade')) && (!ifPostContainsSelections('grade_id'))) {
// Not found so output message
displayMessage('{--ADMIN_GRADE_DATA_NO_SELECTIONS--}');
} // END - if
// Edit or delete button hit?
-if (isFormSent('edit')) {
+if (isFormSent('add_grade')) {
+ // Add grade
+ showEntriesByXmlCallback('admin_add_do_grade_data');
+
+ // Do not show the list of URLs after this template
+ $show = FALSE;
+} elseif (isFormSent('edit')) {
// Show entries for editing
showEntriesByXmlCallback('admin_edit_show_grade_data');
<tr>
<td class="table_footer" colspan="2">
<input type="reset" class="form_reset" value="{--CLEAR_FORM--}" />
- <input type="submit" name="add" class="form_submit" value="{--ADMIN_ADD_GRADE_DATA_SUBMIT--}" />
+ <input type="submit" name="add_grade" class="form_submit" value="{--ADMIN_ADD_GRADE_DATA_SUBMIT--}" />
</td>
</tr>
</table>