source: branches/version-2_12-multilang/data/Smarty/templates/admin/order/pdf_input.tpl @ 22516

Revision 22516, 9.1 KB checked in by kim, 8 years ago (diff)

#950 ラベルタグを統一(影響度合いが小さいので日本版にいれるのも可能かと思われるがいったんmultilangにコミット)

  • 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) 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<!--{include file="`$smarty.const.TEMPLATE_ADMIN_REALDIR`admin_popup_header.tpl"}-->
26
27<script type="text/javascript">
28<!--
29self.moveTo(20,20);self.focus();
30
31function lfPopwinSubmit(formName) {
32    win02('about:blank','pdf','1000','900');
33    document[formName].target = "pdf";
34    document[formName].submit();
35    return false;
36}
37
38    $(function(){
39        //console.log(ymd);
40        var dateFormat = $.datepicker.regional['<!--{$smarty.const.LANG_CODE}-->'].dateFormat;
41
42        <!--{if $arrForm.year != '' && $arrForm.month != '' && $arrForm.day != ''}-->
43        var year  = '<!--{$arrForm.year|h}-->';
44        var month = '<!--{$arrForm.month|h}-->';
45        var day   = '<!--{$arrForm.day|h}-->';
46        var ymd = $.datepicker.formatDate(dateFormat, new Date(year, month - 1, day));
47        $("#datepicker").val(ymd);
48        //console.log(ymd);
49        <!--{/if}-->
50
51        $( "#datepicker" ).datepicker({
52        beforeShowDay: function(date) {
53            if(date.getDay() == 0) {
54                return [true,"date-sunday"];
55            } else if(date.getDay() == 6){
56                return [true,"date-saturday"];
57            } else {
58                return [true];
59            }
60        }
61        ,changeMonth: 'true'
62        ,changeYear: 'true'
63        ,onSelect: function(dateText, inst){
64            var year  = inst.selectedYear;
65            var month = inst.selectedMonth + 1;
66            var day   = inst.selectedDay;
67            setDate(year + '/' + month + '/' + day);
68        },
69        showButtonPanel: true,
70        beforeShow: showAdditionalButton,
71        onChangeMonthYear: showAdditionalButton
72        });
73
74        $("#datepicker").change( function() {
75            var dateText   = $(this).val();
76            var dateFormat = $.datepicker.regional['<!--{$smarty.const.LANG_CODE}-->'].dateFormat;
77            // console.log(dateText);
78            // console.log(dateFormat);
79            var date;
80            var year  = '';
81            var month = '';
82            var day   = '';
83            try {
84                date = $.datepicker.parseDate(dateFormat, dateText);
85                year  = date.getFullYear();
86                month = date.getMonth() + 1;
87                day   = date.getDate();
88            } catch (e) {
89                // console.log(e);
90                // clear date text
91                $(this).val('');
92            }
93            setDate(year + '/' + month + '/' + day);
94        });
95
96    });
97
98    var btn = $('<button class="ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all" type="button">Clear</button>');
99
100    var showAdditionalButton = function (input) {
101        setTimeout(function () {
102            var buttonPane = $(input)
103                     .datepicker("widget")
104                     .find(".ui-datepicker-buttonpane");
105            btn
106                    .unbind("click")
107                    .bind("click", function () {
108                        $.datepicker._clearDate(input);
109                        $("*[name=year]").val("");
110                        $("*[name=month]").val("");
111                        $("*[name=day]").val("");
112                    });
113            btn.appendTo(buttonPane);
114        }, 1);
115    };
116
117    function setDate(dateText){
118        var dates = dateText.split('/');
119        $("*[name=year]").val(dates[0]);
120        $("*[name=month]").val(dates[1]);
121        $("*[name=day]").val(dates[2]);
122    }
123
124//-->
125</script>
126
127<form name="form1" id="form1" method="post" action="?">
128<input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" />
129<input type="hidden" name="mode" value="confirm" />
130<!--{foreach from=$arrForm.order_id item=order_id}-->
131    <input type="hidden" name="order_id[]" value="<!--{$order_id|h}-->">
132<!--{/foreach}-->
133
134<h2><!--コンテンツタイトル--><!--{t string="tpl_Ledger creation_01"}--></h2>
135
136<table class="form">
137    <col width="20%" />
138    <col width="80%" />
139    <tr>
140        <th><!--{t string="tpl_Order number_01"}--></th>
141        <td><!--{$arrForm.order_id|@join:', '}--></td>
142    </tr>
143    <tr>
144        <th><!--{t string="tpl_Issuance date<span class='attention'> *</span>_01" escape="none"}--></th>
145        <td><!--{if $arrErr.year}--><span class="attention"><!--{$arrErr.year}--></span><!--{/if}-->
146            <input id="datepicker"
147                   type="text"
148                   value="" <!--{if $arrErr.year != ""}--><!--{sfSetErrorStyle}--><!--{/if}--> />
149            <input type="hidden" name="year" value="<!--{$arrForm.year|h}-->" />
150            <input type="hidden" name="month" value="<!--{$arrForm.month|h}-->" />
151            <input type="hidden" name="day" value="<!--{$arrForm.day|h}-->" />
152        </td>
153    </tr>
154    <tr>
155        <th><!--{t string="tpl_Ledger type_01"}--></th>
156        <td><!--{if $arrErr.download}--><span class="attention"><!--{$arrErr.download}--></span><!--{/if}-->
157            <select name="type">
158            <!--{html_options options=$arrType selected=$arrForm.type}-->
159            </select>
160        </td>
161    </tr>
162    <tr>
163        <th><!--{t string="tpl_Download method_01"}--></th>
164        <td><!--{if $arrErr.download}--><span class="attention"><!--{$arrErr.download}--></span><!--{/if}-->
165            <select name="download">
166            <!--{html_options options=$arrDownload selected=$arrForm.download}-->
167            </select>
168        </td>
169    </tr>
170    <tr>
171        <th><!--{t string="tpl_Ledger title_01"}--></th>
172        <td><!--{if $arrErr.title}--><span class="attention"><!--{$arrErr.title}--></span><!--{/if}-->
173            <input type="text" name="title" size="40" value="<!--{$arrForm.title}-->" maxlength="<!--{$smarty.const.STEXT_LEN}-->"/><br />
174            <span style="font-size: 80%;"><!--{t string="tpl_* The default title is displayed when field is blank._01"}--></span><br />
175        </td>
176    </tr>
177    <tr>
178        <th><!--{t string="tpl_Ledger message_01"}--></th>
179        <td><!--{if $arrErr.msg1}--><span class="attention"><!--{$arrErr.msg1}--></span><!--{/if}-->
180            <!--{t string="tpl_1st line:_01"}--><input type="text" name="msg1" size="40" value="<!--{$arrForm.msg1|h}-->" maxlength="<!--{$smarty.const.STEXT_LEN}-->"/><br />
181            <!--{if $arrErr.msg2}--><span class="attention"><!--{$arrErr.msg1}--></span><!--{/if}-->
182            <!--{t string="tpl_2nd line:_01"}--><input type="text" name="msg2" size="40" value="<!--{$arrForm.msg2|h}-->" maxlength="<!--{$smarty.const.STEXT_LEN}-->"/><br />
183            <!--{if $arrErr.msg3}--><span class="attention"><!--{$arrErr.msg3}--></span><!--{/if}-->
184            <!--{t string="tpl_3rd line:_01"}--><input type="text" name="msg3" size="40" value="<!--{$arrForm.msg3|h}-->" maxlength="<!--{$smarty.const.STEXT_LEN}-->"/><br />
185            <span style="font-size: 80%;"><!--{t string="tpl_* The default message is displayed when fields are blank. _01"}--></span><br />
186        </td>
187    </tr>
188    <tr>
189        <th><!--{t string="tpl_Remarks_01"}--></th>
190        <td>
191            <!--{t string="tpl_1st line:_01"}--><input type="text" name="etc1" size="40" value="" maxlength="<!--{$smarty.const.STEXT_LEN}-->"/><br />
192            <!--{if $arrErr.etc2}--><span class="attention"><!--{$arrErr.msg1}--></span><!--{/if}-->
193            <!--{t string="tpl_2nd line:_01"}--><input type="text" name="etc2" size="40" value="" maxlength="<!--{$smarty.const.STEXT_LEN}-->"/><br />
194            <!--{if $arrErr.etc3}--><span class="attention"><!--{$arrErr.msg3}--></span><!--{/if}-->
195            <!--{t string="tpl_3rd line:_01"}--><input type="text" name="etc3" size="40" value="" maxlength="<!--{$smarty.const.STEXT_LEN}-->"/><br />
196            <span style="font-size: 80%;"><!--{t string="tpl_* Not displayed when fields are blank._01"}--></span><br />
197        </td>
198    </tr>
199    <!--{if $smarty.const.USE_POINT !== false}-->
200        <tr>
201            <th><!--{t string="tpl_Point notation_01"}--></th>
202            <td>
203                <label><input type="radio" name="disp_point" value="1" checked="checked" /><!--{t string="tpl_Yes_01"}--></label>&nbsp;<label><input type="radio" name="disp_point" value="0" /><!--{t string="tpl_No_01"}--></label><br />
204                <span style="font-size: 80%;"><!--{t string="tpl_* Even if 'Yes' is selected, it is not displayed unless the customer is a member._01"}--></span>
205            </td>
206        </tr>
207    <!--{else}-->
208        <input type="hidden" name="disp_point" value="0" />
209    <!--{/if}-->
210</table>
211
212<div class="btn-area">
213    <ul>
214        <li><a class="btn-action" href="javascript:;" onclick="return lfPopwinSubmit('form1');"><span class="btn-next"><!--{t string="tpl_Create using these contents_01"}--></span></a></li>
215    </ul>
216</div>
217
218</form>
219
220<!--{include file="`$smarty.const.TEMPLATE_ADMIN_REALDIR`admin_popup_footer.tpl"}-->
Note: See TracBrowser for help on using the repository browser.