<!--{*
/*
 * This file is part of EC-CUBE
 *
 * Copyright(c) 2000-2013 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="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" />
<input type="hidden" name="search_pageno" value="" />
<input type="hidden" name="mode" value="" />
<!--{if count($arrDataList) > 0}-->
    <!--{include file=$tpl_pager}-->
    <div id="mail" class="contents-main">
        <table class="list center">
            <tr>
                <th>配信開始時刻</th>
                <th>配信終了時刻</th>
                <th>Subject</th>
                <th>プレビュー</th>
                <th>配信条件</th>
                <th>配信総数</th>
                <th>配信済数</th>
                <th>配信失敗数</th>
                <th>未配信数</th>
                <th>再試行</th>
                <th class="delete">削除</th>
            </tr>
            <!--{section name=cnt loop=$arrDataList}-->
            <tr>
                <td><!--{$arrDataList[cnt].start_date|sfDispDBDate|h}--></td>
                <td><!--{$arrDataList[cnt].end_date|sfDispDBDate|h}--></td>
                <td class="left"><!--{$arrDataList[cnt].subject|h}--></td>
                <td><a href="javascript:;" onclick="win03('./preview.php?mode=history&amp;send_id=<!--{$arrDataList[cnt].send_id|h}-->', 'confirm', '720', '600'); return false;">確認</a></td>
                <td><a href="javascript:;" onclick="win03('./<!--{$smarty.const.DIR_INDEX_PATH}-->?mode=query&amp;send_id=<!--{$arrDataList[cnt].send_id|h}-->','query','615','800'); return false;">確認</a></td>
                <td><!--{$arrDataList[cnt].count_all|h}--></td>
                <td><!--{$arrDataList[cnt].count_sent|h}--></td>
                <td style="<!--{if $arrDataList[cnt].count_error >= 1}-->background-color: <!--{$smarty.const.ERR_COLOR}-->;<!--{/if}-->">
                    <!--{$arrDataList[cnt].count_error|h}-->
                </td>
                <td style="<!--{if $arrDataList[cnt].count_unsent >= 1}-->background-color: <!--{$smarty.const.ERR_COLOR}-->;<!--{/if}-->">
                    <!--{$arrDataList[cnt].count_unsent|h}-->
                </td>
                <td>
                    <!--{if $arrDataList[cnt].count_error >= 1 || $arrDataList[cnt].count_unsent >= 1}-->
                        <a href="index.php?mode=retry&amp;send_id=<!--{$arrDataList[cnt].send_id|h}-->" onclick="return window.confirm('未配信と配信失敗となった宛先に再送信を試みますか?');">実行</a>
                    <!--{/if}-->
                </td>
                <td><a href="?mode=delete&send_id=<!--{$arrDataList[cnt].send_id|h}-->" onclick="return window.confirm('配信履歴を削除しても宜しいでしょうか');">削除</a></td>
            </tr>
            <!--{/section}-->
        </table>
    </div>
<!--{else}-->
    <div id="complete">
        <div class="complete-top"></div>
        <div class="contents">
            <div class="message">
                配信履歴はありません
            </div>
        </div>
        <div class="btn-area-top"></div>
        <div class="btn-area">
            <ul>
                <li><a class="btn-action" href="./<!--{$smarty.const.DIR_INDEX_PATH}-->"><span class="btn-prev">配信内容設定へ戻る</span></a></li>
            </ul>
        </div>
        <div class="btn-area-bottom"></div>
    </div>
<!--{/if}-->
</form>
