X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=includes%2Fui%2Fui_input.inc;h=272d515b9965283b1770fc8ce02f65ba077b0b00;hb=9e60b200d22656e6d9d795c36d78f8ac9de7c47b;hp=00bae3128d7ecf0829b150615e436fa19648781e;hpb=55c51a9db64c9fe402d615e204824f8e4cd6a310;p=fa-stable.git diff --git a/includes/ui/ui_input.inc b/includes/ui/ui_input.inc index 00bae312..272d515b 100644 --- a/includes/ui/ui_input.inc +++ b/includes/ui/ui_input.inc @@ -273,16 +273,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 +899,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