From 9b8f5ee5d6cf0defc1b3eef5422b84e0d87eec91 Mon Sep 17 00:00:00 2001 From: Janusz Dobrowolski Date: Fri, 5 Dec 2008 08:58:54 +0000 Subject: [PATCH] Button helpers moved to ui_input.inc, reusable button code. --- includes/ui/ui_controls.inc | 45 ---------------------------------- includes/ui/ui_input.inc | 48 ++++++++++++++++++++++++++++--------- 2 files changed, 37 insertions(+), 56 deletions(-) diff --git a/includes/ui/ui_controls.inc b/includes/ui/ui_controls.inc index d851544c..5d9f6113 100644 --- a/includes/ui/ui_controls.inc +++ b/includes/ui/ui_controls.inc @@ -184,51 +184,6 @@ function table_header($labels) labelheader_cell($label); end_row(); } - -//----------------------------------------------------------------------------------- - -function set_icon($icon, $title=false) -{ - 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; - echo "