changeset 203:d75db79e6e64

Cleanups.
author Matti Hamalainen <ccr@tnsp.org>
date Sun, 17 Nov 2013 18:08:46 +0200
parents 8993c88f0b47
children fa94536c060b
files admajax.php
diffstat 1 files changed, 14 insertions(+), 14 deletions(-) [+]
line wrap: on
line diff
--- a/admajax.php	Sun Nov 17 18:00:18 2013 +0200
+++ b/admajax.php	Sun Nov 17 18:08:46 2013 +0200
@@ -306,10 +306,10 @@
       {
         echo
           "<form method=\"post\" action=\"\" onsubmit=\"return addCompo()\">\n".
-          "  <input id=\"ncname\" type=\"text\" size=\"64\" /><br />\n".
-          "  <textarea id=\"ncdescription\" rows=\"5\" cols=\"60\"></textarea><br />\n".
-          "  <input id=\"nccompo\" type=\"submit\" value=\" Add compo \" />\n".
-          "  <input type=\"button\" value=\" Clear \" onClick=\"this.form.reset()\" />\n".
+          "  ".stGetFormTextInput(64, 64, "", "ncname", "", "")."<br />\n".
+          "  ".stGetFormTextArea(5, 60, "", "ncdescription", "", "")."<br />\n".
+          "  ".stGetFormSubmitInput("nccompo", "Add compo")."\n".
+          "  ".stGetFormButtonInput("", "", "", "Clear", "this.form.reset()")."\n".
           "</form>\n".
           "<hr />\n";
 
@@ -318,16 +318,16 @@
           $id = $item["id"];
           $prefix = "co";
           echo
-          "<div id=\"compo".$id."\">\n".
-          "<h2>#".$id." - ".chentities($item["name"])."</h2>\n".
-          stGetFormTextInput(40, 64, "name", $id, $prefix, $item["name"])."\n".
-          stGetFormCheckBoxInput("visible", $id, $prefix, $item["visible"], "Visible")."\n".
-          stGetFormCheckBoxInput("showAuthors", $id, $prefix, $item["showAuthors"], "Show authors")."\n".
-          stGetFormCheckBoxInput("voting", $id, $prefix, $item["voting"], "Enable voting")."<br />\n".
-          stGetFormTextArea(5, 60, "description", $id, $prefix, $item["description"])."\n<br />\n".
-          stGetFormButtonInput("update", $id, $prefix, " Update ", "updateCompo(".$id.")")."\n".
-          "</div>\n".
-          "<hr />\n";
+            "<div id=\"compo".$id."\">\n".
+            "<h2>#".$id." - ".chentities($item["name"])."</h2>\n".
+            stGetFormTextInput(40, 64, "name", $id, $prefix, $item["name"])."\n".
+            stGetFormCheckBoxInput("visible", $id, $prefix, $item["visible"], "Visible")."\n".
+            stGetFormCheckBoxInput("showAuthors", $id, $prefix, $item["showAuthors"], "Show authors")."\n".
+            stGetFormCheckBoxInput("voting", $id, $prefix, $item["voting"], "Enable voting")."<br />\n".
+            stGetFormTextArea(5, 60, "description", $id, $prefix, $item["description"])."\n<br />\n".
+            stGetFormButtonInput("update", $id, $prefix, " Update ", "updateCompo(".$id.")")."\n".
+            "</div>\n".
+            "<hr />\n";
         }
       }
     }