#*
 * 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($link = "$!jslink.getPortletById($!portlet.ID).addQueryData('eventSubmit_doSchedule_list','1')")
#set($linklist = [["ｽｹｼﾞｭｰﾙ(1日)一覧へ", "$!jslink.addQueryData('js_peid',$!portlet.ID).addQueryData('eventSubmit_doSchedule_list','1')"], ["ｽｹｼﾞｭｰﾙへ", "$!jslink.getPortletById($!portlet.ID).addQueryData('eventSubmit_doSchedule_menu','1')"], ["TOPへ", "$!jslink.getAction('controls.Restore',$!portlet.ID)"], ["ﾛｸﾞｱｳﾄ", "$jslink.setAction($config.getString('action.logout'))"]])

#set($counter = 0)
#foreach($record in $!result.MemberList)
#if(!($!{record.Name.toString()} == $!{result.Detail.User.Name.toString()}))
#if($result.getStatus($record.UserId.Value) == "R") #set($counter = $counter + 1) #end
#end
#end
#if($counter < ($!result.MemberList.size() - 1))
#set ($hasMember = true)
#else
#set ($hasMember = false)
#end
#ALcell_pagetitle($career "ｽｹｼﾞｭｰﾙ削除")
#ALcell_formheader($career $jslink $portlet)
削除条件：#ALcell_br($career)
#if($!{result.Detail.isOwner()})
#if($hasMember && $!{result.Detail.isRepeat()})
<input name="del_flag" type="radio" value="3">
自分の $!{result.ViewDate.Year}年$!{result.ViewDate.Month}月$!{result.ViewDate.Day}日 の予定のみを削除します#ALcell_br($career)
<input name="del_flag" type="radio" value="2">
自分のこの予定を完全に削除します#ALcell_br($career)
<input name="del_flag" type="radio" value="1">
参加ﾒﾝﾊﾞｰ全員の $!{result.ViewDate.Year}年$!{result.ViewDate.Month}月$!{result.ViewDate.Day}日 の予定のみを削除します#ALcell_br($career)
<input name="del_flag" type="radio" value="0" checked>
参加ﾒﾝﾊﾞｰ全員のこの予定を完全に削除します
#elseif($hasMember && ! $!{result.Detail.isRepeat()})
<input name="del_flag" type="radio" value="2">
自分のこの予定を完全に削除します#ALcell_br($career)
<input name="del_flag" type="radio" value="0" checked>
参加ﾒﾝﾊﾞｰ全員のこの予定を完全に削除します
#elseif(! $hasMember && $!{result.Detail.isRepeat()})
<input name="del_flag" type="radio" value="3">
自分の $!{result.ViewDate.Year}年$!{result.ViewDate.Month}月$!{result.ViewDate.Day}日 の予定のみを削除します#ALcell_br($career)
<input name="del_flag" type="radio" value="2" checked>
自分のこの予定を完全に削除します
#else
<input name="del_flag" type="radio" value="2" checked>
自分のこの予定を完全に削除します
#end
#else
#if($!{result.Detail.isEditable()})
#if($hasMember && $!{result.Detail.isRepeat()})
<input name="del_flag" type="radio" value="3">
自分の $!{result.ViewDate.Year}年$!{result.ViewDate.Month}月$!{result.ViewDate.Day}日 の予定のみを削除します#ALcell_br($career)
<input name="del_flag" type="radio" value="2">
自分のこの予定を完全に削除します#ALcell_br($career)
<input name="del_flag" type="radio" value="1">
参加ﾒﾝﾊﾞｰ全員の $!{result.ViewDate.Year}年$!{result.ViewDate.Month}月$!{result.ViewDate.Day}日 の予定のみを削除します#ALcell_br($career)
<input name="del_flag" type="radio" value="0" checked>
参加ﾒﾝﾊﾞｰ全員のこの予定を完全に削除します
#elseif($hasMember && ! $!{result.Detail.isRepeat()})
<input name="del_flag" type="radio" value="2">
自分のこの予定を完全に削除します#ALcell_br($career)
<input name="del_flag" type="radio" value="0" checked>
参加ﾒﾝﾊﾞｰ全員のこの予定を完全に削除します
#elseif(! $hasMember && $!{result.Detail.isRepeat()})
<input name="del_flag" type="radio" value="3">
自分の $!{result.ViewDate.Year}年$!{result.ViewDate.Month}月$!{result.ViewDate.Day}日 の予定のみを削除します#ALcell_br($career)
<input name="del_flag" type="radio" value="2" checked>
自分のこの予定を完全に削除します
#else
<input name="del_flag" type="radio" value="2" checked>
自分のこの予定を完全に削除します
#end
#else
#if($!{result.Detail.isRepeat()})
<input name="del_flag" type="radio" value="3">
自分の $!{result.ViewDate.Year}年$!{result.ViewDate.Month}月$!{result.ViewDate.Day}日 の予定のみを削除します#ALcell_br($career)
<input name="del_flag" type="radio" value="2" checked>
自分のこの予定を完全に削除します
#else
<input name="del_flag" type="radio" value="2" checked>
自分のこの予定を完全に削除します
#end
#end
#end
#ALcell_br($career)#ALcell_br($career)
<input type="hidden" name="entityid" value="$!{result.EntityId}">
<input type="hidden" name="view_date" value="$!{result.ViewDate.toString()}">
#ALcell_hr($career '1')
#ALcell_submit($career 'eventSubmit_doSchedule_delete' '削除する')
#ALcell_formfooter()
#ALcell_hr($career '1')
#ALcell_linklist($career $linklist)
