changeset 169:8db98399bb38

Put the "new attendee" form above the current attendees in admin interface.
author Matti Hamalainen <ccr@tnsp.org>
date Sun, 27 Oct 2013 06:45:37 +0200
parents 40a4a2d3d039
children dffededcdd92
files admajax.php
diffstat 1 files changed, 20 insertions(+), 17 deletions(-) [+]
line wrap: on
line diff
--- a/admajax.php	Sun Oct 27 06:21:11 2013 +0200
+++ b/admajax.php	Sun Oct 27 06:45:37 2013 +0200
@@ -221,26 +221,9 @@
       else
       if ($type == "attendees")
       {
-        // List of attendees
-        echo
-        "<table class=\"attendees\">\n".
-        " <tr>\n".
-        "  <th class=\"name\">Name</th>\n".
-        "  <th class=\"groups\">Groups</th>\n".
-        "  <th class=\"regtime\">Registered</th>\n".
-        "  <th class=\"oneliner\">Oneliner</th>\n".
-        "  <th class=\"email\">E-mail</th>\n".
-        "  <th>Actions</th>\n".
-        " </tr>\n";
-        $row = 0;
-        foreach ($res as $item)
-          stPrintAttendee($item, $row++, TRUE);
-
         // For adding a new one
         $prefix = "ne";
         echo
-          "</table>\n".
-          "<hr />\n".
           "<table>\n".
           " <tr>\n".
           "  <th>Name</th>\n".
@@ -256,6 +239,26 @@
           "  <td>".stGetFormTextInput(20, 64, "email", "x", $prefix, "")."</td>\n".
           "  <td>".stGetFormButtonInput("add", "", $prefix, " Add new ", "addAttendee()")."</td>\n".
           " </tr>\n".
+          "</table>\n".
+          "<hr />\n";
+
+        // List of attendees
+        echo
+          "<table class=\"attendees\">\n".
+          " <tr>\n".
+          "  <th class=\"name\">Name</th>\n".
+          "  <th class=\"groups\">Groups</th>\n".
+          "  <th class=\"regtime\">Registered</th>\n".
+          "  <th class=\"oneliner\">Oneliner</th>\n".
+          "  <th class=\"email\">E-mail</th>\n".
+          "  <th>Actions</th>\n".
+          " </tr>\n";
+
+        $row = 0;
+        foreach ($res as $item)
+          stPrintAttendee($item, $row++, TRUE);
+
+        echo
           "</table>\n";
       }
       else