X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=includes%2Fui%2Fui_controls.inc;h=9848761e263ac7e95eed708823810caf85d75d34;hb=af78fbb535a6fedbc2eb70a26ddc39739be2b986;hp=217be194c3642061fa15fc7b5085deac3fda3106;hpb=e42ed1a28f186bdb77d84d1472a9e3b447189505;p=fa-stable.git diff --git a/includes/ui/ui_controls.inc b/includes/ui/ui_controls.inc index 217be194..9848761e 100644 --- a/includes/ui/ui_controls.inc +++ b/includes/ui/ui_controls.inc @@ -1,20 +1,29 @@ . +***********************************************************************/ +function get_post($name, $dflt='') +{ + return ((!isset($_POST[$name]) || $_POST[$name] === '') ? $dflt : $_POST[$name]); +} //--------------------------------------------------------------------------------- -function start_form($multi=false, $sid=false, $action="", $name="") +function start_form($multi=false, $dummy=false, $action="", $name="") { + // $dummy - leaved for compatibility with 2.0 API + if ($name != "") $name = "name='$name'"; if ($action == "") $action = $_SERVER['PHP_SELF']; - if ($sid) - { - if (strpos($action, "?")) - $action .= "&" . SID; - else - $action .= "?" . SID; - } + if ($multi) echo "