({***** Add Start (いいね！) *****})
({foreach from=$good_constant key=good_type item=good_const})
({if $type == "h" && $good_count_all[$good_type] == 0})
    ({*** 自分の日記で、いいね！無しの場合は何も表示しない ***})
({elseif $type == "h"})
    ({*** 自分の日記でいいね！有り ***})
    【({$good_const.ktai_name})】
    ({if $good_count_all[$good_type]})
[<a href="({t_url m=ktai a=page_fh_good_user_list})&amp;target_c_diary_id=({$target_c_diary.c_diary_id})&amp;good_type=({$good_type})&amp;({$tail})">({$good_count_all[$good_type]})件</a>]
&nbsp;
    ({/if})
({capture name="good_hr"})
    <hr>
({/capture})
({else})
    ({*** 他人の日記 ***})
    ({if $good_exists_all[$good_type]})
        ({*** いいね！済み ***})
        ({t_form _m=ktai a=do_fh_good_delete})
        <input type="hidden" name="ksid" value="({$PHPSESSID})">
        <input type="hidden" name="target_c_diary_id" value="({$target_c_diary.c_diary_id})">
        <input type="hidden" name="good_type" value="({$good_type})">
        <input type="submit" value="【({$good_const.ktai_name})済】">
    ({else})
        ({t_form _m=ktai a=do_fh_good_add})
        <input type="hidden" name="ksid" value="({$PHPSESSID})">
        <input type="hidden" name="target_c_diary_id" value="({$target_c_diary.c_diary_id})">
        <input type="hidden" name="good_type" value="({$good_type})">
        <input type="submit" value="【({$good_const.ktai_name})】">
    ({/if})
    ({if $good_count_all[$good_type]})
&nbsp;[<a href="({t_url m=ktai a=page_fh_good_user_list})&amp;target_c_diary_id=({$target_c_diary.c_diary_id})&amp;good_type=({$good_type})&amp;({$tail})">({$good_count_all[$good_type]})件</a>]
    ({/if})
    </form>
({capture name="good_hr"})
    <hr>
({/capture})
({/if})
({/foreach})
({if $smarty.capture.good_hr ne ""})
({$smarty.capture.good_hr|smarty:nodefaults})
({/if})
({***** Add End (いいね！) *****})
