Mercurial > hg > fapweb
comparison msite.inc.php @ 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 |
comparison
equal
deleted
inserted
replaced
70:d31fc2c53b2b | 71:d74fb8cf0062 |
---|---|
384 // | 384 // |
385 function stPrintAttendee($item, $row, $edit, $eclass = "") | 385 function stPrintAttendee($item, $row, $edit, $eclass = "") |
386 { | 386 { |
387 $id = $item["id"]; | 387 $id = $item["id"]; |
388 $prefix = "at"; | 388 $prefix = "at"; |
389 echo " ". | 389 echo " <tr class=\"".($row % 2 == 1 ? "rodd" : "reven")."\" id=\"attendee".$id."\">"; |
390 " <tr class=\"".($item["active"] ? "vactive " : ""). | |
391 ($row % 2 == 1 ? "rodd" : "reven")."\" id=\"attendee".$id."\">"; | |
392 | 390 |
393 if ($edit) | 391 echo |
394 { | |
395 echo | |
396 stGetTDEditTextItem(FALSE, 20, 40, "name", $id, $prefix, $item["name"]." / ".$item["groups"]); | |
397 } | |
398 else | |
399 { | |
400 echo | |
401 stGetTDEditTextItem(FALSE, 20, 40, "name", $id, $prefix, $item["name"]). | 392 stGetTDEditTextItem(FALSE, 20, 40, "name", $id, $prefix, $item["name"]). |
402 stGetTDEditTextItem(FALSE, 20, 40, "groups", $id, $prefix, $item["groups"]). | 393 stGetTDEditTextItem(FALSE, 20, 40, "groups", $id, $prefix, $item["groups"]). |
403 "<td class=\"regtime\">".date("d M Y / H:i", $item["regtime"])."</td>"; | 394 "<td class=\"regtime\">".date("d.m. H:i", $item["regtime"])."</td>". |
404 } | |
405 | |
406 echo | |
407 stGetTDEditTextItem($edit, 30, 64, "oneliner", $id, $prefix, $item["oneliner"], "autocomplete=\"off\""); | 395 stGetTDEditTextItem($edit, 30, 64, "oneliner", $id, $prefix, $item["oneliner"], "autocomplete=\"off\""); |
408 | 396 |
409 if ($edit) | 397 if ($edit) |
410 { | 398 { |
411 echo | 399 echo |
412 stGetTDEditTextItem($edit, 20, 40, "email", $id, $prefix, $item["email"], "autocomplete=\"off\""). | 400 stGetTDEditTextItem($edit, 20, 40, "email", $id, $prefix, $item["email"], "autocomplete=\"off\""). |
413 | |
414 "<td>". | 401 "<td>". |
415 "<button class=\"button\" id=\"atupd".$id."\" type=\"button\" onclick=\"updateAttendee(".$id.")\">Update</button>". | 402 "<button class=\"button\" id=\"atupd".$id."\" type=\"button\" onclick=\"updateAttendee(".$id.")\"> Upd </button>". |
416 "<button class=\"button\" id=\"atdel".$id."\" type=\"button\" onclick=\"deleteAttendee(".$id.")\">Delete</button>". | 403 "<button class=\"button\" id=\"atdel".$id."\" type=\"button\" onclick=\"deleteAttendee(".$id.")\"> Del </button>". |
417 "</td>". | 404 "</td>"; |
418 | |
419 " <td class=\"vkey\">".chentities($item["key"])."</td>\n". | |
420 " <td class=\"vactive\">".stGetFormCheckBoxInput("active", $id, $prefix, $item["active"], "", | |
421 "onClick=\"updateAttendee2(".$id.")\"")."</td>\n"; | |
422 } | 405 } |
423 | 406 |
424 echo "</tr>\n"; | 407 echo "</tr>\n"; |
425 } | 408 } |
426 | 409 |