<?php include_once( "../../../spider.inc.php" ); ?>
{charset:UTF-8}
{template:admin_default.tpl}
{module:shopping.flag.Confirm}
{preset:page_title 'ショップ管理 > ' . SHOPPING_LABEL_PRODUCT . 'フラグ管理 > ' . SHOPPING_LABEL_PRODUCT . 'フラグの追加・編集 入力確認'}

	<div class="panc">
		<a href="../../">管理パネルトップ</a>
		&gt; <a href="../">ショップ管理</a>
		&gt; <a href="./">{write:SHOPPING_LABEL_PRODUCT}フラグ管理</a>
		{if:strlen(shopping.flag.flag_object->'flag_number')>0}
		&gt; {write:shopping.flag.flag_object->'flag_name'}の編集
		{else}
		&gt; フラグ新規作成
		{/if}
		入力確認
	</div>

	<h1>
		ショップ管理
		&gt; {write:SHOPPING_LABEL_PRODUCT}フラグ管理
		{if:strlen(shopping.flag.flag_object->'flag_number')>0}
		&gt; {write:shopping.flag.flag_object->'flag_name'}の編集
		{else}
		&gt; フラグ新規作成
		{/if}
		入力確認
	</h1>
	
{if:IS_ERROR}

	<ul class="error">
	{foreach:errors error}
		<li>{write:error}</li>
	{/foreach}
	</ul>

	<p style="text-align:center;">
		<input type="button" value="戻る"
			onclick="history.back();"
		/>
	</p>
{else}
	<form name="cform" action="./execute.php?shpfn={write:shopping.flag.flag_object->'flag_number'}" method="post">
	<p style="text-align:center;">
		下記のフラグを{if:strlen(shopping.flag.flag_object->'flag_number')>0}編集{else}作成{/if}します。よろしければ<br />
		「{if:strlen(shopping.flag.flag_object->'flag_number')>0}編集{else}作成{/if}する」ボタンをクリックしてください。<br />
		<br />
		
	</p>
	<table class="detail" style="width:96%;margin:0 auto;">
	<tbody>
	<tr>
		<th style="width:12em;">フラグID</th>
		<td>{write:shopping.flag.flag_object->'flag_id'}</td>
	</tr>
	<tr>
		<th style="width:12em;">フラグ名</th>
		<td>
			<span style="font-size:1.3em;color:#0000FF;font-weight:bold;">{write:shopping.flag.flag_object->'flag_name'}</span>
		</td>
	</tr>
	<tr>
		<th style="width:12em;">表示順序</th>
		<td>{write:shopping.flag.flag_object->'order_number'}</td>
	</tr>
	<tr>
		<th style="width:12em;">フラグ説明</th>
		<td>{write:shopping.flag.flag_object->'description'}</td>
	</tr>
	{set:contentUploader shopping.flag.flag_object->'contentUploader'}
	{set:contentFileObjectArray contentUploader->'contentFileObjectArray'}
	<tr>
		<th>アイコン画像</th>
		<td>
			{if:false!==shopping.flag.flag_object->getIconUri( request )}
				<img src="{write:shopping.flag.flag_object->getIconUri( request )}" /><br />
			{/if}
			{if:isset(contentFileObjectArray) && isset(contentFileObjectArray[0])}
				=>
				<img src="{write:contentFileObjectArray[0]->'tmpFileUri'}" />
			{/if}
		</td>
	</tr>
	</tbody>
	</table>
	<p style="text-align:center;">
		<input type="submit" value="{if:strlen(shopping.flag.flag_object->'flag_number')>0}編集{else}作成{/if}する"
		/><input type="button" value="戻る"
			onclick="history.back();"
		/>
	</p>
	</form>

{/if}
	<hr style="width:96%;margin:0 auto;margin-top:1em;" />
	<div style="width:96%;margin:0 auto;text-align:right;">
		<a href="./">&gt;&gt; フラグ管理へ戻る</a>
	</div>