* add label tag for the text.

This commit is contained in:
wangchunsheng
2010-01-20 03:31:09 +00:00
parent 8969fe5f75
commit b24746ee98

View File

@@ -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