/** * Writes a yes/no select list * @param string The value of the HTML name attribute * @param string Additional HTML attributes for the <select> tag * @param mixed The key that is selected * @returns string HTML for the select list values */ static function yesnoSelectList($tag_name, $tag_attribs, $selected, $yes = _CMN_YES, $no = _CMN_NO) { $arr = array(extHTML::makeOption('0', $no), extHTML::makeOption('1', $yes)); return extHTML::selectList($arr, $tag_name, $tag_attribs, 'value', 'text', $selected); }