.'<input type="hidden" name="action" value="update"/>'
.'<input type="hidden" name="db" value="'.$this->p('db').'"/>'
.'<input type="hidden" name="debug" value="'.$this->p('debug').'"/>'
- .'<input type="hidden" name="referer" value="'.urlencode(@$_SERVER['HTTP_REFERER']).'"/>'
+ .'<input type="hidden" name="referer" value="'.urlencode($_SERVER['HTTP_REFERER']).'"/>'
.'</form>'.NB_EOL;
}
Html Output
******************************************************************/
public function rows($opt=array()) {
+
+# NB 17.03.16 $format = ( $this->p('format') ? $this->p('format') : 'table' );
+# NB 19.03.16 $format = $this->pdef('format','table');
+ $format = $this->p('format');
+ if (!$format) bye("No param format");
//
// Select
$st = $this->db->conn->prepare($sql);
$st->execute();
-# NB 17.03.16 $format = ( $this->p('format') ? $this->p('format') : 'table' );
- $format = $this->pdef('format','table');
-
if (!isset($opt['is_html'])) $opt['is_html'] = preg_match('/^(table|div)$/',$format)
? ( $this->p('header')!=="0" and $this->p('inc')!=="1")
: false
if ($opt['is_html']) echo $this->html_nav_top();
if ($out_conf) {
- out::begin($out_conf,$this->fields());
+ out::begin($out_conf,$this->fields(),array($row));
} else {
echo $this->{"rows_begin_$format"}($this->fields());
) as $v) {
$r .= '<input type="hidden" name="'.$v.'" value="'.$this->p($v).'"/>';
}
+ $r .= '<input type="hidden" name="inc" value="0"/>'; // Embed for no html format
//
// Options