source: branches/version-2_11-dev/data/Smarty/templates/admin/customer/index.tpl @ 21345

Revision 21345, 6.4 KB checked in by Seasoft, 9 years ago (diff)

#1558 (<col> で全列の幅を%で指定しているが、合計値が100%でない)

  • 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-2011 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<script type="text/javascript">
25<!--
26
27    function fnDelete(customer_id) {
28        if (confirm('この顧客情報を削除しても宜しいですか?')) {
29            document.form1.mode.value = "delete"
30            document.form1['edit_customer_id'].value = customer_id;
31            document.form1.submit();
32            return false;
33        }
34    }
35
36    function fnEdit(customer_id) {
37        document.form1.action = './edit.php';
38        document.form1.mode.value = "edit_search"
39        document.form1['edit_customer_id'].value = customer_id;
40        document.form1.search_pageno.value = 1;
41        document.form1.submit();
42        return false;
43    }
44
45    function fnReSendMail(customer_id) {
46        if (confirm('仮登録メールを再送しても宜しいですか?')) {
47            document.form1.mode.value = "resend_mail"
48            document.form1['edit_customer_id'].value = customer_id;
49            document.form1.submit();
50            return false;
51        }
52    }
53//-->
54</script>
55
56
57<div id="customer" class="contents-main">
58<form name="search_form" id="search_form" method="post" action="?">
59<input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" />
60<input type="hidden" name="mode" value="search" />
61
62    <h2>検索条件設定</h2>
63
64    <!--検索条件設定テーブルここから-->
65    <table class="form">
66        <!--{include file="`$smarty.const.TEMPLATE_ADMIN_REALDIR`/adminparts/form_customer_search.tpl"}-->
67        <tr>
68            <th>会員状態</th>
69            <td colspan="3"><!--{html_checkboxes name="search_status" options=$arrStatus separator="&nbsp;" selected=$arrForm.search_status.value}--></td>
70        </tr>
71    </table>
72    <div class="btn">
73        <p class="page_rows">検索結果表示件数
74        <select name="search_page_max">
75            <!--{html_options options=$arrPageMax selected=$arrForm.search_page_max}-->
76        </select> 件</p>
77        <div class="btn-area">
78            <ul>
79                <li><a class="btn-action" href="javascript:;" onclick="fnFormModeSubmit('search_form', 'search', '', ''); return false;"><span class="btn-next">この条件で検索する</span></a></li>
80            </ul>
81        </div>
82    </div>
83</form>
84<!--{if count($arrErr) == 0 and ($smarty.post.mode == 'search' or $smarty.post.mode == 'delete' or $smarty.post.mode == 'resend_mail')}-->
85
86<!--★★検索結果一覧★★-->
87<form name="form1" id="form1" method="post" action="?">
88<input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" />
89<input type="hidden" name="mode" value="search" />
90<input type="hidden" name="edit_customer_id" value="" />
91    <!--{foreach key=key item=item from=$arrHidden}-->
92    <!--{if is_array($item)}-->
93        <!--{foreach item=c_item from=$item}-->
94        <input type="hidden" name="<!--{$key|h}-->[]" value="<!--{$c_item|h}-->" />
95        <!--{/foreach}-->
96    <!--{else}-->
97        <input type="hidden" name="<!--{$key|h}-->" value="<!--{$item|h}-->" />
98    <!--{/if}-->
99<!--{/foreach}-->
100
101    <h2>検索結果一覧</h2>
102    <div class="btn">
103        <span class="attention"><!--検索結果数--><!--{$tpl_linemax}-->件</span>&nbsp;が該当しました。
104        <!--検索結果-->
105        <a class="btn-normal" href="javascript:;" onclick="fnModeSubmit('csv','',''); return false;">CSV ダウンロード</a>
106        <a class="btn-normal" href="javascript:;" onclick="location.href='../contents/csv.php?tpl_subno_csv=customer'">CSV 出力項目設定</a>
107    </div>
108    <!--{if count($arrData) > 0}-->
109
110    <!--{include file=$tpl_pager}-->
111
112    <!--検索結果表示テーブル-->
113    <table class="list" id="customer-search-result">
114        <col width="8%" />
115        <col width="10%" />
116        <col width="30%" />
117        <col width="8%" />
118        <col width="30%" />
119        <col width="7%" />
120        <col width="7%" />
121        <tr>
122            <th rowspan="2">種別</th>
123            <th>顧客ID</th>
124            <th rowspan="2">お名前/(フリガナ)</th>
125            <th rowspan="2">性別</th>
126            <th>TEL</th>
127            <th rowspan="2">編集</th>
128            <th rowspan="2">削除</th>
129        </tr>
130        <tr>
131            <th>都道府県</th>
132            <th>メールアドレス</th>
133        </tr>
134        <!--{foreach from=$arrData item=row}-->
135            <tr>
136                <td class="center" rowspan="2"><!--{if $row.status eq 1}-->仮<!--{else}-->本<!--{/if}--></td>
137                <td><!--{$row.customer_id|h}--></td>
138                <td rowspan="2"><!--{$row.name01|h}--> <!--{$row.name02|h}--><br>(<!--{$row.kana01|h}--> <!--{$row.kana02|h}-->)</td>
139                <td class="center" rowspan="2"><!--{$arrSex[$row.sex]|h}--></td>
140                <td><!--{$row.tel01|h}-->-<!--{$row.tel02|h}-->-<!--{$row.tel03|h}--></td>
141                <td class="center" rowspan="2"><span class="icon_edit"><a href="#" onclick="return fnEdit('<!--{$row.customer_id|h}-->');">編集</a></span></td>
142                <td class="center" rowspan="2"><span class="icon_delete"><a href="#" onclick="return fnDelete('<!--{$row.customer_id|h}-->');">削除</a></span></td>
143            </tr>
144            <tr>
145                <td><!--{assign var=pref value=$row.pref}--><!--{$arrPref[$pref]}--></td>
146                <td><!--{mailto address=$row.email encode="javascript"}--></a><!--{if $row.status eq 1}--><br /><a href="#" onclick="return fnReSendMail('<!--{$row.customer_id|h}-->');">仮登録メール再送</a><!--{/if}--></td>
147            </tr>
148        <!--{/foreach}-->
149    </table>
150    <!--検索結果表示テーブル-->
151
152    <!--{/if}-->
153</form>
154<!--★★検索結果一覧★★-->
155
156<!--{/if}-->
157</div>
Note: See TracBrowser for help on using the repository browser.