* finish task#1197.

This commit is contained in:
chencongzhi520@gmail.com
2013-04-28 01:47:02 +00:00
parent 54500438a7
commit 8132507a48
3 changed files with 5 additions and 3 deletions

View File

@@ -117,11 +117,13 @@ class html
* @param array $options the array to create select tag from.
* @param string $selectedItems the item(s) to be selected, can like item1,item2.
* @param string $attrib other params such as multiple, size and style.
* @param string $append adjust if add options[$selectedItems].
* @return string
*/
static public function select($name = '', $options = array(), $selectedItems = "", $attrib = "")
static public function select($name = '', $options = array(), $selectedItems = "", $attrib = "", $append = false)
{
$options = (array)($options);
if($append and !isset($options[$selectedItems])) $options[$selectedItems] = $selectedItems;
if(!is_array($options) or empty($options)) return false;
/* The begin. */