changeset 437:cefa64c8be63

Move some functions to msite.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 05 Dec 2013 22:57:59 +0200
parents 4ce10edceedf
children 48903fd966cd
files admajax.php msite.inc.php
diffstat 2 files changed, 26 insertions(+), 26 deletions(-) [+]
line wrap: on
line diff
--- a/admajax.php	Thu Dec 05 22:45:28 2013 +0200
+++ b/admajax.php	Thu Dec 05 22:57:59 2013 +0200
@@ -344,32 +344,6 @@
 }
 
 
-function stGetOptionListStart($id, $indent, $outer, $size = 10, $onChange = "")
-{
-  return
-    ($outer ? $indent."<div id=\"".$id."\">\n" : "").
-    $indent."<select class=\"selectBox\" id=\"".$id."Sel\" size=\"".$size."\"".
-    ($onChange != "" ? " onChange=\"".$onChange."\"" : "").">\n";
-}
-
-
-function stGetOptionListItem($value, $active, $name)
-{
-  return
-    "<option value=\"".$value."\"".
-    ($active ? " selected=\"selected\"" : "").
-    ">".chentities($name)."</option>\n";
-}
-
-
-function stGetOptionListEnd($indent, $outer)
-{
-  return
-    $indent."</select>\n".
-    ($outer ? $indent."</div>\n" : "");
-}
-
-
 function stGetShowModeButton($mode, $name, $cmode)
 {
   return
--- a/msite.inc.php	Thu Dec 05 22:45:28 2013 +0200
+++ b/msite.inc.php	Thu Dec 05 22:57:59 2013 +0200
@@ -256,4 +256,30 @@
 }
 
 
+function stGetOptionListStart($id, $indent, $outer, $size = 10, $onChange = "")
+{
+  return
+    ($outer ? $indent."<div id=\"".$id."\">\n" : "").
+    $indent."<select class=\"selectBox\" id=\"".$id."Sel\" size=\"".$size."\"".
+    ($onChange != "" ? " onChange=\"".$onChange."\"" : "").">\n";
+}
+
+
+function stGetOptionListItem($value, $active, $name)
+{
+  return
+    "<option value=\"".$value."\"".
+    ($active ? " selected=\"selected\"" : "").
+    ">".chentities($name)."</option>\n";
+}
+
+
+function stGetOptionListEnd($indent, $outer)
+{
+  return
+    $indent."</select>\n".
+    ($outer ? $indent."</div>\n" : "");
+}
+
+
 ?>
\ No newline at end of file