<{strip}> <{* 携帯用詳細画面 *}> <{* @author T.Hashimoto,R.Fujiwara /@copyright 2009 AllCreator Co., Ltd. / @license NetCommons License *}>

<{$action.mdb_obj.multidatabase_name}>

<{$lang.mdb_details_title|smarty:nodefaults}>


<{if $action.detail.metadata == ""}>
<{$lang.mdb_noneexists_detail_metadata|smarty:nodefaults}> <{else}> <{assign var="mode" value="detail"}> <{assign var="data_pos_1" value=$action.detail.metadata.1}> <{assign var="data_pos_2" value=$action.detail.metadata.2}> <{assign var="data_pos_3" value=$action.detail.metadata.3}> <{assign var="data_pos_4" value=$action.detail.metadata.4}> <{assign var="item" value=$action.detail.value|smarty:nodefaults}> <{* 詳細部 *}>
<{if $action.detail.value.temporary_flag == $smarty.const._OFF && $action.detail.value.agree_flag == $smarty.const._OFF && $action.mdb_obj.new_period_time <= $action.detail.value.insert_time}> <{$lang._new|smarty:nodefaults}>  <{/if}> <{if $action.detail.value.temporary_flag != $smarty.const._OFF}> <{$lang._temporary_state|smarty:nodefaults}>  <{elseif $action.detail.value.agree_flag == $smarty.const._ON}> <{$lang.mdb_wait_agree|smarty:nodefaults}>  <{/if}>
<{include file="multidatabase_mobile_metadata.html"}>
<{if $smarty.session._smartphone_flag==_ON}> <{include file="multidatabase_mobile_detail_smart.html"}> <{else}> <{include file="multidatabase_mobile_detail_feature.html"}> <{/if}>
<{* PCだとdisplayのblock/noneで切り替えるが、携帯は簡略化のためblock(表示)オンリーにする *}> <{if $action.detail.value.comment_count > 0 && $action.mdb_obj.comment_flag == $smarty.const._ON}>

<{$lang.mdb_detail_comment|smarty:nodefaults}>

<{foreach item=comment from=$action.detail.value.comments}>

<{* style is for smartphone *}> <{$lang.mdb_detail_writer|smarty:nodefaults}><{$comment.insert_user_name}>     <{$comment.insert_time|timezone_date_format:$lang._date_format|smarty:nodefaults}>   <{$comment.insert_time|timezone_date_format:$lang._short_time_format|smarty:nodefaults}>
<{$comment.comment_content|nl2br}> <{if $comment.edit_auth}>
<{$lang._edit|smarty:nodefaults}> <{if ($smarty.session._smartphone_flag != _ON) }> <{$lang._separator|smarty:nodefaults}> <{/if}> <{$lang._delete|smarty:nodefaults}>
<{/if}>

<{/foreach}> <{/if}>
<{if $action.detail.value.temporary_flag == MULTIDATABASE_STATUS_RELEASED_VALUE && $smarty.session._auth_id >= $smarty.const._AUTH_GENERAL && $action.mdb_obj.comment_flag == $smarty.const._ON}>
<{$lang.mdb_comment_input|smarty:nodefaults}>
<{if $action.clear_comment == "1"}><{else}><{$action.comment_id}><{/if}><{/if}><{/foreach}>" > <{foreach item=comment from=$action.detail.value.comments}> <{if $action.comment_id != "" && $action.comment_id == $comment.comment_id}> <{if $action.clear_comment == "1"}> <{else}> <{/if}> <{/if}> <{/foreach}> <{$token_form|smarty:nodefaults}> <{$session_form|smarty:nodefaults}>
<{/if}> <{/if}>
<{if ($action.search == _ON) }> <{$lang._back_to_list}> <{else}> <{$lang._back_to_list}> <{/if}>
<{/strip}>