Example #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
  */
 function yesnoRadioList($tag_name, $tag_attribs, $key, $text, $selected, $yes = '', $no = '')
 {
     global $VM_LANG;
     $yes = $yes == '' ? $VM_LANG->_('PHPSHOP_ADMIN_CFG_YES') : $yes;
     $no = $no == '' ? $VM_LANG->_('PHPSHOP_ADMIN_CFG_NO') : $no;
     $arr = array(vmCommonHTML::makeOption('0', $no), vmCommonHTML::makeOption('1', $yes));
     return vmCommonHTML::radioList($arr, $tag_name, $tag_attribs, $key, $text, $selected);
 }