Mercurial > hg > fapweb
diff admajax.php @ 113:671330b7f5d1
Add "show_id" to compo entries, to designate the position they were shown at
in the competition.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 22 Oct 2013 12:09:32 +0300 |
parents | 91660a9d50f0 |
children | a95facb41c86 |
line wrap: on
line diff
--- a/admajax.php Tue Oct 22 12:08:27 2013 +0300 +++ b/admajax.php Tue Oct 22 12:09:32 2013 +0300 @@ -142,8 +142,8 @@ " <th colspan=\"5\">#".$id." - ".chentities($compo["name"])."</th>\n". " </tr>\n". " <tr>\n". - " <th style=\"width:1%;\">Compo</th>\n". - " <th style=\"width:1%;\">#</th>\n". + " <th style=\"width:4%;\">ID#</th>\n". + " <th style=\"width:4%;\">S#</th>\n". " <th>Title</th>\n". " <th>Author(s)</th>\n". " <th>Filename</th>\n". @@ -151,19 +151,19 @@ " </tr>\n"; $prefix = "en"; - $index = 1; foreach ($compo["entries"] as $eid => $entry) { echo " <tr id=\"entry".$eid."\">\n". - " <td>".stGetFormTextInput(5, 5, "compo_id", $eid, "en", $id)."</td>\n". - " <td>".$index."</td>\n". + " <td>".$eid."</td>\n". + " <td>".($entry["show_id"] > 0 ? $entry["show_id"] : "-")."</td>\n". " <td>".stGetFormTextInput(30, 64, "name", $eid, "en", $entry["name"])."</td>\n". " <td>".stGetFormTextInput(30, 64, "author", $eid, "en", $entry["author"])."</td>\n". " <td>".stGetFormTextInput(20, 64, "filename", $eid, "en", $entry["filename"])."</td>\n". " <td>". + stGetFormButtonInput("delete", $eid, $prefix, " Del ", "deleteEntry(".$eid.")"). + stGetFormTextInput(3, 3, "compo_id", $eid, "en", $id). stGetFormButtonInput("update", $eid, $prefix, " Upd ", "updateEntry(".$eid.")"). - stGetFormButtonInput("delete", $eid, $prefix, " Del ", "deleteEntry(".$eid.")"). "</td>\n". " </tr>\n"; $index++; @@ -173,7 +173,7 @@ echo " <tr>\n". " <td></td>\n". - " <td>".$index."</td>\n". + " <td></td>\n". " <td>".stGetFormTextInput(30, 64, "name", $id, "ne", "")."</td>\n". " <td>".stGetFormTextInput(30, 64, "author", $id, "ne", "")."</td>\n". " <td>".stGetFormTextInput(20, 64, "filename", $id, "ne", "")."</td>\n".