{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="">
{action->getCastdivradio assign=castdiv}
    <select name="srccastdiv">
      <option value="">全て</option>
{foreach from=$castdiv item=item name="castdivfch"}
        <option value="{$item.disppriority}"{if $item.disppriority == $action.srccastdiv} selected{/if}>{$item.name}</option>
{/foreach}
    </select>
    <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_cast_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="castlist">

<!-- ↓ページナビ、データ件数、追加ボタン（上） -->
<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"><div>
            <input type="hidden" name="div" value="{$action.div}">
            <input type="hidden" name="srcword" value="{$action.srcword}">
            <input type="hidden" name="srccastdiv" value="{$action.srccastdiv}">
            <input type="hidden" name="srcdispnum" value="{$action.srcdispnum}">
            <input type="hidden" name="srcrecommenddiv" value="{$action.srcrecommenddiv}">
            <input type="hidden" name="from" value="{$action.from}">
            <input type="submit" name="dispatch_admin_datamanage_cast_insert_form" value="データ追加">

            <input type="hidden" name="table" value="v_cast_export">
            <input type="submit" name="dispatch_admin_datamanage_export" value="データ出力">
            </div></form>
        </div></td>
  </tr>
</table>
<!-- ↑ページナビ、データ件数、追加ボタン（上） -->

<table class="hyou">
  <tr>
    <th class="cd">コード</th>
    <th class="na">名前</th>
    <th class="kn">かな</th>
    <th class="as">種別</th>
    <th class="re">おすすめ</th>
    <th class="dy">デビュー年月</th>
    <th class="db">生年月日</th>
    <th class="np">出身</th>
    <th class="co">コメント</th>
    <th class="pr">操作</th>
  </tr>
{action->getPreflist assign=preflist}
{foreach from=$action.row key="key" item="value" name="row"}
  <tr>
    <td class="cd">{$value.castcd}</td>
    <td class="na">{$value.castnm}</td>
    <td class="kn">{$value.castnmkana}</td>
    <td class="as">{$value.castdivnm}</td>
    <td class="re">{if $value.recommenddiv==1}○{/if}</td>
    <td class="dy">{$value.debutdate}</td>
    <td class="db">{$value.birthdate}</td>
    <td class="np">{$value.birthplacenm}</td>
    <td class="co">{$value.comment}</td>
    <td class="pr">
      <form method="post"><div>
        <input type="hidden" name="div" value="{$action.div}">
        <input type="hidden" name="code" value="{$value.castcd}">
        <input type="hidden" name="srcword" value="{$action.srcword}">
        <input type="hidden" name="srccastdiv" value="{$action.srccastdiv}">
        <input type="hidden" name="srcdispnum" value="{$action.srcdispnum}">
        <input type="hidden" name="srcrecommenddiv" value="{$action.srcrecommenddiv}">
        <input type="hidden" name="imgtypediv" value="3">
        <input type="hidden" name="generalcd" value="{$value.castcd}">
        <input type="hidden" name="imgintotitle" value="{$value.castnm}">
        <input type="hidden" name="fromaction" value="admin_datamanage_cast_list">
        <input type="hidden" name="from" value="{$action.from}">
        <input type="submit" name="dispatch_admin_datamanage_cast_update_form" value="変更">
        <input type="submit" name="dispatch_admin_datamanage_cast_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}
        </div></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">
            <input type="hidden" name="div" value="{$action.div}">
            <input type="hidden" name="srcword" value="{$action.srcword}">
            <input type="hidden" name="srccastdiv" value="{$action.srccastdiv}">
            <input type="hidden" name="srcdispnum" value="{$action.srcdispnum}">
            <input type="hidden" name="srcrecommenddiv" value="{$action.srcrecommenddiv}">
            <input type="hidden" name="from" value="{$action.from}">
            <input type="submit" name="dispatch_admin_datamanage_cast_insert_form" value="データ追加">

            <input type="hidden" name="table" value="v_cast_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"}
