:::

9-4 interface_menu.php

<?php
//判斷是否對該模組有管理權限
if (!isset($_SESSION['snewsAdmin'])) {
    $_SESSION['snewsAdmin'] = ($xoopsUser) ? $xoopsUser->isAdmin() : false;
}

//回模組首頁
// $interface_menu[_TAD_TO_MOD] = "index.php";
// $interface_icon[_TAD_TO_MOD] = "";

$interface_menu['精選文章'] = "focus.php";
$interface_icon['精選文章'] = "";


//模組後台
if (power_chk("", 1)) {
    $interface_menu['發布文章'] = "index.php?op=snews_form";
    $interface_icon['發布文章'] = "";
    
    $interface_menu['重製JSON'] = "index.php?op=mk_json";
    $interface_icon['重製JSON'] = "";
    
    $interface_menu['匯入Excel'] = "import.php";
    $interface_icon['匯入Excel'] = "";

}

$interface_menu['匯出Excel'] = "excel.php";
$interface_icon['匯出Excel'] = "";

$interface_menu['總表PDF'] = "pdf_all.php";
$interface_icon['總表PDF'] = "";

$interface_menu['匯出 docx'] = "word.php?sn={$_GET['sn']}";
$interface_icon['匯出 docx'] = "";

$interface_menu['匯出 odt'] = "word.php?type=odt&sn={$_GET['sn']}";
$interface_icon['匯出 odt'] = "";


$interface_menu['zip備份'] = "zip.php";
$interface_icon['zip備份'] = "";


$interface_menu['還原'] = "index.php?op=zip_import";
$interface_icon['還原'] = "";

if ($_SESSION['snewsAdmin']) {
    $interface_menu[_TAD_TO_ADMIN] = "admin/main.php";
    $interface_icon[_TAD_TO_ADMIN] = "";
}

 


:::

搜尋

QR Code 區塊

https%3A%2F%2Ftad0616.net%2Fmodules%2Ftad_book3%2Fpage.php%3Ftbsn%3D44%26tbdsn%3D1502

書籍目錄

展開 | 闔起

線上使用者

37人線上 (14人在瀏覽線上書籍)

會員: 0

訪客: 37

更多…