| version 1.137, 2004/04/18 17:23:34 |
version 1.138, 2004/04/20 13:30:04 |
|
|
| * http://platon.sk/projects/phpMyEdit/ |
* http://platon.sk/projects/phpMyEdit/ |
| */ |
*/ |
| |
|
| /* $Platon: phpMyEdit/phpMyEdit.class.php,v 1.136 2004/04/18 14:17:07 nepto Exp $ */ |
/* $Platon: phpMyEdit/phpMyEdit.class.php,v 1.137 2004/04/18 17:23:34 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. |
| Line 2028 function phpMyEdit_filter_handler(theFor |
|
| Line 2028 function phpMyEdit_filter_handler(theFor |
|
| $qpcopy = $qstrparts; |
$qpcopy = $qstrparts; |
| $qpchange = $qstrparts; |
$qpchange = $qstrparts; |
| $qpdelete = $qstrparts; |
$qpdelete = $qstrparts; |
| $qpview[] = 'operation='.$this->labels['View']; |
$qpview[] = 'operation='.$this->cgi['prefix']['operation'].'View'; |
| $qpcopy[] = 'operation='.$this->labels['Copy']; |
$qpcopy[] = 'operation='.$this->cgi['prefix']['operation'].'Copy'; |
| $qpchange[] = 'operation='.$this->labels['Change']; |
$qpchange[] = 'operation='.$this->cgi['prefix']['operation'].'Change'; |
| $qpdelete[] = 'operation='.$this->labels['Delete']; |
$qpdelete[] = 'operation='.$this->cgi['prefix']['operation'].'Delete'; |
| $qpviewStr = htmlspecialchars($this->page_name.'?'.join('&',$qpview).$this->qfn); |
$qpviewStr = htmlspecialchars($this->page_name.'?'.join('&',$qpview).$this->qfn); |
| $qpcopyStr = htmlspecialchars($this->page_name.'?'.join('&',$qpcopy).$this->qfn); |
$qpcopyStr = htmlspecialchars($this->page_name.'?'.join('&',$qpcopy).$this->qfn); |
| $qpchangeStr = htmlspecialchars($this->page_name.'?'.join('&',$qpchange).$this->qfn); |
$qpchangeStr = htmlspecialchars($this->page_name.'?'.join('&',$qpchange).$this->qfn); |
| Line 2934 function phpMyEdit_filter_handler(theFor |
|
| Line 2934 function phpMyEdit_filter_handler(theFor |
|
| $this->cgi['persist'] .= '&'.urlencode($key).'='.urlencode($val); |
$this->cgi['persist'] .= '&'.urlencode($key).'='.urlencode($val); |
| } |
} |
| } |
} |
| |
$this->cgi['prefix'] = array('operation' => 'PME::op::'); |
| |
if (isset($opts['cgi']['prefix']['operation'])) { |
| |
$this->cgi['prefix']['operation'] = $opts['cgi']['prefix']['operation']; |
| |
} |
| // Sorting variables |
// Sorting variables |
| $this->sfn = $this->get_cgi_var('sfn'); |
$this->sfn = $this->get_cgi_var('sfn'); |
| isset($this->sfn) || $this->sfn = array(); |
isset($this->sfn) || $this->sfn = array(); |
| Line 2954 function phpMyEdit_filter_handler(theFor |
|
| Line 2958 function phpMyEdit_filter_handler(theFor |
|
| } else if (($this->navfm = $this->get_cgi_var('navfmdown', $this->navfm)) != $this->fm) { |
} else if (($this->navfm = $this->get_cgi_var('navfmdown', $this->navfm)) != $this->fm) { |
| $this->navop = $this->labels['Go to']; |
$this->navop = $this->labels['Go to']; |
| } |
} |
| $this->operation = $this->get_cgi_var('operation'); |
$this->operation = $this->get_cgi_var('operation'); |
| |
$oper_prefix_len = strlen($this->cgi['prefix']['operation']); |
| |
if (! strncmp($this->cgi['prefix']['operation'], $this->operation, $oper_prefix_len)) { |
| |
$this->operation = $this->labels[substr($this->operation, $oper_prefix_len)]; |
| |
} |
| $this->saveadd = $this->get_cgi_var('saveadd'); |
$this->saveadd = $this->get_cgi_var('saveadd'); |
| $this->moreadd = $this->get_cgi_var('moreadd'); |
$this->moreadd = $this->get_cgi_var('moreadd'); |
| $this->canceladd = $this->get_cgi_var('canceladd'); |
$this->canceladd = $this->get_cgi_var('canceladd'); |