discuz 插件后台select下拉选择积分类型

表单

showsetting('下拉选择', ['field', $options], '', 'select', '', '', '');

$options

$options = [];
foreach($_G['setting']['extcredits'] as $key=>$extcredits){
    $options[$key][0] = $key;
    $options[$key][1] = $extcredits['title'];
}

select改为mradio可变为radio类型表单

showsetting('单项选择(选项名称自定义)', ['field1', $options], '', 'mradio', '', '', '');