X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=includes%2Fui%2Fui_input.inc;h=82279aeaa4dcbb5f12306c42519ab22e127fffee;hb=3bf71dd6f93ecac6b93fe98d23b247869cbeb720;hp=091a874c7852e8ca7df09606f2e86e40522cf907;hpb=d5f7c2099d1dc612e651722e5843329bd8314863;p=fa-stable.git diff --git a/includes/ui/ui_input.inc b/includes/ui/ui_input.inc index 091a874c..82279aea 100644 --- a/includes/ui/ui_input.inc +++ b/includes/ui/ui_input.inc @@ -754,7 +754,7 @@ function text_row_with_submit($label, $name, $value, $size, $max, $input_name, $ // displays value of inactive field as checkbox cell. // Also updates database record after status change. // -function inactive_status_cell($id, $value, $table, $key) +function inactive_control_cell($id, $value, $table, $key) { global $Ajax; @@ -773,7 +773,7 @@ function inactive_status_cell($id, $value, $table, $key) // // Displays controls for optional display of inactive records // -function show_inactive_row($th) { +function inactive_control_row($th) { echo "" ."
" . checkbox(null, 'show_inactive', null, true). _("Show also Inactive") @@ -781,5 +781,16 @@ function show_inactive_row($th) { . submit('Update', _('Update'), false, '', null) ."
"; } - +// +// Inserts additional column header when display of inactive records is on. +// +function inactive_control_column(&$th) { + global $Ajax; + + if (check_value('show_inactive')) + array_insert($th, count($th)-2 , _("Inactive")); + if (get_post('_show_inactive_update')) { + $Ajax->activate('_page_body'); + } +} ?> \ No newline at end of file