<?php include_once( "../../../spider.inc.php" ); ?>
{charset:UTF-8}
{template:admin_default.tpl}
{module:shopping.flag.LoadList}
{preset:page_title 'ショップ管理 > ' . SHOPPING_LABEL_PRODUCT . 'フラグ一覧'}

	<div class="panc">
		<a href="../../">管理パネルトップ</a>
		&gt; <a href="../">ショップ管理</a>
		&gt; {write:SHOPPING_LABEL_PRODUCT}フラグ管理
	</div>

	<h1>ショップ管理 &gt; {write:SHOPPING_LABEL_PRODUCT}フラグ管理</h1>
	<div style="width:96%;margin:0 auto;text-align:right;">
		<a href="javascript:shopping_add_flag()">&gt;&gt; フラグ新規作成</a>
	</div>
	<br />

	<table class="list" style="width:96%;margin:0 auto;">
	<tbody>
	<tr>
		<th>フラグ名</th>
		<th>フラグID</th>
		<th>概要</th>
		<th style="width:6em;">操作</th>
	</tr>
	{foreach:shopping.flag.flag_object_array num flagObject}
	<tr>
		<td style="text-align:left;">
			{write:flagObject->'flag_name'}
		</td>
		<td>{write:flagObject->'flag_id'}</td>
		<td>{write:flagObject->'description'}</td>
		<td style="white-space:nowrap;text-align:center;">
			<a href="javascript:modify_flag('{write:flagObject->'flag_number'}')">編集</a>
			{if:flagObject->'flag_id'=='new' or flagObject->'flag_id'=='recommend'}
			<span style="color:#a0a0a0;">削除</span>
			{else}
			<a href="javascript:delete_flag('{write:flagObject->'flag_number'}')">削除</a>
			{/if}
		</td>
	</tr>
	{/foreach}
	</tbody>
	</table>

<style type="text/css"><!--
table.list tbody tr td {
	padding: 0px;
}

--></style>