]> git.mxchange.org Git - mailer.git/commitdiff
Made 'add_grade' partly working (XML template and some logic is still missing)
authorRoland Häder <roland@mxchange.org>
Sun, 21 Oct 2012 20:28:08 +0000 (20:28 +0000)
committerRoland Häder <roland@mxchange.org>
Sun, 21 Oct 2012 20:28:08 +0000 (20:28 +0000)
inc/modules/admin/what-list_grade_data.php
templates/de/html/admin/admin_add_grade_data.tpl

index d6eb5bf20f05f1d2c5cd18f35862a033e1912edc..6de20d18d96acddcd64c554ba82350be4df8dcf9 100644 (file)
@@ -47,7 +47,7 @@ addYouAreHereLink('admin', __FILE__);
 $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--}');
 
@@ -56,7 +56,13 @@ if ((countRequestPost() > 0) && (!ifPostContainsSelections('grade_id'))) {
 } // 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');
 
index bb7f79abab97a22f72a0bd4bb42eb542f774c116..5453ed006151aff2f2ae3905f1b590c98afa1bf4 100644 (file)
@@ -40,7 +40,7 @@
        <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>