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

{errorList->getMessages assign=errmsg}
{if $errmsg}
<!--↓エラーメッセージ -->
<div class="error">
  <ul class="alert">
{foreach from=$errmsg item=msg}
    <li>{$msg|escape}</li>
{/foreach}
  </ul>
</div>
<!--↑エラーメッセージ -->
{/if}

<form method="get" action="{$scriptName}">
  <!-- ↓アイテム -->
    <table class="hyou">

{if $action.actionnm == "update" || $action.frommakerlist}
      <tr>
        <th class="name">メーカーCD</th>
        <td class="name">{$action.makercd}</td>
      </tr>
      <tr>
        <th class="name">メーカー名</th>
        <td class="name">{$action.makernm}</td>
      </tr>
{elseif $action.actionnm == "insert" || !$action.frommakerlist}
      <tr>
        <th class="name"> メーカー </th>
        <td align="left" class="name">
          <select name="maker_capi" id="maker_capi" onChange="changeMakerCapital('maker_capi', 'makercd', '{$action.div}', 'all');">
            <option value=""{if $action.maker_capi==""} selected{/if}>未選択</option>
            <option value="a"{if $action.maker_capi=="a"} selected{/if}>あ行</option>
            <option value="ka"{if $action.maker_capi=="ka"} selected{/if}>か行</option>
            <option value="sa"{if $action.maker_capi=="sa"} selected{/if}>さ行</option>
            <option value="ta"{if $action.maker_capi=="ta"} selected{/if}>た行</option>
            <option value="na"{if $action.maker_capi=="na"} selected{/if}>な行</option>
            <option value="ha"{if $action.maker_capi=="ha"} selected{/if}>は行</option>
            <option value="ma"{if $action.maker_capi=="ma"} selected{/if}>ま行</option>
            <option value="ya"{if $action.maker_capi=="ya"} selected{/if}>や行</option>
            <option value="ra"{if $action.maker_capi=="ra"} selected{/if}>ら行</option>
            <option value="wa"{if $action.maker_capi=="wa"} selected{/if}>わ行</option>
          </select>
          <script>loadMaker('makercd', '{$action.maker_capi}', '{$action.makercd}', '{$action.div}','all');</script>
          <select name="makercd" id="makercd">
            <option value="0">メーカー名</option>
          </select>
          </td>
      </tr>
{/if}
{if $action.actionnm == "update"}
      <tr>
        <th class="name">シリーズCD</th>
        <td class="name">
          {$action.seriescd}</td>
      </tr>
{/if}
      <tr>
        <th class="name">シリーズ名</th>
        <td class="name">
          <input type="text" name="name" value="{$action.name}"></td>
      </tr>
      <tr>
        <th class="name">よみがな</th>
        <td class="name">
          <input type="text" name="kana" value="{$action.kana}"></td>
      </tr>
      <tr>
        <th class="name">おすすめ</th>
        <td class="name">
          <input type="checkbox" name="recommend"{if $action.recommend==1} checked{/if} value="1">
          おすすめシリーズとしてシリーズ一覧の上部に表示させる</td>
      </tr>
    </table>
  <!-- ↑アイテム -->
  
    <input type="hidden" name="div" value="{$action.div}">
{if $action.actionnm == "update" || $action.frommakerlist}
    <input type="hidden" name="makercd" value="{$action.makercd}">
    <input type="hidden" name="makernm" value="{$action.makernm}">
    <input type="hidden" name="frommakerlist" value="{$action.frommakerlist}">
    <input type="hidden" name="frommakerlistnm" value="{$action.frommakerlistnm}">
{/if}
    <input type="hidden" name="seriescd" value="{$action.seriescd}">
    <input type="hidden" name="updcnt" value="{$action.updcnt}">
    <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="hidden" name="actionnm" value="{$action.actionnm}">
    <input type="submit" name="dispatch_admin_datamanage_series_{$action.actionnm}_check" value="確認">
{if $action.frommakerlist!=""}
    <input type="submit" name="dispatch_admin_datamanage_maker_list" value="前に戻る">
{else}
    <input type="submit" name="dispatch_admin_datamanage_series_list" value="一覧に戻る">
{/if}
</form>

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