Vergleich admin/inc/class_form.php - 1.8.6 - 1.8.15

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 130Zeile 130
	 */
function generate_numeric_field($name, $value=0, $options=array())
{

	 */
function generate_numeric_field($name, $value=0, $options=array())
{

		$input = "<input type=\"number\" name=\"".$name."\" value=\"".(int)$value."\"";










		if(is_numeric($value))
{
$value = (float)$value;
}
else
{
$value = '';
}

$input = "<input type=\"number\" name=\"{$name}\" value=\"{$value}\"";

		if(isset($options['min']))
{
$input .= " min=\"".$options['min']."\"";

		if(isset($options['min']))
{
$input .= " min=\"".$options['min']."\"";

Zeile 413Zeile 422
		foreach($option_list as $value => $option)
{
$select_add = '';

		foreach($option_list as $value => $option)
{
$select_add = '';

			if(!empty($selected) && ((string)$value == (string)$selected || (is_array($selected) && in_array((string)$value, $selected))))

			if((!is_array($selected) || !empty($selected)) && ((string)$value == (string)$selected || (is_array($selected) && in_array((string)$value, $selected))))

			{
$select_add = " selected=\"selected\"";
}

			{
$select_add = " selected=\"selected\"";
}