示例#1
0
 /**
  * A boolean radiolist that uses bootstrap
  *
  * @param unknown_type $name
  * @param unknown_type $attribs
  * @param unknown_type $selected
  * @param unknown_type $yes
  * @param unknown_type $no
  * @param unknown_type $id
  * @return string
  */
 public static function btbooleanlist($name, $attribs = null, $selected = null, $yes = 'JYES', $no = 'JNO', $id = false)
 {
     JHTML::_('script', 'bootstrapped-advanced-ui.js', 'media/citruscart/js/');
     JHTML::_('stylesheet', 'bootstrapped-advanced-ui.css', 'media/citruscart/css/');
     $arr = array(JHtml::_('select.option', '0', JText::_($no)), JHtml::_('select.option', '1', JText::_($yes)));
     $html = '<div class="control-group"><div class="controls"><fieldset id="' . $name . '" class="radio btn-group">';
     $html .= CitruscartSelect::btradiolist($arr, $name, $attribs, 'value', 'text', (int) $selected, $id);
     $html .= '</fieldset></div></div>';
     return $html;
 }