<?php
require_once __DIR__ . '/header.php';
include_once $GLOBALS['xoops']->path('class/xoopsform/grouppermform.php');
//權限項目陣列(編號超級重要!設定後,以後切勿隨便亂改。)
$item_list = array(
'1' => _MA_TAD_SIGNUP_CREATE_ACTION,
// '2' => "權限二",
);
$mid = $xoopsModule->mid();
$perm_name = $xoopsModule->dirname();
$formi = new XoopsGroupPermForm(_MA_TAD_SIGNUP_PERMISSION_SETTING, $mid, $perm_name, _MA_TAD_SIGNUP_CHECK_PERMISSIONS . '<br>');
foreach ($item_list as $item_id => $item_name) {
$formi->addItem($item_id, $item_name);
}
echo $formi->render();
require_once __DIR__ . '/footer.php';
link to https://github.com/tadlearn/tad_signup/commit/1f4a93766289d31514e287510a36d00554013acb \