0) && (!isFormSent('add_grade')) && (!ifPostContainsSelections('grade_id'))) { // Not found so output message displayMessage('{--ADMIN_GRADE_DATA_NO_SELECTIONS--}'); // Abort here return; } // END - if // Edit or delete button hit? if (isFormSent('add_grade')) { // Add grade doGenericXmlTemplateCallback('admin_add_do_grade_data'); // Do not show the list of URLs after this template $show = FALSE; } elseif (isFormSent('edit')) { // Show entries for editing doGenericXmlTemplateCallback('admin_edit_show_grade_data'); // Do not show the list of URLs after this template $show = FALSE; } elseif (isFormSent('do_edit')) { // Change data of entries doGenericXmlTemplateCallback('admin_edit_do_grade_data'); } elseif (isFormSent('delete')) { // Show entries for deletion doGenericXmlTemplateCallback('admin_delete_show_grade_data'); // Do not show the list of URLs after this template $show = FALSE; } elseif (isFormSent('do_delete')) { // Remove entries from database doGenericXmlTemplateCallback('admin_delete_do_grade_data'); } // Show entries? if ($show === FALSE) { // No, a form has already been show return FALSE; } // END - if // List all URLs doGenericXmlTemplateCallback('admin_list_grade_data'); // Add form for adding new entry loadTemplate('admin_add_grade_data'); // [EOF] ?>