// patch for commentAny $commentany = $xoopsTpl->get_template_vars("commentany"); if (!empty($commentany['com_itemid'])) { $commentany['com_itemid'] = $cal->original_id; $xoopsTpl->assign("commentany", $commentany); } } else { if (isset($_POST['output_ics_confirm']) && !empty($_POST['ids']) && is_array($_POST['ids'])) { echo $cal->output_ics_confirm("{$mod_url}/"); } else { switch ($smode) { case 'Yearly': echo $cal->get_yearly(); break; case 'Weekly': echo $cal->get_weekly(); break; case 'Daily': echo $cal->get_daily(); break; case 'List': $cal->assign_event_list($xoopsTpl); break; case 'Monthly': default: echo $cal->get_monthly(); break; } } } }
// ページ表示関連の処理分け //+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 ) ; $cal->assign_event_list( $tpl ) ; break ; case 'Monthly' : default : $tpl->assign('for_event_list', false ) ; $tpl->assign('contents', $cal->get_monthly( '' , '' , true ) ) ; break ; }