#*
 * 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 ($action_str = "更新する")
#set ($indicator_id = "indicator-dlg-")
#set ($subtitle = 'ユーザー編集')
#set ($event_submit = "eventSubmit_doAccount_update")
## ---------------------------------------------------------------------------
#ALdialogheaderCloseJS($subtitle "aipo.account_person.hideDialog()")
<div id="messageDiv"></div>
#ALajaxIndicator("$indicator_id" "$!portlet.ID" "")
#ALajaxscreenformheader("accountpersonForm" $jslink $portlet "AccountPersonFormJSONScreen" "aimluck.io.selectAllOptions(this.attachments);aimluck.io.submit(this,'$indicator_id', '$!portlet.ID', aipo.account_person.onReceiveMessage)")
<input type="hidden" name="mode" value="update" />
#ALtableheaderWide()
#ALtdcaption("#ALrequired('名前')")
#ALtditem("#ALtextfield('lastname' $!result.LastName '30%' 20 'active')#ALtextfield('firstname' $!result.FirstName '30%' 20 'active')")
#ALtdcaption("#ALrequired('名前（フリガナ）')")
#ALtditem("#ALtextfield('last_name_kana' $!result.LastNameKana '30%' 20 'active')#ALtextfield('first_name_kana' $!result.FirstNameKana '30%' 20 'active')")
#ALtdcaption($!result.getFieldName("email"))
#ALtditem("#ALtextfield('email' $!result.Email '60%' 50 'disabled')#ALcaution('（半角英数字）')")
#ALtdcaption($!result.getFieldName("out_telephone1"))
#ALtditemheader()
#ALtextfield('out_telephone1' $!result.OutTelephone1 '20%' 5 'disabled')-#ALtextfield('out_telephone2' $!result.OutTelephone2 '20%' 4 'disabled')-#ALtextfield('out_telephone3' $!result.OutTelephone3 '20%' 4 'disabled')#ALcaution('（半角数字）')
#ALtditemfooter()
#ALtdcaption($!result.getFieldName("in_telephone"))
#ALtditem("#ALtextfield('in_telephone' $!result.InTelephone '30%' 13 'disabled')#ALcaution('（半角英数字）')")
#ALtdcaption($!result.getFieldName("cellular_phone1"))
#ALtditemheader()
#ALtextfield('cellular_phone1' $!result.CellularPhone1 '20%' 5 'disabled')-#ALtextfield('cellular_phone2' $!result.CellularPhone2 '20%' 4 'disabled')-#ALtextfield('cellular_phone3' $!result.CellularPhone3 '20%' 4 'disabled')#ALcaution('（半角数字）')
#ALtditemfooter()
#ALtdcaption($!result.getFieldName("cellular_mail"))
#ALtditem("#ALtextfield('cellular_mail' $!result.CellularMail '75%' 50 'disabled')#ALcaution('（半角英数字）')")
#ALtdcaption("$!result.getFieldName('photo')")
#ALtditemheader()
<select id="attachments" name="attachments" type="select" size="1" multiple="multiple" style="width: 325px">
#foreach( $record in $!result.AttachmentFileNameList )
<option value="$record.FileId">$record.FileName</option>
#end
</select>
#set($att_url = $!jslink.getPortletById($!portlet.ID).addQueryData("template","FileuploadFormScreen").addQueryData("mode","form").addQueryData("msize","1"))
<input type="button" onclick="aipo.fileupload.openAttachment('$!utils.escapeXML($att_url)');" value="ファイルの選択" class="button" name="add_attachment"/>
選択したファイルを<input type="button" onclick="aimluck.io.removeAllOptions(this.form.attachments);" value="削除する" class="button" name="add_attachment"/>
<input type="hidden" id="folderName" name="folderName" value="">
#ALtditemfooter()
#ALtablefooter()
#ALbuttonheader()
#ALsubmit($event_submit $action_str)<input name="ajaxbuttonClose" class="button" type="button" value="　閉じる　" onclick="aipo.account_person.hideDialog();" />
#ALbuttonfooter()
#ALformfooter()
#ALdialogfooter()
