#*
 * Aipo is a groupware program developed by Aimluck,Inc.
 * Copyright (C) 2004-2008 Aimluck,Inc.
 * http://aipostyle.com/
 * 
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU 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 General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program. If not, see <http:// www.gnu.org/licenses/>.
 *#
## ---------------------------------------------------------------------------
#set($career = 'vodafone')
#set($linklist = [["ｽｹｼﾞｭｰﾙへ", "$!jslink.getPortletById($!portlet.ID).addQueryData('eventSubmit_doSchedule_menu','1')"], ["TOPへ", "$!jslink.getAction('controls.Restore',$!portlet.ID)"], ["ﾛｸﾞｱｳﾄ", "$jslink.setAction($config.getString('action.logout'))"]])
#if($mode=="new_form")
#set ($action_str = "追加する")
#set ($event_submit = "eventSubmit_doSchedule_insert")
#set ($title = "ｽｹｼﾞｭｰﾙ(1日)登録")
#else
#set ($action_str = "更新する")
#set ($event_submit = "eventSubmit_doSchedule_update")
#set ($title = "ｽｹｼﾞｭｰﾙ(1日)編集")
#end
#ALcell_pagetitle($career "ｽｹｼﾞｭｰﾙ(1日)登録")
#ALcell_errmsg($career $errmsgs)

#if ($!{result.isRepeat()})
#ALcell_dl_header($career)
#ALcell_dt($career "繰り返し")
#ALcell_dd_header($career)
#if ($!{result.RepeatType.toString()} == "D") 毎日#end
#if ($!{result.RepeatType.toString()} == "W") 毎週#ALcell_br($career)#if ($!{result.Week0.toString()} == "TRUE")日#end#if ($!{result.Week1.toString()} == "TRUE")月#end#if ($!{result.Week2.toString()} == "TRUE")火#end#if ($!{result.Week3.toString()} == "TRUE")水#end#if ($!{result.Week4.toString()} == "TRUE")木#end#if ($!{result.Week5.toString()} == "TRUE")金#end#if ($!{result.Week6.toString()} == "TRUE")土#end 曜日#end
#if ($!{result.RepeatType.toString()} == "M") 毎月 $!{result.MonthDay}日#end
#ALcell_dd_footer($career)
#if ($!{result.LimitFlag.toString()} == "ON")
#ALcell_dt($career "期間")
#ALcell_dd_header($career)
$!{result.LimitStartDateDate2}から$!{result.LimitEndDateDate2}
#ALcell_dd_footer($career)
#end
#ALcell_dt($career "時間")
#ALcell_dd_header($career)
$!{result.StartDateTime2}から$!{result.EndDateTime2}
#ALcell_dd_footer($career)
#ALcell_dl_footer($career)
#elseif($!{result.isSpan()})
#ALcell_dl_header($career)
#ALcell_dt($career "期間")
#ALcell_dd_header($career)
$!{result.StartDateDate2}から$!{result.EndDateDate2}
#ALcell_dd_footer($career)
#ALcell_dl_footer($career)
#else
#ALcell_dl_header($career)
#ALcell_dt($career "時間")
#ALcell_dd_header($career)
$!{result.StartDateDate2}
$!{result.StartDateTime2}から$!{result.EndDateTime2}
#ALcell_dd_footer($career)
#ALcell_dl_footer($career)
#end
#ALcell_hr($career '1')
#ALcell_formheader($career $jslink $portlet)
$!result.getFieldName('name')#ALcell_must()#ALcell_br($career)
#ALcell_textfield($career 'name' $!result.Name 14 50 'mode="hiragana"')
#ALcell_hr($career '1')
$!result.getFieldName('place')#ALcell_br($career)
#ALcell_textfield($career 'place' $!result.Place 14 50 'mode="hiragana"')
#ALcell_hr($career '1')
$!result.getFieldName('note')#ALcell_br($career)
#ALcell_textarea($career 'note' $!result.Note 6 14 'mode="hiragana"')
#ALcell_hr($career '1')
$!result.getFieldName("public_flag")#ALcell_br($career)
<input name="public_flag" type="radio" value="O" #if ($!result.PublicFlag.toString() == "O") checked="checked" #end>公開#ALcell_br($career)
<input name="public_flag" type="radio" value="C" #if ($!result.PublicFlag.toString() == "C") checked="checked" #end>非公開#ALcell_br($career)
<input name="public_flag" type="radio" value="P" #if ($!result.PublicFlag.toString() == "P") checked="checked" #end>完全に隠す
#ALcell_hr($career '1')
#ALcell_submit($career $event_submit $action_str)
#if($!{result.EntityId} && $!{result.EntityId} != 'new')
<input type="hidden" name="entityid" value="$!{result.EntityId}">
<input type="hidden" name="edit_repeat_flag" value="$!{result.EditRepeatFlag.toString()}">
#end
<input type="hidden" name="view_date" value="$!{result.ViewDate.toString()}">
<input type="hidden" #if (! $!{result.isRepeat()}) value="FALSE" #else value="TRUE" #end name="is_repeat">
<input type="hidden" #if (! $!{result.isSpan()}) value="FALSE" #else value="TRUE" #end name="is_span">
#if ($!{result.isRepeat()})
<input type="hidden" name="repeat_type" value="$!{result.RepeatType}">
#if ($!{result.RepeatType.toString()} == "W") 
#if ($!{result.Week0.toString()} == "TRUE") <input type="hidden" name="week_0" value="TRUE"> #end
#if ($!{result.Week1.toString()} == "TRUE") <input type="hidden" name="week_1" value="TRUE"> #end
#if ($!{result.Week2.toString()} == "TRUE") <input type="hidden" name="week_2" value="TRUE"> #end
#if ($!{result.Week3.toString()} == "TRUE") <input type="hidden" name="week_3" value="TRUE"> #end
#if ($!{result.Week4.toString()} == "TRUE") <input type="hidden" name="week_4" value="TRUE"> #end
#if ($!{result.Week5.toString()} == "TRUE") <input type="hidden" name="week_5" value="TRUE"> #end
#if ($!{result.Week6.toString()} == "TRUE") <input type="hidden" name="week_6" value="TRUE"> #end
#elseif ($!{result.RepeatType.toString()} == "M")
<input type="hidden" name="month_day" value="$!{result.MonthDay}">
#end
<input type="hidden" name="limit_flag" value="$!{result.LimitFlag.toString()}">
#if($!{result.LimitFlag.toString()} == "ON")
<input type="hidden" name="limit_start_date" value="$!{result.LimitStartDateDate}">
<input type="hidden" name="limit_end_date" value="$!{result.LimitEndDateDate}">
#end
#end
<input type="hidden" name="start_date_date" value="$!{result.StartDateDate}">
<input type="hidden" name="start_date_time" value="$!{result.StartDateTime}">
<input type="hidden" name="end_date_date" value="$!{result.EndDateDate}">
<input type="hidden" name="end_date_time" value="$!{result.EndDateTime}">
#set($usercount = 1)
#set($membersize = $!{result.MemberList.size()})
<input type="hidden" name="shareusers" value="#foreach($record in $!{result.MemberList})$!{record.Name}#if($usercount<$membersize),#set($usercount = $usercount + 1)#end#end">
#set($facilitycount = 1)
#set($fmembersize = $!{result.FacilityMemberList.size()})
<input type="hidden" name="sharefacs" value="#foreach($record in $!{result.FacilityMemberList})$!{record.FacilityId}#if($facilitycount<$fmembersize),#set($facilitycount = $facilitycount + 1)#end#end">

<input type="hidden" name="edit_flag" value="$!{result.EditFlag.toString()}">
<input type="hidden" name="change_tmpreserve_flag" value="$!{result.ChangeTmpreserveFlag.toString()}"> 
#ALcell_formfooter()
#ALcell_hr($career '1')
#ALcell_linklist($career $linklist)
