{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-box">
  <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_maker_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"{if $action.srcrecommenddiv==1} checked{/if} value="1">おすすめのみ
    <span style="display: none;"><input type="text" name="dummy"></span>
  </form>
</div>
<!-- ↑検索 -->


<!-- ↓メーカーリスト -->
<div class="makerlist">

<!-- ↓ページナビ、データ件数、追加ボタン（上） -->
<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="post" action="{$scriptName}">
            <input type="hidden" name="div" value="{$action.div}">
            <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="submit" name="dispatch_admin_datamanage_maker_insert_form" value="データ追加">
            <input type="hidden" name="table" value="v_maker_export">
            <input type="submit" name="dispatch_admin_datamanage_export" value="データ出力">
          </form>
        </div></td>
  </tr>
</table>
<!-- ↑ページナビ、データ件数、追加ボタン（上） -->

<table class="hyou">
  <tr>
    <th class="cd">コード</th>
    <th class="nm">名称</th>
    <th class="kn">かな</th>
    <th class="re">おすすめ</th>
    <th class="co">コメント</th>
    <th class="pr">操作</th>
{if $action.div!=""}
    <th class="pl">レーベル</th>
{/if}
    <th class="pl">シリーズ</th>
  </tr>
{foreach from=$action.pagedata key="key" item="value" name="row"}
  <tr>
    <td class="cd">{$value.makercd}</td>
    <td class="nm">{$value.makernm}</td>
    <td class="kn">{$value.makernmkana}</td>
    <td class="re">{if $value.recommenddiv==1}○{/if}</td>
    <td class="co">{$value.comment}</td>
    <td class="pr">
      <form method="post" action="{$scriptName}">
        <input type="hidden" name="div" value="{$action.div}">
        <input type="hidden" name="code" value="{$value.makercd}">
        <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="4">
        <input type="hidden" name="generalcd" value="{$value.makercd}">
        <input type="hidden" name="imgintotitle" value="{$value.makernm}">
        <input type="hidden" name="fromaction" value="admin_datamanage_maker_list">
        <input type="hidden" name="pageID" value="{$action.pageID}">
        <input type="submit" name="dispatch_admin_datamanage_maker_update_form" value="変更">
        <input type="submit" name="dispatch_admin_datamanage_maker_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}
      </form></td>
{if $action.div!=""}
    <td class="pl">
      <form method="get" action="{$scriptName}">
        <input type="hidden" name="div" value="{$action.div}">
        <input type="hidden" name="frommakerlist" value="{$value.makercd}">
        <input type="hidden" name="frommakerlistnm" value="{$value.makernm}">
        <input type="hidden" name="frommakerlistpg" value="{$action.curpage}">
        <input type="submit" name="dispatch_admin_datamanage_label_insert_form" value="追加">
        <input type="submit" name="dispatch_admin_datamanage_label_list" value="参照">
      </form></td>
{/if}
    <td class="pl">
      <form method="get" action="{$scriptName}">
        <input type="hidden" name="div" value="{$action.div}">
        <input type="hidden" name="frommakerlist" value="{$value.makercd}">
        <input type="hidden" name="frommakerlistnm" value="{$value.makernm}">
        <input type="hidden" name="frommakerlistpg" value="{$action.curpage}">
        <input type="submit" name="dispatch_admin_datamanage_series_insert_form" value="追加">
        <input type="submit" name="dispatch_admin_datamanage_series_list" 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="post" action="{$scriptName}">
            <input type="hidden" name="div" value="{$action.div}">
            <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="submit" name="dispatch_admin_datamanage_maker_insert_form" value="データ追加">
            <input type="hidden" name="table" value="v_maker_export">
            <input type="submit" name="dispatch_admin_datamanage_export" value="データ出力">
          </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"}
