{include file="admin/header.html"}
{include file="admin/gnavi.html"}

<div id="container">

{include file="admin/menu/submenu_mail.html"}

<!-- ↓段組み メイン側 -->
<div id="main">

  <h3>{$action.title}</h3>

<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td align="center">以下の内容でよろしいですか?</td></tr>
</table>

<form action="{$scriptName}" method="POST">
  <table border="0" cellspacing="0" cellpadding="0" class="hyou">
    <tr>
      <th>コード</th>
      <td>{if $action.mailcd != ""}{$action.mailcd}{else}＜新規登録＞{/if}</td>
      <th>送信日時</th>
      <td>{if $action.senddate != ""}{$action.senddate}{else}＜未送信＞{/if}</td></tr>
    <tr>
      <th>対象者</th>
        {if $action.target == 2 || $action.target == ""}<td>希望者のみ</td>{else}<td>全会員</td>{/if}
      <th>送信状態</th>
      <td>未送信</td></tr>
    <tr>
      <th>タイトル</th>
      <td colspan="3">{$action.mailtitle}</td></tr>
    <tr>
      <th>本文</th>
      <td colspan="3">{$action.mailbody|nl2br}</td></tr>
    <tr>
      <td align="right" colspan="4">
        <input type="hidden" name="{token->getName}" value="{token->getValue}">
        <input type="hidden" name="mailcd" value="{$action.mailcd}">
        <input type="hidden" name="mailtitle" value="{$action.mailtitle}">
        <input type="hidden" name="mailbody" value="{$action.mailbody}">
        <input type="hidden" name="target" value="{$action.target}">
        <input type="hidden" name="sendstate" value="{$action.sendstate}">
        <input type="hidden" name="updcnt" value="{$action.updcnt}">
        <input type="submit" name="dispatch_admin_mailmanage_mailmagazine_done"{if $action.mailcd != ""} value="更新"{else} value="追加"{/if}>
        <input type="submit" name="dispatch_admin_mailmanage_mailmagazine_send" onclick="return confirm('入力した内容でメールマガジンを送信します。\nよろしいですか？');" value="送信">
        <input type="submit" name="dispatch_admin_mailmanage_mailmagazine_form" value="前に戻る">
        <input type="button" value="一覧に戻る" onclick="javascript:location.href='{$scriptName}?action=admin_mailmanage_mailmagazine_list'">
      </td></tr>
  </table>
</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"}
