From: Janusz Dobrowolski Date: Fri, 24 Apr 2009 16:09:19 +0000 (+0000) Subject: Edit buttons center alignment. X-Git-Tag: v2.4.2~19^2~1434 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=8273b6b981c008c7968a7f7c8eaea640d453c3f2;p=fa-stable.git Edit buttons center alignment. --- diff --git a/includes/ui/ui_input.inc b/includes/ui/ui_input.inc index 82279aea..9d74f67c 100644 --- a/includes/ui/ui_input.inc +++ b/includes/ui/ui_input.inc @@ -260,7 +260,7 @@ function button($name, $value, $title=false, $icon=false) function button_cell($name, $value, $title=false, $icon=false) { - echo ""; + echo ""; echo button($name, $value, $title, $icon); echo ""; } @@ -315,11 +315,12 @@ function check($label, $name, $value=null, $submit_on_change=false, $title=false echo checkbox($label, $name, $value, $submit_on_change, $title); } -function check_cells($label, $name, $value, $submit_on_change=false, $title=false) +function check_cells($label, $name, $value, $submit_on_change=false, $title=false, + $params='') { if ($label != null) echo "$label\n"; - echo ""; + echo ""; echo check(null, $name, $value, $submit_on_change, $title); echo ""; } @@ -766,7 +767,7 @@ function inactive_control_cell($id, $value, $table, $key) get_post('Update')) && (check_value('Inactive'.$id) != $value)) { update_record_status($id, !$value, $table, $key); } - echo ''. checkbox(null, $name, $value, true, '') + echo ''. checkbox(null, $name, $value, true, '', "align='center'") . hidden("LInact[$id]", $value, false) . ''; } }