}
}
// メイン出力部
xoops_cp_header();
include './mymenu.php';
// 3つも表示されるのでクリアしておく
$xoopsGTicket->clear();
echo "\n<h4>" . _AM_ICALENDAR_IMPORT . "</h4>\n<p><font color='blue'>" . (isset($_GET['mes']) ? htmlspecialchars($_GET['mes'], ENT_QUOTES) : "") . "</font></p>\n<form action='?tz={$tz}&amp;num={$num}' method='post'>\n  " . _AM_LABEL_IMPORTFROMWEB . "<br />\n  <input type='text' name='import_uri' size='80'>\n  <input type='submit' name='http_import' value='" . _PICAL_BTN_IMPORT . "'>\n  " . $xoopsGTicket->getTicketHtml(__LINE__) . "\n</form>\n<form action='?tz={$tz}&amp;num={$num}' method='post' enctype='multipart/form-data'>\n  " . _AM_LABEL_UPLOADFROMFILE . "<br />\n  <input type='hidden' name='MAX_FILE_SIZE' value='65536'>\n  <input type='file' name='user_ics' size='72'>\n  <input type='submit' name='local_import' value='" . _PICAL_BTN_UPLOAD . "'>\n  " . $xoopsGTicket->getTicketHtml(__LINE__) . "\n</form>\n<form action='' method='get' style='margin-bottom:0px;text-align:left'>\n  <select name='tz' onChange='submit();'>{$tzoptions}</select>\n  <input type='hidden' name='num' value='{$num}' />\n</form>\n<table width='100%' cellpadding='0' cellspacing='0' border='0'>\n  <tr>\n    <td align='left'>\n      {$nav_num_info}\n    </td>\n    <td>\n      <form action='' method='get' style='margin-bottom:0px;text-align:right'>\n        {$nav_html} &nbsp; \n        <input type='hidden' name='num' value='{$num}' />\n        <input type='hidden' name='tz' value='{$tz}' />\n      </form>\n    </td>\n  </tr>\n</table>\n<form name='MainForm' action='?tz={$tz}&amp;num={$num}' method='post' style='margin-top:0px;'>\n" . $xoopsGTicket->getTicketHtml(__LINE__) . "\n<table width='100%' class='outer' cellpadding='4' cellspacing='1'>\n  <tr valign='middle'>\n    <th>" . _AM_IO_TH0 . "</th>\n    <th>" . _AM_IO_TH1 . "<br />({$tzdisp})</th>\n    <th>" . _AM_IO_TH2 . "<br />({$tzdisp})</th>\n    <th>" . _AM_IO_TH3 . "</th>\n    <th>" . _AM_IO_TH4 . "</th>\n    <th>" . _AM_IO_TH5 . "</th>\n    <th></th>\n    <th><input type='checkbox' name='dummy' onclick=\"with(document.MainForm){for(i=0;i<length;i++){if(elements[i].type=='checkbox'){elements[i].checked=this.checked;}}}\" /></th>\n  </tr>\n";
// リスト出力部
$myts = MyTextSanitizer::getInstance();
$oddeven = 'odd';
$count = 0;
while ($event = mysql_fetch_object($rs)) {
    $oddeven = $oddeven == 'odd' ? 'even' : 'odd';
    if ($count++ < $new_imported) {
        $newer_style = "style='background-color:#FFFFCC;'";
    } else {
        $newer_style = '';
    }
    if ($event->allday) {
        $start_desc = date(_AM_DTFMT_LIST_ALLDAY, $event->start) . '<br />(' . _PICAL_MB_ALLDAY_EVENT . ')';
        $end_desc = date(_AM_DTFMT_LIST_ALLDAY, $event->end - 300) . '<br />(' . _PICAL_MB_ALLDAY_EVENT . ')';
    } else {
        $start_desc = date(_AM_DTFMT_LIST_NORMAL, $event->start + $tzoffset);
        $end_desc = date(_AM_DTFMT_LIST_NORMAL, $event->end + $tzoffset);
    }
    $summary4disp = $myts->makeTBoxData4Show($event->summary);
    echo "\n  <tr>\n    <td class='{$oddeven}' {$newer_style}>" . $xoopsUser->getUnameFromId($event->uid) . "</td>\n    <td class='{$oddeven}' nowrap='nowrap' {$newer_style}>{$start_desc}</td>\n    <td class='{$oddeven}' nowrap='nowrap' {$newer_style}>{$end_desc}</td>\n    <td class='{$oddeven}' {$newer_style}><a href='{$mod_url}/index.php?action=View&amp;event_id={$event->id}'>{$summary4disp}</a></td>\n    <td class='{$oddeven}' {$newer_style}>" . $cal->rrule_to_human_language($event->rrule) . "</td>\n    <td class='{$oddeven}' {$newer_style}>" . ($event->admission ? _YES : _NO) . "</td>\n    <td class='{$oddeven}' align='right' {$newer_style}><a href='{$mod_url}/index.php?action=Edit&amp;event_id={$event->id}' target='_blank'><img src='{$cal->images_url}/addevent.gif' border='0' width='14' height='12' /></a></td>\n    <td class='{$oddeven}' align='right' {$newer_style}><input type='checkbox' name='ids[]' value='{$event->id}' /></td>\n  </tr>\n";
}
echo "\n  <tr>\n    <td colspan='8' align='right' class='head'>" . _AM_LABEL_IO_CHECKEDITEMS . " &nbsp; " . _AM_LABEL_IO_DELETE . "<input type='submit' name='delete' value='" . _DELETE . "' onclick='return confirm(\"" . _AM_CONFIRM_DELETE . "\")' /></td>\n  </tr>\n  <tr>\n    <td colspan='8' align='right' valign='bottom' height='50'>" . PICAL_COPYRIGHT . "</td>\n  </tr>\n</table>\n</form>\n";
xoops_cp_footer();