({$inc_ktai_header|smarty:nodefaults})

<table width="100%"><tr><td align="center" bgcolor="#({$ktai_color_config.bg_02})">
<font color="#({$ktai_color_config.font_05})"><a name="top">({$c_commu.name})</a></font><br>
</td></tr>
<tr><td bgcolor="#({$ktai_color_config.bg_03})" align="center">
<font color="#({$ktai_color_config.color_24})">({$c_commu_topic.name})</font><br>
</td></tr></table>

({if $c_commu_topic.event_flag != 1})

<a href="#({if $c_commu_topic_comment_list})tc1({else})write({/if})"><font color="#({$ktai_color_config.font_08})">▼</font></a>({$c_commu_topic.r_datetime|date_format:"%m/%d %H:%M"})<br>
<a href="({t_url m=ktai a=page_f_home})&amp;target_c_member_id=({$c_commu_topic.c_member_id})&amp;({$tail})">({$c_commu_topic.nickname|default:"&nbsp;"})</a>
({if $c_commu.c_member_id_admin==$u || ( $c_commu_topic.c_member_id==$u && $c_commu.is_topic !== 'admin_only')})
({if $is_c_commu_member || $c_commu.is_topic == 'public'})
[<a href="({t_url m=ktai a=page_c_topic_edit})&amp;target_c_commu_topic_id=({$c_commu_topic_id})&amp;({$tail})">編集</a>]
({/if})
({/if})
<br>
({$c_commu_topic.body|t_url2a_ktai|nl2br})<br>
({if $c_commu_topic.image_filename1})[i:68]写真：[<a href="({t_img_url filename=$c_commu_topic.image_filename1 w=120 h=120 f=jpg})">小</a>/<a href="({t_img_url filename=$c_commu_topic.image_filename1 w=$smarty.const.OPENPNE_IMG_KTAI_MAX_WIDTH h=$smarty.const.OPENPNE_IMG_KTAI_MAX_HEIGHT f=jpg})">大</a>]<br>({/if})
({if $c_commu_topic.image_filename2})[i:68]写真：[<a href="({t_img_url filename=$c_commu_topic.image_filename2 w=120 h=120 f=jpg})">小</a>/<a href="({t_img_url filename=$c_commu_topic.image_filename2 w=$smarty.const.OPENPNE_IMG_KTAI_MAX_WIDTH h=$smarty.const.OPENPNE_IMG_KTAI_MAX_HEIGHT f=jpg})">大</a>]<br>({/if})
({if $c_commu_topic.image_filename3})[i:68]写真：[<a href="({t_img_url filename=$c_commu_topic.image_filename3 w=120 h=120 f=jpg})">小</a>/<a href="({t_img_url filename=$c_commu_topic.image_filename3 w=$smarty.const.OPENPNE_IMG_KTAI_MAX_WIDTH h=$smarty.const.OPENPNE_IMG_KTAI_MAX_HEIGHT f=jpg})">大</a>]<br>({/if})
({if $c_commu_topic.filename && $smarty.const.OPENPNE_USE_FILEUPLOAD})ﾌｧｲﾙ名：({$c_commu_topic.original_filename})<br>({/if})
<br>

({else})
このｲﾍﾞﾝﾄを({$WORD_MY_FRIEND_HALF})に教えよう!<br>
<font color="#({$ktai_color_config.font_07})">⇒</font><a href="({t_url m=ktai a=page_c_event_invite})&amp;target_c_commu_topic_id=({$c_commu_topic.c_commu_topic_id})&amp;({$tail})">このｲﾍﾞﾝﾄを友人に教える</a>

<hr color="#({$ktai_color_config.border_01})">
({if !$is_event_join_date})
<font color="#({$ktai_color_config.font_09})">募集期間が終了したので、このｲﾍﾞﾝﾄには参加できません。</font><br>
({elseif !$is_event_join_capacity})
<font color="#({$ktai_color_config.font_09})">募集人数に達したので、このｲﾍﾞﾝﾄには参加できません。</font><br>
({/if})
<a href="#({if $c_commu_topic_comment_list})tc1({else})write({/if})"><font color="#({$ktai_color_config.font_08})">▼</font></a><br>
企画者：<br>
<a href="({t_url m=ktai a=page_f_home})&amp;target_c_member_id=({$c_commu_topic.c_member_id})&amp;({$tail})">({$c_commu_topic.nickname|default:"&nbsp;"})</a> <br>
<br>
開催日時：<br>
({$c_commu_topic.open_date|date_format:"%Y年%m月%d日"})({if $c_commu_topic.open_date_comment})<br>({$c_commu_topic.open_date_comment})({/if})<br>
<br>
開催場所：<br>
({$c_commu_topic.pref})({if $c_commu_topic.open_pref_comment})<br>({$c_commu_topic.open_pref_comment})({/if})<br>
<br>
募集人数：<br>
({if $c_commu_topic.capacity})
({$c_commu_topic.capacity})人
({else})
無制限
({/if})
<br>
<br>
参加者：<br>
({$c_commu_topic.member_num})人<br>
({if $c_commu_topic.member_num})
<a href="({t_url m=ktai a=page_c_event_member_list})&amp;target_c_commu_topic_id=({$c_commu_topic.c_commu_topic_id})&amp;({$tail})">参加者ﾘｽﾄを見る</a><br>
({/if})
<br>
({if $c_commu_topic.invite_period != '0000-00-00'})
募集期限：<br>
({$c_commu_topic.invite_period|date_format:"%Y年%m月%d日"})<br>
<br>
({/if})
詳細：<br>
({$c_commu_topic.body|t_url2a_ktai|nl2br})<br>
({if $c_commu_topic.image_filename1})[i:68]写真：[<a href="({t_img_url filename=$c_commu_topic.image_filename1 w=120 h=120 f=jpg})">小</a>/<a href="({t_img_url filename=$c_commu_topic.image_filename1 w=$smarty.const.OPENPNE_IMG_KTAI_MAX_WIDTH h=$smarty.const.OPENPNE_IMG_KTAI_MAX_HEIGHT f=jpg})">大</a>]<br>({/if})
({if $c_commu_topic.image_filename2})[i:68]写真：[<a href="({t_img_url filename=$c_commu_topic.image_filename2 w=120 h=120 f=jpg})">小</a>/<a href="({t_img_url filename=$c_commu_topic.image_filename2 w=$smarty.const.OPENPNE_IMG_KTAI_MAX_WIDTH h=$smarty.const.OPENPNE_IMG_KTAI_MAX_HEIGHT f=jpg})">大</a>]<br>({/if})
({if $c_commu_topic.image_filename3})[i:68]写真：[<a href="({t_img_url filename=$c_commu_topic.image_filename3 w=120 h=120 f=jpg})">小</a>/<a href="({t_img_url filename=$c_commu_topic.image_filename3 w=$smarty.const.OPENPNE_IMG_KTAI_MAX_WIDTH h=$smarty.const.OPENPNE_IMG_KTAI_MAX_HEIGHT f=jpg})">大</a>]<br>({/if})
({if $c_commu_topic.filename && $smarty.const.OPENPNE_USE_FILEUPLOAD})ﾌｧｲﾙ名：({$c_commu_topic.original_filename})<br>({/if})
({$c_commu_topic.r_datetime|date_format:"%m/%d %H:%M"})<br>

({if $is_c_event_admin || $is_admin})
<br>
一括ﾒｯｾｰｼﾞ：<br>
参加者に一括でﾒｯｾｰｼﾞを送ります。<br>
<a href="({t_url m=ktai a=page_c_event_mail})&amp;target_c_commu_topic_id=({$c_commu_topic.c_commu_topic_id})&amp;({$tail})">一括ﾒｯｾｰｼﾞを送る</a><br>
({/if})

({if $c_commu.c_member_id_admin==$u || ( $is_c_event_admin && $c_commu.is_topic !== 'admin_only')})
({if $is_c_commu_member || $c_commu.is_topic == 'public'})
<br>
ｲﾍﾞﾝﾄ編集：<br>
<a href="({t_url m=ktai a=page_c_event_edit})&amp;target_c_commu_topic_id=({$c_commu_topic_id})&amp;({$tail})">ｲﾍﾞﾝﾄ編集画面を見る</a><br>
({/if})
({/if})
({/if})

({if $is_c_commu_view})
({if $c_commu_topic_comment_list})
<hr color="#({$ktai_color_config.border_01})">
<center>
ｺﾒﾝﾄ(全({$pager.total_num})件)<br>
({$pager.start_num})番～({$pager.end_num})番を表示
</center>

<hr color="#({$ktai_color_config.border_02})">
<table width="100%">
({foreach from=$c_commu_topic_comment_list name=c_commu_topic_comment item=item})
<tr><td bgcolor="#({cycle values="`$ktai_color_config.bg_06`,`$ktai_color_config.bg_07`"})">
<a name="tc({$smarty.foreach.c_commu_topic_comment.iteration})" href="#({if $smarty.foreach.c_commu_topic_comment.last || $item.number == 0})({if $is_prev || $is_next})pager({else})write({/if})({else})tc({$smarty.foreach.c_commu_topic_comment.iteration+1})({/if})">
<font color="#({$ktai_color_config.font_08})">▼</font>
</a><font color="#({$ktai_color_config.font_06})">[({$item.number|string_format:"%03d"})]</font>({$item.r_datetime|date_format:"%m/%d %H:%M"})
<br>
({if $item.nickname})<a href="({t_url m=ktai a=page_f_home})&amp;target_c_member_id=({$item.c_member_id})&amp;({$tail})">({$item.nickname})</a>({/if})
({if $item.c_member_id == $u || $target_diary_writer==$u || $is_admin})[<a href="({t_url m=ktai a=page_c_bbs_delete_c_commu_topic_comment_confirm})&amp;c_commu_topic_comment_id=({$item.c_commu_topic_comment_id})&amp;target_c_commu_topic_id=({$c_commu_topic_id})&amp;({$tail})">削除</a>]({/if})
({if $smarty.const.USE_RESPONSE_COMMENT && $is_writable_comment})[<a href="({t_url m=ktai a=page_c_bbs})&amp;target_c_commu_topic_id=({$c_commu_topic_id})&amp;target_response_comment_id=({$item.c_commu_topic_comment_id})&amp;({$tail})">返信</a>]({/if})
<br>
({$item.body|t_url2a_ktai|nl2br})<br>
({if $item.image_filename1})[i:68]写真：[<a href="({t_img_url filename=$item.image_filename1 w=120 h=120 f=jpg})">小</a>/<a href="({t_img_url filename=$item.image_filename1 w=$smarty.const.OPENPNE_IMG_KTAI_MAX_WIDTH h=$smarty.const.OPENPNE_IMG_KTAI_MAX_HEIGHT f=jpg})">大</a>]<br>({/if})
({if $item.image_filename2})[i:68]写真：[<a href="({t_img_url filename=$item.image_filename2 w=120 h=120 f=jpg})">小</a>/<a href="({t_img_url filename=$item.image_filename2 w=$smarty.const.OPENPNE_IMG_KTAI_MAX_WIDTH h=$smarty.const.OPENPNE_IMG_KTAI_MAX_HEIGHT f=jpg})">大</a>]<br>({/if})
({if $item.image_filename3})[i:68]写真：[<a href="({t_img_url filename=$item.image_filename3 w=120 h=120 f=jpg})">小</a>/<a href="({t_img_url filename=$item.image_filename3 w=$smarty.const.OPENPNE_IMG_KTAI_MAX_WIDTH h=$smarty.const.OPENPNE_IMG_KTAI_MAX_HEIGHT f=jpg})">大</a>]<br>({/if})
({if $item.filename && $smarty.const.OPENPNE_USE_FILEUPLOAD})ﾌｧｲﾙ名：({$item.original_filename})<br>({/if})
</td></tr>
<tr><td bgcolor="#({$ktai_color_config.bg_07})">
<hr color="#({$ktai_color_config.border_02})">
</td></tr>
({/foreach})
</table>
({if $pager.page_prev || $pager.page_next})
<center>
<a name="pager"></a>
({if $pager.page_prev})<a href="({t_url m=ktai a=page_c_bbs})&amp;target_c_commu_topic_id=({$c_commu_topic_id})({if $requests.order == 'asc'})&amp;order=asc({/if})&amp;page=({$pager.page_prev})&amp;({$tail})" accesskey="4">[i:128]前を表示</a>({/if})
({if $pager.page_prev && $pager.page_next})&nbsp;({/if})
({if $pager.page_next})<a href="({t_url m=ktai a=page_c_bbs})&amp;target_c_commu_topic_id=({$c_commu_topic_id})({if $requests.order == 'asc'})&amp;order=asc({/if})&amp;page=({$pager.page_next})&amp;({$tail})" accesskey="6">[i:130]次を表示</a>({/if})
<br>
({if $pager.total_page_num > 1})
({if $requests.order == 'asc'})
<a href="({t_url m=ktai a=page_c_bbs})&amp;target_c_commu_topic_id=({$c_commu_topic_id})&amp;({$tail})">最新を表示</a>
({else})
<a href="({t_url m=ktai a=page_c_bbs})&amp;target_c_commu_topic_id=({$c_commu_topic_id})&amp;order=asc&amp;({$tail})">最初から表示</a>
({/if})
({/if})
</center>
({/if})
({/if})

({if $is_c_commu_member || $c_commu.is_comment == 'public'})
<hr color="#({$ktai_color_config.border_01})">
<a name="write"></a>
({if $msg})
<a name="comment"><font color="#({$ktai_color_config.font_09})">({$msg})</font></a><br>
<br>
({/if})

({if $is_writable_comment})
({t_form m=ktai a=do_c_bbs_insert_c_commu_topic_comment})
<input type="hidden" name="ksid" value="({$PHPSESSID})">
<input type="hidden" name="target_c_commu_topic_id" value="({$c_commu_topic_id})">
<a name="menu"><font color="#({$ktai_color_config.font_06})">ｺﾒﾝﾄ：</font></a><br>
<textarea name="body" rows="3">({$response_comment_format})</textarea><br>
({if $c_commu_topic.event_flag})
({if $is_event_join_date})
({if !$is_c_event_member})

({if !$c_commu_topic.capacity || ($c_commu_topic.capacity > $c_commu_topic.member_num)})
<input name="join_event" type="submit" value="ｲﾍﾞﾝﾄに参加する"><br>
({/if})

({else})
<input name="cancel_event" type="submit" value="参加をｷｬﾝｾﾙする"><br>
({/if})
({/if})
<input name="write_comment" type="submit" value="ｺﾒﾝﾄのみ書き込む">
({else})
<input type="submit" value="書き込む">
({/if})
</form>
<br>
[i:110]<a href="mailto:({$mail_address})">ﾒｰﾙ投稿</a><br>
写真も添付できます。<br>
<font color="#({$ktai_color_config.font_09})">※ﾒｰﾙ投稿では絵文字が反映されません</font>
({else})
({if $c_commu_topic.event_flag})
ｺﾒﾝﾄが1000番に達したので、このｲﾍﾞﾝﾄにはｺﾒﾝﾄできません。
<hr color="#({$ktai_color_config.border_01})">
({if !$is_c_event_member})
({if !$c_commu_topic.capacity || ($c_commu_topic.capacity > $c_commu_topic.member_num)})
<center>
このｲﾍﾞﾝﾄに参加しますか？<br>
({t_form m=ktai a=do_c_event_join_c_commu_event})
<input type="hidden" name="ksid" value="({$PHPSESSID})">
<input type="hidden" name="target_c_commu_topic_id" value="({$c_commu_topic_id})">
<input type="submit" value="ｲﾍﾞﾝﾄに参加する"><br>
</form>
</center>
({/if})
({else})
<center>
このｲﾍﾞﾝﾄの参加をｷｬﾝｾﾙしますか？<br>
({t_form m=ktai a=do_c_event_drop_c_commu_event})
<input type="hidden" name="ksid" value="({$PHPSESSID})">
<input type="hidden" name="target_c_commu_topic_id" value="({$c_commu_topic_id})">
<input type="submit" value="参加をｷｬﾝｾﾙする"><br>
</form>
</center>
({/if})
({else})
ｺﾒﾝﾄが1000番に達したので、このﾄﾋﾟｯｸにはｺﾒﾝﾄできません。
({/if})
({/if})
({/if})
({/if})
<hr color="#({$ktai_color_config.border_01})">
({if $c_commu_topic.event_flag != 1})
[i:90]<a href="({t_url m=ktai a=page_c_topic_list})&amp;target_c_commu_id=({$c_commu.c_commu_id})&amp;({$tail})">ﾄﾋﾟｯｸﾘｽﾄ</a><br>
({else})
[i:90]<a href="({t_url m=ktai a=page_c_event_list})&amp;target_c_commu_id=({$c_commu.c_commu_id})&amp;({$tail})">ｲﾍﾞﾝﾄﾘｽﾄ</a><br>
({/if})
[i:90]<a href="({t_url m=ktai a=page_c_home})&amp;target_c_commu_id=({$c_commu.c_commu_id})&amp;({$tail})">({$WORD_COMMUNITY_HALF})ﾄｯﾌﾟ</a><br>

({$inc_ktai_footer|smarty:nodefaults})
