{include file='mobiles/header.html'}

<!--{if $freo.query.action}-->
▲<a href="{$freo.core.http_file}/view/{if $entry.code}{$entry.code}{else}{$entry.id}{/if}">ｴﾝﾄﾘｰに戻る</a>
<!--{else}-->
▲<a href="{$freo.core.http_file}">戻る</a>
<!--{/if}-->

<!--{if !$freo.query.action}-->
<br />
<div style="text-align:center;background-color:#666666;"><span style="color:#FFFFFF;">エントリー表示</span></div>

■{$entry.title}

<!--{if $entry.restriction == 'user' and !$entry_security}-->
<div style="color:#FF0000;">このｴﾝﾄﾘｰは、登録ﾕｰｻﾞｰのみに公開されています。</div>
<!--{elseif $entry.restriction == 'group' and !$entry_security}-->
<div style="color:#FF0000;">このｴﾝﾄﾘｰは、一部のｸﾞﾙｰﾌﾟのみに公開されています。</div>
<!--{elseif $entry.restriction == 'password' and !$entry_security}-->
<div style="color:#FF0000;">このｴﾝﾄﾘｰは、ﾊﾟｽﾜｰﾄﾞで認証した人のみに公開されています。</div>
<!--{/if}-->

<!--{if $entry.file and $entry.image}-->
<p><a href="{$freo.core.http_file}/file/view/{if $entry.code}{$entry.code}{else}{$entry.id}{/if}"><img src="{$freo.core.http_file}/file/view/{if $entry.code}{$entry.code}{else}{$entry.id}{/if}?type=image" alt="{$entry.memo|default:$entry.file}" title="{$entry.memo|default:$entry.file}" /></a></p>
<!--{elseif $entry_thumbnail}-->
<p><a href="{$freo.core.http_file}/file/view/{if $entry.code}{$entry.code}{else}{$entry.id}{/if}"><img src="{$freo.core.http_file}/file/view/{if $entry.code}{$entry.code}{else}{$entry.id}{/if}?type=thumbnail" alt="{$entry.memo|default:$entry.file}" title="{$entry.memo|default:$entry.file}" /></a></p>
<!--{elseif $entry.file and $entry_file.width and $entry_file.height}-->
<p><img src="{$freo.core.http_file}/file/view/{if $entry.code}{$entry.code}{else}{$entry.id}{/if}" alt="{$entry.memo|default:$entry.file}" title="{$entry.memo|default:$entry.file}" /></p>
<!--{elseif $entry.file}-->
<p><a href="{$freo.core.http_file}/file/view/{if $entry.code}{$entry.code}{else}{$entry.id}{/if}">{$entry.memo|default:$entry.file}</a></p>
<!--{/if}-->

<!--{if $entry_text.excerpt}-->
<!--{if $freo.query.continue}-->
<p><a href="{$freo.core.http_file}/view/{if $entry.code}{$entry.code}{else}{$entry.id}{/if}">記事の前半を読む</a></p>
<!--{else}-->
{$entry_text.excerpt|smarty:nodefaults}
<!--{/if}-->
<!--{/if}-->
<!--{if $entry_text.more}-->
<!--{if $freo.query.continue}-->
{$entry_text.more|smarty:nodefaults}
<!--{else}-->
<p><a href="{$freo.core.http_file}/view/{if $entry.code}{$entry.code}{else}{$entry.id}{/if}?continue=1">続きを読む</a></p>
<!--{/if}-->
<!--{/if}-->

<!--{if $entry.restriction == 'password' and !$smarty.session.security.entry[$entry.id] and $freo.user.authority != 'root' and $freo.user.authority != 'author'}-->
<br />
<form action="{$freo.core.http_file}/view/{if $entry.code}{$entry.code}{else}{$entry.id}{/if}" method="{$freo.agent.method}">
<input type="hidden" name="freo[method]" value="post" />
ﾊﾟｽﾜｰﾄﾞ<br />
<input type="text" name="entry[password]" size="20" value=""{if $freo.agent.career == 'docomo'} style="-wap-input-format:&quot;*&lt;ja:n&gt;&quot;;"{else} istyle="4" format="*N" mode="numeric"{/if} /><br />
<br />
<div style="text-align:center;">
<input type="submit" value="認証する" />
</div>
</form>
<!--{/if}-->

日時:{$entry.datetime|date_format:'%Y/%m/%d %H:%M'}<br />
<!--{if $entry_associate.category}-->
ｶﾃｺﾞﾘｰ:<!--{foreach from=$entry_associate.category|smarty:nodefaults key='entry_category' item='entry_category' name='loop'}--><a href="{$freo.core.http_file}/category/{$entry_category}">{$freo.refer.categories[$entry_category].name}</a><!--{if !$smarty.foreach.loop.last}-->,&nbsp;<!--{/if}--><!--{/foreach}--><br />
<!--{/if}-->
<!--{if $entry_tags}-->
ﾀｸﾞ:<!--{foreach from=$entry_tags|smarty:nodefaults item='entry_tag' name='loop'}--><a href="{$freo.core.http_file}/entry?tag={$entry_tag|smarty:nodefaults|escape:'url'}">{$entry_tag}</a><!--{if !$smarty.foreach.loop.last}-->,&nbsp;<!--{/if}--><!--{/foreach}--><br />
<!--{/if}-->

<!--{if $entry_associate.option}-->
<!--{foreach from=$freo.refer.options|smarty:nodefaults item='option'}-->
<!--{if $entry_associate.option[$option.id] != ''}-->
{$option.name}:<!--{if $option.type == 'file'}--><a href="{$freo.core.http_url}{$smarty.const.FREO_FILE_DIR}entry_options/{$entry.id}/{$option.id}/{$entry_associate.option[$option.id]}">{$entry_associate.option[$option.id]}</a><!--{else}-->{$entry_associate.option[$option.id]|nl2br}<!--{/if}--><br />
<!--{/if}-->
<!--{/foreach}-->
<!--{/if}-->

<!--{if $entry.comment != 'closed'}-->
<br />
▼<a href="{$freo.core.http_file}/view/{if $entry.code}{$entry.code}{else}{$entry.id}{/if}?action=comment">ｺﾒﾝﾄ({$comments|smarty:nodefaults|@count})</a><br />
<!--{if $entry.comment != 'view'}-->▼<a href="{$freo.core.http_file}/view/{if $entry.code}{$entry.code}{else}{$entry.id}{/if}?action=comment_form">ｺﾒﾝﾄ登録</a><br /><!--{/if}-->
<!--{/if}-->
<!--{if $entry.trackback != 'closed'}-->
<br />
▼<a href="{$freo.core.http_file}/view/{if $entry.code}{$entry.code}{else}{$entry.id}{/if}?action=trackback">ﾄﾗｯｸﾊﾞｯｸ({$trackbacks|smarty:nodefaults|@count})</a><br />
<!--{if $entry.trackback != 'view'}-->▼<a href="{$freo.core.http_file}/view/{if $entry.code}{$entry.code}{else}{$entry.id}{/if}?action=trackback_url">ﾄﾗｯｸﾊﾞｯｸ送信</a><br /><!--{/if}-->
<!--{/if}-->
<!--{if $freo.user.authority == 'root' or $freo.user.authority == 'author'}-->
<br />
▼<a href="{$freo.core.http_file}/admin/entry_form?id={$entry.id}">編集</a><br />
<!--{/if}-->

<br />
<!--{if $plugin_entry_link_previous}--><a href="{$freo.core.http_file}/view/{if $plugin_entry_link_previous.code}{$plugin_entry_link_previous.code}{else}{$plugin_entry_link_previous.id}{/if}">{$plugin_entry_link_previous.title}</a><!--{/if}-->
| <a href="{$freo.core.http_file}/entry">記事一覧</a> |
<!--{if $plugin_entry_link_next}--><a href="{$freo.core.http_file}/view/{if $plugin_entry_link_next.code}{$plugin_entry_link_next.code}{else}{$plugin_entry_link_next.id}{/if}">{$plugin_entry_link_next.title}</a><!--{/if}-->
<br />

<!--{/if}-->

<!--{if $entry.trackback != 'closed' and $freo.query.action == 'trackback'}-->
<br />
<div style="text-align:center;background-color:#666666;"><span style="color:#FFFFFF;">トラックバック</span></div>
<!--{foreach from=$trackbacks|smarty:nodefaults item='trackback'}-->
■<!--{if $trackback.approved == 'no' and $trackback_securities[$trackback.id]}-->{$trackback.name}<!--{else}--><a href="{$trackback.url}">{$trackback.title}</a> from {$trackback.name}<!--{/if}--><br />
<!--{if $trackback.approved == 'no' and !$trackback_securities[$trackback.id]}-->
<div style="color:#FF0000;">このﾄﾗｯｸﾊﾞｯｸは、管理者の承認待ちです。</div>
<!--{/if}-->
{$trackback.text|nl2br|autolink}<br />
<!--{if $freo.user.authority == 'root' or $freo.user.authority == 'author'}-->
<a href="{$freo.core.http_file}/admin/trackback_form?id={$trackback.id}">編集</a><br />
<!--{/if}-->
<br />
<!--{foreachelse}-->
ﾄﾗｯｸﾊﾞｯｸはまだありません。<br />
<!--{/foreach}-->
<!--{/if}-->

<!--{if $entry.trackback != 'view' and $freo.query.action == 'trackback_url'}-->
<br />
<div style="text-align:center;background-color:#666666;"><span style="color:#FFFFFF;">トラックバックURL</span></div>

<br />
<form action="{$freo.core.http_file}" method="get">
<input type="text" name="name" size="20" value="{$freo.core.http_file}/trackback/{$entry.id}"{if $freo.agent.career == 'docomo'} style="-wap-input-format:&quot;*&lt;ja:en&gt;&quot;;"{else} istyle="3" format="*m" mode="alphabet"{/if} />
</form>
<!--{/if}-->

<!--{if $entry.comment != 'closed' and $freo.query.action == 'comment'}-->
<br />
<div style="text-align:center;background-color:#666666;"><span style="color:#FFFFFF;">コメント</span></div>

<!--{foreach from=$comments|smarty:nodefaults item='comment'}-->
■<!--{if $comment.user_id}-->{$freo.refer.users[$comment.user_id].name}<!--{else}-->{$comment.name}<!--{/if}--><br />
<!--{if $comment.approved == 'no' and !$comment_securities[$comment.id]}-->
<div style="color:#FF0000;">このｺﾒﾝﾄは、管理者の承認待ちです。</div>
<!--{elseif $comment.restriction == 'user' and !$comment_securities[$comment.id]}-->
<div style="color:#FF0000;">このｺﾒﾝﾄは、登録ﾕｰｻﾞｰのみに公開されています。</div>
<!--{elseif $comment.restriction == 'admin' and !$comment_securities[$comment.id]}-->
<div style="color:#FF0000;">このｺﾒﾝﾄは、管理者のみに公開されています。</div>
<!--{/if}-->
{$comment.text|nl2br|autolink}<br />
<!--{if $comment.mail}-->
Mail:<a href="mailto:{$comment.mail}">{$comment.mail}</a><br />
<!--{/if}-->
<!--{if $comment.url}-->
Url:<a href="{$comment.url}">{$comment.url}</a><br />
<!--{/if}-->
<!--{if $freo.user.authority == 'root' or $freo.user.authority == 'author'}-->
▼<a href="{$freo.core.http_file}/admin/comment_form?id={$comment.id}">編集</a><br />
<!--{elseif $freo.user.authority == 'guest' and $freo.user.id == $comment.user_id}-->
▼<a href="{$freo.core.http_file}/user/comment_form?id={$comment.id}">編集</a><br />
<!--{/if}-->
<br />
<!--{foreachelse}-->
ｺﾒﾝﾄはまだありません。<br />
<!--{/foreach}-->
<!--{/if}-->

<!--{if $entry.comment != 'view' and $freo.query.action == 'comment_form'}-->
<br />
<div style="text-align:center;background-color:#666666;"><span style="color:#FFFFFF;">コメント登録</span></div>

<!--{if $entry.comment == 'open' or $entry.comment == 'user' and $freo.user.id}-->
<!--{if $freo.query.error}-->
<div style="color:#FF0000;">不正なｱｸｾｽです。</div>
<!--{elseif $errors}-->
<div style="color:#FF0000;">
<!--{foreach from=$errors|smarty:nodefaults item='error'}-->
{$error}<br />
<!--{/foreach}-->
</div>
<!--{elseif $freo.query.exec == 'insert'}-->
<div style="color:#FF0000;">ｺﾒﾝﾄを登録しました。</div>
<!--{/if}-->
ｺﾒﾝﾄを入力してください。<br />
<!--{if $entry.comment == 'user'}-->ｺﾒﾝﾄは登録ﾕｰｻﾞｰからのみ受け付けています。<br /><!--{/if}-->

<br />
<form action="{$freo.core.http_file}/view/{if $entry.code}{$entry.code}{else}{$entry.id}{/if}?action=comment_form" method="{$freo.agent.method}">
<input type="hidden" name="freo[token]" value="{$token}" />
<input type="hidden" name="freo[method]" value="post" />
<input type="hidden" name="comment[entry_id]" value="{$entry.id}" />
<!--{if !$freo.user.id}-->
名前<br />
<input type="text" name="comment[name]" size="20" value="{$input.comment.name}" /><br />
ﾒｰﾙｱﾄﾞﾚｽ<br />
<input type="text" name="comment[mail]" size="20" value="{$input.comment.mail}"{if $freo.agent.career == 'docomo'} style="-wap-input-format:&quot;*&lt;ja:en&gt;&quot;;"{else} istyle="3" format="*m" mode="alphabet"{/if} /><br />
URL<br />
<input type="text" name="comment[url]" size="20" value="{$input.comment.url}"{if $freo.agent.career == 'docomo'} style="-wap-input-format:&quot;*&lt;ja:en&gt;&quot;;"{else} istyle="3" format="*m" mode="alphabet"{/if} /><br />
<!--{/if}-->
ｺﾒﾝﾄ<br />
<textarea name="comment[text]" cols="20" rows="5">{$input.comment.text}</textarea><br />
閲覧制限<br />
<select name="comment[restriction]">
<option value="">▼全体に公開</option>
<!--{if $freo.user.id}--><option value="user"{if $input.comment.restriction == 'user'} selected="selected"{/if}>▼登録ﾕｰｻﾞｰに公開</option><!--{/if}-->
<option value="admin"{if $input.comment.restriction == 'admin'} selected="selected"{/if}>▼管理者に公開</option>
</select><br />
<!--{if !$freo.user.id}-->
<br />
<input type="checkbox" name="comment[session]" id="label_session" value="keep"{if $input.comment.session} checked="checked"{/if} />登録者情報を記憶する<br />
<!--{/if}-->
<br />
<div style="text-align:center;">
<input type="submit" name="preview" value="確認する" />
<input type="submit" value="登録する" />
</div>
</form>
<!--{elseif $entry.comment == 'user' and !$freo.user.id}-->
ｺﾒﾝﾄを登録するには<a href="{$freo.core.https_file}/login">ﾛｸﾞｲﾝ</a>してください。
<!--{/if}-->
<!--{/if}-->

{include file='mobiles/footer.html'}
