Mercurial > hg > fapweb
comparison admajax.php @ 1114:51f24cb35fc8
s/SET_LEN_/SQL_LEN_/g
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 14 Oct 2019 10:31:39 +0300 |
parents | 0a2117349f46 |
children | d5847f016de5 |
comparison
equal
deleted
inserted
replaced
1113:824e78624715 | 1114:51f24cb35fc8 |
---|---|
22 | 22 |
23 $res = TRUE; | 23 $res = TRUE; |
24 | 24 |
25 stChkRequestItemFail("name", $fake, $res, | 25 stChkRequestItemFail("name", $fake, $res, |
26 array(CHK_ISGT, VT_STR, 0, "Compo name is empty."), | 26 array(CHK_ISGT, VT_STR, 0, "Compo name is empty."), |
27 array(CHK_LTEQ, VT_STR, SET_LEN_COMPO_NAME, "Compo name too long (%1 chars, must be less than %2).")); | 27 array(CHK_LTEQ, VT_STR, SQL_LEN_COMPO_NAME, "Compo name too long (%1 chars, must be less than %2).")); |
28 | 28 |
29 stChkRequestItemFail("description", $fake, $res, | 29 stChkRequestItemFail("description", $fake, $res, |
30 array(CHK_ISGT, VT_STR, 10, "Compo description too short (%1 chars, must be more than %2)"), | 30 array(CHK_ISGT, VT_STR, 10, "Compo description too short (%1 chars, must be more than %2)"), |
31 array(CHK_LTEQ, VT_STR, SET_LEN_COMPO_DESC, "Compo description too long (%1 chars, must be less than %2).")); | 31 array(CHK_LTEQ, VT_STR, SQL_LEN_COMPO_DESC, "Compo description too long (%1 chars, must be less than %2).")); |
32 | 32 |
33 // Not a full check? | 33 // Not a full check? |
34 if (!$full) | 34 if (!$full) |
35 return $res; | 35 return $res; |
36 | 36 |
47 stChkRequestItemFail("preview_type", $fake, $res, | 47 stChkRequestItemFail("preview_type", $fake, $res, |
48 array(CHK_TYPE, VT_INT, "Invalid data."), | 48 array(CHK_TYPE, VT_INT, "Invalid data."), |
49 array(CHK_ARRAY_KEY, $previewTypeList, "Invalid preview type value.")); | 49 array(CHK_ARRAY_KEY, $previewTypeList, "Invalid preview type value.")); |
50 | 50 |
51 stChkRequestItemFail("cpath", $fake, $res, | 51 stChkRequestItemFail("cpath", $fake, $res, |
52 array(CHK_LTEQ, VT_STR, SET_LEN_COMPO_PATH, "Compo file path too long (%1 chars, must be less than %2).")); | 52 array(CHK_LTEQ, VT_STR, SQL_LEN_COMPO_PATH, "Compo file path too long (%1 chars, must be less than %2).")); |
53 break; | 53 break; |
54 } | 54 } |
55 | 55 |
56 stChkRequestItemFail("visible", $fake, $res, | 56 stChkRequestItemFail("visible", $fake, $res, |
57 array(CHK_TYPE, VT_BOOL, "Invalid data.")); | 57 array(CHK_TYPE, VT_BOOL, "Invalid data.")); |
65 $res = TRUE; | 65 $res = TRUE; |
66 | 66 |
67 // Things common for all compo types | 67 // Things common for all compo types |
68 stChkRequestItemFail("name", $fake, $res, | 68 stChkRequestItemFail("name", $fake, $res, |
69 array(CHK_ISGT, VT_STR, 0, "Name is empty."), | 69 array(CHK_ISGT, VT_STR, 0, "Name is empty."), |
70 array(CHK_LTEQ, VT_STR, SET_LEN_ENTRY_NAME, "Name too long (%1 chars, must be less than %2).")); | 70 array(CHK_LTEQ, VT_STR, SQL_LEN_ENTRY_NAME, "Name too long (%1 chars, must be less than %2).")); |
71 | 71 |
72 stChkRequestItemFail("notes", $fake, $res, | 72 stChkRequestItemFail("notes", $fake, $res, |
73 array(CHK_TYPE, VT_TEXT, "Invalid data."), | 73 array(CHK_TYPE, VT_TEXT, "Invalid data."), |
74 array(CHK_LTEQ, VT_STR, SET_LEN_ENTRY_NOTES, "Entry notes are too long (%1 chars, must be less than %2).")); | 74 array(CHK_LTEQ, VT_STR, SQL_LEN_ENTRY_NOTES, "Entry notes are too long (%1 chars, must be less than %2).")); |
75 | 75 |
76 // Check based on compo type | 76 // Check based on compo type |
77 switch ($ctype) | 77 switch ($ctype) |
78 { | 78 { |
79 case COMPO_NORMAL: | 79 case COMPO_NORMAL: |
80 stChkRequestItemFail("compo_id", $compo_id, $res, | 80 stChkRequestItemFail("compo_id", $compo_id, $res, |
81 array(CHK_TYPE, VT_INT, "Invalid compo ID.")); | 81 array(CHK_TYPE, VT_INT, "Invalid compo ID.")); |
82 | 82 |
83 stChkRequestItemFail("author", $fake, $res, | 83 stChkRequestItemFail("author", $fake, $res, |
84 array(CHK_ISGT, VT_STR, 0, "Author name not set."), | 84 array(CHK_ISGT, VT_STR, 0, "Author name not set."), |
85 array(CHK_LTEQ, VT_STR, SET_LEN_ENTRY_AUTHOR, "Entry author too long (%1 chars, must be less than %2).")); | 85 array(CHK_LTEQ, VT_STR, SQL_LEN_ENTRY_AUTHOR, "Entry author too long (%1 chars, must be less than %2).")); |
86 | 86 |
87 stChkRequestItemFail("info", $fake, $res, | 87 stChkRequestItemFail("info", $fake, $res, |
88 array(CHK_TYPE, VT_TEXT, "Invalid data."), | 88 array(CHK_TYPE, VT_TEXT, "Invalid data."), |
89 array(CHK_LTEQ, VT_STR, SET_LEN_ENTRY_INFO, "Entry info text too long (%1 chars, must be less than %2).")); | 89 array(CHK_LTEQ, VT_STR, SQL_LEN_ENTRY_INFO, "Entry info text too long (%1 chars, must be less than %2).")); |
90 | 90 |
91 if ($full) | 91 if ($full) |
92 { | 92 { |
93 stChkRequestItemFail("preview_type", $fake, $res, | 93 stChkRequestItemFail("preview_type", $fake, $res, |
94 array(CHK_TYPE, VT_INT, "Invalid data."), | 94 array(CHK_TYPE, VT_INT, "Invalid data."), |
116 { | 116 { |
117 $res = TRUE; | 117 $res = TRUE; |
118 | 118 |
119 stChkRequestItemFail("text", $fake, $res, | 119 stChkRequestItemFail("text", $fake, $res, |
120 array(CHK_ISGT, VT_STR, 0, "News text too short."), | 120 array(CHK_ISGT, VT_STR, 0, "News text too short."), |
121 array(CHK_LTEQ, VT_STR, SET_LEN_NEWS_TEXT, "News text too long (%1 chars, must be less than %2).")); | 121 array(CHK_LTEQ, VT_STR, SQL_LEN_NEWS_TEXT, "News text too long (%1 chars, must be less than %2).")); |
122 | 122 |
123 stChkRequestItemFail("author", $fake, $res, | 123 stChkRequestItemFail("author", $fake, $res, |
124 array(CHK_ISGT, VT_STR, 0, "News author name not set."), | 124 array(CHK_ISGT, VT_STR, 0, "News author name not set."), |
125 array(CHK_LTEQ, VT_STR, SET_LEN_NEWS_AUTHOR, "News author name too long (%1 chars, must be less than %2).")); | 125 array(CHK_LTEQ, VT_STR, SQL_LEN_NEWS_AUTHOR, "News author name too long (%1 chars, must be less than %2).")); |
126 | 126 |
127 stChkRequestItemFail("title", $fake, $res, | 127 stChkRequestItemFail("title", $fake, $res, |
128 array(CHK_ISGT, VT_STR, 0, "News title not set."), | 128 array(CHK_ISGT, VT_STR, 0, "News title not set."), |
129 array(CHK_LTEQ, VT_STR, SET_LEN_NEWS_TITLE, "News title too long (%1 chars. must be less than %2).")); | 129 array(CHK_LTEQ, VT_STR, SQL_LEN_NEWS_TITLE, "News title too long (%1 chars. must be less than %2).")); |
130 | 130 |
131 return $res; | 131 return $res; |
132 } | 132 } |
133 | 133 |
134 | 134 |
138 | 138 |
139 switch ($item["ctype"]) | 139 switch ($item["ctype"]) |
140 { | 140 { |
141 case COMPO_NORMAL: | 141 case COMPO_NORMAL: |
142 $str1 = | 142 $str1 = |
143 " File path: ".stGetFormTextInput(40, SET_LEN_COMPO_PATH, "cpath", $id, $prefix, $item["cpath"])."<br />\n"; | 143 " File path: ".stGetFormTextInput(40, SQL_LEN_COMPO_PATH, "cpath", $id, $prefix, $item["cpath"])."<br />\n"; |
144 | 144 |
145 $str2 = | 145 $str2 = |
146 " ".stGetFormCheckBoxInput("voting", $id, $prefix, $item["voting"], | 146 " ".stGetFormCheckBoxInput("voting", $id, $prefix, $item["voting"], |
147 "Enable voting", "onChange=\"setCompoData(".$id.",'voting')\""). | 147 "Enable voting", "onChange=\"setCompoData(".$id.",'voting')\""). |
148 " ".stGetFormCheckBoxInput("show_authors", $id, $prefix, $item["show_authors"], "Show authors")."\n". | 148 " ".stGetFormCheckBoxInput("show_authors", $id, $prefix, $item["show_authors"], "Show authors")."\n". |
156 | 156 |
157 return | 157 return |
158 " <h2>#".$id." - ".chentities($item["name"])."</h2>\n". | 158 " <h2>#".$id." - ".chentities($item["name"])."</h2>\n". |
159 " Type: ".stGetFormOptionListFromArray($prefix."type".$id, " ", FALSE, $compoModeData, $item["ctype"], 0, 0, "updateCompoType(".$id.")"). | 159 " Type: ".stGetFormOptionListFromArray($prefix."type".$id, " ", FALSE, $compoModeData, $item["ctype"], 0, 0, "updateCompoType(".$id.")"). |
160 " - ".$compoModeData[$item["ctype"]][1]."<br />\n". | 160 " - ".$compoModeData[$item["ctype"]][1]."<br />\n". |
161 " Name: ".stGetFormTextInput(40, SET_LEN_COMPO_NAME, "name", $id, $prefix, $item["name"])."<br />\n". | 161 " Name: ".stGetFormTextInput(40, SQL_LEN_COMPO_NAME, "name", $id, $prefix, $item["name"])."<br />\n". |
162 $str1. | 162 $str1. |
163 "<div class=\"compoDesc\"><h3>Description</h3>".stGetFormTextArea(8, 60, "description", $id, $prefix, $item["description"])."</div>\n". | 163 "<div class=\"compoDesc\"><h3>Description</h3>".stGetFormTextArea(8, 60, "description", $id, $prefix, $item["description"])."</div>\n". |
164 "<div class=\"compoDesc\"><h3>Notes (shown in results)</h3>".stGetFormTextArea(8, 60, "notes", $id, $prefix, $item["notes"])."</div>\n". | 164 "<div class=\"compoDesc\"><h3>Notes (shown in results)</h3>".stGetFormTextArea(8, 60, "notes", $id, $prefix, $item["notes"])."</div>\n". |
165 "<div>\n". | 165 "<div>\n". |
166 " ".stGetFormCheckBoxInput("visible", $id, $prefix, $item["visible"], "Visible")."\n". | 166 " ".stGetFormCheckBoxInput("visible", $id, $prefix, $item["visible"], "Visible")."\n". |
173 | 173 |
174 function stGetNewsItemData($id, $item, $prefix) | 174 function stGetNewsItemData($id, $item, $prefix) |
175 { | 175 { |
176 return | 176 return |
177 " <h2>".chentities($item["title"])."</h2>\n". | 177 " <h2>".chentities($item["title"])."</h2>\n". |
178 " ".stGetFormTextInput(40, SET_LEN_NEWS_TITLE, "title", $id, $prefix, $item["title"]). | 178 " ".stGetFormTextInput(40, SQL_LEN_NEWS_TITLE, "title", $id, $prefix, $item["title"]). |
179 " - posted ".date("d M Y / H:i", $item["utime"])."<br />\n". | 179 " - posted ".date("d M Y / H:i", $item["utime"])."<br />\n". |
180 " ".stGetFormTextArea(5, 60, "text", $id, $prefix, $item["text"])."<br />\n". | 180 " ".stGetFormTextArea(5, 60, "text", $id, $prefix, $item["text"])."<br />\n". |
181 " ".stGetFormTextInput(20, SET_LEN_NEWS_AUTHOR, "author", $id, $prefix, $item["author"])."\n". | 181 " ".stGetFormTextInput(20, SQL_LEN_NEWS_AUTHOR, "author", $id, $prefix, $item["author"])."\n". |
182 " ".stGetFormButtonInput("", "upd".$id, $prefix, "Update", "updateNews(".$id.")")."\n". | 182 " ".stGetFormButtonInput("", "upd".$id, $prefix, "Update", "updateNews(".$id.")")."\n". |
183 " ".stGetFormButtonInput("", "del".$id, $prefix, "Delete", "deleteNews(".$id.")")."\n"; | 183 " ".stGetFormButtonInput("", "del".$id, $prefix, "Delete", "deleteNews(".$id.")")."\n"; |
184 } | 184 } |
185 | 185 |
186 | 186 |
265 switch ($compo["ctype"]) | 265 switch ($compo["ctype"]) |
266 { | 266 { |
267 case COMPO_NORMAL: | 267 case COMPO_NORMAL: |
268 echo | 268 echo |
269 " <div class=\"entryCell entryBasic\">\n". | 269 " <div class=\"entryCell entryBasic\">\n". |
270 " ".stGetEditFormTextInput($mode, "Name", 20, SET_LEN_ENTRY_NAME, "name", $eid, $prefix, $item["name"])."\n". | 270 " ".stGetEditFormTextInput($mode, "Name", 20, SQL_LEN_ENTRY_NAME, "name", $eid, $prefix, $item["name"])."\n". |
271 " ".stGetEditFormTextInput($mode, "Author", 20, SET_LEN_ENTRY_AUTHOR, "author", $eid, $prefix, $item["author"])."\n". | 271 " ".stGetEditFormTextInput($mode, "Author", 20, SQL_LEN_ENTRY_AUTHOR, "author", $eid, $prefix, $item["author"])."\n". |
272 " </div>\n". | 272 " </div>\n". |
273 " <div class=\"entryCell entryFiles\">\n". | 273 " <div class=\"entryCell entryFiles\">\n". |
274 ($mode == 2 ? "Files can be uploaded after adding the entry" : ""). | 274 ($mode == 2 ? "Files can be uploaded after adding the entry" : ""). |
275 stGetFileUploadAndSelector($mode, $item, "entry", "file_id", "Entry file"). | 275 stGetFileUploadAndSelector($mode, $item, "entry", "file_id", "Entry file"). |
276 stGetFileUploadAndSelector($mode, $item, "preview", "preview_id", "Preview file"). | 276 stGetFileUploadAndSelector($mode, $item, "preview", "preview_id", "Preview file"). |
330 | 330 |
331 case COMPO_POINTS: | 331 case COMPO_POINTS: |
332 case COMPO_ASSIGN: | 332 case COMPO_ASSIGN: |
333 echo | 333 echo |
334 " <div class=\"entryCell entryBase\">". | 334 " <div class=\"entryCell entryBase\">". |
335 stGetEditFormTextInput($mode, "Name", 15, SET_LEN_ENTRY_AUTHOR, "name", $eid, $prefix, $item["name"]). | 335 stGetEditFormTextInput($mode, "Name", 15, SQL_LEN_ENTRY_AUTHOR, "name", $eid, $prefix, $item["name"]). |
336 "</div>\n". | 336 "</div>\n". |
337 " <div class=\"entryCell entryEvalue\">". | 337 " <div class=\"entryCell entryEvalue\">". |
338 stGetEditFormTextInput($mode, $compoModeData[$compo["ctype"]][2], 5, SET_LEN_ENTRY_AUTHOR, "evalue", $eid, $prefix, $item["evalue"]). | 338 stGetEditFormTextInput($mode, $compoModeData[$compo["ctype"]][2], 5, SQL_LEN_ENTRY_AUTHOR, "evalue", $eid, $prefix, $item["evalue"]). |
339 "</div>\n". | 339 "</div>\n". |
340 " <div class=\"entryCell entryNotes\">\n". | 340 " <div class=\"entryCell entryNotes\">\n". |
341 " ".stGetEditFormTextArea($mode, "Notes", 2, 30, "notes", $eid, $prefix, $item["notes"])."\n". | 341 " ".stGetEditFormTextArea($mode, "Notes", 2, 30, "notes", $eid, $prefix, $item["notes"])."\n". |
342 " </div>\n"; | 342 " </div>\n"; |
343 break; | 343 break; |
608 return "<p>No such rotation list ID #".intval($list_id)."</p>"; | 608 return "<p>No such rotation list ID #".intval($list_id)."</p>"; |
609 | 609 |
610 $str = | 610 $str = |
611 ($outer ? $indent."<div class=\"ctrlBox\" id=\"ctrlRotationListEdit\">\n" : ""). | 611 ($outer ? $indent."<div class=\"ctrlBox\" id=\"ctrlRotationListEdit\">\n" : ""). |
612 $indent." <div class=\"ctrlTitle\">Edit rotation list</div>\n". | 612 $indent." <div class=\"ctrlTitle\">Edit rotation list</div>\n". |
613 $indent." ".stGetFormTextInput(30, SET_LEN_ROT_LIST_NAME, "", "ctrlEDRotationListName", "", $data["name"])."\n". | 613 $indent." ".stGetFormTextInput(30, SQL_LEN_ROT_LIST_NAME, "", "ctrlEDRotationListName", "", $data["name"])."\n". |
614 $indent." ".stGetFormButtonInput("updname", "", "", "Save", "updateRotationList(".$list_id.")")."\n". | 614 $indent." ".stGetFormButtonInput("updname", "", "", "Save", "updateRotationList(".$list_id.")")."\n". |
615 "<div>Available slides:</div>\n". | 615 "<div>Available slides:</div>\n". |
616 stGetFormOptionListStart("ctrlEDDisplaySlides", $indent." ", TRUE); | 616 stGetFormOptionListStart("ctrlEDDisplaySlides", $indent." ", TRUE); |
617 | 617 |
618 $sql = "SELECT * FROM display_slides"; | 618 $sql = "SELECT * FROM display_slides"; |
690 | 690 |
691 $sql = stPrepareSQL("SELECT * FROM display_slides WHERE id=%d", $slide_id); | 691 $sql = stPrepareSQL("SELECT * FROM display_slides WHERE id=%d", $slide_id); |
692 if (($slide = stFetchSQL($sql)) !== FALSE) | 692 if (($slide = stFetchSQL($sql)) !== FALSE) |
693 { | 693 { |
694 $str .= | 694 $str .= |
695 " ".stGetFormTextInput(40, SET_LEN_DISP_SLIDE_TITLE, "", "Title", $prefix, $slide["title"])."<br />\n". | 695 " ".stGetFormTextInput(40, SQL_LEN_DISP_SLIDE_TITLE, "", "Title", $prefix, $slide["title"])."<br />\n". |
696 " ".stGetFormTextArea(10, 80, "", "Text", $prefix, $slide["text"])."<br />\n"; | 696 " ".stGetFormTextArea(10, 80, "", "Text", $prefix, $slide["text"])."<br />\n"; |
697 } | 697 } |
698 | 698 |
699 $str .= | 699 $str .= |
700 " <div class=\"ctrlButtons\">\n". | 700 " <div class=\"ctrlButtons\">\n". |
1055 | 1055 |
1056 case "updateDisplaySlide": | 1056 case "updateDisplaySlide": |
1057 if (stChkRequestItem("id", $slide_id, array(CHK_TYPE, VT_INT, "Invalid data.")) && | 1057 if (stChkRequestItem("id", $slide_id, array(CHK_TYPE, VT_INT, "Invalid data.")) && |
1058 stChkRequestItem("title", $fake, | 1058 stChkRequestItem("title", $fake, |
1059 array(CHK_GTEQ, VT_STR, 1, "Slide title too short."), | 1059 array(CHK_GTEQ, VT_STR, 1, "Slide title too short."), |
1060 array(CHK_LTEQ, VT_STR, SET_LEN_DISP_SLIDE_TITLE, "Slide title too long.") | 1060 array(CHK_LTEQ, VT_STR, SQL_LEN_DISP_SLIDE_TITLE, "Slide title too long.") |
1061 ) && | 1061 ) && |
1062 stChkRequestItem("text", $fake, | 1062 stChkRequestItem("text", $fake, |
1063 array(CHK_LTEQ, VT_STR, SET_LEN_DISP_SLIDE_TEXT, "Slide content too long.") | 1063 array(CHK_LTEQ, VT_STR, SQL_LEN_DISP_SLIDE_TEXT, "Slide content too long.") |
1064 )) | 1064 )) |
1065 { | 1065 { |
1066 $sql = stPrepareSQLUpdate("display_slides", | 1066 $sql = stPrepareSQLUpdate("display_slides", |
1067 "WHERE id=".$slide_id, | 1067 "WHERE id=".$slide_id, |
1068 array( | 1068 array( |
1104 | 1104 |
1105 case "updateRotationList": | 1105 case "updateRotationList": |
1106 if (stChkRequestItem("id", $list_id, array(CHK_TYPE, VT_INT, "Invalid data.")) && | 1106 if (stChkRequestItem("id", $list_id, array(CHK_TYPE, VT_INT, "Invalid data.")) && |
1107 stChkRequestItem("name", $fake, | 1107 stChkRequestItem("name", $fake, |
1108 array(CHK_GTEQ, VT_STR, 3, "Rotation list name too short."), | 1108 array(CHK_GTEQ, VT_STR, 3, "Rotation list name too short."), |
1109 array(CHK_LTEQ, VT_STR, SET_LEN_ROT_LIST_NAME, "Rotation list name too long."))) | 1109 array(CHK_LTEQ, VT_STR, SQL_LEN_ROT_LIST_NAME, "Rotation list name too long."))) |
1110 { | 1110 { |
1111 $sql = stPrepareSQLUpdate("rot_list_data", | 1111 $sql = stPrepareSQLUpdate("rot_list_data", |
1112 "WHERE id=".$list_id, | 1112 "WHERE id=".$list_id, |
1113 array( | 1113 array( |
1114 "name" => "S", | 1114 "name" => "S", |
1323 break; | 1323 break; |
1324 | 1324 |
1325 case "news": | 1325 case "news": |
1326 echo | 1326 echo |
1327 "<form method=\"post\" action=\"\" onsubmit=\"return addNews()\">\n". | 1327 "<form method=\"post\" action=\"\" onsubmit=\"return addNews()\">\n". |
1328 " ".stGetFormTextInput(40, SET_LEN_NEWS_TITLE, "", "nntitle", "", "")."<br />\n". | 1328 " ".stGetFormTextInput(40, SQL_LEN_NEWS_TITLE, "", "nntitle", "", "")."<br />\n". |
1329 " ".stGetFormTextArea(5, 60, "", "nntext", "", "")."<br />\n". | 1329 " ".stGetFormTextArea(5, 60, "", "nntext", "", "")."<br />\n". |
1330 " ".stGetFormTextInput(20, SET_LEN_NEWS_AUTHOR, "", "nnauthor", "", "orgaz")."\n". | 1330 " ".stGetFormTextInput(20, SQL_LEN_NEWS_AUTHOR, "", "nnauthor", "", "orgaz")."\n". |
1331 " ".stGetFormSubmitInput("nnadd", "Add post")."\n". | 1331 " ".stGetFormSubmitInput("nnadd", "Add post")."\n". |
1332 " ".stGetFormButtonInput("", "", "", "Clear", "this.form.reset()")."\n". | 1332 " ".stGetFormButtonInput("", "", "", "Clear", "this.form.reset()")."\n". |
1333 "</form>\n". | 1333 "</form>\n". |
1334 "<hr />\n"; | 1334 "<hr />\n"; |
1335 | 1335 |
1365 " <th>Oneliner</th>\n". | 1365 " <th>Oneliner</th>\n". |
1366 " <th>E-mail</th>\n". | 1366 " <th>E-mail</th>\n". |
1367 " <th>Actions</th>\n". | 1367 " <th>Actions</th>\n". |
1368 " </tr>\n". | 1368 " </tr>\n". |
1369 " <tr>\n". | 1369 " <tr>\n". |
1370 " <td>".stGetFormTextInput(20, SET_LEN_USERNAME, "name", "x", $prefix, "")."</td>\n". | 1370 " <td>".stGetFormTextInput(20, SQL_LEN_USERNAME, "name", "x", $prefix, "")."</td>\n". |
1371 " <td>".stGetFormTextInput(20, SET_LEN_GROUPS, "groups", "x", $prefix, "")."</td>\n". | 1371 " <td>".stGetFormTextInput(20, SQL_LEN_GROUPS, "groups", "x", $prefix, "")."</td>\n". |
1372 " <td>".stGetFormTextInput(30, SET_LEN_ONELINER, "oneliner", "x", $prefix, "")."</td>\n". | 1372 " <td>".stGetFormTextInput(30, SQL_LEN_ONELINER, "oneliner", "x", $prefix, "")."</td>\n". |
1373 " <td>".stGetFormTextInput(20, SET_LEN_EMAIL, "email", "x", $prefix, "")."</td>\n". | 1373 " <td>".stGetFormTextInput(20, SQL_LEN_EMAIL, "email", "x", $prefix, "")."</td>\n". |
1374 " <td>".stGetFormButtonInput("add", "", $prefix, " Add new ", "addAttendee()")."</td>\n". | 1374 " <td>".stGetFormButtonInput("add", "", $prefix, " Add new ", "addAttendee()")."</td>\n". |
1375 " </tr>\n". | 1375 " </tr>\n". |
1376 "</table>\n". | 1376 "</table>\n". |
1377 "<hr />\n"; | 1377 "<hr />\n"; |
1378 | 1378 |
1529 | 1529 |
1530 case "compos": | 1530 case "compos": |
1531 echo | 1531 echo |
1532 "<form method=\"post\" action=\"\" onsubmit=\"return addCompo()\">\n". | 1532 "<form method=\"post\" action=\"\" onsubmit=\"return addCompo()\">\n". |
1533 "<b>Name:<b>". | 1533 "<b>Name:<b>". |
1534 " ".stGetFormTextInput(64, SET_LEN_COMPO_NAME, "", "ncname", "", "")."<br />\n". | 1534 " ".stGetFormTextInput(64, SQL_LEN_COMPO_NAME, "", "ncname", "", "")."<br />\n". |
1535 "<b>Description:</b>". | 1535 "<b>Description:</b>". |
1536 " ".stGetFormTextArea(5, 60, "", "ncdescription", "", "")."<br />\n". | 1536 " ".stGetFormTextArea(5, 60, "", "ncdescription", "", "")."<br />\n". |
1537 " ".stGetFormSubmitInput("nccompo", "Add compo")."\n". | 1537 " ".stGetFormSubmitInput("nccompo", "Add compo")."\n". |
1538 " ".stGetFormButtonInput("", "", "", "Clear", "this.form.reset()")."\n". | 1538 " ".stGetFormButtonInput("", "", "", "Clear", "this.form.reset()")."\n". |
1539 "</form>\n". | 1539 "</form>\n". |