Vergleich admin/inc/class_form.php - 1.8.1 - 1.8.5

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 585Zeile 585
		$select .= ">\n";

$groups_cache = $cache->read('usergroups');

		$select .= ">\n";

$groups_cache = $cache->read('usergroups');

 
		
if(!is_array($selected))
{
$selected = array($selected);
}


		foreach($groups_cache as $group)
{
$selected_add = "";

		foreach($groups_cache as $group)
{
$selected_add = "";

			if(is_array($selected))



			

if(in_array($group['gid'], $selected))

			{

			{

				if(in_array($group['gid'], $selected))
{
$selected_add = " selected=\"selected\"";
}

				$selected_add = " selected=\"selected\"";




			}


			}


			$select .= "<option value=\"{$group['gid']}\"{$selected_add}>".htmlspecialchars_uni(strip_tags($group['title']))."</option>";

			$select .= "<option value=\"{$group['gid']}\"{$selected_add}>".htmlspecialchars_uni($group['title'])."</option>";

		}

$select .= "</select>";

		}

$select .= "</select>";

Zeile 833Zeile 838

$built = $this->generate_select_box($name.'_day', $days, (int)$day, array('id' => $name.'_day'))." &nbsp; ";
$built .= $this->generate_select_box($name.'_month', $months, (int)$month, array('id' => $name.'_month'))." &nbsp; ";


$built = $this->generate_select_box($name.'_day', $days, (int)$day, array('id' => $name.'_day'))." &nbsp; ";
$built .= $this->generate_select_box($name.'_month', $months, (int)$month, array('id' => $name.'_month'))." &nbsp; ";

		$built .= $this->generate_text_box($name.'_year', (int)$year, array('id' => $name.'_year', 'style' => 'width: 100px;'));

		$built .= $this->generate_numeric_field($name.'_year', $year, array('id' => $name.'_year', 'style' => 'width: 100px;', 'min' => 0));

		return $built;
}


		return $built;
}


Zeile 894Zeile 899
	/**
* Initialise the new form container.
*

	/**
* Initialise the new form container.
*

	 * @param string The title of the forum container

	 * @param string The title of the form container

	 * @param string An additional class to apply if we have one.
*/
function __construct($title='', $extra_class='')

	 * @param string An additional class to apply if we have one.
*/
function __construct($title='', $extra_class='')