X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=includes%2Fui%2Fdb_pager_view.inc;h=28c2b38d4a0ef6b3412a463350b525b5ca461ad8;hb=a9d55e1c13cbd6a6305b9322ec8621a06516f9f3;hp=d941cf9056af0bec273a33d2ae79a5472a5b43c4;hpb=a11ed22a51541fdee03783e779e8e6e9b7e290b1;p=fa-stable.git diff --git a/includes/ui/db_pager_view.inc b/includes/ui/db_pager_view.inc index d941cf90..28c2b38d 100644 --- a/includes/ui/db_pager_view.inc +++ b/includes/ui/db_pager_view.inc @@ -40,7 +40,7 @@ function navi_button_cell($name, $value, $enabled=true, $align='left') { // Sql paged table view. Call this function inside form. // function display_db_pager(&$pager) { - global $table_style, $use_popup_windows, $use_date_picker, $path_to_root; + global $path_to_root; $pager->select_records(); @@ -61,7 +61,7 @@ function display_db_pager(&$pager) { } } /* show a table of records returned by the sql */ - start_table("$table_style width=$pager->width"); + start_table(TABLESTYLE, "width='$pager->width'"); table_header($headers); if($pager->header_fun) { // if set header handler @@ -103,7 +103,7 @@ function display_db_pager(&$pager) { } switch($coltype) { // format column case 'time': - label_cell($cell, "width=40"); break; + label_cell($cell, "width='40'"); break; case 'date': label_cell(sql2date($cell), "align='center' nowrap"); break; case 'dstamp': // time stamp displayed as date @@ -132,7 +132,6 @@ function display_db_pager(&$pager) { if(get_post('show_inactive')) $pager->inactive_control_cell($row); break; default: -// case 'text': if (isset( $col['align'])) label_cell($cell, "align='" . $col['align'] . "'"); else @@ -188,7 +187,7 @@ function display_db_pager(&$pager) { echo $inact; echo ""; } else { - label_cell( _('No records') . $inact, "colspan=$colspan class='navibar'"); + label_cell( _('No records') . $inact, "colspan=$colspan class='navibar'"); } end_row(); @@ -203,4 +202,3 @@ function display_db_pager(&$pager) { } -?> \ No newline at end of file