{include file="admin/header.html"}
{include file="admin/gnavi.html"}

<div id="container">

{include file="admin/menu/submenu_data.html"}

<!-- ↓段組み メイン側 -->
<div id="main">

<h3>{$action.title}</h3>

<!-- ↓オプション情報 -->
<div class="itemoption">
  <h4>{$action.namediv_name} のデータ</h4>

<table border="0" cellspacing="0" cellpadding="0" class="hyou">
{foreach from=$action.records key="key" item="value" name="row"}
{if $smarty.foreach.row.first}
  <tr>
    <th>名称</th>
    <th>表示順</th>
    <th>操作</th>
  </tr>
{/if}
  <tr>
    <td >{$value.name}</td>
    <td>{$value.disppriority}</td>
    <td align="center">
      <form method="post"><div>
        <input type="hidden" name="namecd" value="{$value.namecd}">
        
        <input type="hidden" name="namediv" value="{$action.namediv}">
        <input type="hidden" name="name" value="{$value.name}">
        <input type="hidden" name="disppriority" value="{$value.disppriority}">
        <input type="hidden" name="namediv_name" value="{$action.namediv_name}">
        <input type="hidden" name="updcnt" value="{$value.updcnt}">
        
        <input type="submit" name="dispatch_admin_datamanage_itemoption_update_form" value="変更">
        <input type="submit" name="dispatch_admin_datamanage_itemoption_delete_check" value="削除">
        
        </div></form></td>
  </tr>
{foreachelse}
  データがありません<br>
{/foreach}
</table>

<!-- ↓操作ボタン（上） -->
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td align="right">
    <div class="add">
    <form method="post">
    <div>
      <input type="hidden" name="namediv" value="{$action.namediv}">
      <input type="hidden" name="namediv_name" value="{$action.namediv_name}">
      <input type="submit" name="dispatch_admin_datamanage_itemoption_insert_form" value="データ追加">
      <input type="button" value="戻る" onClick="location.href='{$scriptName}?action=admin_datamanage_itemoption'">
    </div>
    </form>
    </div>
    </td>
  </tr>
</table>
<!-- ↑操作ボタン（上） -->

</div>
<!-- ↑オプション情報 -->

<div class="pagetop" title="ページトップへ"><a href="#top">ページトップへ</a></div>

</div>
<!--End of main-->

<div class="cr"></div>
</div>
<!--End of container-->

{include file="admin/footer.html"}
