| version 1.66, 2003/03/31 18:44:20 |
version 1.67, 2003/04/03 00:23:22 |
|
|
| * http://www.platon.sk/projects/phpMyEdit/ |
* http://www.platon.sk/projects/phpMyEdit/ |
| */ |
*/ |
| |
|
| /* $Platon: phpMyEdit/phpMyEdit.class.php,v 1.65 2003/03/30 21:57:30 nepto Exp $ */ |
/* $Platon: phpMyEdit/phpMyEdit.class.php,v 1.66 2003/03/31 18:44:20 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 1023 function phpMyEdit_form_control(theForm) |
|
| Line 1023 function phpMyEdit_form_control(theForm) |
|
| $value = $row["qf$k".'_timestamp']; |
$value = $row["qf$k".'_timestamp']; |
| $value = @strftime($this->fdd[$k]['strftimemask'], $value); |
$value = @strftime($this->fdd[$k]['strftimemask'], $value); |
| } else if ($this->is_values2($k, $row["qf$k"])) { |
} else if ($this->is_values2($k, $row["qf$k"])) { |
| $value = $this->fdd[$k]['values2'][$row['qf'.$k.'_idx']]; |
$value = $row['qf'.$k.'_idx']; |
| |
if ($this->fdd[$k]['select'] == 'M') { |
| |
$value_ar = explode(',', $value); |
| |
$value_ar2 = array(); |
| |
foreach ($value_ar as $value_key) { |
| |
if (isset($this->fdd[$k]['values2'][$value_key])) { |
| |
$value_ar2[$value_key] = $this->fdd[$k]['values2'][$value_key]; |
| |
} |
| |
} |
| |
$value = join(', ', $value_ar2); |
| |
} else { |
| |
if (isset($this->fdd[$k]['values2'][$value])) { |
| |
$value = $this->fdd[$k]['values2'][$value]; |
| |
} |
| |
} |
| } else { |
} else { |
| $value = $row["qf$k"]; |
$value = $row["qf$k"]; |
| } |
} |