$row['admin_group'] = (!isset($row['admin_group'])) ? "" : $row['admin_group'];//活動標題 # ---- 引入XOOPS 內建表單物件 ------------------------------- include_once(XOOPS_ROOT_PATH."/class/xoopsformloader.php"); # ---- 預設值 ----------------------------------------------- # ---- XoopsFormSelectGroup('標題', 'name', 含訪客, '預設值', 高度 ,多選) $form = new XoopsFormSelectGroup ("", "admin_group", false, $row['admin_group'], 4, true); $form->setExtra("class='form-control'");//設定屬性 $row['admin_group_form'] = $form->render(); # -----------------------------------------------------------