#*
 * Aipo is a groupware program developed by Aimluck,Inc.
 * Copyright (C) 2004-2010 Aimluck,Inc.
 * http://aipostyle.com/
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * 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.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *#

## ---------------------------------------------------------------------------
#set($schedulescreen = "ScheduleListScreen")
## ---------------------------------------------------------------------------
<div class="clearfix" id="tabContainerDiv_$!portlet.ID" style="width: $widthALL">
  <ul class="tabContainer">
#if($tab-oneday == "0")
    #set($tab = ["個人・1日", "oneday","$!jslink.getPortletById($!portlet.ID).addQueryData('template','ScheduleListScreen').addQueryData('tab','oneday')"])
    <li#if ($tab.get(1) == $!result.Viewtype) class="selectedMenu"#end>
      <div class="menuTitle">#if (!($tab.get(1) == $!result.Viewtype))<a href="javascript:void(0);" onclick="aipo.viewPage('$!utils.escapeXML($tab.get(2))', '$!portlet.ID');">$tab.get(0)</a>#else$tab.get(0)#end</div>
      <div class="menuIcon"></div>
    </li>
#end
#if($tab-weekly == "0")
    #set($tab =  ["個人・週間", "weekly", "$!jslink.getPortletById($!portlet.ID).addQueryData('template','ScheduleListScreen').addQueryData('tab','weekly')"])
    <li#if ($tab.get(1) == $!result.Viewtype) class="selectedMenu"#end>
      <div class="menuTitle">#if (!($tab.get(1) == $!result.Viewtype))<a href="javascript:void(0);" onclick="aipo.viewPage('$!utils.escapeXML($tab.get(2))', '$!portlet.ID');">$tab.get(0)</a>#else$tab.get(0)#end</div>
      <div class="menuIcon"></div>
    </li>
#end
#if($tab-monthly == "0")
    #set($tab = ["個人・月間", "monthly", "$!jslink.getPortletById($!portlet.ID).addQueryData('template','ScheduleListScreen').addQueryData('tab','monthly')"])
    <li#if ($tab.get(1) == $!result.Viewtype) class="selectedMenu"#end>
      <div class="menuTitle">#if (!($tab.get(1) == $!result.Viewtype))<a href="javascript:void(0);" onclick="aipo.viewPage('$!utils.escapeXML($tab.get(2))', '$!portlet.ID');">$tab.get(0)</a>#else$tab.get(0)#end</div>
      <div class="menuIcon"></div>
    </li>
#end
#if($tab-oneday-group == "0")
    #set($tab = ["グループ・1日", "oneday-group","$!jslink.getPortletById($!portlet.ID).addQueryData('template','ScheduleListScreen').addQueryData('tab','oneday-group')"])
    <li#if ($tab.get(1) == $!result.Viewtype) class="selectedMenu"#end>
      <div class="menuTitle">#if (!($tab.get(1) == $!result.Viewtype))<a href="javascript:void(0);" onclick="aipo.viewPage('$!utils.escapeXML($tab.get(2))', '$!portlet.ID');">$tab.get(0)</a>#else$tab.get(0)#end</div>
      <div class="menuIcon"></div>
    </li>
#end
#if($tab-weekly-group == "0")
    #set($tab = ["グループ・週間", "weekly-group", "$!jslink.getPortletById($!portlet.ID).addQueryData('template','ScheduleListScreen').addQueryData('tab','weekly-group')"])
    <li#if ($tab.get(1) == $!result.Viewtype) class="selectedMenu"#end>
      <div class="menuTitle">#if (!($tab.get(1) == $!result.Viewtype))<a href="javascript:void(0);" onclick="aipo.viewPage('$!utils.escapeXML($tab.get(2))', '$!portlet.ID');">$tab.get(0)</a>#else$tab.get(0)#end</div>
      <div class="menuIcon"></div>
    </li>
#end
  </ul>
</div>

<div class="clearfix">
<div class="roundTopMain">
<div class="roundRightMain">
<div class="roundBottomMain">
<div class="roundLeftMain">
<div class="roundTopLeftMain">
<div class="roundTopRightMain">
<div class="roundBottomRightMain">
<div class="roundBottomLeftMain">
<div class="roundMainWrapper">
#ALspacebothheader()
## One day
#if ($!result.Viewtype == "oneday")
#parse("/portlets/html/ja/schedule-oneday.vm")
#end
## Weekly
#if ($!result.Viewtype == "weekly")
#parse("/portlets/html/ja/schedule-weekly.vm")
#end
## Monthly
#if ($!result.Viewtype == "monthly")
#parse("/portlets/html/ja/schedule-monthly.vm")
#end
## One day
#if ($!result.Viewtype == "oneday-group")
#parse("/portlets/html/ja/schedule-oneday-group.vm")
#end
## Weekly
#if ($!result.Viewtype == "weekly-group")
#parse("/portlets/html/ja/schedule-weekly-group.vm")
#end
#ALspacebothfooter()
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
