:::

8-1 /header.php

01<?php
02/**
03 * Phone Book module
04 *
05 * You may not change or alter any portion of this comment or credits
06 * of supporting developers from this source code or any supporting source code
07 * which is considered copyrighted (c) material of the original comment or credit authors.
08 * This program is distributed in the hope that it will be useful,
09 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
11 *
12 * @copyright  The XOOPS Project http://sourceforge.net/projects/xoops/
13 * @license    http://www.fsf.org/copyleft/gpl.html GNU public license
14 * @package    Phone Book
15 * @since      2.5
16 * @author     tad
17 * @version    $Id $
18 **/
19 
20 
21include_once "../../mainfile.php";
22include_once "function.php";
23 
24//判斷是否對該模組有管理權限
25$isAdmin = false;
26if ($xoopsUser) {
27    $module_id = $xoopsModule->getVar('mid');
28    $isAdmin   = $xoopsUser->isAdmin($module_id);
29}
30 
31//$interface_menu[_TAD_TO_MOD]="index.php";
32$interface_menu[_MD_PHONEBOOK_SMNAME1]="index.php";
33$interface_icon[_MD_PHONEBOOK_SMNAME1]="fa-chevron-right";
34 
35$interface_menu['生日一覽']="birthday.php";
36$interface_icon['生日一覽']="fa-chevron-right";
37 
38$interface_menu['統計圖表']="chart.php";
39$interface_icon['統計圖表']="fa-chevron-right";
40 
41include_once $GLOBALS['xoops']->path('/modules/system/include/functions.php');
42$cate_sn = system_CleanVars($_REQUEST, 'cate_sn', '', 'int');
43$sn = system_CleanVars($_REQUEST, 'sn', '', 'int');
44$county    = system_CleanVars($_REQUEST, 'county', '', 'string');
45$city    = system_CleanVars($_REQUEST, 'city', '', 'string');
46$keyword    = system_CleanVars($_REQUEST, 'keyword', '', 'string');
47 
48$interface_menu['HTML下載']="html.php?cate_sn=$cate_sn&county=$county&city=$city&keyword=$keyword";
49$interface_icon['HTML下載']="fa-chevron-right";
50 
51$interface_menu['CSV下載']="csv.php";
52$interface_icon['CSV下載']="fa-chevron-right";
53 
54$interface_menu['JSON介接']="json.php";
55$interface_icon['JSON介接']="fa-chevron-right";
56 
57$interface_menu['匯入餐廳']="get_json.php";
58$interface_icon['匯入餐廳']="fa-chevron-right";
59 
60$interface_menu['下載Excel']="excel_one.php";
61$interface_icon['下載Excel']="fa-chevron-right";
62 
63$interface_menu['下載PDF']="pdf.php?sn={$sn}";
64$interface_icon['下載PDF']="fa-chevron-right";
65 
66if ($isAdmin) {
67    $interface_menu[_TAD_TO_ADMIN] = "admin/main.php";
68    $interface_icon[_TAD_TO_ADMIN] = "fa-sign-in";
69}

 


:::

搜尋

QR Code 區塊

https%3A%2F%2Ftad0616.net%2Fmodules%2Ftad_book3%2Fpage.php%3Ftbdsn%3D1266%26tbsn%3D39

書籍目錄

展開 | 闔起

線上使用者

55人線上 (13人在瀏覽線上書籍)

會員: 0

訪客: 55

更多…