| version 1.144, 2004/06/30 17:54:09 |
version 1.145, 2004/07/13 17:59:33 |
|
|
| * http://platon.sk/projects/phpMyEdit/ |
* http://platon.sk/projects/phpMyEdit/ |
| */ |
*/ |
| |
|
| /* $Platon: phpMyEdit/phpMyEdit.class.php,v 1.143 2004/04/22 16:15:14 nepto Exp $ */ |
/* $Platon: phpMyEdit/phpMyEdit.class.php,v 1.144 2004/06/30 17:54:09 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 2668 function phpMyEdit_filter_handler(theFor |
|
| Line 2668 function phpMyEdit_filter_handler(theFor |
|
| have desirable sorting behaviour. So there is no need to remove them. |
have desirable sorting behaviour. So there is no need to remove them. |
| */ |
*/ |
| for ($k = 0; ! $this->displayed[$k]; $k++); |
for ($k = 0; ! $this->displayed[$k]; $k++); |
| $this->sfn[count($this->sfn) - 1] = "$k"; // important quotes |
$this->sfn[] = "$k"; // important quotes |
| $this->sfn = array_unique($this->sfn); |
$this->sfn = array_unique($this->sfn); |
| $check_ar = array(); |
$check_ar = array(); |
| foreach ($this->sfn as $key => $val) { |
foreach ($this->sfn as $key => $val) { |
| Line 2956 function phpMyEdit_filter_handler(theFor |
|
| Line 2956 function phpMyEdit_filter_handler(theFor |
|
| isset($opts['sort_field']) || $opts['sort_field'] = array(); |
isset($opts['sort_field']) || $opts['sort_field'] = array(); |
| is_array($opts['sort_field']) || $opts['sort_field'] = array($opts['sort_field']); |
is_array($opts['sort_field']) || $opts['sort_field'] = array($opts['sort_field']); |
| $this->sfn = array_merge($this->sfn, $opts['sort_field']); |
$this->sfn = array_merge($this->sfn, $opts['sort_field']); |
| $this->sfn[] = '0'; // this last entry will be replaced in recreate_displayed() |
|
| // Form variables all around |
// Form variables all around |
| $this->fl = intval($this->get_cgi_var('fl')); |
$this->fl = intval($this->get_cgi_var('fl')); |
| $this->fm = intval($this->get_cgi_var('fm')); |
$this->fm = intval($this->get_cgi_var('fm')); |