#*
 * 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 = [["ｽｹｼﾞｭｰﾙへ", "$!jslink.getPortletById($!portlet.ID).addQueryData('eventSubmit_doSchedule_menu','1')"]])
#ALcell_errmsg($career $errmsgs)
#if($errmsgs && !($errmsgs.size() == 0))
#ALcell_hr($career '1')
#end

#ALcell_formheader($career $jslink $portlet)
<input type="hidden" name="view_date" value="$!{result.FormData.ViewDate.toString()}">
#set($usercount = 1)
#set($membersize = $!{result.FormData.MemberList.size()})
<input type="hidden" name="shareusers" value="#foreach($record in $!{result.FormData.MemberList})$!{record.Name}#if($usercount<$membersize),#set($usercount = $usercount + 1)#end#end">
#set($facilitycount = 1)
#set($fmembersize = $!{result.FormData.FacilityMemberList.size()})
<input type="hidden" name="sharefacs" value="#foreach($record in $!{result.FormData.FacilityMemberList})$!{record.FacilityId}#if($facilitycount<$fmembersize),#set($facilitycount = $facilitycount + 1)#end#end">

<input type="hidden" name="end_date_date" value="$!{result.FormData.StartDateDate}">
日付：#ALcell_textfield($career 'start_date_date' "$!{result.FormData.StartDateDate}" 8 8 '' 'n')
#ALcell_br($career)(例)#ALcell_br($career)2005/1/1→20050101
#ALcell_hr($career '1')

時間：#ALcell_br($career)
#ALcell_textfield($career 'start_date_time' "$!{result.FormData.StartDateTime}" 4 4 '' 'n') から#ALcell_textfield($career 'end_date_time' "$!{result.FormData.EndDateTime}" 4 4 '' 'n')
#ALcell_br($career)(例)10:30→1030#ALcell_br($career)（15分単位）

#ALcell_hr($career '1')
#parse("/portlets/cell_default/ja/schedule-form-date-memberfacility.vm")
<input type="hidden" value="$!{result.ScheduleType}" name="schedule_type">
#if($!{result.EntityId} && $!{result.EntityId} != 'new')
<input type="hidden" name="entityid" value="$!{result.EntityId}">
#end
#ALcell_submit($career "eventSubmit_doSchedule_form_note" "次へ")
#ALcell_submit($career "eventSubmit_doSchedule_form_group" "参加ﾕｰｻﾞｰ選択")
#if(! $!{result.isSpan()})
#ALcell_submit($career "eventSubmit_doSchedule_form_facility_group" "共有施設選択")
#end
##cell_submit($career 'eventSubmit_doSchedule_menu' 'ｷｬﾝｾﾙする')
#ALcell_formfooter()
#ALcell_hr($career '1')
#ALcell_linklist($career $linklist)
#ALtdcellFooterLink($career)
