({***** Add Start (いいね！) *****})
({foreach from=$good_constant key=good_type item=good_const})
    ({if $type == "h" && $good_count_all[$good_type] == 0})
            ({*** 自分の日記で、いいね！無しの場合は何も表示しない ***})
    ({else})
({if $smarty.capture.good_div eq ""})
        <tr>
            <td class="bg_02" align="right" valign="middle" colspan="3">
<table border="0"><tr>
({/if})
            <td>
            <div style="padding:4px 3px;">

            ({if $type == "h"})
                ({*** 自分の日記 ***})
                ({t_form _method=get m=pc a=do_fh_good_delete})
                【({$good_const.name})】
            ({elseif $good_exists_all[$good_type]})
                ({*** いいね！済み ***})
                ({t_form _method=get m=pc a=do_fh_good_delete})
                <input type="hidden" name="sessid" value="({$PHPSESSID})">
                <input type="hidden" name="target_c_diary_id" value="({$target_diary.c_diary_id})">
                <input type="hidden" name="good_type" value="({$good_type})">
                <input type="submit" class="submit" value="【({$good_const.name})済】">
            ({else})
                ({t_form _method=get m=pc a=do_fh_good_add})
                <input type="hidden" name="sessid" value="({$PHPSESSID})">
                <input type="hidden" name="target_c_diary_id" value="({$target_diary.c_diary_id})">
                <input type="hidden" name="good_type" value="({$good_type})">
                <input type="submit" class="submit" value="【({$good_const.name})】">
            ({/if})

            ({if $good_count_all[$good_type]})
                &nbsp;&nbsp;<a href="({t_url m=pc a=page_fh_good_user_list})&amp;target_c_diary_id=({$target_diary.c_diary_id})&amp;good_type=({$good_type})">
                ［({$good_count_all[$good_type]})］件</a>&nbsp;
            ({/if})

            </form>
            </div>
            </td>
({capture name="good_div"})
</tr></table></td></tr>
({/capture})
    ({/if})
({/foreach})
({if $smarty.capture.good_div ne ""})
({$smarty.capture.good_div|smarty:nodefaults})
({/if})
({***** Add End (いいね！) *****})
