}
public function rows(&$opt=[],$opt_by_val=null) {
- $opt['TABLE'] = $this;
#
# Db type change
$count = 0;
while ($fct() and $row = $st->fetch(PDO::FETCH_ASSOC, PDO::FETCH_ORI_NEXT)) {
- $opt_backup = $opt;
$count++;
$call = null;
} else {
echo $this->{"rows_rec_$format"}($row,$opt);
}
- $opt = $opt_backup;
} # < while rows
echo '</div>'.NB_EOL;
}
- unset($opt['TABLE']);
#return $count;
}
if ($this->buttons() and !empty($buttons[0])) $html .= '<td class="action">'.$buttons[0].'</td>'.NB_EOL;
foreach ($row as $k => $v) {
- if ( !empty($opt['TABLE']) and !empty($opt['TABLE']->field($k)) ) {
- $v = $opt['TABLE']->field($k)->htmlValue($v);
+ if ( !empty($this) and !empty($this->field($k)) ) {
+ $v = $this->field($k)->htmlValue($v);
}
$html .= '<td'.$this->__rows_table_attr[$k].'>'.$v.'</td>'.NB_EOL;
}