({$inc_ktai_header|smarty:nodefaults})
<font size="1">
<table border="0" width="100%">
  <tr>
    <td align="center" bgcolor="#E7E7E7"><font color="#0000FF" size="1">({$target_diary_writer.nickname|t_body:'title'})さんの日記</font>
    </td>
  </tr>
</table>

({if $c_siteadmin})
({$c_siteadmin|smarty:nodefaults})
({/if})
({$target_c_diary.r_datetime|date_format:"%y/%m/%d %H:%M"})<br>
({$target_c_diary.subject|t_body:'title'})
<div align="right">
({if $type == "h"})
  ({strip})
  ({if $target_c_diary.public_flag == "public"})
    <font color="blue">全員に公開</font>
  ({elseif $target_c_diary.public_flag == "friend"})
    <font color="red">({$WORD_MY_FRIEND_HALF})まで公開</font>
  ({elseif $target_c_diary.public_flag == "private"})
    <font color="red">公開しない</font>
  ({/if})
  ({/strip})
({/if})
({if $type !== "h"})
  ({strip})
  ({if $target_c_diary.public_flag == "public"})
    <font color="blue">全員に公開</font>
  ({elseif $target_c_diary.public_flag == "friend"})
    <font color="red">({$WORD_MY_FRIEND_HALF})まで公開</font>
  ({/if})
  ({/strip})
({/if})<br>
<font color="blue">(閲覧:({$target_c_diary.etsuran_count})件)</font></div>
<br>
({$target_c_diary.body|t_body:'kdiary'|t_cmdkmaps|t_geocodekmaps})<br>
<br>
({if $target_c_diary.image_filename_1})
<img src="({t_img_url filename=$target_c_diary.image_filename_1 w=76 h=76 f=jpg noimg=no_image_small})">
<br><a href="({t_img_url filename=$target_c_diary.image_filename_1 f=jpg})">大</a>]<br>
({/if})
({if $target_c_diary.image_filename_2})
画像2を見る:[<a href="({t_img_url filename=$target_c_diary.image_filename_2 w=120 h=120 f=jpg})">小</a>/<a href="({t_img_url filename=$target_c_diary.image_filename_2 f=jpg})">大</a>]<br>
({/if})
({if $target_c_diary.image_filename_3})
画像3を見る:[<a href="({t_img_url filename=$target_c_diary.image_filename_3 w=120 h=120 f=jpg})">小</a>/<a href="({t_img_url filename=$target_c_diary.image_filename_3 f=jpg})">大</a>]<br>
({/if})
({if $target_diary_writer.c_member_id==$u})
[<a href="({t_url m=ktai a=page_h_diary_edit})&amp;target_c_diary_id=({$target_c_diary.c_diary_id})&amp;({$tail})">日記を編集</a>]<br>
[<a href="({t_url m=ktai a=page_fh_diary_delete_c_diary_confirm})&amp;target_c_diary_id=({$target_c_diary.c_diary_id})&amp;({$tail})">日記を削除</a>]<br>
({/if})
<hr>
<a name="comment"></a>
■ｺﾒﾝﾄを書く
({t_form m=ktai a=do_fh_diary_insert_c_diary_comment})
<input type="hidden" name="ksid" value="({$PHPSESSID})">
<input type="hidden" name="target_c_diary_id" value="({$target_c_diary.c_diary_id})">
<font color=red>({if $msg})({$msg})<br>({/if})</font>
<textarea name="body"></textarea><br>
<input type="submit" value="書き込む">
</form><br>
<a href="mailto:({$mail_address})">メール投稿</a><br>
(画像も添付できます)
<hr>
■ｺﾒﾝﾄ<br>
({if $c_diary_comment})
({counter name="aa" start=0 print=0})({counter name="bb" start=1 print=0})
全({$total_num})件中、({$pager.start})～({$pager.end})件目を表示しています<br>
<hr>
({foreach from=$c_diary_comment item=c_diary_comment_})
  <a name="({counter name="aa"})"></a>
  <a href="#({counter name="bb"})">▼</a>
  ({$c_diary_comment_.r_datetime|date_format:"%m/%d %H:%M"})<br>
  ({if $c_diary_comment_.nickname})
  <a href="({t_url m=ktai a=page_f_home})&amp;target_c_member_id=({$c_diary_comment_.c_member_id})&amp;({$tail})">({$c_diary_comment_.nickname|t_body:'name'})</a>({/if}) ({if $c_diary_comment_.c_member_id == $u || $target_diary_writer.c_member_id==$u})
  [<a href="({t_url m=ktai a=page_fh_diary_delete_c_diary_comment_confirm})&amp;target_c_diary_comment_id=({$c_diary_comment_.c_diary_comment_id})&amp;({$tail})&amp;target_c_diary_id=({$target_c_diary.c_diary_id})">削除</a>]
  ({/if})<br>
  ({$c_diary_comment_.body|t_body:'kdiary'|default:"&nbsp;"|t_cmdkmaps|t_geocodekmaps})
  <br>
  ({if $c_diary_comment_.image_filename_1})
<img src="({t_img_url filename=$c_diary_comment_.image_filename_1 w=76 h=76 f=jpg noimg=no_image_small})">
<br><a href="({t_img_url filename=$c_diary_comment_.image_filename_1})">大</a>]<br>
({/if})
  ({if $c_diary_comment_.image_filename_2})
  画像2を見る:[<a href="({t_img_url filename=$c_diary_comment_.image_filename_2 w=120 h=120 f=jpg})">小</a>/<a href="({t_img_url filename=$c_diary_comment_.image_filename_2 f=jpg})">大</a>]<br>
  ({/if})
  ({if $c_diary_comment_.image_filename_3})
  画像3を見る:[<a href="({t_img_url filename=$c_diary_comment_.image_filename_3 w=120 h=120 f=jpg})">小</a>/<a href="({t_img_url filename=$c_diary_comment_.image_filename_3 f=jpg})">大</a>]<br>
  ({/if})
  <br>
({/foreach})

({if $is_prev || $is_next})
  ({if $is_prev})
    ({if $page_sort == 0})
      [<a href="({t_url m=ktai a=page_fh_diary})&amp;target_c_diary_id=({$target_c_diary.c_diary_id})&amp;page=({$page-1})&amp;page_size=({$page_size})&amp;({$tail})">前へ</a>]
    ({else})
      [<a href="({t_url m=ktai a=page_fh_diary})&amp;target_c_diary_id=({$target_c_diary.c_diary_id})&amp;page=({$page-1})&amp;page_size=({$page_size})&amp;({$tail})">前へ</a>]
    ({/if})
  ({/if})
  ({if $is_next})
    ({if $page_sort == 0})
    [<a href="({t_url m=ktai a=page_fh_diary})&amp;target_c_diary_id=({$target_c_diary.c_diary_id})&amp;page=({$page+1})&amp;page_size=({$page_size})&amp;({$tail})">次へ</a>]
    ({else})
      [<a href="({t_url m=ktai a=page_fh_diary})&amp;target_c_diary_id=({$target_c_diary.c_diary_id})&amp;page=({$page+1})&amp;page_size=({$page_size})&amp;({$tail})">次へ</a>]
    ({/if})
  ({/if})
({/if})
({/if})
<hr>
<div align="right">({t_form m=ktai a=page_fh_diary})
表示件数</font><select name="page_size">
<option value="3"({if $page_size == "3"}) selected ({/if})>3件</option>
<option value="5"({if $page_size == "5"}) selected ({/if})>5件</option>
<option value="7"({if $page_size == "7"}) selected ({/if})>7件</option>
<option value="10"({if $page_size == "10"}) selected ({/if})>10件</option>
</select><input type="submit" value="変更">
<input type="hidden" name="ksid" value="({$PHPSESSID})">
<input type="hidden" name="target_c_diary_id" value="({$target_c_diary.c_diary_id})">
</form>
</div>
<font size="1">
<div align="right"><a href="#comment">△コメント入力</a></div>
<hr>
<a href="({t_url m=ktai a=page_fh_diary_list})&amp;target_c_member_id=({$target_diary_writer.c_member_id})&amp;({$tail})">({$target_diary_writer.nickname|t_body:'name'})さんの日記ﾘｽﾄ</a><br>
</font>
({$inc_ktai_footer|smarty:nodefaults})
