Mercurial > hg > fapweb
changeset 734:26a168d3390f
Move functions into a more appropriate file.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 19 Nov 2014 02:08:40 +0200 |
parents | a088d62531dc |
children | 884c97eb3585 |
files | msite.inc.php pages/register.inc.php |
diffstat | 2 files changed, 14 insertions(+), 14 deletions(-) [+] |
line wrap: on
line diff
--- a/msite.inc.php Wed Nov 19 00:06:44 2014 +0200 +++ b/msite.inc.php Wed Nov 19 02:08:40 2014 +0200 @@ -377,20 +377,6 @@ } -function stPrintFormTextInput($text1, $text2, $size, $len, $name, $extra="") -{ - echo " <tr><th>".chentities($text1)."</th><td>". - stGetFormTextInput($size, $len, $name, "", "", stGetRequestItem($name), $extra). - "</td><td>".chentities($text2)."</td></tr>\n"; -} - - -function stPrintFormHiddenInput($name, $value) -{ - echo " ".stGetFormHiddenInput($name, $value)."\n"; -} - - function stConvSwitchMode(&$str, &$mode, $newMode) { if ($newMode != $mode)
--- a/pages/register.inc.php Wed Nov 19 00:06:44 2014 +0200 +++ b/pages/register.inc.php Wed Nov 19 02:08:40 2014 +0200 @@ -21,6 +21,20 @@ ); +function stPrintFormTextInput($text1, $text2, $size, $len, $name, $extra="") +{ + echo " <tr><th>".chentities($text1)."</th><td>". + stGetFormTextInput($size, $len, $name, "", "", stGetRequestItem($name), $extra). + "</td><td>".chentities($text2)."</td></tr>\n"; +} + + +function stPrintFormHiddenInput($name, $value) +{ + echo " ".stGetFormHiddenInput($name, $value)."\n"; +} + + function stPrintFormData($button, $mode = "start", $exclude = array()) { global $formFields;