:::

5-1 /interface_menu.php

<?php
//判斷是否對該模組有管理權限
$isAdmin = false;
if ($xoopsUser) {
    $module_id = $xoopsModule->getVar('mid');
    $isAdmin   = $xoopsUser->isAdmin($module_id);
}

//$interface_menu[_TAD_TO_MOD]="index.php";
$interface_menu[_MD_PHONEBOOK_SMNAME1]="index.php";
$interface_icon[_MD_PHONEBOOK_SMNAME1]="fa-chevron-right";

$interface_menu['生日一覽']="birthday.php";
$interface_icon['生日一覽']="fa-chevron-right";

$interface_menu['統計圖表']="chart.php";
$interface_icon['統計圖表']="fa-chevron-right";


if ($isAdmin) {
    $interface_menu[_TAD_TO_ADMIN] = "admin/main.php";
    $interface_icon[_TAD_TO_ADMIN] = "fa-sign-in";
}

 


:::

搜尋

QR Code 區塊

https%3A%2F%2Fwww.tad0616.net%2Fmodules%2Ftad_book3%2Fpage.php%3Ftbsn%3D39%26tbdsn%3D1240

書籍目錄

展開 | 闔起

線上使用者

68人線上 (20人在瀏覽線上書籍)

會員: 0

訪客: 68

更多…