{if $gift_flag != 0}
<table class="mb10">
	<tr>
		<th colspan="5"><div class="center">▼ギフト情報詳細▼</div></th>
	</tr>
	{foreach $gift_list as $gift_item_id => $gift_items}
	{if !isset($gift_item_use.$gift_item_id) || empty($gift_item_use.$gift_item_id)}
	{continue}
	{/if}
	<tr>
		{foreach $gift_items as $gift}
		{if $gift_item_use.$gift_item_id != $gift.item_id}
		{continue}
		{/if}
		{if isset($gift_title_font_id[$gift.item_id]) || isset($gift_message_font_id[$gift.item_id])}
		<th class="right" colspan="2">ギフト資材名</th>
		<td colspan="3">{$gift.item_name}</td>
		{/if}
	</tr>
	<tr>
		{if isset($gift_title_font_id[$gift.item_id])}
		<th class="right" colspan="2">タイトルフォント</th>
		{/if}
		{if isset($gift_title_font_id[$gift.item_id])}
		<td colspan="3">{$font_name_arr[$gift_title_font_id[$gift.item_id]]}</td>
		{/if}
	</tr>
	<tr>
		{if isset($gift_message_font_id[$gift.item_id])}
		{if $gift.gift_category == 2}
		<th class="right" colspan="2">熨斗フォント</th>
		{else}
		<th class="right" colspan="2">メッセージフォント</th>
		{/if}
		{/if}
		{if isset($gift_message_font_id[$gift.item_id])}
		<td colspan="3">{nl2br($font_name_arr[$gift_message_font_id[$gift.item_id]])}</td>
		{/if}
	</tr>
	<tr>
		{if isset($gift_title[$gift.item_id])}
		<th class="right" colspan="2">タイトル内容</th>
		<td colspan="3">{$gift_title[$gift.item_id]}</td>
		<input type="hidden" name="gift_title[{$gift.item_id}]" value="{$gift_title[$gift.item_id]}">
		{/if}
	</tr>
	<tr>
		{if isset($gift_message[$gift.item_id])}
		{if $gift.gift_category == 2}
		<th class="right" colspan="2">熨斗内容</th>
		{else}
		<th class="right" colspan="2">メッセージ内容</th>
		{/if}
		<td colspan="3">{nl2br($gift_message[$gift.item_id])}</td>
		<input type="hidden" name="gift_message[{$gift.item_id}]" value="{$gift_message[$gift.item_id]}">
		{/if}
		{/foreach}
	</tr>
	{/foreach}
	<tr>
		<th class="right" colspan="2">ギフト要望</th>
		<td colspan="3">{nl2br($gift_other_text)}</td>
	</tr>
</table>
{/if}