Mercurial > hg > fapweb
changeset 773:133197d0e48a
Adjust entry editing look.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 20 Nov 2014 14:56:44 +0200 |
parents | 3901bb443119 |
children | d6668b73bb01 |
files | admajax.php |
diffstat | 1 files changed, 12 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- 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 " <div class=\"entryCell entryBasic\">\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". " </div>\n". " <div class=\"entryCell entryFiles\">\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 @@ " <div class=\"entryCell entryNotes\">\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". - " </div>\n"; + " </div>\n". + " <div class=\"entryCell\">\n"; if ($mode == EEMODE_NORMAL || $mode == EEMODE_EDIT) { - echo " <div class=\"entryCell entryPreview\">".$previewTypeList[$compo["preview_type"]][0]." / "; + echo " <div class=\"editControl entryPreview\">". + "<span class=\"editControlTitle\">Preview</span>". + $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 - " <div class=\"entryCell entryCompoID\">". + " <div class=\"editControl entryCompoID\">". + "<span class=\"editControlTitle\">Compo</span>". 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). "</div>\n"; } + + echo "</div>\n"; break; case COMPO_POINTS: