Vergleich admin/modules/user/users.php - 1.8.13 - 1.8.15

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 3959Zeile 3959
		switch($type)
{
case "multiselect":

		switch($type)
{
case "multiselect":

				if(!is_array($values[$field_name]))
{
$user_options = explode("\n", $values[$field_name]);
}
else
{
$user_options = $values[$field_name];
}

$selected_options = array();
foreach($user_options as $val)


				$selected_options = array();
if(!is_array($values[$field_name]))
{
$user_options = explode("\n", $values[$field_name]);
}
else
{
$user_options = $values[$field_name];
}


foreach($user_options as $val)

				{
$selected_options[$val] = htmlspecialchars_uni($val);
}

				{
$selected_options[$val] = htmlspecialchars_uni($val);
}

Zeile 3991Zeile 3992
					$profile_field['length'] = 3;
}
$code = $form->generate_select_box("profile_fields[{$field_name}][]", $options, $selected_options, array('id' => "profile_field_{$field_name}", 'multiple' => true, 'size' => $profile_field['length']));

					$profile_field['length'] = 3;
}
$code = $form->generate_select_box("profile_fields[{$field_name}][]", $options, $selected_options, array('id' => "profile_field_{$field_name}", 'multiple' => true, 'size' => $profile_field['length']));

				break;

				break;

			case "select":
$select_options = array();
if($search == true)

			case "select":
$select_options = array();
if($search == true)

Zeile 4012Zeile 4013
				if($search == true)
{
$code = $form->generate_select_box("profile_fields[{$field_name}][{$field_name}]", $options, htmlspecialchars_uni($values[$field_name]), array('id' => "profile_field_{$field_name}", 'size' => $profile_field['length']));

				if($search == true)
{
$code = $form->generate_select_box("profile_fields[{$field_name}][{$field_name}]", $options, htmlspecialchars_uni($values[$field_name]), array('id' => "profile_field_{$field_name}", 'size' => $profile_field['length']));

				}
else

				}
else

				{
$code = $form->generate_select_box("profile_fields[{$field_name}]", $options, htmlspecialchars_uni($values[$field_name]), array('id' => "profile_field_{$field_name}", 'size' => $profile_field['length']));
}

				{
$code = $form->generate_select_box("profile_fields[{$field_name}]", $options, htmlspecialchars_uni($values[$field_name]), array('id' => "profile_field_{$field_name}", 'size' => $profile_field['length']));
}

Zeile 4033Zeile 4034
				}
break;
case "checkbox":

				}
break;
case "checkbox":

 
				$select_options = array();

				if(!is_array($values[$field_name]))
{
$user_options = explode("\n", $values[$field_name]);

				if(!is_array($values[$field_name]))
{
$user_options = explode("\n", $values[$field_name]);

Zeile 4041Zeile 4043
				{
$user_options = $values[$field_name];
}

				{
$user_options = $values[$field_name];
}

 
				
$selected_options = array();

				foreach($user_options as $val)
{
$selected_options[$val] = $val;
}

				foreach($user_options as $val)
{
$selected_options[$val] = $val;
}

				$select_options = array();

				

				if($search == true)
{
$select_options[''] = $lang->na;

				if($search == true)
{
$select_options[''] = $lang->na;