$i++; $adminmenu[$i]['title'] = _MI_UGMCOLLEGE_ADMENU1; $adminmenu[$i]['link'] = 'admin/groupperm.php'; $adminmenu[$i]['desc'] = _MI_UGMCOLLEGE_ADMENU1_DESC; $adminmenu[$i]['icon'] = 'images/admin/button.png'; ``` 2. 修改語系 language/tchinese\_utf8/modinfo.php ``` define("_MI_UGMCOLLEGE_ADMENU1", "權限設定"); define("_MI_UGMCOLLEGE_ADMENU1_DESC", "後台權限設定"); ``` language/english/modinfo.php ``` define("_MI_UGMCOLLEGE_ADMENU1" , "Permissions"); define("_MI_UGMCOLLEGE_ADMENU1_DESC" , "Permissions Setup"); ``` 三、admin/groupperm.php 1. 本程式使用「[ugm\_tools2](https://github.com/webugm/ugm_tools2)」, 請自行下載,安裝 ``` getVar('dirname'); # ---- 程式名稱(含副檔名) ---- $file_name = basename(__FILE__); //取得本模組編號 $gperm_modid = $xoopsModule->getVar('mid'); #引入權限檔 require_once XOOPS_ROOT_PATH . "/modules/{$DIRNAME}/groupperm.php"; /*-----------執行動作判斷區----------*/ $op=empty($_REQUEST['op'])?'':$_REQUEST['op']; if($op=="op_insert"){ op_insert(); redirect_header($_SERVER['PHP_SELF'],3,_MA_PERM_SUCCESS); } $main=" "._MA_GROUPPERM_TITLE."
define("_MI_UGMCOLLEGE_ADMENU1", "權限設定"); define("_MI_UGMCOLLEGE_ADMENU1_DESC", "後台權限設定"); ``` language/english/modinfo.php ``` define("_MI_UGMCOLLEGE_ADMENU1" , "Permissions"); define("_MI_UGMCOLLEGE_ADMENU1_DESC" , "Permissions Setup"); ``` 三、admin/groupperm.php 1. 本程式使用「[ugm\_tools2](https://github.com/webugm/ugm_tools2)」, 請自行下載,安裝 ``` getVar('dirname'); # ---- 程式名稱(含副檔名) ---- $file_name = basename(__FILE__); //取得本模組編號 $gperm_modid = $xoopsModule->getVar('mid'); #引入權限檔 require_once XOOPS_ROOT_PATH . "/modules/{$DIRNAME}/groupperm.php"; /*-----------執行動作判斷區----------*/ $op=empty($_REQUEST['op'])?'':$_REQUEST['op']; if($op=="op_insert"){ op_insert(); redirect_header($_SERVER['PHP_SELF'],3,_MA_PERM_SUCCESS); } $main=" "._MA_GROUPPERM_TITLE."
define("_MI_UGMCOLLEGE_ADMENU1" , "Permissions"); define("_MI_UGMCOLLEGE_ADMENU1_DESC" , "Permissions Setup"); ``` 三、admin/groupperm.php 1. 本程式使用「[ugm\_tools2](https://github.com/webugm/ugm_tools2)」, 請自行下載,安裝 ``` getVar('dirname'); # ---- 程式名稱(含副檔名) ---- $file_name = basename(__FILE__); //取得本模組編號 $gperm_modid = $xoopsModule->getVar('mid'); #引入權限檔 require_once XOOPS_ROOT_PATH . "/modules/{$DIRNAME}/groupperm.php"; /*-----------執行動作判斷區----------*/ $op=empty($_REQUEST['op'])?'':$_REQUEST['op']; if($op=="op_insert"){ op_insert(); redirect_header($_SERVER['PHP_SELF'],3,_MA_PERM_SUCCESS); } $main=" "._MA_GROUPPERM_TITLE."
getVar('dirname'); # ---- 程式名稱(含副檔名) ---- $file_name = basename(__FILE__); //取得本模組編號 $gperm_modid = $xoopsModule->getVar('mid'); #引入權限檔 require_once XOOPS_ROOT_PATH . "/modules/{$DIRNAME}/groupperm.php"; /*-----------執行動作判斷區----------*/ $op=empty($_REQUEST['op'])?'':$_REQUEST['op']; if($op=="op_insert"){ op_insert(); redirect_header($_SERVER['PHP_SELF'],3,_MA_PERM_SUCCESS); } $main=" "._MA_GROUPPERM_TITLE."
array("title"=>_ADD,"anonymous"=>false),//新增 '2' => array("title"=>_EDIT,"anonymous"=>false),//編輯 '3' => array("title"=>_DELETE,"anonymous"=>false),//刪除 '4' => array("title"=>_MA_GROUPPERM_VIEW,"anonymous"=>false),//瀏覽 true '5' => array("title"=>_MA_GROUPPERM_PRINT,"anonymous"=>false)//列印 ); //權限名稱陣列(y軸) $gperm_name_arr = array( "ugm_collegeAdmin" => _MD_UGMCOLLEGE_ADMIN ); ``` 3. 語系 language/english/main.php ``` #permissions.php define("_MD_UGMCOLLEGE_ADMIN", "College 佈景管理員"); ``` language/english/main.php ``` #permissions.php define("_MD_UGMCOLLEGE_ADMIN", "College Admin"); ``` 4.
#permissions.php define("_MD_UGMCOLLEGE_ADMIN", "College 佈景管理員"); ``` language/english/main.php ``` #permissions.php define("_MD_UGMCOLLEGE_ADMIN", "College Admin"); ``` 4.
#permissions.php define("_MD_UGMCOLLEGE_ADMIN", "College Admin"); ``` 4.