| version 1.181, 2006/06/21 18:12:05 |
version 1.182, 2006/09/04 13:37:32 |
|
|
| * http://platon.sk/projects/phpMyEdit/ |
* http://platon.sk/projects/phpMyEdit/ |
| */ |
*/ |
| |
|
| /* $Platon: phpMyEdit/phpMyEdit.class.php,v 1.167 2005/04/03 09:55:38 nepto Exp $ */ |
/* $Platon: phpMyEdit/phpMyEdit.class.php,v 1.181 2006-06-21 18:12:05 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. |
|
|
| function col_has_sql($k) { return isset($this->fdd[$k]['sql']); } |
function col_has_sql($k) { return isset($this->fdd[$k]['sql']); } |
| function col_has_sqlw($k) { return isset($this->fdd[$k]['sqlw']) && !$this->virtual($k); } |
function col_has_sqlw($k) { return isset($this->fdd[$k]['sqlw']) && !$this->virtual($k); } |
| function col_has_values($k) { return isset($this->fdd[$k]['values']) || isset($this->fdd[$k]['values2']); } |
function col_has_values($k) { return isset($this->fdd[$k]['values']) || isset($this->fdd[$k]['values2']); } |
| |
function col_has_php($k) { return isset($this->fdd[$k]['php']); } |
| function col_has_URL($k) { return isset($this->fdd[$k]['URL']) |
function col_has_URL($k) { return isset($this->fdd[$k]['URL']) |
| || isset($this->fdd[$k]['URLprefix']) || isset($this->fdd[$k]['URLpostfix']); } |
|| isset($this->fdd[$k]['URLprefix']) || isset($this->fdd[$k]['URLpostfix']); } |
| function col_has_multiple_select($k) |
function col_has_multiple_select($k) |
| Line 978 function '.$this->js['prefix'].'filter_h |
|
| Line 979 function '.$this->js['prefix'].'filter_h |
|
| echo ' wrap="virtual"'; |
echo ' wrap="virtual"'; |
| } |
} |
| echo '>',htmlspecialchars($this->fdd[$k]['default']),'</textarea>',"\n"; |
echo '>',htmlspecialchars($this->fdd[$k]['default']),'</textarea>',"\n"; |
| |
} elseif ($this->col_has_php($k)) { |
| |
echo include($this->fdd[$k]['php']); |
| } else { |
} else { |
| // Simple edit box required |
// Simple edit box required |
| $size_ml_props = ''; |
$size_ml_props = ''; |
| Line 1107 function '.$this->js['prefix'].'filter_h |
|
| Line 1110 function '.$this->js['prefix'].'filter_h |
|
| echo ' wrap="virtual"'; |
echo ' wrap="virtual"'; |
| } |
} |
| echo '>',htmlspecialchars($row["qf$k"]),'</textarea>',"\n"; |
echo '>',htmlspecialchars($row["qf$k"]),'</textarea>',"\n"; |
| |
} elseif ($this->col_has_php($k)) { |
| |
echo include($this->fdd[$k]['php']); |
| } else { |
} else { |
| $size_ml_props = ''; |
$size_ml_props = ''; |
| $maxlen = intval($this->fdd[$k]['maxlen']); |
$maxlen = intval($this->fdd[$k]['maxlen']); |
| Line 1327 function '.$this->js['prefix'].'filter_h |
|
| Line 1332 function '.$this->js['prefix'].'filter_h |
|
| if (@$this->fdd[$k]['mask']) { |
if (@$this->fdd[$k]['mask']) { |
| $value = sprintf($this->fdd[$k]['mask'], $value); |
$value = sprintf($this->fdd[$k]['mask'], $value); |
| } |
} |
| |
if ($this->col_has_php($k)) { |
| |
return include($this->fdd[$k]['php']); |
| |
} |
| if ($this->col_has_URL($k)) { |
if ($this->col_has_URL($k)) { |
| return $this->urlDisplay($k, $original_value, $value, $css, $key_rec); |
return $this->urlDisplay($k, $original_value, $value, $css, $key_rec); |
| } |
} |