#*
 * Aipo is a groupware program developed by Aimluck,Inc.
 * Copyright (C) 2004-2008 Aimluck,Inc.
 * http://aipostyle.com/
 * 
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU 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 General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 *#
## ---------------------------------------------------------------------------
#set($tabs = [["帳票", "",""]])
#set ($indicator_id = "indicator-list-")
## ---------------------------------------------------------------------------
#ALtabheader($tabs "")
#ALspacebothheader()
#ALajaxIndicator("${indicator_id}" "$!{portlet.ID}" "")
#ALerrmsg($errmsgs)
<div id="errmessageDiv"></div>
<div id="messageDiv"></div>
###ALajaxlistformheader('帳票')
<form name="Book" action="$jslink.getTemplate('BookXlsExportScreen')" method="post">

#ALtableheaderWide()
#ALtdcaption("出力期間")
#ALtditemheader()

<table class="none" border="0" cellspacing="0" cellpadding="2">
<tr valign="middle"><td>
<a href="javascript:void(0);" onclick="aipo.viewPage('$!utils.escapeXML($!jslink.getPortletById($!portlet.ID).addQueryData("template","BookScreen").addQueryData("view_month",$!{result.PrevMonth.toString()}))', '$!portlet.ID');" title="前月へ">
<img src="images/schedule/arrow_left.gif" border="0" alt="前月へ" /></a>&nbsp;
</td><td nowrap="nowrap"><span style="font-weight:bold">
$!{result.ViewMonth.Year} 年 $!{result.ViewMonth.Month} 月
</span></td><td>
<a href="javascript:void(0);" onclick="aipo.viewPage('$!utils.escapeXML($!jslink.getPortletById($!portlet.ID).addQueryData("template","BookScreen").addQueryData("view_month",$!{result.NextMonth.toString()}))', '$!portlet.ID');" title="翌月へ">
<img src="images/schedule/arrow_right.gif" border="0" alt="翌月へ" /></a>&nbsp;
</td><td>
<a href="javascript:void(0);" onclick="aipo.viewPage('$!utils.escapeXML($!jslink.getPortletById($!portlet.ID).addQueryData("template","BookScreen").addQueryData("view_month",$!{result.CurrentMonth.toString()}))', '$!portlet.ID');" title="今月へ">
<img src="images/schedule/schedule_currentmonth.gif" border="0" alt="今月へ" /></a>&nbsp;
</td>

<td><span style="font-weight:bold">～</span></td>
#*<tr valign="middle">*#
<td>
<a href="javascript:void(0);" onclick="aipo.viewPage('$!utils.escapeXML($!jslink.getPortletById($!portlet.ID).addQueryData("template","BookScreen").addQueryData("view_month2",$!{result.PrevMonth2.toString()}))', '$!portlet.ID');" title="前月へ">
<img src="images/schedule/arrow_left.gif" border="0" alt="前月へ" /></a>&nbsp;
</td><td nowrap="nowrap"><span style="font-weight:bold">
$!{result.ViewMonth2.Year} 年 $!{result.ViewMonth2.Month} 月
</span></td><td>
<a href="javascript:void(0);" onclick="aipo.viewPage('$!utils.escapeXML($!jslink.getPortletById($!portlet.ID).addQueryData("template","BookScreen").addQueryData("view_month2",$!{result.NextMonth2.toString()}))', '$!portlet.ID');" title="翌月へ">
<img src="images/schedule/arrow_right.gif" border="0" alt="翌月へ" /></a>&nbsp;
</td><td>
<a href="javascript:void(0);" onclick="aipo.viewPage('$!utils.escapeXML($!jslink.getPortletById($!portlet.ID).addQueryData("template","BookScreen").addQueryData("view_month2",$!{result.CurrentMonth.toString()}))', '$!portlet.ID');" title="今月へ">
<img src="images/schedule/schedule_currentmonth.gif" border="0" alt="今月へ" /></a>&nbsp;
</td></tr></table>

<input type="hidden" id="start_year" name="start_year" value="$!{result.ViewMonth.Year}">
<input type="hidden" id="start_month" name="start_month" value="$!{result.ViewMonth.Month}">
<input type="hidden" id="end_year" name="end_year" value="$!{result.ViewMonth2.Year}">
<input type="hidden" id="end_month" name="end_month" value="$!{result.ViewMonth2.Month}">
<input type="hidden" name="view_month" value="$!{result.ViewMonth.Year}/$!{result.ViewMonth.Month}/01">
<input type="hidden" name="view_month2" value="$!{result.ViewMonth2.Year}/$!{result.ViewMonth2.Month}/01">

#ALtditemfooter()
#ALtdcaption("出力対象")
#ALtditemheader()
<input type="radio" id="book" name="book" value="1" checked>作業集計表
#ALtditemfooter()
#ALtablefooter()
#ALbuttonheader()
###ALsubmit("event_submit_doBook_print" "ダウンロード")
<input name="ajaxbuttonSubmit" id="ajaxbuttonSubmit" class="button" type="button" value="ダウンロード" onclick="aipo.book.ajaxCheckAndSubmit(this);" />
#ALbuttonfooter()
###ALformfooter()
<input type="hidden" name="portlet_id" value="$!portlet.ID"/>
</form>
#ALspacebothfooter()
#ALajaxtabfooter()
