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

<!-- ↓チェックメッセージ -->
{if $action.actionnm=="insert" or $action.actionnm=="update"}
<div class="checkmessage">
  本当に{if $action.actionnm=="insert"}追加{elseif $action.actionnm=="update"}変更{/if}しますか?
</div>
{else}
<div class="deletecheckmessage">
  本当に削除しますか?
</div>
{/if}
<!-- ↑チェックメッセージ -->

<!-- ↓アイテム -->
<div class="item">
  <table class="hyou">
{if $action.actionnm == "update" | $action.actionnm == "delete"}
    <tr><th class="name">コード</th><td class="name">{$action.code}</td></tr>
{/if}
    <tr><th class="name">キャスト名</th><td class="name">{$action.name}</td></tr>
    <tr><th class="name">キャスト名(かな)</th><td class="name">{$action.kana}</td></tr>
    <tr><th class="name">キャスト種別</th>
        <td class="name">
          {action->getCastdivradio assign=castdiv}
          {foreach from=$castdiv item=item name="castdiv"}
            {if $item.disppriority == $action.castdiv}{$item.name}{/if}
          {/foreach}</td></tr>
    <tr><th class="name">おすすめ</th><td class="name">{if $action.recommenddiv==1}○{/if}</td></tr>
    <tr><th class="name">コメント</th><td class="name">{$action.comment|nl2br}</td></tr>
    <tr><th class="name">デビュー年月</th><td class="name">{$action.debutdate}</td></tr>
    <tr><th class="name">出身</th><td class="name">{action->getPrefnm|escape}</td></tr>
    <tr><th class="name">生年月日</th><td class="name">{$action.birthdate}</td></tr>
{if $action.actionnm <> "insert"}
    <tr><th class="name">画像 小</th>
          <td class="name">{if $action.img_count_s>0}○{else}×{/if}</td></tr>
    <tr><th class="name">画像 中</th>
          <td class="name">{if $action.img_count_m>0}○{else}×{/if}</td></tr>
    <tr><th class="name">画像 大</th>
          <td class="name">{if $action.img_count_l>0}○{else}×{/if}</td></tr>
{/if}
    
  </table>
</div>
<!-- ↑アイテム -->

<form method="POST"><div>
  <input type="hidden" name="div" value="{$action.div}">
  <input type="hidden" name="{token->getName}" value="{token->getValue}">
  <input type="hidden" name="code" value="{$action.code}">
  <input type="hidden" name="name" value="{$action.name}">
  <input type="hidden" name="kana" value="{$action.kana}">
  <input type="hidden" name="castdiv" value="{$action.castdiv}">
  <input type="hidden" name="recommenddiv" value="{$action.recommenddiv}">
  <input type="hidden" name="comment" value="{$action.comment}">
  <input type="hidden" name="debutdate" value="{$action.debutdate}">
  <input type="hidden" name="birthplace" value="{$action.birthplace}">
  <input type="hidden" name="birthdate" value="{$action.birthdate}">
  <input type="hidden" name="img_count_s" value="{$action.img_count_s}">
  <input type="hidden" name="img_count_m" value="{$action.img_count_m}">
  <input type="hidden" name="img_count_l" value="{$action.img_count_l}">
  <input type="hidden" name="updcnt" value="{$action.updcnt}">
  <input type="hidden" name="srcword" value="{$action.srcword}">
  <input type="hidden" name="srccastdiv" value="{$action.srccastdiv}">
  <input type="hidden" name="srcrecommenddiv" value="{$action.srcrecommenddiv}">
  <input type="hidden" name="srcdispnum" value="{$action.srcdispnum}">
  <input type="hidden" name="from" value="{$action.from}">
  
  <input type="submit" name="dispatch_admin_datamanage_cast_{$action.actionnm}_done" value="{if $action.actionnm=="insert"}追加{elseif $action.actionnm=="update"}変更{else}削除{/if}">
{if $action.actionnm=="insert" || $action.actionnm=="update"}
  <input type="submit" name="dispatch_admin_datamanage_cast_{$action.actionnm}_form" value="前に戻る">
{else}
  <input type="submit" name="dispatch_admin_datamanage_cast_list" value="一覧に戻る">
{/if}
  </div>
</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"}
