#*
 * 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($linklist = [["スケジュールへ", "$!jslink.getPortletById($!portlet.ID).addQueryData('eventSubmit_doSchedule_menu','1')"]])
#ALcell_pagetitle_iphone($career "スケジュール表示日付指定")
#ALcell_linklist_iphone($career $linklist)
#ALcell_contents_header($career)

#ALcell_errmsg($career $errmsgs)
#ALcell_formheader($career $jslink $portlet)
<h3>日付</h3>
<script type="text/javascript">
function onChangeViewDate(form) {
  var year = form.view_date_year.value;
  var month = form.view_date_month.value;
  var day = form.view_date_day.value;
  form.view_date.value = ("0000" + year).slice(-4) + ("00" + month).slice(-2) + ("00" + day).slice(-2);
}
</script>
<p class="center">
<input type="text" size="4" maxlength="4" value="$!{result.ViewDate.Year}" name="view_date_year" id="view_date_year" onChange="onChangeViewDate(this.form);" />/<input type="text" size="2" maxlength="2" value="$!{result.ViewDate.Month}" name="view_date_month" id="view_date_month" onChange="onChangeViewDate(this.form);"/>/<input type="text" size="2" maxlength="2" value="$!{result.ViewDate.Day}" name="view_date_day" id="view_date_day" onChange="onChangeViewDate(this.form);" />
</p>
<input type="hidden" name="view_date" value="$!{result.ViewDateDate}"/>
#ALcell_submit($career 'eventSubmit_doSchedule_show_selectday' '表示する')
#ALcell_formfooter()
#ALcell_contents_footer($career)
#ALcell_linklist_iphone($career $linklist)
