# HG changeset patch # User Matti Hamalainen # Date 1416488204 -7200 # Node ID 133197d0e48a79ed8fbf9a142c7acb8a95203c92 # Parent 3901bb4431196fa0e96c2e3c917c29d7868794a3 Adjust entry editing look. diff -r 3901bb443119 -r 133197d0e48a admajax.php --- a/admajax.php Thu Nov 20 13:54:42 2014 +0200 +++ b/admajax.php Thu Nov 20 14:56:44 2014 +0200 @@ -213,10 +213,10 @@ echo "
\n". " ".stGetEditFormTextInput($mode, "Name", 20, SET_LEN_ENTRY_NAME, "name", $eid, $prefix, $item["name"])."\n". - " ".stGetEditFormTextInput($mode, "Author", 15, SET_LEN_ENTRY_AUTHOR, "author", $eid, $prefix, $item["author"])."\n". + " ".stGetEditFormTextInput($mode, "Author", 20, SET_LEN_ENTRY_AUTHOR, "author", $eid, $prefix, $item["author"])."\n". "
\n". "
\n". - " ".stGetEditFormTextInput($mode, "Scratch filename", 20, SET_LEN_ENTRY_FILENAME, "filename", $eid, $prefix, $item["filename"])."\n"; + " ".stGetEditFormTextInput($mode, "Scratch filename", 25, SET_LEN_ENTRY_FILENAME, "filename", $eid, $prefix, $item["filename"])."\n"; switch ($mode) { @@ -234,11 +234,14 @@ "
\n". " ".stGetEditFormTextArea($mode, "Info shown during compo", 2, 25, "info", $eid, $prefix, $item["info"])."\n". " ".stGetEditFormTextArea($mode, "Notes for internal use", 2, 25, "notes", $eid, $prefix, $item["notes"])."\n". - "
\n"; + "
\n". + "
\n"; if ($mode == EEMODE_NORMAL || $mode == EEMODE_EDIT) { - echo "
".$previewTypeList[$compo["preview_type"]][0]." / "; + echo "
". + "Preview". + $previewTypeList[$compo["preview_type"]][0]." / "; if ($mode) echo stGetFormOptionListFromArray($prefix."preview_type".$eid, " ", FALSE, $previewTypeList, $item["preview_type"], 0, 1); @@ -258,7 +261,8 @@ "ORDER BY compos.id DESC"; echo - "
". + "
". + "Compo". stGetFormOptionListStart($prefix."compo_id".$eid, " ", TRUE, 0); foreach (stExecSQL($sql) as $cdata) @@ -266,7 +270,7 @@ echo stGetFormOptionListItem(" ", $cdata["id"], ($cdata["id"] == $item["compo_id"]), - sprintf("%-20s (%d entries)", substr($cdata["name"], 0, 20), $cdata["nentries"]) + sprintf("%-20s (%d)", substr($cdata["name"], 0, 20), $cdata["nentries"]) ); } @@ -274,6 +278,8 @@ stGetFormOptionListEnd(" ", TRUE). "
\n"; } + + echo "
\n"; break; case COMPO_POINTS: