#*
 * 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($link = "$!jslink.getPortletById($!portlet.ID).addQueryData('eventSubmit_doBlog_entry_list_latest','1')")
#if($mode=="new_form")
#set ($action_str = "追加する")
#set ($subtitle = '記事追加')
#set ($event_submit = "eventSubmit_doBlog_entry_insert")
#else
#set ($action_str = "更新する")
#set ($subtitle = '記事編集')
#set ($event_submit = "eventSubmit_doBlog_entry_update")
#end
#set($linklist = [["ﾌﾞﾛｸﾞ記事一覧へ", "$!jslink.getPortletById($!portlet.ID).addQueryData('eventSubmit_doBlog_entry_list_latest','1')"], ["TOPへ", "$!jslink.getAction('controls.Restore',$!portlet.ID)"], ["ﾛｸﾞｱｳﾄ", "$jslink.setAction($config.getString('action.logout'))"]])

#ALcell_pagetitle($career $subtitle)
#ALcell_errmsg($career $errmsgs)

#ALcell_formheader($career $jslink $portlet)
#if($!{result.EntityId} && $!{result.EntityId} != 'new')
<input type="hidden" name="entityid" value="$!{result.EntityId}">
#end
$!result.getFieldName('title')#ALcell_must()#ALcell_br($career)
#ALcell_textfield($career 'title' $!result.Title 14 50 'istyle="1"')
#ALcell_hr($career '1')
$!result.getFieldName('thema_id')#ALcell_br($career)
<select name="thema_id">
#foreach( $record in $result.ThemaList )
<option value="$!record.ThemaId" #if (!(($!result.ThemaId) && $!record.ThemaId.toString() == '0') || ($!result.ThemaId.toString() == $!record.ThemaId.toString())) #end>$!record.ThemaName</option>
#end
</select>
#ALcell_hr($career '1')
$!result.getFieldName('note')#ALcell_br($career)
#ALcell_textarea($career 'note' $!result.Note 6 14 'istyle="1"')
#ALcell_hr($career '1')
#ALcell_submit($career $event_submit $action_str)
#ALcell_formfooter()
#ALcell_hr($career '1')
#ALcell_linklist($career $linklist)