<?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 $ **/ /*-----------引入檔案區--------------*/ include "header.php"; $xoopsOption['template_main'] = set_bootstrap('phone_book_birthday_b3.html'); include_once XOOPS_ROOT_PATH . "/header.php"; /*-----------功能函數區--------------*/ $y=(isset($_GET['y']) and !empty($_GET['y']))?intval($_GET['y']):date('Y'); $m=(isset($_GET['m']) and !empty($_GET['m']))?intval($_GET['m']):date('n'); if (!file_exists(XOOPS_ROOT_PATH . "/modules/tadtools/fullcalendar.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/fullcalendar.php"; $fullcalendar = new fullcalendar(); $fullcalendar->add_js_parameter('year', $y); $fullcalendar->add_js_parameter('month', $m); $fullcalendar_code = $fullcalendar->render('#calendar', 'get_event.php'); $xoopsTpl->assign('fullcalendar_code', $fullcalendar_code); /*-----------執行動作判斷區----------*/ /*-----------秀出結果區--------------*/ $xoopsTpl->assign("toolbar", toolbar_bootstrap($interface_menu)); $xoopsTpl->assign("isAdmin", $isAdmin); include_once XOOPS_ROOT_PATH . '/footer.php';