]> git.nbdom.net Git - nb.git/commitdiff
dbq
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Tue, 20 Dec 2016 10:53:32 +0000 (10:53 +0000)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Tue, 20 Dec 2016 10:53:32 +0000 (10:53 +0000)
www/dbq/dbq.php

index 672811e198fefb9e0070d25f0a97142bed6f4f4c..d89615cd388de8e504ca415d03597aea3a2c7de8 100644 (file)
@@ -232,8 +232,7 @@ table.rows th, table.rows td { border-color: '.$this->colors['body-border'].'; }
   }
 
   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'
@@ -245,14 +244,10 @@ table.rows th, table.rows td { border-color: '.$this->colors['body-border'].'; }
       ]),
       '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(' ',[
@@ -262,7 +257,6 @@ table.rows th, table.rows td { border-color: '.$this->colors['body-border'].'; }
         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)