changeset 71:d74fb8cf0062

Adjust attendee output again, we're separating vote keys from there once more. Durr.
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 11 Oct 2013 09:33:16 +0300
parents d31fc2c53b2b
children 63a6caf59e5c
files msite.inc.php
diffstat 1 files changed, 6 insertions(+), 23 deletions(-) [+]
line wrap: on
line diff
--- a/msite.inc.php	Fri Oct 11 09:32:00 2013 +0300
+++ b/msite.inc.php	Fri Oct 11 09:33:16 2013 +0300
@@ -386,39 +386,22 @@
 {
   $id = $item["id"];
   $prefix = "at";
-  echo "  ".
-    " <tr class=\"".($item["active"] ? "vactive " : "").
-    ($row % 2 == 1 ? "rodd" : "reven")."\" id=\"attendee".$id."\">";
+  echo "  <tr class=\"".($row % 2 == 1 ? "rodd" : "reven")."\" id=\"attendee".$id."\">";
   
-  if ($edit)
-  {
-    echo
-    stGetTDEditTextItem(FALSE, 20, 40, "name", $id, $prefix, $item["name"]." / ".$item["groups"]);
-  }
-  else
-  {
-    echo
+  echo
     stGetTDEditTextItem(FALSE, 20, 40, "name", $id, $prefix, $item["name"]).
     stGetTDEditTextItem(FALSE, 20, 40, "groups", $id, $prefix, $item["groups"]).
-    "<td class=\"regtime\">".date("d M Y / H:i", $item["regtime"])."</td>";
-  }
-
-  echo
+    "<td class=\"regtime\">".date("d.m. H:i", $item["regtime"])."</td>".
     stGetTDEditTextItem($edit, 30, 64, "oneliner", $id, $prefix, $item["oneliner"], "autocomplete=\"off\"");
 
   if ($edit)
   {
     echo
       stGetTDEditTextItem($edit, 20, 40, "email", $id, $prefix, $item["email"], "autocomplete=\"off\"").
-
       "<td>".
-      "<button class=\"button\" id=\"atupd".$id."\" type=\"button\" onclick=\"updateAttendee(".$id.")\">Update</button>".
-      "<button class=\"button\" id=\"atdel".$id."\" type=\"button\" onclick=\"deleteAttendee(".$id.")\">Delete</button>".
-      "</td>".
-
-      "  <td class=\"vkey\">".chentities($item["key"])."</td>\n".
-      "  <td class=\"vactive\">".stGetFormCheckBoxInput("active", $id, $prefix, $item["active"], "",
-      "onClick=\"updateAttendee2(".$id.")\"")."</td>\n";
+      "<button class=\"button\" id=\"atupd".$id."\" type=\"button\" onclick=\"updateAttendee(".$id.")\"> Upd </button>".
+      "<button class=\"button\" id=\"atdel".$id."\" type=\"button\" onclick=\"deleteAttendee(".$id.")\"> Del </button>".
+      "</td>";
   }
 
   echo "</tr>\n";