{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="search">
  <form method="get" action="{$scriptName}">
    <input type="hidden" name="div" value="{$action.div}">
    <input type="text" name="srcword" value="{$action.srcword}" size="25">&nbsp;
    <input type="submit" name="dispatch_admin_datamanage_label_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>&nbsp;
    <input type="checkbox" name="srcrecommenddiv" value="1"{if $action.srcrecommenddiv==1} checked{/if}>おすすめのみ
    <span style="display: none;"><input type="text" name="dummy"></span>
  </form>
</div>
<!-- ↑検索 -->

<!-- ↓レーベルリスト -->
<div class="labellist">

<!-- ↓ページナビ、データ件数、追加ボタン（上） -->
<table class="border-non" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><div class="pagenavi">
          {action->getLink assign=link}{$link.all}
        </div></td>
    <td><div class="detanumber1">
          {$action.cont}件のデータ
        </div></td>
    <td><div class="add">
          <form method="get" action="{$scriptName}">
            <input type="hidden" name="div" value="{$action.div}">
            <input type="hidden" id="nuswd" name="srcword" value="{$action.srcword}">
            <input type="hidden" name="srcrecommenddiv" value="{$action.srcrecommenddiv}">
            <input type="hidden" name="srcdispnum" value="{$action.srcdispnum}">
{if $action.frommakerlistnm==""}
            <input type="hidden" name="table" value="v_label_export">
            <input type="submit" name="dispatch_admin_datamanage_export" value="データ出力">
{else}
            <input type="hidden" id="nuact" name="action" value="">
            <input type="hidden" name="from" value="{$action.frommakerlistpg}">
            <input type="button" onClick="location.href='{$scriptName}?action=admin_datamanage_maker_list&amp;from={$action.frommakerlistpg}&amp;div={$action.div}';" value="メーカー一覧に戻る">
{/if}
          </form>
        </div></td>
  </tr>
</table>
<!-- ↑ページナビ、データ件数、追加ボタン（上） -->

<table class="hyou">
  <tr>
    <th class="name">メーカーCD</th>
    <th class="name">メーカー名</th>
    <th class="name">レーベルCD</th>
    <th class="name">レーベル名</th>
    <th class="name">ふりがな</th>
    <th class="name">おすすめ</th>
    <th class="name">操作</th>
  </tr>
{foreach from=$action.pagedata key="key" item="value" name="row"}
  <tr>
    <td class="mc">{$value.makercd}</td>
    <td class="name">{$value.makernm}</td>
    <td class="pl">{$value.labelcd}</td>
    <td class="name">{$value.labelnm}</td>
    <td class="name">{$value.labelnmkana}</td>
    <td class="re">{if $value.recommenddiv==1}○{/if}</td>
    <td class="bu">
      <form method="post" action="{$scriptName}">
        <input type="hidden" name="div" value="{$action.div}">
        <input type="hidden" name="makercd" value="{$value.makercd}">
        <input type="hidden" name="code" value="{$value.labelcd}">
        <input type="hidden" name="srcword" value="{$action.srcword}">
        <input type="hidden" name="srcrecommenddiv" value="{$action.srcrecommenddiv}">
        <input type="hidden" name="srcdispnum" value="{$action.srcdispnum}">
        <input type="hidden" name="imgtypediv" value="5">
        <input type="hidden" name="generalcd" value="{$value.makercd}">
        <input type="hidden" name="generalsub" value="{$value.labelcd}">
        <input type="hidden" name="imgintotitle" value="{$value.labelnm}">
        <input type="hidden" name="fromaction" value="admin_datamanage_label_list">
        <input type="hidden" name="from" value="{$action.from}">
        <input type="submit" name="dispatch_admin_datamanage_label_update_form" value="変更">
        <input type="submit" name="dispatch_admin_datamanage_label_delete_check" value="削除">
{if $value.img_count_s>0 or $value.img_count_m>0 or $value.img_count_l>0}
        <input type="submit" name="dispatch_admin_imguploader_form" value="画像有">
{else}
        <input type="submit" name="dispatch_admin_imguploader_form" value="画像無">
{/if}
        <input type="submit" name="dispatch_admin_datamanage_label_insert_form" value="追加">
      </form></td>
  </tr>
{foreachelse}
  データがありません<br>
{/foreach}
</table>

<!-- ↓ページナビ、データ件数、追加ボタン（下） -->
<table class="border-non" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><div class="pagenavi">
          {action->getLink assign=link}{$link.all}
        </div></td>
    <td><div class="detanumber2">
          {$action.cont}件のデータ
        </div></td>
    <td><div class="add">
          <form method="get" action="{$scriptName}">
            <input type="hidden" name="div" value="{$action.div}">
            <input type="hidden" id="nlswd" name="srcword" value="{$action.srcword}">
            <input type="hidden" name="srcrecommenddiv" value="{$action.srcrecommenddiv}">
            <input type="hidden" name="srcdispnum" value="{$action.srcdispnum}">
{if $action.frommakerlistnm==""}
            <input type="hidden" name="table" value="v_label_export">
            <input type="submit" name="dispatch_admin_datamanage_export" value="データ出力">
{else}
            <input type="hidden" id="nlact" name="action" value="">
            <input type="hidden" name="from" value="{$action.frommakerlistpg}">
            <input type="button" onClick="location.href='{$scriptName}?action=admin_datamanage_maker_list&amp;from={$action.frommakerlistpg}&amp;div={$action.div}';" value="メーカー一覧に戻る">
{/if}
          </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"}
