'). * @param boolean $relative Whether to use relative path to image or not * (i.e. $relative= true : /pandora/). * @param boolean $no_in_meta Do not show on metaconsole folder at first. Go * directly to the node. * @param boolean $isExternalLink Do not shearch for images in Pandora. * * @return string HTML code if return parameter is true. */ function html_print_image( $src, $return=false, $options=false, $return_src=false, $relative=false, $no_in_meta=false, $isExternalLink=false ) { $attr = ''; if (is_array($options) === true) { foreach ($options as $k => $v) { $attr = $k.'="'.$v.'" '; } } $output = ''; if ($return === false) { echo $output; } return $output; } } if (function_exists('html_print_submit_button') === false) { /** * Render an submit input button element. * * The element will have an id like: "submit-$name" * * @param string $label Input label. * @param string $name Input name. * @param boolean $disabled Whether to disable by default or not. Enabled by default. * @param array $attributes Additional HTML attributes. * @param boolean $return Whether to return an output string or echo now (optional, echo by default). * * @return string HTML code if return parameter is true. */ function html_print_submit_button( $label='OK', $name='', $disabled=false, $attributes='', $return=false ) { if (!$name) { $name = 'unnamed'; } if (is_array($attributes)) { $attr_array = $attributes; $attributes = ''; foreach ($attr_array as $attribute => $value) { $attributes .= $attribute.'="'.$value.'" '; } } $output = '