X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=includes%2Fui%2Fui_input.inc;h=3da07206ac88c05321bf6260661bc22f5f0839c5;hb=67d97bfd7398b932698e254d937f905943412561;hp=2a76848dad19c0371916d43c5aa18c62d4925988;hpb=16ba695b81cd7283faa18372a74670415b562eb5;p=fa-stable.git diff --git a/includes/ui/ui_input.inc b/includes/ui/ui_input.inc index 2a76848d..3da07206 100644 --- a/includes/ui/ui_input.inc +++ b/includes/ui/ui_input.inc @@ -1,13 +1,13 @@ . + See the License here . ***********************************************************************/ function get_post($name, $dflt='') @@ -203,23 +203,49 @@ function submit_return($name, $value, $title=false, $async=false) submit($name, $value, true, $title, $async); } } -//--------------------------------------------------------------------------------- -/* -function button($name, $value, $onclick, $title=false) +//----------------------------------------------------------------------------------- + +function set_icon($icon, $title=false) { - default_focus($name); - echo "\n"; + global $path_to_root; + return "\n"; +} + +function button($name, $value, $title=false, $icon=false) +{ + // php silently changes dots,spaces,'[' and characters 128-159 + // to underscore in POST names, to maintain compatibility with register_globals + if (user_graphic_links() && $icon) + { + if ($value == _("Delete")) // Helper during implementation + $icon = ICON_DELETE; + return "