X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=includes%2Fui%2Fui_input.inc;h=1e29770487deff359a401b9349dbb170cbc89398;hb=7b9032da05f92d030cf5ba36e1d524d123129159;hp=00bae3128d7ecf0829b150615e436fa19648781e;hpb=55c51a9db64c9fe402d615e204824f8e4cd6a310;p=fa-stable.git diff --git a/includes/ui/ui_input.inc b/includes/ui/ui_input.inc index 00bae312..1e297704 100644 --- a/includes/ui/ui_input.inc +++ b/includes/ui/ui_input.inc @@ -257,7 +257,9 @@ function submit_js_confirm($name, $msg) { function set_icon($icon, $title=false) { global $path_to_root; - return "\n"; + if (basename($icon) === $icon) // standard icons does not contain path separator + $icon = "$path_to_root/themes/".user_theme()."/images/$icon"; + return "\n"; } function button($name, $value, $title=false, $icon=false, $aspect='') @@ -273,16 +275,18 @@ function button($name, $value, $title=false, $icon=false, $aspect='') { if ($value == _("Delete")) // Helper during implementation $icon = ICON_DELETE; - return "\n"; } else return "'=2E',' '=>'=20','='=>'=3D','['=>'=5B'))) + .htmlentities(strtr($name, array('.'=>'=2E', '='=>'=3D',// ' '=>'=20','['=>'=5B' + ))) ."' value='$value'" .($title ? " title='$title'":'') . ($aspect ? " aspect='$aspect'" : '') @@ -897,4 +901,29 @@ function inactive_control_column(&$th) { $Ajax->activate('_page_body'); } } + +function customer_credit_row($customer, $credit, $parms='') +{ + global $path_to_root; + + label_row( _("Current Credit:"), + "" + . price_format($credit) + ."", $parms); +} + +function supplier_credit_row($supplier, $credit, $parms='') +{ + global $path_to_root; + + label_row( _("Current Credit:"), + "" + . price_format($credit) + ."", $parms); +} + ?> \ No newline at end of file