#if (!$keys) return; #$this->not_implemented('Table has no fields');
#bye(array_combine($keys,$values));
- $this->table->html_edit(array_combine($keys,$values),$this->table->base.($add ? 'insert/' : 'update/'),$add);
+ $this->table->html_edit(array_combine($keys,$values),$this->table->base.($add ? 'insert/' : 'update/').$this->params['args'],$add);
}
public function table_rows($fct=null) {
header('Location: '.$this->table->base);
} elseif ($action == 'rm' and $this->perm >= self::DELETE) {
- if (!$this->table->delete($_POST)) 1;#$this->error('rm');
+ if (!$this->table->delete($_POST)) $this->error('rm');
header('Location: '.$this->table->base);