{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>


<!-- ↓検索 -->
<table border="0" cellspacing="0" cellpadding="0" class="search-box">
  <tr>
    <td>
  <form method="get" action="">
    <input type="text" name="srcword" value="{$action.srcword}" size="25">&nbsp;
    <input type="submit" name="dispatch_admin_datamanage_supplier_list" value="検索">&nbsp;
    <select name="srcdispnum">
      <option value="">表示件数</option>
      {foreach from=$action.srcdispnumlist item=srcdisp}
        <option value="{$srcdisp}"{if $srcdisp==$action.srcdispnum} selected{/if}>{$srcdisp}</option>
      {/foreach}
    </select>
    <span style="display: none;"><input type="text" name="dummy"></span>
  </form>
    </td>
  </tr>
</table>
<!-- ↑検索 -->

<!-- ↓ページナビ、データ件数、追加ボタン（上） -->
<table border="0" cellspacing="0" cellpadding="0" class="border-non">
  <tr>
    <td>
          {action->getLink assign=link}
          {$link.all}&nbsp;&nbsp;
          {$action.cont}件のデータ
    </td>
    <td align="right">
          <form method="post">
            <input type="hidden" name="srcword" value="{$action.srcword}">
            <input type="hidden" name="srcdispnum" value="{$action.srcdispnum}">
            <input type="submit" name="dispatch_admin_datamanage_supplier_insert_form" value="データ追加">
            <input type="hidden" name="table" value="v_supplier_export">
            <input type="submit" name="dispatch_admin_datamanage_export" value="データ出力">
          </form>
</td>
  </tr>
</table>
<!-- ↑ページナビ、データ件数、追加ボタン（上） -->


<table border="0" cellspacing="0" cellpadding="0" class="hyou">
  <tr>
    <th>コード</th>
    <th>名称</th>
    <th>表示順</th>
    <th>操作</th>
  </tr>
{foreach from=$action.pagedata key="key" item="value" name="row"}
  <tr>
    <td>{$value.suppliercd}</td>
    <td>{$value.suppliernm}</td>
    <td>{$value.disppriority}</td>
    <td align="center">
      <form method="post">
        <input type="hidden" name="code" value="{$value.suppliercd}">
        <input type="hidden" name="srcword" value="{$action.srcword}">
        <input type="hidden" name="srcdispnum" value="{$action.srcdispnum}">
        <input type="submit" name="dispatch_admin_datamanage_supplier_update_form" value="変更">
{action->getStockTitleCount code=$value.suppliercd assign=cnt}
        <input type="submit"{if $cnt} disabled{/if} name="dispatch_admin_datamanage_supplier_delete_check" value="削除">
      </form></td>
  </tr>
{foreachelse}
 <tr>
  <td colspan="4">
  データがありません
  </td>
 </tr>
{/foreach}
</table>

<!-- ↓ページナビ、データ件数、追加ボタン（下） -->
<table border="0" cellspacing="0" cellpadding="0" class="border-non">
  <tr>
    <td>
          {action->getLink assign=link}
          {$link.all}&nbsp;&nbsp;   
          {$action.cont}件のデータ
        </td>
    <td align="right">
          <form method="post">
            <input type="hidden" name="srcword" value="{$action.srcword}">
            <input type="hidden" name="srcdispnum" value="{$action.srcdispnum}">
            <input type="submit" name="dispatch_admin_datamanage_supplier_insert_form" value="データ追加">
            <input type="hidden" name="table" value="v_supplier_export">
            <input type="submit" name="dispatch_admin_datamanage_export" value="データ出力">
          </form>
        </td>
  </tr>
</table>
<!-- ↑ページナビ、データ件数、追加ボタン（下） -->

<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"}
