* add label tag for the text.
This commit is contained in:
@@ -126,7 +126,7 @@ class html
|
||||
$string .= "<input type='checkbox' name='{$name}[]' value='$key' ";
|
||||
$string .= strpos($checked, ",$key,") !== false ? " checked ='checked'" : "";
|
||||
$string .= $attrib;
|
||||
$string .= " /> $value\n";
|
||||
$string .= " /><label>$value</label>\n";
|
||||
}
|
||||
return $string;
|
||||
}
|
||||
@@ -231,6 +231,18 @@ class html
|
||||
{
|
||||
return " <input type='button' value='$label' class='button-c' $misc /> ";
|
||||
}
|
||||
|
||||
/**
|
||||
* create a button with a link.
|
||||
*
|
||||
* @static
|
||||
* @access public
|
||||
* @return string the reset button tag.
|
||||
*/
|
||||
public static function linkButton($label = '', $link = '', $misc = '')
|
||||
{
|
||||
return " <input type='button' value='$label' class='button-c' $misc onclick='location.href=\"$link\"' /> ";
|
||||
}
|
||||
}
|
||||
|
||||
class js
|
||||
|
||||
Reference in New Issue
Block a user