Esempio n. 1
0
 /**
  * Writes a yes/no radio 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 radio list
  */
 static function yesnoRadioList($tag_name, $tag_attribs, $selected, $yes = _CMN_YES, $no = _CMN_NO)
 {
     $arr = array(extHTML::makeOption('0', $no), extHTML::makeOption('1', $yes));
     return extHTML::radioList($arr, $tag_name, $tag_attribs, $selected);
 }