#*
 * 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($methodlist = [["返信する", "$!jslink.getPortletById($!portlet.ID).addQueryData('eventSubmit_doMsgboard_reply_form','1').addQueryData('entityid',${result.ParentTopic.TopicId}).addQueryData('mode','reply')"] ,["ﾄﾋﾟｯｸ追加", "$!jslink.getPortletById($!portlet.ID).addQueryData('eventSubmit_doMsgboard_topic_form','1').addQueryData('entityid','new')"]])
#set($linklist = [["ﾄﾋﾟｯｸ一覧へ", "$!jslink.getPortletById($!portlet.ID).addQueryData('eventSubmit_doMsgboard_topic_list','1')"]])
#ALcell_pagetitle($career "記事詳細")
#ALcell_dl_header($career)
#ALcell_dt($career 'ﾄﾋﾟｯｸﾀｲﾄﾙ')
#ALcell_dd($career $!{result.ParentTopic.TopicName})
#ALcell_dt($career 'ｶﾃｺﾞﾘ')
#ALcell_dd($career $!{result.ParentTopic.CategoryName})
#ALcell_dt($career '投稿者')
<dd>$!{result.ParentTopic.OwnerName}</dd>
#ALcell_dt($career '投稿日')
<dd>$!{result.ParentTopic.CreateDate.Year}/$!{result.ParentTopic.CreateDate.Month}/$!{result.ParentTopic.CreateDate.Day}&nbsp;$!{result.ParentTopic.CreateDate.Hour}:$!{result.ParentTopic.CreateDate.Minute}</dd>
#ALcell_dt($career "内容")
#ALcell_dd($career $!{result.ParentTopic.Note})
#foreach( $attachmentFile in $!result.ParentTopic.AttachmentFileList )
<img src="images/msgboard/msgboard_item.gif">&nbsp;<a href="$jslink.getTemplate("MsgboardTopicFileRawScreen").addQueryData("ownerid", $!{result.ParentTopic.OwnerId}).addQueryData("entityid", $!result.ParentTopic.TopicId).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("MsgboardTopicFileThumbnailScreen").addQueryData("ownerid", $!{result.ParentTopic.OwnerId}).addQueryData("entityid", $!result.ParentTopic.TopicId).addQueryData("attachmentIndex", $attachmentFile.FileId)"><br>
#end
#end
#if($!result.isMatch($!{result.UserId} , $!{result.ParentTopic.OwnerId.Value}))
<form action="$!jslink.getPortletById($!portlet.ID)" method="post">
<input type="hidden" name="entityid" value=$!{result.ParentTopic.TopicId}>
<input type="hidden" name="mode" value="delete">
<input type="hidden" name="secid" value="$secid" />
##<input type="submit" class="submit" name="eventSubmit_doMsgboard_topic_form" value="編集する">
<input type="submit" class="submit" name="eventSubmit_doMsgboard_topic_delete" value="削除する">
</form>
#end
#ALcell_dl_footer($career)
#ALcell_hr($career '1')
ｺﾒﾝﾄ一覧
#ALcell_hr($career '1')
#if(!$!result.CoTopicList || $!result.CoTopicList.size() <= 0)
ｺﾒﾝﾄはありません
#ALcell_hr($career '1')
#else
#foreach ($record in $result.CoTopicList)
#ALcell_dl_header($career)
#ALcell_dt($career "ﾀｲﾄﾙ")
<dd>$!{record.TopicName}</dd>
#ALcell_dt($career "投稿者")
<dd>$!{record.OwnerName}</dd>
#ALcell_dt($career "投稿日")
<dd>$!{record.UpdateDate}</dd>
#ALcell_dt($career "書き込み")
#ALcell_dd($career $!{record.Note})
#foreach( $attachmentFile in $!record.AttachmentFileList )
<img src="images/msgboard/msgboard_item.gif">&nbsp;<a href="$jslink.getTemplate("MsgboardTopicFileRawScreen").addQueryData("ownerid", ${record.OwnerId}).addQueryData("entityid", $record.TopicId).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("MsgboardTopicFileThumbnailScreen").addQueryData("ownerid", ${record.OwnerId}).addQueryData("entityid", $record.TopicId).addQueryData("attachmentIndex", $attachmentFile.FileId)"><br>
#end
#end
#if($!result.isMatch($!{result.UserId} , $!{record.OwnerId.Value}))
<form action="$!jslink.getPortletById($!portlet.ID)" method="post">
<input type="hidden" name="topic_reply_id" value=${record.TopicId}>
<input type="hidden" name="mode" value="delete_reply">
<input type="hidden" name="secid" value="$secid" />
<input type="submit" class="submit" name="eventSubmit_doMsgboard_topic_reply_delete" value="削除する">
</form>
#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)
