#*
 * 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/>.
 *#

## ---------------------------------------------------------------------------
#set($linklist = [["$result.TargerUser.AliasName さんのスケジュールへ", "$!jslink.getPortletById($!portlet.ID).addQueryData('eventSubmit_doSchedule_menu_select_member','1').addQueryData('selectedmember',$!{result.TargerUser.UserId})"]])
#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}"/>
<input type="hidden" name="selectedmember" value="$!{result.TargerUser.UserId}">
#ALcell_submit($career 'eventSubmit_doSchedule_show_selectday_select_member' '表示する')
#ALcell_formfooter()
#ALcell_contents_footer($career)
#ALcell_linklist_iphone($career $linklist)