version 1.149, 2004/11/02 20:08:11 |
version 1.150, 2004/11/10 17:01:33 |
|
|
* http://platon.sk/projects/phpMyEdit/ |
* http://platon.sk/projects/phpMyEdit/ |
*/ |
*/ |
|
|
/* $Platon: phpMyEdit/phpMyEdit.class.php,v 1.148 2004/11/02 19:36:43 nepto Exp $ */ |
/* $Platon: phpMyEdit/phpMyEdit.class.php,v 1.149 2004/11/02 20:08:11 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 1271 function phpMyEdit_filter_handler(theFor |
|
Line 1271 function phpMyEdit_filter_handler(theFor |
|
if (@$this->fdd[$k]['strip_tags']) { |
if (@$this->fdd[$k]['strip_tags']) { |
$value = strip_tags($value); |
$value = strip_tags($value); |
} |
} |
|
if ($num_ar = @$this->fdd[$k]['number_format']) { |
|
if (! is_array($num_ar)) { |
|
$num_ar = array($num_ar); |
|
} |
|
if (count($num_ar) == 1) { |
|
list($nbDec) = $num_ar; |
|
$value = number_format($value, $nbDec); |
|
} else if (count($num_ar) == 3) { |
|
list($nbDec, $decPoint, $thSep) = $num_ar; |
|
$value = number_format($value, $nbDec, $decPoint, $thSep); |
|
} |
|
} |
if (intval($this->fdd[$k]['trimlen']) > 0 && strlen($value) > $this->fdd[$k]['trimlen']) { |
if (intval($this->fdd[$k]['trimlen']) > 0 && strlen($value) > $this->fdd[$k]['trimlen']) { |
$value = ereg_replace("[\r\n\t ]+",' ',$value); |
$value = ereg_replace("[\r\n\t ]+",' ',$value); |
$value = substr($value, 0, $this->fdd[$k]['trimlen'] - 3).'...'; |
$value = substr($value, 0, $this->fdd[$k]['trimlen'] - 3).'...'; |