version 1.124, 2004/03/08 09:45:34 |
version 1.125, 2004/03/20 11:47:19 |
|
|
* http://platon.sk/projects/phpMyEdit/ |
* http://platon.sk/projects/phpMyEdit/ |
*/ |
*/ |
|
|
/* $Platon: phpMyEdit/phpMyEdit.class.php,v 1.123 2004/03/08 09:43:04 nepto Exp $ */ |
/* $Platon: phpMyEdit/phpMyEdit.class.php,v 1.124 2004/03/08 09:45:34 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 999 function phpMyEdit_filter_handler(theFor |
|
Line 999 function phpMyEdit_filter_handler(theFor |
|
echo '<tr class="',$this->getCSSclass('row', null, 'next', $css_postfix),'">',"\n"; |
echo '<tr class="',$this->getCSSclass('row', null, 'next', $css_postfix),'">',"\n"; |
echo '<td class="',$this->getCSSclass('key', null, true, $css_postfix),'">',$this->fdd[$k]['name'],'</td>',"\n"; |
echo '<td class="',$this->getCSSclass('key', null, true, $css_postfix),'">',$this->fdd[$k]['name'],'</td>',"\n"; |
/* There are two possibilities of readonly fields handling: |
/* There are two possibilities of readonly fields handling: |
1. Display plain text for readonly timestamps and dates. |
1. Display plain text for readonly timestamps, dates and URLs. |
2. Display disabled input field |
2. Display disabled input field |
In all cases particular readonly field will NOT be saved. */ |
In all cases particular readonly field will NOT be saved. */ |
if ($this->col_has_datemask($k) && $this->readonly($k)) { |
if ($this->readonly($k) && ($this->col_has_datemask($k) || $this->col_has_URL($k))) { |
echo $this->display_delete_field($row, $k); |
echo $this->display_delete_field($row, $k); |
} elseif ($this->password($k)) { |
} elseif ($this->password($k)) { |
echo $this->display_password_field($row, $k); |
echo $this->display_password_field($row, $k); |