#*
 * Aipo is a groupware program developed by Aimluck,Inc.
 * Copyright (C) 2004-2011 Aimluck,Inc.
 * http://www.aipo.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/>.
 *#

## ---------------------------------------------------------------------------
#ALformheader('Manhour' $jslink $portlet)
#ALtableheaderSimpleWide()
#ALtdcaption('期間')
#ALtditemheader()
<select name="view_date_year" onchange="aipo.viewPage(this.options[this.selectedIndex].value, '$!portlet.ID')">
#foreach ( $num in [2006..$!result.EndYear] )
<option value="$!utils.escapeXML($!jslink.getPortletById($!portlet.ID).addQueryData("template","ManHourScreen").addQueryData("view_date_year","$num").addQueryData("view_date_month","$!result.ViewDate.Month"))" #if ($!result.ViewDate.Year == "$num") selected="selected" #end>$num年</option>
#end
</select>
<select name="view_date_month" onchange="aipo.viewPage(this.options[this.selectedIndex].value, '$!portlet.ID')">
#foreach ( $num in [1..12] )
<option value="$!utils.escapeXML($!jslink.getPortletById($!portlet.ID).addQueryData("template","ManHourScreen").addQueryData("view_date_year","$!result.ViewDate.Year").addQueryData("view_date_month","$num"))" #if ($!result.ViewDate.Month == "$num") selected="selected" #end>$num月</option>
#end
</select>
#ALtditemfooter()
#ALtablefooter()
#ALtableheaderWide()
#ALtdcaptionAtt('工数合計（実績）' 'width="150" nowrap="nowrap"')
#ALtditem("$!result.TotalManHourPast h")
#ALtdcaptionAtt('工数合計（予定）' 'width="150" nowrap="nowrap"')
#ALtditem("$!result.TotalManHourPlan h")
#ALtablefooter()
#ALformfooter()
