| version 1.70, 2003/04/06 02:55:16 |
version 1.71, 2003/04/07 00:40:05 |
|
|
| * http://www.platon.sk/projects/phpMyEdit/ |
* http://www.platon.sk/projects/phpMyEdit/ |
| */ |
*/ |
| |
|
| /* $Platon: phpMyEdit/phpMyEdit.class.php,v 1.69 2003/04/05 22:20:19 nepto Exp $ */ |
/* $Platon: phpMyEdit/phpMyEdit.class.php,v 1.70 2003/04/06 02:55:16 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 880 function phpMyEdit_form_control(theForm) |
|
| Line 880 function phpMyEdit_form_control(theForm) |
|
| function display_change_field($row, $k) /* {{{ */ |
function display_change_field($row, $k) /* {{{ */ |
| { |
{ |
| $css_postfix = @$this->fdd[$k]['css']['postfix']; |
$css_postfix = @$this->fdd[$k]['css']['postfix']; |
| $css_class_name = $this->getCSSclass('input', null, true); |
$css_class_name = $this->getCSSclass('input', null, true, $css_postfix); |
| echo '<td class="',$this->getCSSclass('value', null, true),'">',"\n"; |
echo '<td class="',$this->getCSSclass('value', null, true, $css_postfix),'">',"\n"; |
| if ($this->col_has_values($k)) { |
if ($this->col_has_values($k)) { |
| $vals = $this->set_values($k); |
$vals = $this->set_values($k); |
| $multiple = $this->fdd[$k]['select'] == 'M' && ! $this->fdd[$k]['values']['table']; |
$multiple = $this->fdd[$k]['select'] == 'M' && ! $this->fdd[$k]['values']['table']; |
| Line 2520 function phpMyEdit_form_control(theForm) |
|
| Line 2520 function phpMyEdit_form_control(theForm) |
|
| */ |
*/ |
| function phpMyEdit($opts) /* {{{ */ |
function phpMyEdit($opts) /* {{{ */ |
| { |
{ |
| |
// Set desirable error reporting level |
| |
$error_reporting = @error_reporting(E_ALL & ~E_NOTICE); |
| // Instance class variables |
// Instance class variables |
| $this->hn = $opts['hn']; |
$this->hn = $opts['hn']; |
| $this->un = $opts['un']; |
$this->un = $opts['un']; |
| Line 2633 function phpMyEdit_form_control(theForm) |
|
| Line 2635 function phpMyEdit_form_control(theForm) |
|
| // Call to action |
// Call to action |
| !isset($opts['execute']) && $opts['execute'] = 1; |
!isset($opts['execute']) && $opts['execute'] = 1; |
| $opts['execute'] && $this->execute(); |
$opts['execute'] && $this->execute(); |
| |
// Restore original error reporting level |
| |
@error_reporting($error_reporting); |
| } /* }}} */ |
} /* }}} */ |
| |
|
| } |
} |