$next = 999999;
}
- echo '<div class="nav" id="nav_bottom">';
+ echo '<div align="center" class="nav" id="nav_bottom">';
if ($prev>=0) echo '<span class="prev"><a href="'.$this->url_params('limit',preg_replace('/^0,/','',"$prev,$y")).'"><<</a></span> ';
$st = $this->db->conn->prepare($sql);
$st->execute();
- if (@$GLOBALS['PAGE']['is_html']) echo '<div class="nav" id="nav_top"></div>'.PHP_EOL;
-
$format = ''.(isset($opt['format']) ? $opt['format'] : 'table');
+
+ if (!@$opt['is_html']) $opt['is_html'] = preg_match('/^(table)$/',$format) ? true : false;
+ if ($opt['is_html']) echo '<div align="center" class="nav" id="nav_top"></div>'.PHP_EOL;
+
$escape = preg_match('/^(table|row|xml)$/',$format) ? true : false;
if (preg_match('/^(1)?$/',@$_REQUEST['header'])) echo $this->{"rows_begin_$format"}($opt);
}
echo $this->{"rows_end_$format"}($opt);
- if (@$GLOBALS['PAGE']['is_html']) echo $this->nav($count,$tot,$limit);
+ if ($opt['is_html']) echo $this->nav($count,$tot,$limit);
$st->closeCursor();