Mercurial > hg > fapweb
diff ajax.php @ 61:e85ed35585fc
Work on attendee editing, etc.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sat, 05 Oct 2013 12:33:59 +0300 |
parents | e5e38ed4e837 |
children | 230aacc22cb4 |
line wrap: on
line diff
--- a/ajax.php Sat Oct 05 11:36:30 2013 +0300 +++ b/ajax.php Sat Oct 05 12:33:59 2013 +0300 @@ -232,13 +232,33 @@ " <th class=\"oneliner\">Oneliner</th>\n". " <th class=\"email\">E-mail</th>\n". " <th>Actions</th>\n". - " <th class=\"vkey\">User key</th>\n". + " <th class=\"vkey\">Vote key</th>\n". " <th class=\"vactive\">Active</th>\n". " </tr>\n"; $row = 0; foreach ($res as $item) stPrintAttendee($item, $row++, TRUE); - echo "</table>\n"; + + $prefix = "ne"; + echo + "</table>\n". + "<hr />\n". + "<table>\n". + " <tr>\n". + " <th>Name</th>\n". + " <th>Groups</th>\n". + " <th>E-mail</th>\n". + " <th>Oneliner</th>\n". + " <th>Actions</th>\n". + " </tr>\n". + " <tr>\n". + " <td>".stGetFormTextInput(20, 64, "name", "x", $prefix, "")."</td>\n". + " <td>".stGetFormTextInput(20, 64, "groups", "x", $prefix, "")."</td>\n". + " <td>".stGetFormTextInput(20, 64, "email", "x", $prefix, "")."</td>\n". + " <td>".stGetFormTextInput(30, 64, "oneliner", "x", $prefix, "")."</td>\n". + " <td>".stGetFormButtonInput("add", "", $prefix, " Add new ", "addAttendee()")."</td>\n". + " </tr>\n". + "</table>\n"; } else if ($type == "compos") @@ -340,7 +360,7 @@ stChkRequestItem("author") && stChkRequestItem("compo_id")) { $sql = stPrepareSQL( - "INSERT INTO entries (name,author,compo_id) VALUES (%S,%Q,%D)", + "INSERT INTO entries (name,author,compo_id,filename) VALUES (%S,%S,%D,%S)", "name", "author", "compo_id", "filename"); execSQLCond($sql, "OK, entry added.");