X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=includes%2Fui%2Fui_controls.inc;h=311180c6e30b710936f4964c1dd4e269ee0e8ad8;hb=fa43a9c974d05b77517a0d8e3e510ef4a088632e;hp=0639124a5a236a4f6170ca70b57c0c7a5b637dd8;hpb=3f3cfa578adbc2b71f4fd9c8d0f5536d26af43d8;p=fa-stable.git diff --git a/includes/ui/ui_controls.inc b/includes/ui/ui_controls.inc index 0639124a..311180c6 100644 --- a/includes/ui/ui_controls.inc +++ b/includes/ui/ui_controls.inc @@ -69,7 +69,7 @@ function end_form($breaks=0) hidden('_modified', get_post('_modified', 0)); hidden('_token', $_SESSION['csrf_token']); echo "\n"; - $Ajax->activate('token'); + $Ajax->activate('_token'); } function check_csrf_token() @@ -313,18 +313,20 @@ function hyperlink_params_separate_td($target, $label, $params) //-------------------------------------------------------------------------------------------------- -function alt_table_row_color(&$k) +function alt_table_row_color(&$k, $extra_class=null) { + $classes = $extra_class ? array($extra_class) : array(); if ($k == 1) { - echo "\n"; + array_push($classes, 'oddrow'); $k = 0; } else { - echo "\n"; + array_push($classes, 'evenrow'); $k++; } + echo "\n"; } function table_section_title($msg, $colspan=2)