| version 1.61, 2003/03/29 01:34:04 |
version 1.62, 2003/03/29 01:44:53 |
|
|
| * http://www.platon.sk/projects/phpMyEdit/ |
* http://www.platon.sk/projects/phpMyEdit/ |
| */ |
*/ |
| |
|
| /* $Platon: phpMyEdit/phpMyEdit.class.php,v 1.60 2003/03/26 18:40:01 nepto Exp $ */ |
/* $Platon: phpMyEdit/phpMyEdit.class.php,v 1.61 2003/03/29 01:34:04 nepto Exp $ */ |
| |
|
| /* This is a generic table editing program. The table and fields to be |
/* This is a generic table editing program. The table and fields to be |
| edited are defined in the calling program. |
edited are defined in the calling program. |
|
|
| } |
} |
| } |
} |
| $this->query_opts = $qo; |
$this->query_opts = $qo; |
| |
|
| # TODO: DELETE ME!! |
|
| |
|
| # /* If the filter input boxes are not displayed, we need to preserve |
|
| # the filter by its emulaion. */ |
|
| # for ($k = 0; $k < $this->num_fds; $k++) { |
|
| # $l = 'qf'.$k; |
|
| # $lc = 'qf'.$k.'_comp'; |
|
| # $li = 'qf'.$k.'_id'; |
|
| # $m = $this->get_cgi_var($l); |
|
| # $mc = $this->get_cgi_var($lc); |
|
| # $mi = $this->get_cgi_var($li); |
|
| # if (! isset($m) && ! isset($mi)) { |
|
| # continue; |
|
| # } |
|
| # $stack = array(); |
|
| # foreach (array($l => $m, $lc => $mc, $li => $mi) as $name => $value) { |
|
| # if (is_array($value)) { |
|
| # foreach ($value as $key => $val) { |
|
| # if ($key === '' && isset($value)) { |
|
| # continue; |
|
| # } |
|
| # $this->qfn_old .= '&'.$name.'['.rawurlencode($key).']='.rawurlencode($val); |
|
| # } |
|
| # } else { |
|
| # if (! isset($value) || $value == '*') { |
|
| # continue; |
|
| # } |
|
| # // Sync with gather_query_opts() |
|
| # if ($this->fdd[$k]['select'] != 'M' && $this->fdd[$k]['select'] != 'D' && $value == '') { |
|
| # continue; |
|
| # } |
|
| # /* Opertation CGI variables (=, <, >, ...) are added only |
|
| # if their numeric equivalent was already added as well. We |
|
| # are using $stack for remembering this. */ |
|
| # if (preg_match('|^(qf\d+)_comp$|', $name, $matches)) { |
|
| # if (! in_array($matches[1], $stack)) { |
|
| # continue; |
|
| # } |
|
| # } |
|
| # $stack[] = $name; |
|
| # $this->qfn_old .= '&'.$name.'='.rawurlencode($value); |
|
| # } |
|
| # } |
|
| # } |
|
| # echo htmlspecialchars('['.$this->qfn_old.']'); |
|
| # echo '<br>'; |
|
| # echo htmlspecialchars('['.$this->qfn.']'); |
|
| } /* }}} */ |
} /* }}} */ |
| |
|
| /* |
/* |