<!--{*
/*
 * 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="?">
<div class="btn">
    <a class="btn-action" href="./template_input.php"><span class="btn-next">テンプレートを新規入力</span></a>
</div>
<!--{if count($list_data) > 0}-->
<div id="mail" class="contents-main">
    <table class="list center">
    <colgroup width="15%">
    <colgroup width="35%">
    <colgroup width="20%">
    <colgroup width="10%">
    <colgroup width="10%">
    <colgroup width="10%">
        <tr>
            <th>作成日</th>
            <th>subject</th>
            <th>メール形式</th>
            <th>編集</th>
            <th>削除</th>
            <th>プレビュー</th>
        </tr>
        <!--{section name=data loop=$list_data}-->
        <tr>
            <td><!--{$list_data[data].disp_date|date_format:'%Y/%m/%d'|h}--></td>
            <td class="left"><!--{$list_data[data].subject|h}--></td>
            <!--{assign var=type value=$list_data[data].mail_method|h}-->
            <td><!--{$arrMagazineType[$type]}--></td>
            <td><!--{if $list_data[data].mail_method eq 3}--><a href="./htmlmail.php?mode=edit&template_id=<!--{$list_data[data].template_id}-->"><!--{else}--><a href="./template_input.php?mode=edit&template_id=<!--{$list_data[data].template_id}-->"><!--{/if}-->編集</a></td>
            <td><a href="#" onclick="fnDelete('?mode=delete&id=<!--{$list_data[data].template_id}-->'); return false;">削除</a></td>
            <td><!--{if $list_data[data].mail_method eq 3}--><a href="#" onclick="win03('./preview.php?method=template&id=<!--{$list_data[data].template_id}-->','preview','650','700'); return false;" target="_blank"><!--{else}--><a href="#" onclick="win03('./preview.php?id=<!--{$list_data[data].template_id}-->','preview','650','700'); return false;" target="_blank"><!--{/if}-->プレビュー</a></td>
        </tr>
        <!--{/section}-->
    </table>
</div>
<!--{/if}-->
