public $sql;
public $fields = null;
public $fields_keys = null;
+ public $replace = array(); # replace by javascript
public $extras = array();
public $params = array(
'table',
-----------------------------------------------------------------*/
function rows_begin_table($fields) {
- $html = DB_HTML_NAV_TOP;
+ $html = $this->html_nav_top();
#$html .= '<table data-role="table" class="ui-responsive rows '.$this->name.'">'.PHP_EOL;
$html .= '<table class="rows '.$this->name.'">'.PHP_EOL;
#if (!empty($opt)) $html .= '<caption>' . $this->nav($opt['count'],$opt['tot'],$opt['limit']) . '</caption>' .PHP_EOL;
Html Div
-----------------------------------------------------------------*/
function rows_begin_div() {
- return '<div class="rows '.$this->name.'">'.PHP_EOL.DB_HTML_NAV_TOP;
+ return '<div class="rows '.$this->name.'">'.PHP_EOL.$this->html_nav_top();
}
function rows_rec_div(&$row) {
return false;
}
+
+ function html_nav_top() {
+ $html = DB_HTML_NAV_TOP;
+ if (!empty($this->replace)) {
+ $replace = array();
+ foreach ($this->replace as $k=>$v) { $replace[] = "$k.$v"; }
+ $html .= '<span id="db-table-replace" style="display:none">'.join(' ',$replace).'</span>';
+ }
+ return $html;
+ }
+
}
?>