source: branches/version-2_12-multilang/data/Smarty/templates/admin/customer/index.tpl @ 22121

Revision 22121, 6.6 KB checked in by h_yoshimoto, 11 years ago (diff)

#1890 管理画面テンプレートのメッセージを集約(ダミーID)

  • 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-2012 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
25<script type="text/javascript">
26<!--
27
28    function fnDelete(customer_id) {
29        if (confirm('<!--{t string="tpl_248"}-->')) {
30            document.form1.mode.value = "delete"
31            document.form1['edit_customer_id'].value = customer_id;
32            document.form1.submit();
33            return false;
34        }
35    }
36
37    function fnEdit(customer_id) {
38        document.form1.action = './edit.php';
39        document.form1.mode.value = "edit_search"
40        document.form1['edit_customer_id'].value = customer_id;
41        document.form1.search_pageno.value = 1;
42        document.form1.submit();
43        return false;
44    }
45
46    function fnReSendMail(customer_id) {
47        if (confirm('<!--{t string="tpl_249"}-->')) {
48            document.form1.mode.value = "resend_mail"
49            document.form1['edit_customer_id'].value = customer_id;
50            document.form1.submit();
51            return false;
52        }
53    }
54//-->
55</script>
56
57
58<div id="customer" class="contents-main">
59<form name="search_form" id="search_form" method="post" action="?">
60<input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" />
61<input type="hidden" name="mode" value="search" />
62
63    <h2><!--{t string="tpl_250"}--></h2>
64
65    <!--検索条件設定テーブルここから-->
66    <table class="form">
67        <!--{include file="`$smarty.const.TEMPLATE_ADMIN_REALDIR`/adminparts/form_customer_search.tpl"}-->
68        <tr>
69            <th><!--{t string="tpl_209"}--></th>
70            <td colspan="3"><!--{html_checkboxes name="search_status" options=$arrStatus separator="&nbsp;" selected=$arrForm.search_status.value}--></td>
71        </tr>
72    </table>
73    <div class="btn">
74        <p class="page_rows"><!--{t string="tpl_251"}-->
75        <select name="search_page_max">
76            <!--{html_options options=$arrPageMax selected=$arrForm.search_page_max}-->
77        </select> 件</p>
78        <div class="btn-area">
79            <ul>
80                <li><a class="btn-action" href="javascript:;" onclick="fnFormModeSubmit('search_form', 'search', '', ''); return false;"><span class="btn-next"><!--{t string="tpl_252"}--></span></a></li>
81            </ul>
82        </div>
83    </div>
84</form>
85<!--{if count($arrErr) == 0 and ($smarty.post.mode == 'search' or $smarty.post.mode == 'delete' or $smarty.post.mode == 'resend_mail')}-->
86
87<!--★★検索結果一覧★★-->
88<form name="form1" id="form1" method="post" action="?">
89<input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" />
90<input type="hidden" name="mode" value="search" />
91<input type="hidden" name="edit_customer_id" value="" />
92    <!--{foreach key=key item=item from=$arrHidden}-->
93    <!--{if is_array($item)}-->
94        <!--{foreach item=c_item from=$item}-->
95        <input type="hidden" name="<!--{$key|h}-->[]" value="<!--{$c_item|h}-->" />
96        <!--{/foreach}-->
97    <!--{else}-->
98        <input type="hidden" name="<!--{$key|h}-->" value="<!--{$item|h}-->" />
99    <!--{/if}-->
100<!--{/foreach}-->
101
102    <h2><!--{t string="tpl_253"}--></h2>
103    <div class="btn">
104        <!--検索結果数--><!--{t string="tpl_230" T_FIELD=$tpl_linemax}-->
105        <!--検索結果-->
106        <a class="btn-normal" href="javascript:;" onclick="fnModeSubmit('csv','',''); return false;"><!--{t string="tpl_254"}--></a>
107        <a class="btn-normal" href="javascript:;" onclick="location.href='../contents/csv.php?tpl_subno_csv=customer'"><!--{t string="tpl_255"}--></a>
108    </div>
109    <!--{if count($arrData) > 0}-->
110
111    <!--{include file=$tpl_pager}-->
112
113    <!--検索結果表示テーブル-->
114    <table class="list" id="customer-search-result">
115        <col width="8%" />
116        <col width="10%" />
117        <col width="30%" />
118        <col width="8%" />
119        <col width="30%" />
120        <col width="7%" />
121        <col width="7%" />
122        <tr>
123            <th rowspan="2"><!--{t string="tpl_256"}--></th>
124            <th><!--{t string="tpl_207"}--></th>
125            <th rowspan="2"><!--{t string="tpl_257"}--></th>
126            <th rowspan="2"><!--{t string="tpl_215"}--></th>
127            <th><!--{t string="tpl_037"}--></th>
128            <th rowspan="2"><!--{t string="tpl_003"}--></th>
129            <th rowspan="2"><!--{t string="tpl_004"}--></th>
130        </tr>
131        <tr>
132            <th><!--{t string="tpl_258"}--></th>
133            <th><!--{t string="tpl_108"}--></th>
134        </tr>
135        <!--{foreach from=$arrData item=row}-->
136            <tr>
137                <td class="center" rowspan="2"><!--{if $row.status eq 1}--><!--{t string="tpl_260"}--><!--{else}--><!--{t string="tpl_261"}--><!--{/if}--></td>
138                <td><!--{$row.customer_id|h}--></td>
139                <td rowspan="2"><!--{$row.name01|h}--> <!--{$row.name02|h}--><br>(<!--{$row.kana01|h}--> <!--{$row.kana02|h}-->)</td>
140                <td class="center" rowspan="2"><!--{$arrSex[$row.sex]|h}--></td>
141                <td><!--{$row.tel01|h}-->-<!--{$row.tel02|h}-->-<!--{$row.tel03|h}--></td>
142                <td class="center" rowspan="2"><span class="icon_edit"><a href="#" onclick="return fnEdit('<!--{$row.customer_id|h}-->');"><!--{t string="tpl_003"}--></a></span></td>
143                <td class="center" rowspan="2"><span class="icon_delete"><a href="#" onclick="return fnDelete('<!--{$row.customer_id|h}-->');"><!--{t string="tpl_004"}--></a></span></td>
144            </tr>
145            <tr>
146                <td><!--{assign var=pref value=$row.pref}--><!--{$arrPref[$pref]}--></td>
147                <td><!--{mailto address=$row.email encode="javascript"}--></a><!--{if $row.status eq 1}--><br /><a href="#" onclick="return fnReSendMail('<!--{$row.customer_id|h}-->');"><!--{t string="tpl_259"}--></a><!--{/if}--></td>
148            </tr>
149        <!--{/foreach}-->
150    </table>
151    <!--検索結果表示テーブル-->
152
153    <!--{/if}-->
154</form>
155<!--★★検索結果一覧★★-->
156
157<!--{/if}-->
158</div>
Note: See TracBrowser for help on using the repository browser.