// 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 $use_popup_windows, $use_date_picker, $path_to_root;
$pager->select_records();
}
}
/* 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
}
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