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