define("_MI_UGMCART_ADMENU1", "權限設定"); define("_MI_UGMCART_ADMENU1_DESC", "權限設定"); ``` ``` $i++; $adminmenu[$i]['title'] = _MI_UGMCART_ADMENU1; $adminmenu[$i]['link'] = 'admin/groupperm.php'; $adminmenu[$i]['desc'] = _MI_UGMCART_ADMENU1_DESC; $adminmenu[$i]['icon'] = 'images/admin/button.png'; ``` 二、language/tchinese\_utf8/main.php ``` define("_MD_UGMCART_ADMIN", "購物車管理員"); ``` 三、admin/groupperm.php 本程式使用「[ugm\_tools2](https://github.com/webugm/ugm_tools2)」, 請自行下載,安裝 ``` getVar('dirname'); # ---- 程式名稱(含副檔名) ---- $file_name = basename(__FILE__); //取得本模組編號 $gperm_modid = $xoopsModule->getVar('mid'); /*-----------執行動作判斷區----------*/ $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."
$i++; $adminmenu[$i]['title'] = _MI_UGMCART_ADMENU1; $adminmenu[$i]['link'] = 'admin/groupperm.php'; $adminmenu[$i]['desc'] = _MI_UGMCART_ADMENU1_DESC; $adminmenu[$i]['icon'] = 'images/admin/button.png'; ``` 二、language/tchinese\_utf8/main.php ``` define("_MD_UGMCART_ADMIN", "購物車管理員"); ``` 三、admin/groupperm.php 本程式使用「[ugm\_tools2](https://github.com/webugm/ugm_tools2)」, 請自行下載,安裝 ``` getVar('dirname'); # ---- 程式名稱(含副檔名) ---- $file_name = basename(__FILE__); //取得本模組編號 $gperm_modid = $xoopsModule->getVar('mid'); /*-----------執行動作判斷區----------*/ $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("_MD_UGMCART_ADMIN", "購物車管理員"); ``` 三、admin/groupperm.php 本程式使用「[ugm\_tools2](https://github.com/webugm/ugm_tools2)」, 請自行下載,安裝 ``` getVar('dirname'); # ---- 程式名稱(含副檔名) ---- $file_name = basename(__FILE__); //取得本模組編號 $gperm_modid = $xoopsModule->getVar('mid'); /*-----------執行動作判斷區----------*/ $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'); /*-----------執行動作判斷區----------*/ $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_cartAdmin" => _MD_UGMCART_ADMIN ); ```