| verzia 1.4, 2007/01/26 11:24:26 |
verzia 1.5, 2024/11/20 07:21:07 |
|
|
| * http://platon.sk/projects/phpMyEdit/ |
* http://platon.sk/projects/phpMyEdit/ |
| */ |
*/ |
| |
|
| /* $Platon: phpMyEdit/extensions/phpMyEdit-xstandard.class.php,v 1.3 2007-01-26 11:20:13 nepto Exp $ */ |
/* $Platon: phpMyEdit/extensions/phpMyEdit-xstandard.class.php,v 1.4 2007-01-26 11:24:26 nepto Exp $ */ |
| |
|
| require_once dirname(__FILE__).'/../phpMyEdit.class.php'; |
require_once dirname(__FILE__).'/../phpMyEdit.class.php'; |
| |
|
| Riadok 308 function '.$this->js['prefix'].'filter_h |
|
| Riadok 308 function '.$this->js['prefix'].'filter_h |
|
| // Simple edit box required |
// Simple edit box required |
| $size_ml_props = ''; |
$size_ml_props = ''; |
| $maxlen = intval($this->fdd[$k]['maxlen']); |
$maxlen = intval($this->fdd[$k]['maxlen']); |
| $size = isset($this->fdd[$k]['size']) ? $this->fdd[$k]['size'] : min($maxlen, 60); |
$size = isset($this->fdd[$k]['size']) ? $this->fdd[$k]['size'] : min($maxlen, 60); |
| $size && $size_ml_props .= ' size="'.$size.'"'; |
$size && $size_ml_props .= ' size="'.$size.'"'; |
| $maxlen && $size_ml_props .= ' maxlength="'.$maxlen.'"'; |
$maxlen && $size_ml_props .= ' maxlength="'.$maxlen.'"'; |
| echo '<input class="',$css_class_name,'" '; |
echo '<input class="',$css_class_name,'" '; |
| Riadok 330 function '.$this->js['prefix'].'filter_h |
|
| Riadok 330 function '.$this->js['prefix'].'filter_h |
|
| } |
} |
| } /* }}} */ |
} /* }}} */ |
| |
|
| 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_postfix); |
$css_class_name = $this->getCSSclass('input', null, true, $css_postfix); |
| Riadok 399 function '.$this->js['prefix'].'filter_h |
|
| Riadok 399 function '.$this->js['prefix'].'filter_h |
|
| } else { |
} else { |
| $size_ml_props = ''; |
$size_ml_props = ''; |
| $maxlen = intval($this->fdd[$k]['maxlen']); |
$maxlen = intval($this->fdd[$k]['maxlen']); |
| $size = isset($this->fdd[$k]['size']) ? $this->fdd[$k]['size'] : min($maxlen, 60); |
$size = isset($this->fdd[$k]['size']) ? $this->fdd[$k]['size'] : min($maxlen, 60); |
| $size && $size_ml_props .= ' size="'.$size.'"'; |
$size && $size_ml_props .= ' size="'.$size.'"'; |
| $maxlen && $size_ml_props .= ' maxlength="'.$maxlen.'"'; |
$maxlen && $size_ml_props .= ' maxlength="'.$maxlen.'"'; |
| echo '<input class="',$css_class_name,'" type="text" '; |
echo '<input class="',$css_class_name,'" type="text" '; |