<!--{*
/*
 * This file is part of EC-CUBE
 *
 * Copyright(c) 2000-2010 LOCKON CO.,LTD. All Rights Reserved.
 *
 * http://www.lockon.co.jp/
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 */
*}-->
<form name="form1" id="form1" method="post" action="?">
<input type="hidden" name="mode" value="confirm" />
<input type="hidden" name="order_id" value="<!--{$tpl_order_id}-->" />
<!--{foreach key=key item=item from=$arrSearchHidden}-->
<input type="hidden" name="<!--{$key}-->" value="<!--{$item|escape}-->" />
<!--{/foreach}-->
<div id="order" class="contents-main">
  <h2>メール配信</h2>
  <table class="list">
    <tr>
      <th>処理日</th>
      <th>通知メール</th>
      <th>件名</th>
    </tr>
    <!--{section name=cnt loop=$arrMailHistory}-->
    <tr class="center">
      <td><!--{$arrMailHistory[cnt].send_date|sfDispDBDate|escape}--></td>
      <!--{assign var=key value="`$arrMailHistory[cnt].template_id`"}-->
      <td><!--{$arrMAILTEMPLATE[$key]|escape}--></td>
      <td><a href="?" onclick="win02('./mail_view.php?send_id=<!--{$arrMailHistory[cnt].send_id}-->','mail_view','650','800'); return false;"><!--{$arrMailHistory[cnt].subject|escape}--></a></td>
    </tr>
    <!--{/section}-->
  </table>

  <table class="form">
    <tr>
      <th>テンプレート<span class="attention"> *</span></th>
      <td>
        <!--{assign var=key value="template_id"}-->
        <span class="attention"><!--{$arrErr[$key]}--></span>
        <select name="template_id" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" onchange="fnModeSubmit('change', '', '');">
        <option value="" selected="selected">選択してください</option>
        <!--{html_options options=$arrMAILTEMPLATE selected=$arrForm[$key].value|escape}-->
        </select>
      </td>
    </tr>
    <tr>
      <th>メールタイトル<span class="attention"> *</span></th>
      <td>
        <!--{assign var=key value="subject"}-->
        <span class="attention"><!--{$arrErr[$key]}--></span>
        <input type="text" name="<!--{$arrForm[$key].keyname}-->" value="<!--{$arrForm[$key].value|escape}-->" maxlength="<!--{$arrForm[$key].length}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" size="30" class="box30" />
      </td>
    </tr>
    <tr>
      <th>ヘッダー</th>
      <td>
        <!--{assign var=key value="header"}-->
        <span class="attention"><!--{$arrErr[$key]}--></span>
        <textarea  name="<!--{$arrForm[$key].keyname}-->" maxlength="<!--{$arrForm[$key].length}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" cols="75" rows="12" class="area75"><!--{$arrForm[$key].value|escape}--></textarea>
      </td>
    </tr>
    <tr>
      <td colspan="2" class="center">動的データ挿入部分</td>
    </tr>
    <tr>
      <th>フッター</th>
      <td>
        <!--{assign var=key value="footer"}-->
        <span class="attention"><!--{$arrErr[$key]}--></span>
        <textarea  name="<!--{$arrForm[$key].keyname}-->" maxlength="<!--{$arrForm[$key].length}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" cols="75" rows="12" class="area75"><!--{$arrForm[$key].value|escape}--></textarea>
      </td>
    </tr>
  </table>
  <div class="btn">
    <button type="button" onclick="fnChangeAction('<!--{$smarty.const.URL_SEARCH_ORDER}-->'); fnModeSubmit('search','',''); return false;"><span>検索結果へ戻る</span></button>
    <button type="submit"><span>送信内容を確認</span></button>
  </div>
</div>
</form>
