X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=includes%2Fui%2Fui_controls.inc;h=9848761e263ac7e95eed708823810caf85d75d34;hb=777422e8d5a3ba188e7420719e33322098075313;hp=c9bae54f55133455af9b2abbbdee89584545512f;hpb=c09be0dad6b05131e240349a375af7a4b7bf3444;p=fa-stable.git diff --git a/includes/ui/ui_controls.inc b/includes/ui/ui_controls.inc index c9bae54f..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 "