{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="POST">
    <table class="hyou">
    
{if $action.actionnm == "update"}
      <tr><th class="name">コード</th><td class="name">{$action.code}</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">
            {action->getCastdivradio assign=castdiv}
            {if $action.actionnm=="update"}
              {foreach from=$castdiv item=item name="castdivfch"}
                <input type="radio" name="castdiv" value="{$item.disppriority}"{if $item.disppriority == $action.castdiv} checked{/if}>{$item.name}
              {/foreach}
            {else}
              {if $action.castdiv!=""}
                {foreach from=$castdiv item=item name="castdivfch"}
                  <input type="radio" name="castdiv" value="{$item.disppriority}"{if $item.disppriority == $action.castdiv} checked{/if}>{$item.name}
                {/foreach}
              {else}
                {foreach from=$castdiv item=item name="castdivfch"}
                  <input type="radio" name="castdiv" value="{$item.disppriority}"{if $smarty.foreach.castdivfch.first} checked{/if}>{$item.name}
                {/foreach}
              {/if}
            {/if}</td></tr>
      <tr><th class="name">おすすめ</th>
          <td class="name"><input type="checkbox" name="recommenddiv"{if $action.recommenddiv==1} checked{/if} value="1">おすすめキャストとしてキャスト一覧の上部に表示させる</td></tr>
      <tr><th class="name">コメント</th>
          <td class="name"><textarea name="comment">{$action.comment}</textarea></td></tr>
      <tr><th class="name">デビュー年月</th>
          <td class="name"><input type="text" name="debutdate" value="{$action.debutdate}"></td></tr>
      <tr><th class="name">出身</th>
          <td class="name">
            {action->getPrefoptions assign=pref}
            <select name="birthplace">
              <option value="0">選択してください</option>
              {foreach item=item from=$pref}
                <option value="{$item.prefcd}"{if $action.birthplace == $item.prefcd} selected="selected"{/if}>{$item.prefnm}</option>
              {/foreach}
            </select></td></tr>
      <tr><th class="name">生年月日</th><td class="name"><input type="text" name="birthdate" value="{$action.birthdate}"></td></tr>
{if $action.actionnm == "update"}
      <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>
<!-- ↑アイテム -->

  <input type="hidden" name="div" value="{$action.div}">
  <input type="hidden" name="code"        value="{$action.code}">
  <input type="hidden" name="updcnt"      value="{$action.updcnt}">
{if $action.actionnm == "update"}
  <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}">
{/if}
  <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}_check" value="確認">
  <input type="submit" name="dispatch_admin_datamanage_cast_list" value="一覧に戻る">
</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"}
