<script type="text/javascript" src="' . $jscalurl . '/calendar.js"></script> <script type="text/javascript" src="' . $jscalurl . '/lang/' . $cal->jscalendar_lang_file . '"></script> <script type="text/javascript" src="' . $jscalurl . '/calendar-setup.js"></script> ' . $xoopsTpl->get_template_vars("xoops_module_header")); $cal->jscalendar = 'jscalendar'; } else { // older jscalendar in XOOPS 2.0.x core include XOOPS_ROOT_PATH . '/include/calendarjs.php'; $cal->jscalendar = 'xoops'; } } echo $cal->get_schedule_edit_html(); } else { if ($action == 'View') { // echo $cal->get_schedule_view_html( ) ; $xoopsTpl->assign('detail_body', $cal->get_schedule_view_html()); $xoopsTpl->assign('xoops_pagetitle', $cal->last_summary); $xoopsTpl->assign('xoops_default_comment_title', 'Re: ' . $cal->last_summary); $xoopsTpl->assign('print_link', "{$mod_url}/print.php?event_id=" . intval($_GET['event_id']) . "&action=View"); $xoopsTpl->assign('com_itemid', intval($_GET['event_id'])); //added naao $xoopsTpl->assign('skinpath', "{$cal->images_url}"); $xoopsTpl->assign('lang_print', _MB_PICAL_ALT_PRINTTHISEVENT); // meta description // naao $pical_meta_description = $cal->event->start_datetime_str . " - "; $pical_meta_description .= $cal->event->end_datetime_str . " : "; $pical_meta_description .= htmlspecialchars(strip_tags($cal->event->description), ENT_QUOTES); $pical_meta_description = preg_replace('/(\\r\\n|\\n\\r|\\n|\\r|\\t)/i', '', mb_substr($pical_meta_description, 0, 250, _CHARSET)); $xoopsTpl->assign('xoops_meta_description', $pical_meta_description); $HTTP_GET_VARS['event_id'] = $_GET['event_id'] = $cal->original_id; include XOOPS_ROOT_PATH . '/include/comment_view.php';
$tpl->assign('charset', _CHARSET); $tpl->assign('sitename', $xoopsConfig['sitename']); $tpl->assign('site_url', XOOPS_URL); $tpl->assign('lang_comesfrom', sprintf(_MB_PICAL_COMESFROM, $xoopsConfig['sitename'])); // ページ表示関連の処理分け //+2012/1/09 11:04:05 ,uid=unkown ,ip=207.46.204.242 ,host=msnbot-207-46-204-242.search.msn.com ,mid=94(piCal) // Notice [PHP]: Undefined index: smode in file modules/piCal/print.php line 68 $smode = isset($_GET['smode']) ? $myts->stripSlashesGPC($_GET['smode']) : ''; $event_id = isset($_GET['event_id']) ? intval($_GET['event_id']) : 0; if( ! empty( $event_id ) ) { $tpl->assign('contents', $cal->get_schedule_view_html( true ) ) ; } else switch( $smode ) { case 'Yearly' : $tpl->assign('for_event_list', false ) ; $tpl->assign('contents', $cal->get_yearly( '' , '' , true ) ) ; break ; case 'Weekly' : $tpl->assign('for_event_list', false ) ; $tpl->assign('contents', $cal->get_weekly( '' , '' , true ) ) ; break ; case 'Daily' : $tpl->assign('for_event_list', false ) ; $tpl->assign('contents', $cal->get_daily( '' , '' , true ) ) ; break ; case 'List' : $tpl->assign('for_event_list', true ) ;