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

Revision 20269, 5.3 KB checked in by shutta, 10 years ago (diff)

結果が0件の時は、ページャー部分も表示しないように修正。

  • 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>
35                <!--{if $arrErr.htmlmail}--><span class="attention"><!--{$arrErr.htmlmail}--></span><br /><!--{/if}-->
36                <!--{html_radios name="htmlmail" options=$arrHtmlmail separator="&nbsp;" selected=$list_data.htmlmail}-->
37            </td>
38        </tr>
39        <tr>
40            <th>配信メールアドレス種別</th>
41            <td colspan="3">
42                <!--{html_radios name="mail_type" options=$arrMailType separator="<br />" selected=$list_data.mail_type}-->
43            </td>
44        </tr>
45    </table>
46    <!--{* 検索条件設定テーブルここまで *}-->
47
48    <div class="btn-area">
49        <a class="btn-action" href="javascript:;" onclick="fnFormModeSubmit('search_form', 'search', '', ''); return false;"><span class="btn-next">この条件で検索する</span></a>
50    </div>
51</form>
52
53
54<!--{if count($arrErr) == 0 and ($smarty.post.mode == 'search' or $smarty.post.mode == 'delete' or $smarty.post.mode == 'back')}-->
55
56<form name="form1" id="form1" method="post" action="?">
57<input type="hidden" name="mode" value="" />
58<input type="hidden" name="search_pageno" value="<!--{$tpl_pageno}-->" />
59<input type="hidden" name="result_email" value="" />
60<!--{foreach key=key item=val from=$arrHidden}-->
61<input type="hidden" name="<!--{$key}-->" value="<!--{$val|h}-->" />
62<!--{/foreach}-->
63
64    <h2>検索結果一覧</h2>
65    <div class="btn">
66        <span class="attention"><!--検索結果数--><!--{$tpl_linemax}-->件</span>&nbsp;が該当しました。
67        <!--{if $smarty.const.ADMIN_MODE == '1'}-->
68            <a class="btn-normal" href="javascript:;" onclick="fnModeSubmit('delete_all','',''); return false;"><span>検索結果をすべて削除</span></a>
69        <!--{/if}-->
70        <!--{if $tpl_linemax > 0}-->
71            <a class="btn-normal" href="javascript:;" onclick="document.form1['mode'].value='input'; document.form1.submit(); return false;"><span>配信内容を設定する</span></a>
72        <!--{/if}-->
73    </div>
74    <!--{if count($arrResults) > 0}-->
75
76    <!--{include file=$tpl_pager}-->
77
78    <!--検索結果表示テーブル-->
79    <table class="list">
80    <colgroup width="5%">
81    <colgroup width="10%">
82    <colgroup width="10%">
83    <colgroup width="25%">
84    <colgroup width="15%">
85    <colgroup width="10%">
86    <colgroup width="15%">
87    <colgroup width="5%">
88        <tr>
89            <th>#</th>
90            <th>会員番号</th>
91            <th>注文番号</th>
92            <th>名前</th>
93            <th>メールアドレス</th>
94            <th>希望配信</th>
95            <th>登録日</th>
96            <th>削除</th>
97        </tr>
98        <!--{section name=i loop=$arrResults}-->
99        <tr>
100            <td class="center"><!--{$smarty.section.i.iteration}--></td>
101            <td class="center"><!--{$arrResults[i].customer_id|default:"非会員"}--></td>
102
103            <!--{assign var=key value="`$arrResults[i].customer_id`"}-->
104            <td class="center">
105                <!--{foreach key=key item=val from=$arrCustomerOrderId[$key]}-->
106                <a href="#" onclick="fnOpenWindow('../order/edit.php?order_id=<!--{$val}-->','order_disp','800','900'); return false;" ><!--{$val}--></a><br />
107                <!--{foreachelse}-->
108                -
109                <!--{/foreach}-->
110            </td>
111
112            <td><!--{$arrResults[i].name01|h}--> <!--{$arrResults[i].name02|h}--></td>
113            <td><!--{$arrResults[i].email|h}--></td>
114            <!--{assign var="key" value="`$arrResults[i].mailmaga_flg`"}-->
115            <td class="center"><!--{$arrMAILMAGATYPE[$key]}--></td>
116            <td><!--{$arrResults[i].create_date|sfDispDBDate}--></td>
117            <!--{if $arrResults[i].customer_id != ""}-->
118            <td class="center">-</td>
119            <!--{else}-->
120            <td class="center"><a href="?" onclick="fnFormModeSubmit('form1','delete','result_email','<!--{$arrResults[i].email|h}-->'); return false;">削除</a></td>
121            <!--{/if}-->
122        </tr>
123        <!--{/section}-->
124    </table>
125    <!--検索結果表示テーブル-->
126    <!--{/if}-->
127
128</form>
129
130<!--{/if}-->
131</div>
Note: See TracBrowser for help on using the repository browser.