}
public function table_rows($fct=null) {
- #$this->pset('action','table.row');
- #$this->pset('action','');
+
$opt = ($this->page->is('html')
and ($this->perm >= self::VIEW)
and $this->table->type() != 'sql'
]),
'row_parse_pre' => function(&$r){
- #if ($this->perm < self::VIEW) return;
-# NB 20.12.16 $args = urlencode( join(self::PARAM_ARGS_SEP,$this->table->fields_keys_values($r)) );
$GLOBALS['dbq_args'] = urlencode( join(self::PARAM_ARGS_SEP,$this->table->fields_keys_values($r)) );
},
'row_parse_post' => function(&$r){
- #if ($this->perm < self::VIEW) return;
-# NB 20.12.16 $args = urlencode( join(self::PARAM_ARGS_SEP,$this->table->fields_keys_values($r)) );
$args = $GLOBALS['dbq_args'];
$r = ['@' => join(' ',[
if ($this->perm < self::DELETE) return;
$rm = $this->table->base.'rm/'.$args;
$r['-'] = ''
- #'<a class="button delete" href="'.$this->table->name.'/rm/'.$args.'">Delete</a>'
.'<form action="'.$rm.'" method="post">'
.'<a class="button" href="'.$rm.'" onclick="parentNode.submit();return false;">Delete</a>'
.$this->form_hidden($r)