#*
 * 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($link = "$!jslink.getPortletById($!portlet.ID).addQueryData('eventSubmit_doBlog_entry_list_latest','1')")
#set($methodlist = [["ｺﾒﾝﾄする", "$!jslink.getPortletById($!portlet.ID).addQueryData('eventSubmit_doBlog_entry_reply_form','1').addQueryData('entityid',${result.Detail.EntryId}).addQueryData('mode','reply')"], ["記事追加", "$!jslink.getPortletById($!portlet.ID).addQueryData('eventSubmit_doBlog_entry_form','1').addQueryData('entityid','new')"],["みんなのﾌﾞﾛｸﾞを見る", "$!jslink.getPortletById($!portlet.ID).addQueryData('eventSubmit_doBlog_entry_list_user','1')"],["記事を検索する", "$!jslink.getPortletById($!portlet.ID).addQueryData('eventSubmit_doBlog_search_list','1')"]])
#set($linklist = [["記事一覧へ", "$!jslink.getPortletById($!portlet.ID).addQueryData('eventSubmit_doBlog_entry_list_latest','1')"]])
#ALcell_pagetitle($career "記事詳細")
#ALcell_dl_header($career)
#ALcell_dt($career '記事ﾀｲﾄﾙ')
#ALcell_dd($career $!{result.Detail.Title})
#ALcell_dt($career 'ﾃｰﾏ')
#ALcell_dd($career $!{result.Detail.ThemaName})
#ALcell_dt($career '投稿者')
<dd>$!result.Detail.OwnerName</dd>
#ALcell_dt($career '投稿日')
<dd>$!result.Detail.CreateDate</dd>
<br />
#ALcell_dt($career "記事内容")
#ALcell_dd($career $!{result.Detail.Note})
#ALcell_dl_footer($career)
#foreach( $attachmentFile in $!result.Detail.AttachmentFileList )
<img src="images/blog/blog_item.gif">&nbsp;<a href="$jslink.getTemplate("BlogFileRawScreen").addQueryData("ownerid", $!{result.Detail.OwnerId}).addQueryData("entityid", $!result.Detail.EntryId).addQueryData("attachmentIndex", $attachmentFile.FileId)"> $result.getStringCR($attachmentFile.FileNameField) </a><br>
#if($attachmentFile.isImage())
<img border="0" alt="$attachmentFile.FileName" title="$attachmentFile.FileName" src="$jslink.getTemplate("BlogFileThumbnailScreen").addQueryData("ownerid", $!{result.Detail.OwnerId}).addQueryData("entityid", $!result.Detail.EntryId).addQueryData("attachmentIndex", $attachmentFile.FileId)"></a><br>
#end
#end
#if($!result.isMatch($!{result.UserId} , $!{result.Detail.OwnerId.Value}))
#ALcell_formheader($career $jslink $portlet)
<input type="hidden" name="entityid" value=${result.Detail.EntryId}>
<input type="hidden" name="mode" value="delete">
<input type="submit" class="submit" name="eventSubmit_doBlog_entry_form" value="編集する">
<input type="submit" class="submit" name="eventSubmit_doBlog_entry_detail" value="削除する">
#ALcell_formfooter()
#end
#ALcell_hr($career '1')
ｺﾒﾝﾄ一覧
#ALcell_hr($career '1')
#if(!$!result.CommentList || $!result.CommentList.size() <= 0)
ｺﾒﾝﾄはありません
#ALcell_hr($career '1')
#else
#foreach ($record in $result.CommentList)
#ALcell_dl_header($career)
#ALcell_dt($career "投稿者")
<dd>$!{record.OwnerName}</dd>
#ALcell_dt($career "投稿日")
<dd>$!{record.UpdateDate}</dd>
#ALcell_dt($career "ｺﾒﾝﾄ")
#ALcell_dd($career $!{record.Comment})
#if($!result.isMatch($!{result.UserId} , $!{record.OwnerId.Value}))
#ALcell_formheader($career $jslink $portlet)
<input type="hidden" name="entityid" value=${result.Detail.EntryId}>
<input type="hidden" name="comment_id" value=${record.CommentId}>
<input type="hidden" name="mode" value="view">
<input type="submit" class="submit" name="eventSubmit_doBlog_entry_comment_delete" value="削除する">
#ALcell_formfooter()
#end
#ALcell_dl_footer($career)
#ALcell_hr($career '1')
#end
#end
#ALcell_linklist($career $methodlist)
#ALcell_hr($career '1')
#ALcell_linklist($career $linklist)
#ALtdcellFooterLink($career)
