| verzia 1.2, 2007/01/26 10:49:53 |
verzia 1.3, 2007/01/26 11:20:13 |
|
|
| * http://platon.sk/projects/phpMyEdit/ |
* http://platon.sk/projects/phpMyEdit/ |
| */ |
*/ |
| |
|
| /* $Platon: phpMyEdit/extensions/phpMyEdit-xstandard.class.php,v 1.1 2006-12-03 22:48:38 nepto Exp $ */ |
/* $Platon: phpMyEdit/extensions/phpMyEdit-xstandard.class.php,v 1.2 2007-01-26 10:49:53 nepto Exp $ */ |
| |
|
| require_once dirname(__FILE__).'/../phpMyEdit.class.php'; |
require_once dirname(__FILE__).'/../phpMyEdit.class.php'; |
| |
|
| Riadok 267 function '.$this->js['prefix'].'filter_h |
|
| Riadok 267 function '.$this->js['prefix'].'filter_h |
|
| $name = $this->cgi['prefix']['data'].$this->fds[$k]; |
$name = $this->cgi['prefix']['data'].$this->fds[$k]; |
| echo '<input type="hidden" name="',$name,'" id="',$name,'" />',"\n"; |
echo '<input type="hidden" name="',$name,'" id="',$name,'" />',"\n"; |
| echo '<object type="application/x-xstandard" id="',$name,'_xstandard"'; |
echo '<object type="application/x-xstandard" id="',$name,'_xstandard"'; |
| $height = null; |
$height = '300'; // default value |
| $width = null; |
$width = '100%'; // default value |
| $params = null; |
$params = null; |
| foreach ($this->fdd[$k]['textarea']['xstandard'] as $key => $val) { |
if (is_array($this->fdd[$k]['textarea']['xstandard'])) { |
| if (! strcasecmp($key, 'height')) { |
foreach ($this->fdd[$k]['textarea']['xstandard'] as $key => $val) { |
| $height = $val; |
if (! strcasecmp($key, 'height')) { |
| } else if (! strcasecmp($key, 'width')) { |
$height = $val; |
| $width = $val; |
} else if (! strcasecmp($key, 'width')) { |
| } else { |
$width = $val; |
| $params .= '<param name="'.$key.'" value="'.$val.'" />'."\n"; |
} else { |
| |
$params .= '<param name="'.$key.'" value="'.$val.'" />'."\n"; |
| |
} |
| } |
} |
| } |
} |
| if (strlen($width) > 0) { echo " width=\"$width\""; } |
echo " width=\"$width\" height=\"$height\" />\n$params"; |
| if (strlen($height) > 0) { echo " height=\"$height\""; } |
|
| echo ' />',"\n$params"; |
|
| echo '</object>',"\n"; |
echo '</object>',"\n"; |
| /* </XSTANDARD> */ |
/* </XSTANDARD> */ |
| } elseif (isset ($this->fdd[$k]['textarea'])) { |
} elseif (isset ($this->fdd[$k]['textarea'])) { |