$i++; $adminmenu[$i]['title'] =_MI_TNCUCART_ADMENU1; $adminmenu[$i]['link'] = 'admin/groupperm.php'; $adminmenu[$i]['desc'] = _MI_TNCUCART_ADMENU1_DESC; $adminmenu[$i]['icon'] = 'images/admin/button.png'; ``` 2. 修改語系 language/tchinese\_utf8/modinfo.php ``` define("_MI_TNCUCART_ADMENU1", "權限管理"); define("_MI_TNCUCART_ADMENU1_DESC", "後台權限管理"); ``` 3. admin/groupperm.php ``` 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_TNCUCART_ADMENU1", "權限管理"); define("_MI_TNCUCART_ADMENU1_DESC", "後台權限管理"); ``` 3. admin/groupperm.php ``` 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( "tncu_cartAdmin" => _MD_TNCUCART_ADMIN ); ``` 5. 語系 language/tchinese\_utf8/main.php language/english/main.php ``` #permissions.php define("_MD_TNCUCART_ADMIN", "社大購物車管理員"); ``` 6.
#permissions.php define("_MD_TNCUCART_ADMIN", "社大購物車管理員"); ``` 6.