Mercurial > hg > fapweb
changeset 677:64d80a7f7e26
Cosmetics.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sun, 09 Nov 2014 04:52:36 +0200 |
parents | 8104e54bce71 |
children | 32724ab0d486 |
files | admajax.php msite.inc.php |
diffstat | 2 files changed, 9 insertions(+), 11 deletions(-) [+] |
line wrap: on
line diff
--- a/admajax.php Sun Nov 09 02:51:52 2014 +0200 +++ b/admajax.php Sun Nov 09 04:52:36 2014 +0200 @@ -1233,7 +1233,6 @@ break; case "settings": - $group = stFetchSQL(stPrepareSQL("SELECT * FROM settings_groups WHERE id=%D", "id")); if ($group !== FALSE) { @@ -1297,12 +1296,6 @@ } break; - case "entry": - $res = stFetchSQL(stPrepareSQL("SELECT * FROM entries WHERE id=%D", "id")); - if ($res !== FALSE) - echo stGetEntryItemData($res["id"], $res, "en"); - break; - case "entries": $id = intval(stGetRequestItem("id", 0)); if (($compo = stFetchSQL("SELECT * FROM compos WHERE id=".$id)) !== false) @@ -1310,8 +1303,7 @@ $nentries = stFetchSQLColumn("SELECT COUNT(*) FROM entries WHERE compo_id=".$id); $prefix = "ne"; echo - "<h1 style=\"margin-bottom: 0px;\">#".$id." - ".chentities($compo["name"]). - " (".$nentries." entries)</h1>\n"; + "<h1>#".$id." - ".chentities($compo["name"])." (".$nentries." entries)</h1>\n"; if ($nentries > 0) { @@ -1355,6 +1347,12 @@ "</form>\n"; } break; + + case "entry": + $res = stFetchSQL(stPrepareSQL("SELECT * FROM entries WHERE id=%D", "id")); + if ($res !== FALSE) + echo stGetEntryItemData($res["id"], $res, "en"); + break; } break;
--- a/msite.inc.php Sun Nov 09 02:51:52 2014 +0200 +++ b/msite.inc.php Sun Nov 09 04:52:36 2014 +0200 @@ -193,14 +193,14 @@ { $id = $item["id"]; $prefix = "at"; - + if ($tr) { echo " <tr class=\"".($row % 2 == 1 ? "rodd" : "reven").$eclass. "\" id=\"attendee".$id."\" ".($full ? "onClick=\"activateAttendee(".$id.")\"" : "").">"; } - + echo stGetTDEditTextItem($edit, 20, SET_LEN_USERNAME, "name", $id, $prefix, $item["name"]). stGetTDEditTextItem($edit, 20, SET_LEN_GROUPS, "groups", $id, $prefix, $item["groups"]).