| version 1.195, 2007/04/13 10:58:23 |
version 1.196, 2007/05/05 12:00:51 |
|
|
| * http://platon.sk/projects/phpMyEdit/ |
* http://platon.sk/projects/phpMyEdit/ |
| */ |
*/ |
| |
|
| /* $Platon: phpMyEdit/phpMyEdit.class.php,v 1.189 2006-11-26 13:25:59 nepto Exp $ */ |
/* $Platon: phpMyEdit/phpMyEdit.class.php,v 1.195 2007-04-13 10:58:23 michal 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. |
|
|
| } |
} |
| foreach ($desc['columns'] as $key => $val) { |
foreach ($desc['columns'] as $key => $val) { |
| if ($val) { |
if ($val) { |
| $qparts['select'] .= 'IFNULL('.$this->sd.$val.$this->ed.',"")'; |
$qparts['select'] .= 'IFNULL(CAST('.$this->sd.$val.$this->ed.' AS CHAR),"")'; |
| if ($desc['divs'][$key]) { |
if ($desc['divs'][$key]) { |
| $qparts['select'] .= ',"'.addslashes($desc['divs'][$key]).'"'; |
$qparts['select'] .= ',"'.addslashes($desc['divs'][$key]).'"'; |
| } |
} |
|
|
| } |
} |
| foreach ($desc['columns'] as $key => $val) { |
foreach ($desc['columns'] as $key => $val) { |
| if ($val) { |
if ($val) { |
| $ret .= $this->sd.'PMEjoin'.$field.$this->ed.'.'.$this->sd.$val.$this->ed; |
$ret .= 'IFNULL(CAST('.$this->sd.'PMEjoin'.$field.$this->ed.'.'.$this->sd.$val.$this->ed.' AS CHAR),"")'; |
| if ($desc['divs'][$key]) { |
if ($desc['divs'][$key]) { |
| $ret .= ',"'.addslashes($desc['divs'][$key]).'"'; |
$ret .= ',"'.addslashes($desc['divs'][$key]).'"'; |
| } |
} |
| Line 3377 function '.$this->js['prefix'].'filter_h |
|
| Line 3377 function '.$this->js['prefix'].'filter_h |
|
| * vim600:fdm=marker fdl=0 fdc=0: |
* vim600:fdm=marker fdl=0 fdc=0: |
| * }}} */ |
* }}} */ |
| |
|
| ?> |
|
| |
|
| |
?> |