X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=includes%2Fui%2Fui_input.inc;h=588f867c31ddd381387a3c6a90478d6457a6cc24;hb=4e31fd74b18825d8ac35f4a38b96ef33a08c2025;hp=47cdd0a973e7339b2357c7e577169c150d5f8ef2;hpb=bf343dcf1df5d82c25ed8079bed766a54bd1b17c;p=fa-stable.git
diff --git a/includes/ui/ui_input.inc b/includes/ui/ui_input.inc
index 47cdd0a9..588f867c 100644
--- a/includes/ui/ui_input.inc
+++ b/includes/ui/ui_input.inc
@@ -1,4 +1,14 @@
.
+***********************************************************************/
function get_post($name, $dflt='')
{
@@ -71,7 +81,7 @@ function simple_page_mode($numeric_id = true)
//
function input_num($postname=null, $dflt=null)
{
- if (!isset($_POST[$postname]))
+ if (!isset($_POST[$postname]) || $_POST[$postname] == "")
return $dflt;
return user_numeric($_POST[$postname]);
@@ -101,13 +111,13 @@ function submit($name, $value, $echo=true, $title=false, $async=false, $icon=fal
default_focus($name);
$submit_str = "\n";
if ($echo)
echo $submit_str;
@@ -193,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 "