source: branches/version-2_5-dev/data/Smarty/templates/admin/mail/index.tpl @ 20283

Revision 20283, 4.8 KB checked in by fukuda, 10 years ago (diff)

#963 [管理画面]メルマガ管理リファクタリング とりあえず検索だけ動くように・・・

  • Property svn:eol-style set to LF
  • Property svn:keywords set to Id
  • Property svn:mime-type set to text/x-smarty-template; charset=UTF-8
Line 
1<!--{*
2/*
3 * This file is part of EC-CUBE
4 *
5 * Copyright(c) 2000-2010 LOCKON CO.,LTD. All Rights Reserved.
6 *
7 * http://www.lockon.co.jp/
8 *
9 * This program is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License
11 * as published by the Free Software Foundation; either version 2
12 * of the License, or (at your option) any later version.
13 *
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.    See the
17 * GNU General Public License for more details.
18 *
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA    02111-1307, USA.
22 */
23*}-->
24<div id="mail" class="contents-main">
25<form name="search_form" id="search_form" method="post" action="?">
26<input type="hidden" name="mode" value="search" />
27    <h2>配信先検索条件設定</h2>
28
29    <!--{* 検索条件設定テーブルここから *}-->
30    <table>
31        <!--{include file="`$smarty.const.TEMPLATE_ADMIN_REALDIR`/adminparts/form_customer_search.tpl"}-->
32        <tr>
33            <th>配信形式</th>
34            <td colspan="3">
35              <!--{assign var=key value="search_htmlmail"}-->
36              <!--{if $arrErr[$key]}--><span class="attention"><!--{$arrErr[$key]}--></span><br /><!--{/if}-->
37              <!--{html_radios name=$key options=$arrHtmlmail separator="&nbsp;" selected=$arrForm[$key].value}-->
38            </td>
39        </tr>
40        <tr>
41            <th>配信メールアドレス種別</th>
42            <td colspan="3">
43              <!--{assign var=key value="search_mail_type"}-->
44              <!--{html_radios name=$key options=$arrMailType separator="<br />" selected=$arrForm[$key].value|default:1}-->
45            </td>
46        </tr>
47    </table>
48    <!--{* 検索条件設定テーブルここまで *}-->
49   
50  <div class="btn">
51    <p class="page_rows">検索結果表示件数
52    <!--{assign var=key value="search_page_rows"}-->
53    <select name="<!--{$key}-->">
54      <!--{html_options options=$arrPageRows selected=$arrForm[$key]}-->
55    </select> 件</p>
56    <div class="btn-area">
57      <ul>
58        <li><a class="btn-action" href="javascript:;" onclick="fnFormModeSubmit('search_form', 'search', '', ''); return false;"><span class="btn-next">この条件で検索する</span></a></li>
59      </ul>
60    </div>
61  </div>
62</form>
63
64
65<!--{if count($arrErr) == 0 and ($smarty.post.mode == 'search' or $smarty.post.mode == 'delete' or $smarty.post.mode == 'back')}-->
66
67<form name="form1" id="form1" method="post" action="?">
68<input type="hidden" name="mode" value="" />
69<!--{foreach key=key item=item from=$arrHidden}-->
70<!--{if is_array($item)}-->
71  <!--{foreach item=c_item from=$item}-->
72    <input type="hidden" name="<!--{$key}-->[]" value="<!--{$c_item|h}-->" />
73  <!--{/foreach}-->
74<!--{else}-->
75<input type="hidden" name="<!--{$key}-->" value="<!--{$item|h}-->" />
76<!--{/if}-->
77<!--{/foreach}-->
78
79    <h2>検索結果一覧</h2>
80    <div class="btn">
81        <span class="attention"><!--検索結果数--><!--{$tpl_linemax}-->件</span>&nbsp;が該当しました。
82        <!--{if $smarty.const.ADMIN_MODE == '1'}-->
83            <a class="btn-normal" href="javascript:;" onclick="fnModeSubmit('delete_all','',''); return false;"><span>検索結果をすべて削除</span></a>
84        <!--{/if}-->
85        <!--{if $tpl_linemax > 0}-->
86            <a class="btn-normal" href="javascript:;" onclick="document.form1['mode'].value='input'; document.form1.submit(); return false;"><span>配信内容を設定する</span></a>
87        <!--{/if}-->
88    </div>
89    <!--{if count($arrResults) > 0}-->
90
91    <!--{include file=$tpl_pager}-->
92
93    <!--検索結果表示テーブル-->
94    <table class="list">
95    <colgroup width="5%">
96    <colgroup width="20%">
97    <colgroup width="30%">
98    <colgroup width="15%">
99    <colgroup width="25%">
100        <tr>
101            <th>会員番号</th>
102            <th>名前</th>
103            <th>メールアドレス</th>
104            <th>希望配信</th>
105            <th>登録・更新日</th>
106        </tr>
107        <!--{section name=i loop=$arrResults}-->
108        <tr>
109            <td class="center"><!--{$arrResults[i].customer_id}--></td>
110            <td><!--{$arrResults[i].name01|h}--> <!--{$arrResults[i].name02|h}--></td>
111            <td><!--{$arrResults[i].email|h}--></td>
112            <!--{assign var="key" value="`$arrResults[i].mailmaga_flg`"}-->
113            <td><!--{$arrHtmlmail[$key]}--></td>
114            <td><!--{$arrResults[i].update_date|sfDispDBDate}--></td>
115        </tr>
116        <!--{/section}-->
117    </table>
118    <!--検索結果表示テーブル-->
119    <!--{/if}-->
120
121</form>
122
123<!--{/if}-->
124</div>
Note: See TracBrowser for help on using the repository browser.