Subversion-Projekte lars-tiefland.ci

Revision

Revision 2049 | Revision 2242 | Zur aktuellen Revision | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 2049 Revision 2107
Zeile 595... Zeile 595...
595
	/**
595
	/**
596
	 * Form Label Tag
596
	 * Form Label Tag
597
	 *
597
	 *
598
	 * @param	string	The text to appear onscreen
598
	 * @param	string	The text to appear onscreen
599
	 * @param	string	The id the label applies to
599
	 * @param	string	The id the label applies to
600
	 * @param	array	Additional attributes
600
	 * @param	mixed	Additional attributes
601
	 * @return	string
601
	 * @return	string
602
	 */
602
	 */
603
	function form_label($label_text = '', $id = '', $attributes = array())
603
	function form_label($label_text = '', $id = '', $attributes = array())
604
	{
604
	{
Zeile 608... Zeile 608...
608
		if ($id !== '')
608
		if ($id !== '')
609
		{
609
		{
610
			$label .= ' for="'.$id.'"';
610
			$label .= ' for="'.$id.'"';
611
		}
611
		}
Zeile 612... Zeile 612...
612
 
612
 
613
		if (is_array($attributes) && count($attributes) > 0)
-
 
614
		{
-
 
615
			foreach ($attributes as $key => $val)
-
 
616
			{
-
 
617
				$label .= ' '.$key.'="'.$val.'"';
-
 
618
			}
-
 
Zeile 619... Zeile 613...
619
		}
613
		$label .= _attributes_to_string($attributes);
620
 
614
 
621
		return $label.'>'.$label_text.'</label>';
615
		return $label.'>'.$label_text.'</label>';