# HG changeset patch # User Matti Hamalainen # Date 1416462978 -7200 # Node ID 8fe56276fa4f3446ebcc87d0bfa0c7dc428cc5ae # Parent 7ac6d1fdc078eac89c89a33686f0ac161ad5267e Add new helper functions. diff -r 7ac6d1fdc078 -r 8fe56276fa4f msite.inc.php --- a/msite.inc.php Thu Nov 20 07:55:57 2014 +0200 +++ b/msite.inc.php Thu Nov 20 07:56:18 2014 +0200 @@ -379,6 +379,24 @@ } +function stGetEditFormTextInput($mode, $title, $size, $len, $name, $id, $prefix, $value, $extra = "") +{ + return + "
".chentities($title)."". + ($mode ? stGetFormTextInput($size, $len, $name, $id, $prefix, $value, $extra) : chentities($value)). + "
"; +} + + +function stGetEditFormTextArea($mode, $title, $rows, $cols, $name, $id, $prefix, $value, $extra = "") +{ + return + "
".chentities($title)."". + stGetFormTextArea($rows, $cols, $name, $id, $prefix, $value, ($mode ? "" : " disabled=\"disabled\" ").$extra). + "
"; +} + + function stConvSwitchMode(&$str, &$mode, $newMode) { if ($newMode != $mode)