{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_series_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>
</div>
<!-- ↑検索 -->

<!-- ↓シリーズリスト -->
<div class="serieslist">

<!-- ↓ページナビ、データ件数、追加ボタン（上） -->
<table class="navi_upper" 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">
          <input type="hidden" name="div" value="{$action.div}">
{if $action.frommakerlist!=""}
          <input type="button" onClick="location.href='{$scriptName}?action=admin_datamanage_maker_list&amp;from={$action.frommakerlistpg}&amp;div={$action.div}';" value="メーカー一覧に戻る">
{else}
          <input type="button" onClick="location.href='{$scriptName}?action=admin_datamanage_series_insert_form&amp;srcword={$action.srcword}&amp;srcdispnum={$action.srcdispnum}&amp;from={$action.from}&amp;div={$action.div}';" value="データ追加">
          <input type="button" onClick="location.href='{$scriptName}?action=admin_datamanage_export&amp;table=v_series_export';" value="データ出力">
{/if}
        </div></td>
  </tr>
</table>
<!-- ↑ページナビ、データ件数、追加ボタン（上） -->

<table>
  <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>
  </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="name2">{$value.seriescd}</td>
    <td class="name">{$value.seriesnm}</td>
    <td class="name2">{if $value.recommenddiv==1}○{/if}</td>
    <td class="name">
      <form method="get" action="{$scriptName}">
        <input type="hidden" name="div" value="{$action.div}">
        <input type="hidden" name="makercd"   value="{$value.makercd}">
        <input type="hidden" name="seriescd"  value="{$value.seriescd}">
        <input type="hidden" name="makernm"   value="{$value.makernm}">
{if $action.actionnm == "delete"}
        <input type="hidden" name="name"      value="{$value.seriesnm}">
        <input type="hidden" name="kana"      value="{$value.seriesnmkana}">
        <input type="hidden" name="recommend" value="{$value.recommenddiv}">
{/if}
        <input type="hidden" name="srcword" value="{$action.srcword}">
        <input type="hidden" name="srcdispnum" value="{$action.srcdispnum}">
        <input type="hidden" name="from" value="{$action.from}">
        <input type="submit" name="dispatch_admin_datamanage_series_update_form" value="変更">
        <input type="submit" name="dispatch_admin_datamanage_series_delete_check" value="削除">
      </form></td>
  </tr>
{foreachelse}
  データがありません<br>
{/foreach}
</table>

<!-- ↓ページナビ、データ件数、追加ボタン（下） -->
<table class="navi_lower" 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">
{if $action.frommakerlist!=""}
          <input type="button" onClick="location.href='{$scriptName}?action=admin_datamanage_maker_list&amp;from={$action.frommakerlistpg}&amp;div={$action.div}';" value="メーカー一覧に戻る">
{else}
          <input type="button" onClick="location.href='{$scriptName}?action=admin_datamanage_series_insert_form&amp;srcword={$action.srcword}&amp;srcdispnum={$action.srcdispnum}&amp;from={$action.from}&amp;div={$action.div}';" value="データ追加">
          <input type="button" onClick="location.href='{$scriptName}?action=admin_datamanage_export&amp;table=v_series_export';" value="データ出力">
{/if}
        </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"}
