| version 1.39, 2002/12/15 09:16:33 |
version 1.40, 2002/12/18 18:40:42 |
|
|
| * http://www.platon.sk/projects/phpMyEdit/ |
* http://www.platon.sk/projects/phpMyEdit/ |
| */ |
*/ |
| |
|
| /* $Platon: phpMyEdit/phpMyEdit.class.php,v 1.38 2002/12/14 22:48:05 nepto Exp $ */ |
/* $Platon: phpMyEdit/phpMyEdit.class.php,v 1.39 2002/12/15 09:16:33 nepto Exp $ */ |
| |
|
| /* phpMyEdit intro {{{ */ |
/* phpMyEdit intro {{{ */ |
| /* |
/* |
|
|
| |
|
| if (! isset($options)) |
if (! isset($options)) |
| return true; |
return true; |
| #if ($this->hidden($k)) |
|
| # return false; |
|
| |
|
| return |
return |
| ($this->add_operation() && stristr($options, 'A')) || |
($this->add_operation() && stristr($options, 'A')) || |
| Line 810 function form_control(theForm) |
|
| Line 808 function form_control(theForm) |
|
| echo '</tr>'."\n"; |
echo '</tr>'."\n"; |
| } |
} |
| for ($k = 0; $k < $this->num_fds; $k++) { |
for ($k = 0; $k < $this->num_fds; $k++) { |
| |
if ($this->hidden($k)) { |
| |
echo $this->htmlHidden($this->fds[$k], $this->htmlDisplay($this->fdd[$k], |
| |
$row["qf$k"], false, true, false)); |
| |
continue; |
| |
} |
| if (! $this->displayed[$k]) { |
if (! $this->displayed[$k]) { |
| continue; |
continue; |
| } |
} |
| echo '<tr>'."\n"; |
echo '<tr>'."\n"; |
| echo '<td>'.$this->fdd[$k]['name'].'</td>'."\n"; |
echo '<td>'.$this->fdd[$k]['name'].'</td>'."\n"; |
| |
|
| if ($this->col_has_values($k) && !$this->readonly($k)) { |
if ($this->col_has_values($k) && !$this->readonly($k)) { |
| echo '<td>' ."\n"; |
echo '<td>'."\n"; |
| $vals = isset($this->fdd[$k]['values']['table']) |
$vals = isset($this->fdd[$k]['values']['table']) |
| ? $this->set_values_from_table($k) |
? $this->set_values_from_table($k) |
| : (array) $this->fdd[$k]['values2'] + (array) $this->fdd[$k]['values']; |
: (array) $this->fdd[$k]['values2'] + (array) $this->fdd[$k]['values']; |