#*
 * 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_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">

期間の設定#ALcell_br($career)
#ALcell_textfield($career 'start_date_date' "$!{result.FormData.StartDateDate}" 8 8 '' 'n') から#ALcell_textfield($career 'end_date_date' "$!{result.FormData.EndDateDate}" 8 8 '' 'n')
<input type="hidden" name="start_date_time" value="0000">
<input type="hidden" name="end_date_time" value="0000">

#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" "共有施設選択")
#end
##cell_submit($career 'eventSubmit_doSchedule_menu' 'ｷｬﾝｾﾙする')
#ALcell_formfooter()
#ALcell_hr($career '1')
#ALcell_linklist($career $linklist)
#ALtdcellFooterLink($career)
