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

Revision 22212, 14.7 KB checked in by yomoro, 11 years ago (diff)

#1987 (国際化テンプレート:年月日のセレクトボックス廃止)

  • 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    $(function(){
56        $.datepicker.setDefaults( $.datepicker.regional[ "<!--{$smarty.const.LANG_CODE}-->" ] );
57       
58        $( "#datepickercustomersearch_b_start" ).datepicker({
59        beforeShowDay: function(date) {
60            if(date.getDay() == 0) {
61                return [true,"date-sunday"];
62            } else if(date.getDay() == 6){
63                return [true,"date-saturday"];
64            } else {
65                return [true];
66            }
67        },changeMonth: 'true'
68        ,changeYear: 'true'
69        ,onSelect: function(dateText, inst){
70            setDatecustomersearch_b_start(dateText);
71        },
72        showButtonPanel: true,
73        beforeShow: showAdditionalButtoncustomersearch_b_start,       
74        onChangeMonthYear: showAdditionalButtoncustomersearch_b_start
75        });
76       
77        $("#datepickercustomersearch_b_start").blur( function() {
78            var dateText = $(this).val();
79            setDatecustomersearch_b_start(dateText);
80        });
81       
82        $( "#datepickercustomersearch_b_end" ).datepicker({
83        beforeShowDay: function(date) {
84            if(date.getDay() == 0) {
85                return [true,"date-sunday"];
86            } else if(date.getDay() == 6){
87                return [true,"date-saturday"];
88            } else {
89                return [true];
90            }
91        },changeMonth: 'true'
92        ,changeYear: 'true'
93        ,onSelect: function(dateText, inst){
94            setDatecustomersearch_b_end(dateText);
95        },
96        showButtonPanel: true,
97        beforeShow: showAdditionalButtoncustomersearch_b_end,       
98        onChangeMonthYear: showAdditionalButtoncustomersearch_b_end
99        });
100       
101        $("#datepickercustomersearch_b_end").blur( function() {
102            var dateText = $(this).val();
103            setDatecustomersearch_b_end(dateText);
104        });
105       
106        $( "#datepickercustomersearch_start" ).datepicker({
107        beforeShowDay: function(date) {
108            if(date.getDay() == 0) {
109                return [true,"date-sunday"];
110            } else if(date.getDay() == 6){
111                return [true,"date-saturday"];
112            } else {
113                return [true];
114            }
115        },changeMonth: 'true'
116        ,changeYear: 'true'
117        ,onSelect: function(dateText, inst){
118            setDatecustomersearch_start(dateText);
119        },
120        showButtonPanel: true,
121        beforeShow: showAdditionalButtoncustomersearch_start,       
122        onChangeMonthYear: showAdditionalButtoncustomersearch_start
123        });
124       
125        $("#datepickercustomersearch_start").blur( function() {
126            var dateText = $(this).val();
127            setDatecustomersearch_start(dateText);
128        });
129       
130        $( "#datepickercustomersearch_end" ).datepicker({
131        beforeShowDay: function(date) {
132            if(date.getDay() == 0) {
133                return [true,"date-sunday"];
134            } else if(date.getDay() == 6){
135                return [true,"date-saturday"];
136            } else {
137                return [true];
138            }
139        },changeMonth: 'true'
140        ,changeYear: 'true'
141        ,onSelect: function(dateText, inst){
142            setDatecustomersearch_end(dateText);
143        },
144        showButtonPanel: true,
145        beforeShow: showAdditionalButtoncustomersearch_end,       
146        onChangeMonthYear: showAdditionalButtoncustomersearch_end
147        });
148       
149        $("#datepickercustomersearch_end").blur( function() {
150            var dateText = $(this).val();
151            setDatecustomersearch_end(dateText);
152        });
153       
154        $( "#datepickercustomersearch_buy_start" ).datepicker({
155        beforeShowDay: function(date) {
156            if(date.getDay() == 0) {
157                return [true,"date-sunday"];
158            } else if(date.getDay() == 6){
159                return [true,"date-saturday"];
160            } else {
161                return [true];
162            }
163        },changeMonth: 'true'
164        ,changeYear: 'true'
165        ,onSelect: function(dateText, inst){
166            setDatecustomersearch_buy_start(dateText);
167        },
168        showButtonPanel: true,
169        beforeShow: showAdditionalButtoncustomersearch_buy_start,       
170        onChangeMonthYear: showAdditionalButtoncustomersearch_buy_start
171        });
172       
173        $("#datepickercustomersearch_buy_start").blur( function() {
174            var dateText = $(this).val();
175            setDatecustomersearch_buy_start(dateText);
176        });
177       
178        $( "#datepickercustomersearch_buy_end" ).datepicker({
179        beforeShowDay: function(date) {
180            if(date.getDay() == 0) {
181                return [true,"date-sunday"];
182            } else if(date.getDay() == 6){
183                return [true,"date-saturday"];
184            } else {
185                return [true];
186            }
187        },changeMonth: 'true'
188        ,changeYear: 'true'
189        ,onSelect: function(dateText, inst){
190            setDatecustomersearch_buy_end(dateText);
191        },
192        showButtonPanel: true,
193        beforeShow: showAdditionalButtoncustomersearch_buy_end,       
194        onChangeMonthYear: showAdditionalButtoncustomersearch_buy_end
195        });
196       
197        $("#datepickercustomersearch_buy_end").blur( function() {
198            var dateText = $(this).val();
199            setDatecustomersearch_buy_end(dateText);
200        });
201       
202    });
203   
204    var btn = $('<button class="ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all" type="button">Clear</button>');
205   
206    var showAdditionalButtoncustomersearch_b_start = function (input) {
207        setTimeout(function () {
208            var buttonPane = $(input)
209                     .datepicker("widget")
210                     .find(".ui-datepicker-buttonpane");
211            btn
212                    .unbind("click")
213                    .bind("click", function () {
214                        $.datepicker._clearDate(input);
215                        $("*[name=search_b_start_year]").val("");
216                        $("*[name=search_b_start_month]").val("");
217                        $("*[name=search_b_start_day]").val("");
218                    });
219            btn.appendTo(buttonPane);
220        }, 1);
221    };
222   
223    var showAdditionalButtoncustomersearch_b_end = function (input) {
224        setTimeout(function () {
225            var buttonPane = $(input)
226                     .datepicker("widget")
227                     .find(".ui-datepicker-buttonpane");
228            btn
229                    .unbind("click")
230                    .bind("click", function () {
231                        $.datepicker._clearDate(input);
232                        $("*[name=search_b_end_year]").val("");
233                        $("*[name=search_b_end_month]").val("");
234                        $("*[name=search_b_end_day]").val("");
235                    });
236            btn.appendTo(buttonPane);
237        }, 1);
238    };
239   
240    var showAdditionalButtoncustomersearch_start = function (input) {
241        setTimeout(function () {
242            var buttonPane = $(input)
243                     .datepicker("widget")
244                     .find(".ui-datepicker-buttonpane");
245            btn
246                    .unbind("click")
247                    .bind("click", function () {
248                        $.datepicker._clearDate(input);
249                        $("*[name=search_start_year]").val("");
250                        $("*[name=search_start_month]").val("");
251                        $("*[name=search_start_day]").val("");
252                    });
253            btn.appendTo(buttonPane);
254        }, 1);
255    };
256   
257    var showAdditionalButtoncustomersearch_end = function (input) {
258        setTimeout(function () {
259            var buttonPane = $(input)
260                     .datepicker("widget")
261                     .find(".ui-datepicker-buttonpane");
262            btn
263                    .unbind("click")
264                    .bind("click", function () {
265                        $.datepicker._clearDate(input);
266                        $("*[name=search_end_year]").val("");
267                        $("*[name=search_end_month]").val("");
268                        $("*[name=search_end_day]").val("");
269                    });
270            btn.appendTo(buttonPane);
271        }, 1);
272    };
273   
274    var showAdditionalButtoncustomersearch_buy_start = function (input) {
275        setTimeout(function () {
276            var buttonPane = $(input)
277                     .datepicker("widget")
278                     .find(".ui-datepicker-buttonpane");
279            btn
280                    .unbind("click")
281                    .bind("click", function () {
282                        $.datepicker._clearDate(input);
283                        $("*[name=search_buy_start_year]").val("");
284                        $("*[name=search_buy_start_month]").val("");
285                        $("*[name=search_buy_start_day]").val("");
286                    });
287            btn.appendTo(buttonPane);
288        }, 1);
289    };
290   
291    var showAdditionalButtoncustomersearch_buy_end = function (input) {
292        setTimeout(function () {
293            var buttonPane = $(input)
294                     .datepicker("widget")
295                     .find(".ui-datepicker-buttonpane");
296            btn
297                    .unbind("click")
298                    .bind("click", function () {
299                        $.datepicker._clearDate(input);
300                        $("*[name=search_buy_end_year]").val("");
301                        $("*[name=search_buy_end_month]").val("");
302                        $("*[name=search_buy_end_day]").val("");
303                    });
304            btn.appendTo(buttonPane);
305        }, 1);
306    };
307   
308    function setDatecustomersearch_b_start(dateText){
309    var dates = dateText.split('/');
310    $("*[name=search_b_start_year]").val(dates[0]);
311    $("*[name=search_b_start_month]").val(dates[1]);
312    $("*[name=search_b_start_day]").val(dates[2]);
313    }
314   
315    function setDatecustomersearch_b_end(dateText){
316    var dates = dateText.split('/');
317    $("*[name=search_b_end_year]").val(dates[0]);
318    $("*[name=search_b_end_month]").val(dates[1]);
319    $("*[name=search_b_end_day]").val(dates[2]);
320    }
321   
322    function setDatecustomersearch_start(dateText){
323    var dates = dateText.split('/');
324    $("*[name=search_start_year]").val(dates[0]);
325    $("*[name=search_start_month]").val(dates[1]);
326    $("*[name=search_start_day]").val(dates[2]);
327    }
328   
329    function setDatecustomersearch_end(dateText){
330    var dates = dateText.split('/');
331    $("*[name=search_end_year]").val(dates[0]);
332    $("*[name=search_end_month]").val(dates[1]);
333    $("*[name=search_end_day]").val(dates[2]);
334    }
335   
336    function setDatecustomersearch_buy_start(dateText){
337    var dates = dateText.split('/');
338    $("*[name=search_buy_start_year]").val(dates[0]);
339    $("*[name=search_buy_start_month]").val(dates[1]);
340    $("*[name=search_buy_start_day]").val(dates[2]);
341    }
342   
343    function setDatecustomersearch_buy_end(dateText){
344    var dates = dateText.split('/');
345    $("*[name=search_buy_end_year]").val(dates[0]);
346    $("*[name=search_buy_end_month]").val(dates[1]);
347    $("*[name=search_buy_end_day]").val(dates[2]);
348    }
349
350//-->
351</script>
352
353<div id="mail" class="contents-main">
354<form name="search_form" id="search_form" method="post" action="?">
355<input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" />
356<input type="hidden" name="mode" value="search" />
357    <h2><!--{t string="tpl_324"}--></h2>
358
359    <!--{* 検索条件設定テーブルここから *}-->
360    <table>
361        <!--{include file="`$smarty.const.TEMPLATE_ADMIN_REALDIR`/adminparts/form_customer_search.tpl"}-->
362        <tr>
363            <th><!--{t string="tpl_325"}--></th>
364            <td colspan="3">
365                <!--{assign var=key value="search_htmlmail"}-->
366                <!--{if $arrErr[$key]}--><span class="attention"><!--{$arrErr[$key]}--></span><br /><!--{/if}-->
367                <!--{html_radios name=$key options=$arrHtmlmail separator="&nbsp;" selected=$arrForm[$key].value}-->
368            </td>
369        </tr>
370        <tr>
371            <th><!--{t string="tpl_326"}--></th>
372            <td colspan="3">
373                <!--{assign var=key value="search_mail_type"}-->
374                <!--{html_radios name=$key options=$arrMailType separator="<br />" selected=$arrForm[$key].value|default:1}-->
375            </td>
376        </tr>
377    </table>
378    <!--{* 検索条件設定テーブルここまで *}-->
379
380    <div class="btn">
381        <p class="page_rows"><!--{t string="tpl_251"}-->
382            <!--{assign var=key value="search_page_max"}-->
383            <!--{t string="record_prefix"}-->
384            <select name="<!--{$key}-->">
385                <!--{html_options options=$arrPageRows selected=$arrForm[$key]}-->
386            </select>
387            <!--{t string="record_suffix"}-->
388        </p>
389        <div class="btn-area">
390            <ul>
391                <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>
392            </ul>
393        </div>
394    </div>
395</form>
396
397
398<!--{if count($arrErr) == 0 and ($smarty.post.mode == 'search' or $smarty.post.mode == 'delete' or $smarty.post.mode == 'back')}-->
399
400<form name="form1" id="form1" method="post" action="?">
401<input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" />
402<input type="hidden" name="mode" value="" />
403<!--{foreach key=key item=item from=$arrHidden}-->
404<!--{if is_array($item)}-->
405    <!--{foreach item=c_item from=$item}-->
406        <input type="hidden" name="<!--{$key}-->[]" value="<!--{$c_item|h}-->" />
407    <!--{/foreach}-->
408<!--{else}-->
409<input type="hidden" name="<!--{$key}-->" value="<!--{$item|h}-->" />
410<!--{/if}-->
411<!--{/foreach}-->
412
413    <h2><!--{t string="tpl_253"}--></h2>
414    <div class="btn">
415        <!--検索結果数--><!--{t string="tpl_230" T_FIELD=$tpl_linemax}-->
416        <!--{if $smarty.const.ADMIN_MODE == '1'}-->
417            <a class="btn-normal" href="javascript:;" onclick="fnModeSubmit('delete_all','',''); return false;"><span><!--{t string="tpl_327"}--></span></a>
418        <!--{/if}-->
419        <!--{if $tpl_linemax > 0}-->
420            <a class="btn-normal" href="javascript:;" onclick="document.form1['mode'].value='input'; document.form1.submit(); return false;"><span><!--{t string="tpl_328"}--></span></a>
421        <!--{/if}-->
422    </div>
423    <!--{if count($arrResults) > 0}-->
424
425    <!--{include file=$tpl_pager}-->
426
427    <!--検索結果表示テーブル-->
428    <table class="list">
429    <col width="10%" />
430    <col width="25%" />
431    <col width="35%" />
432    <col width="15%" />
433    <col width="15%" />
434        <tr>
435            <th><!--{t string="tpl_207"}--></th>
436            <th><!--{t string="tpl_300"}--></th>
437            <th><!--{t string="tpl_108"}--></th>
438            <th><!--{t string="tpl_329"}--></th>
439            <th><!--{t string="tpl_330"}--></th>
440        </tr>
441        <!--{section name=i loop=$arrResults}-->
442        <tr>
443            <td class="center"><!--{$arrResults[i].customer_id}--></td>
444            <td><!--{$arrResults[i].name01|h}--> <!--{$arrResults[i].name02|h}--></td>
445            <td><!--{$arrResults[i].email|h}--></td>
446            <!--{assign var="key" value="`$arrResults[i].mailmaga_flg`"}-->
447            <td class="center"><!--{$arrHtmlmail[$key]}--></td>
448            <td class="center"><!--{$arrResults[i].update_date|sfDispDBDate}--></td>
449        </tr>
450        <!--{/section}-->
451    </table>
452    <!--検索結果表示テーブル-->
453    <!--{/if}-->
454
455</form>
456
457<!--{/if}-->
458</div>
Note: See TracBrowser for help on using the repository browser.