:::

6-4 /function.php

<?php
/**
 * Phone Book module
 *
 * You may not change or alter any portion of this comment or credits
 * of supporting developers from this source code or any supporting source code
 * which is considered copyrighted (c) material of the original comment or credit authors.
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 *
 * @copyright  The XOOPS Project http://sourceforge.net/projects/xoops/
 * @license    http://www.fsf.org/copyleft/gpl.html GNU public license
 * @package    Phone Book
 * @since      2.5
 * @author     tad
 * @version    $Id $
 **/


//引入TadTools的函式庫
if(!file_exists(XOOPS_ROOT_PATH."/modules/tadtools/tad_function.php")){
    redirect_header("http://www.tad0616.net/modules/tad_uploader/index.php?of_cat_sn=50",3, _TAD_NEED_TADTOOLS);
}
include_once XOOPS_ROOT_PATH."/modules/tadtools/tad_function.php";


/********************* 自訂函數 *********************/

//取得 phone_book_cate 的所有資料陣列
function get_phone_book_cate_arr()
{
    global $xoopsDB;

    $sql = "select * from `" . $xoopsDB->prefix("phone_book_cate") . "`
    where `cate_enable` = '1'";
    $result = $xoopsDB->query($sql)
    or web_error($sql);
    while ($data = $xoopsDB->fetchArray($result)) {
        $cate_sn       = $data['cate_sn'];
        $all[$cate_sn] = $data;
    }
    return $all;
}

 


:::

搜尋

QR Code 區塊

https%3A%2F%2Fmail.tad0616.cp22.secserverpros.com%2Fmodules%2Ftad_book3%2Fpage.php%3Ftbdsn%3D1251%26tbsn%3D39

書籍目錄

展開 | 闔起

線上使用者

339人線上 (137人在瀏覽線上書籍)

會員: 0

訪客: 339

更多…