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

Revision 22412, 18.5 KB checked in by adachi, 11 years ago (diff)

#2060 メッセージIDの振り直し:tpl_051 - tpl103

  • 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" src="<!--{$smarty.const.ROOT_URLPATH}-->js/jquery.fancybox/jquery.mousewheel-3.0.4.pack.js"></script>
26<script type="text/javascript" src="<!--{$smarty.const.ROOT_URLPATH}-->js/jquery.fancybox/jquery.fancybox-1.3.4.pack.js"></script>
27<link rel="stylesheet" href="<!--{$smarty.const.ROOT_URLPATH}-->js/jquery.fancybox/jquery.fancybox-1.3.4.css" type="text/css" media="screen" />
28<script type="text/javascript">//<![CDATA[
29var map;
30var marker;
31
32$(function() {
33    var geocoder = new google.maps.Geocoder();
34
35    $("#codeAddress").click(function() {
36        var result = true;
37        var address = $("#addr01").val() + $("#addr02").val();
38        if (geocoder && address) {
39            geocoder.geocode({'address': address}, function (results, status) {
40                if (status == google.maps.GeocoderStatus.OK) {
41                    latlng = results[0].geometry.location;
42                    $("#latitude").val(latlng.lat());
43                    $("#longitude").val(latlng.lng());
44                } else {
45                    alert('<!--{t string="tpl_The address was not found."}-->');
46                }
47            });
48        } else {
49            alert('<!--{t string="tpl_The address was not found."}-->');
50        }
51    });
52
53    $("a#mapAddress").fancybox({onStart: function() {
54        var lat = $("#latitude").val();
55        var lng = $("#longitude").val();
56
57        var latlng;
58        if (lat && lng) {
59            latlng = new google.maps.LatLng(lat, lng);
60        } else {
61            var address = $("#addr01").val() + $("#addr02").val();
62            if (geocoder) {
63                geocoder.geocode({'address': address}, function(results, status) {
64                    if (status == google.maps.GeocoderStatus.OK) {
65                        latlng = results[0].geometry.location;
66                    }
67                });
68            }
69        }
70
71        if (!latlng) {
72            // 座標が取得できない場合は北緯35度東経135度から取得
73            latlng = new google.maps.LatLng(35, 135);
74        }
75
76        var mapOptions = {
77            zoom: 15,
78            center: latlng,
79            mapTypeId: google.maps.MapTypeId.ROADMAP
80        };
81
82        if (!map)
83        {
84            map = new google.maps.Map($("#maps").get(0), mapOptions);
85        }
86        else
87        {
88            map.panTo(latlng);
89        }
90
91        if (!marker)
92        {
93            marker = new google.maps.Marker({map: map, position: latlng});
94            marker.setDraggable(true);
95        }
96        else
97        {
98            marker.setPosition(latlng);
99        }
100
101        // TODO Maker のダブルクリックにも対応したい
102        $("#inputPoint").click(function() {
103            latlng = marker.getPosition();
104            $("#latitude").val(latlng.lat());
105            $("#longitude").val(latlng.lng());
106            $.fancybox.close();
107        });
108    }});
109});
110//]]></script>
111<form name="form1" id="form1" method="post" action="?">
112<input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" />
113<input type="hidden" name="mode" value="<!--{$tpl_mode}-->" />
114<!--{* ▼登録テーブルここから *}-->
115<div id="basis" class="contents-main">
116
117    <h2><!--{t string="tpl_Basic information_01" escape="none"}--></h2>
118    <table summary="<!--{t string="tpl_Basic information_01" escape="none"}-->" id="basis-index-basis">
119        <tr>
120            <th><!--{t string="tpl_Company name_01"}--></th>
121            <td>
122                <span class="attention"><!--{$arrErr.company_name}--></span>
123                <input type="text" name="company_name" value="<!--{$arrForm.company_name|h}-->" maxlength="<!--{$smarty.const.STEXT_LEN}-->" size="60" class="box60" style="<!--{if $arrErr.company_name != ""}-->background-color: <!--{$smarty.const.ERR_COLOR}-->;<!--{/if}-->" />
124                <span class="attention"> <!--{t string="tpl_(T_FIELD characters max)_01" T_FIELD=$smarty.const.STEXT_LEN}--></span>
125            </td>
126        </tr>
127        <tr>
128            <th><!--{t string="tpl_Store name<span class='attention'> *</span>_01" escape="none"}--></th>
129            <td>
130                <span class="attention"><!--{$arrErr.shop_name}--></span>
131                <input type="text" name="shop_name" value="<!--{$arrForm.shop_name|h}-->" maxlength="<!--{$smarty.const.STEXT_LEN}-->" size="60" class="box60" style="<!--{if $arrErr.shop_name != ""}-->background-color: <!--{$smarty.const.ERR_COLOR}-->;<!--{/if}-->" />
132                <span class="attention"> <!--{t string="tpl_(T_FIELD characters max)_01" T_FIELD=$smarty.const.STEXT_LEN}--></span>
133            </td>
134        </tr>
135        <tr>
136            <th><!--{t string="tpl_Store name (in English)_01"}--></th>
137            <td>
138                <span class="attention"><!--{$arrErr.shop_name_eng}--></span>
139                <input type="text" name="shop_name_eng" value="<!--{$arrForm.shop_name_eng|h}-->" maxlength="<!--{$smarty.const.MTEXT_LEN}-->" size="60" class="box60" style="<!--{if $arrErr.shop_name_eng != ""}-->background-color: <!--{$smarty.const.ERR_COLOR}-->;<!--{/if}-->" />
140                <span class="attention"> <!--{t string="tpl_(T_FIELD characters max)_01" T_FIELD=$smarty.const.MTEXT_LEN}--></span>
141            </td>
142        </tr>
143        <tr>
144            <th><!--{t string="tpl_Postal code<span class='attention'> *</span>_01" escape="none"}--></th>
145            <td>
146                <!--{* <span class="attention"><!--{$arrErr.zip01}--></span> *}-->
147                <!--{* <span class="attention"><!--{$arrErr.zip02}--></span> *}-->
148                <span class="attention"><!--{$arrErr.zipcode}--></span>
149               
150                <!--{* <!--{t string="tpl_106"}--> <input type="text" name="zip01" value="<!--{$arrForm.zip01|h}-->" maxlength="3" size="6" class="box6" style="<!--{if $arrErr.zip01 != ""}-->background-color: <!--{$smarty.const.ERR_COLOR}-->;<!--{/if}-->" /> - <input type="text" name="zip02" value="<!--{$arrForm.zip02|h}-->" maxlength="4"    size="6" class="box6" style="<!--{if $arrErr.zip02 != ""}-->background-color: <!--{$smarty.const.ERR_COLOR}-->;<!--{/if}-->" /> *}-->
151                <!--{* <a class="btn-normal" href="javascript:;" name="address_input" onclick="fnCallAddress('<!--{$smarty.const.INPUT_ZIP_URLPATH}-->', 'zip01', 'zip02', 'pref', 'addr01'); return false;"><!--{t string="tpl_Location finder_01"}--></a> *}-->
152                <!--{t string="tpl_106"}--> <input type="text" name="zipcode" value="<!--{$arrForm.zipcode|h}-->" maxlength="10" size="15" class="box10" style="<!--{if $arrErr.zipcode != ""}-->background-color: <!--{$smarty.const.ERR_COLOR}-->;<!--{/if}-->" />
153            </td>
154        </tr>
155        <tr>
156            <th><!--{t string="tpl_SHOP address<span class='attention'> *</span>_01" escape="none"}--></th>
157            <td>
158                <p>
159                    <span class="attention"><!--{$arrErr.addr01}--></span>
160                    <input type="text" name="addr01" value="<!--{$arrForm.addr01|h}-->" maxlength="<!--{$smarty.const.STEXT_LEN}-->" size="60" class="box60" style="<!--{if $arrErr.addr01 != ""}-->background-color: <!--{$smarty.const.ERR_COLOR}-->;<!--{/if}-->" id="addr01" /><span class="attention"> <!--{t string="tpl_(T_FIELD characters max)_01" T_FIELD=$smarty.const.STEXT_LEN}--></span><br />
161                    <!--{$smarty.const.SAMPLE_ADDRESS1}-->
162                </p>
163                <p>
164                    <span class="attention"><!--{$arrErr.addr02}--></span>
165                    <input type="text" name="addr02" value="<!--{$arrForm.addr02|h}-->"    maxlength="<!--{$smarty.const.STEXT_LEN}-->" size="60" class="box60" style="<!--{if $arrErr.addr02 != ""}-->background-color: <!--{$smarty.const.ERR_COLOR}-->;<!--{/if}-->" id="addr02" /><span class="attention"> <!--{t string="tpl_(T_FIELD characters max)_01" T_FIELD=$smarty.const.STEXT_LEN}--></span><br />
166                    <!--{$smarty.const.SAMPLE_ADDRESS2}-->
167                </p>
168            </td>
169        </tr>
170        <tr>
171            <th><!--{t string="tpl_Phone Number_01"}--></th>
172            <td>
173                <span class="attention"><!--{$arrErr.tel01}--></span>
174                <input type="text" name="tel01" value="<!--{$arrForm.tel01|h}-->" maxlength="6" size="6" class="box6" style="<!--{if $arrErr.tel01 != ""}-->background-color: <!--{$smarty.const.ERR_COLOR}-->;<!--{/if}-->" /> -
175                <input type="text" name="tel02" value="<!--{$arrForm.tel02|h}-->" maxlength="6" size="6" class="box6" style="<!--{if $arrErr.tel01 != ""}-->background-color: <!--{$smarty.const.ERR_COLOR}-->;<!--{/if}-->" /> -
176                <input type="text" name="tel03" value="<!--{$arrForm.tel03|h}-->" maxlength="6" size="6" class="box6" style="<!--{if $arrErr.tel01 != ""}-->background-color: <!--{$smarty.const.ERR_COLOR}-->;<!--{/if}-->" />
177            </td>
178        </tr>
179        <tr>
180            <th><!--{t string="tpl_FAX_01"}--></th>
181            <td>
182                <span class="attention"><!--{$arrErr.fax01}--></span>
183                <input type="text" name="fax01" value="<!--{$arrForm.fax01|h}-->" maxlength="6" size="6" class="box6" style="<!--{if $arrErr.fax01 != ""}-->background-color: <!--{$smarty.const.ERR_COLOR}-->;<!--{/if}-->" /> -
184                <input type="text" name="fax02" value="<!--{$arrForm.fax02|h}-->" maxlength="6" size="6" class="box6" style="<!--{if $arrErr.fax02 != ""}-->background-color: <!--{$smarty.const.ERR_COLOR}-->;<!--{/if}-->" /> -
185                <input type="text" name="fax03" value="<!--{$arrForm.fax03|h}-->" maxlength="6" size="6" class="box6" style="<!--{if $arrErr.fax03 != ""}-->background-color: <!--{$smarty.const.ERR_COLOR}-->;<!--{/if}-->" />
186            </td>
187        </tr>
188        <tr>
189            <th><!--{t string="tpl_Store business hours_01"}--></th>
190            <td>
191                <span class="attention"><!--{$arrErr.business_hour}--></span>
192                <input type="text" name="business_hour" value="<!--{$arrForm.business_hour|h}-->" maxlength="<!--{$smarty.const.STEXT_LEN}-->" size="60" class="box60" style="<!--{if $arrErr.business_hour != ""}-->background-color: <!--{$smarty.const.ERR_COLOR}-->;<!--{/if}-->" />
193                <span class="attention"> <!--{t string="tpl_(T_FIELD characters max)_01" T_FIELD=$smarty.const.STEXT_LEN}--></span>
194            </td>
195        </tr>
196        <tr>
197            <th><!--{t string="tpl_Product order receipt e-mail address<span class='attention'> *</span>_01" escape="none"}--></th>
198            <td>
199                <span class="attention"><!--{$arrErr.email01}--></span>
200                <input type="text" name="email01" value="<!--{$arrForm.email01|h}-->" size="60" class="box60" style="<!--{if $arrErr.email01 != ""}-->background-color: <!--{$smarty.const.ERR_COLOR}-->;<!--{/if}-->" />
201            </td>
202        </tr>
203        <tr>
204            <th><!--{t string="tpl_E-mail address for receiving inquiries<span class='attention'> *</span>_01" escape="none"}--></th>
205            <td>
206                <span class="attention"><!--{$arrErr.email02}--></span>
207                <input type="text" name="email02" value="<!--{$arrForm.email02|h}-->" size="60" class="box60" style="<!--{if $arrErr.email02 != ""}-->background-color: <!--{$smarty.const.ERR_COLOR}-->;<!--{/if}-->"/>
208            </td>
209        </tr>
210        <tr>
211            <th><!--{t string="tpl_E-mail address of sender<span class='attention'> *</span>_01" escape="none"}--></th>
212            <td>
213                <span class="attention"><!--{$arrErr.email03}--></span>
214                <input type="text" name="email03" value="<!--{$arrForm.email03|h}-->" size="60" class="box60" style="<!--{if $arrErr.email03 != ""}-->background-color: <!--{$smarty.const.ERR_COLOR}-->;<!--{/if}-->"/>
215            </td>
216        </tr>
217        <tr>
218            <th><!--{t string="tpl_E-mail address for receiving sending errors<span class='attention'> *</span>_01" escape="none"}--></th>
219            <td>
220                <span class="attention"><!--{$arrErr.email04}--></span>
221                <input type="text" name="email04" value="<!--{$arrForm.email04|h}-->" size="60" class="box60" style="<!--{if $arrErr.email04 != ""}-->background-color: <!--{$smarty.const.ERR_COLOR}-->;<!--{/if}-->"/>
222            </td>
223        </tr>
224        <tr>
225            <th><!--{t string="tpl_Available products_01"}--></th>
226            <td>
227                <!--{assign var=key value="good_traded"}-->
228                <span class="attention"><!--{$arrErr[$key]}--></span>
229                <textarea name="<!--{$key}-->" cols="60" rows="8" class="area60" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" ><!--{"\n"}--><!--{$arrForm[$key]|h}--></textarea>
230                <span class="attention"> <!--{t string="tpl_(T_FIELD characters max)_01" T_FIELD=$smarty.const.LLTEXT_LEN}--></span>
231            </td>
232        </tr>
233        <tr>
234            <th><!--{t string="tpl_Message_01"}--></th>
235            <td>
236                <!--{assign var=key value="message"}-->
237                <span class="attention"><!--{$arrErr[$key]}--></span>
238                <textarea name="<!--{$key}-->" cols="60" rows="8" class="area60" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" ><!--{"\n"}--><!--{$arrForm[$key]|h}--></textarea>
239                <span class="attention"> <!--{t string="tpl_(T_FIELD characters max)_01" T_FIELD=$smarty.const.LLTEXT_LEN}--></span>
240            </td>
241        </tr>
242    </table>
243
244    <h2><!--{t string="tpl_Regular holiday settings_01"}--></h2>
245    <table id="basis-index-holiday">
246        <tr>
247            <th><!--{t string="tpl_Regular holiday_01"}--></th>
248            <td>
249                <span class="attention"><!--{$arrErr.regular_holiday_ids}--></span>
250                <!--{html_checkboxes name="regular_holiday_ids" options=$arrRegularHoliday selected=$arrForm.regular_holiday_ids}-->
251            </td>
252        </tr>
253    </table>
254
255    <h2><!--{t string="tpl_SHOP function_01"}--></h2>
256    <table id="basis-index-func">
257        <tr>
258            <th><!--{t string="tpl_Consumption sales tax rate<span class='attention'> *</span>_01" escape="none"}--></th>
259            <td>
260                <span class="attention"><!--{$arrErr.tax}--></span>
261                <input type="text" name="tax" value="<!--{$arrForm.tax|h}-->" maxlength="<!--{$smarty.const.PERCENTAGE_LEN}-->" size="6" class="box6" style="<!--{if $arrErr.tax != ""}-->background-color: <!--{$smarty.const.ERR_COLOR}-->;<!--{/if}-->" /> <!--{t string="%"}-->
262            </td>
263        </tr>
264        <tr>
265            <th><!--{t string="tpl_Taxation rules<span class='attention'> *</span>_01" escape="none"}--></th>
266            <td>
267                <span class="attention"><!--{$arrErr.tax_rule}--></span>
268                <!--{html_radios name="tax_rule" options=$arrTAXRULE selected=$arrForm.tax_rule}-->
269            </td>
270        </tr>
271        <tr>
272            <th><!--{t string="tpl_Conditions for free shipping"}--> </th>
273            <td>
274                <span class="attention"><!--{$arrErr.free_rule}--></span>
275                <input type="text" name="free_rule" value="<!--{$arrForm.free_rule|h}-->" maxlength="<!--{$smarty.const.PRICE_LEN}-->" size="6" class="box6" style="<!--{if $arrErr.free_rule != ""}-->background-color: <!--{$smarty.const.ERR_COLOR}-->;<!--{/if}-->" /> <!--{t string="tpl_714"}-->
276            </td>
277        </tr>
278        <tr>
279            <th><!--{t string="tpl_Number of days during which download is possible"}--></th>
280            <td>
281                <span class="attention"><!--{$arrErr.downloadable_days}--></span>
282                <input type="text" name="downloadable_days" value="<!--{$arrForm.downloadable_days|h}-->" maxlength="<!--{$smarty.const.DOWNLOAD_DAYS_LEN}-->" size="6" class="box6" style="<!--{if $arrErr.downloadable_days != ""}-->background-color: <!--{$smarty.const.ERR_COLOR}--><!--{/if}-->" /> <!--{t string="tpl_715"}-->
283                <input type="checkbox" name="downloadable_days_unlimited" value="1" <!--{if $arrForm.downloadable_days_unlimited == "1"}-->checked<!--{/if}--> onclick="fnCheckLimit('downloadable_days', 'downloadable_days_unlimited', '<!--{$smarty.const.DISABLED_RGB}-->');"/><!--{t string="tpl_No limit"}-->
284            </td>
285        </tr>
286    </table>
287
288    <h2><!--{t string="tpl_Map settings"}--></h2>
289    <table>
290        <tr>
291            <th><!--{t string="tpl_Latitude/longitude information"}--></th>
292            <td>
293                <span class="attention"><!--{$arrErr.latitude}--></span>
294                <span class="attention"><!--{$arrErr.longitude}--></span>
295                <!--{t string="tpl_Latitude : "}--><input type="text" name="latitude" value="<!--{$arrForm.latitude|h}-->" maxlength="<!--{$smarty.const.STEXT_LEN}-->" size="30" class="box30" style="<!--{if $arrErr.latitude != ""}-->background-color: <!--{$smarty.const.ERR_COLOR}-->;<!--{/if}-->" id="latitude" />
296                <!--{t string="tpl_Longitude: "}--><input type="text" name="longitude" value="<!--{$arrForm.longitude|h}-->" maxlength="<!--{$smarty.const.STEXT_LEN}-->" size="30" class="box30" style="<!--{if $arrErr.longitude != ""}-->background-color: <!--{$smarty.const.ERR_COLOR}-->;<!--{/if}-->" id="longitude" />
297                <a class="btn-normal" href="javascript:;" name="codeAddress" id="codeAddress" onclick=""><!--{t string="tpl_Automatic retrieval from location"}--></a>
298                <a href="#maparea" id="mapAddress"><!--{t string="tpl_Set using map"}--></a>
299            </td>
300        </tr>
301    </table>
302
303    <div class="btn-area">
304        <ul>
305            <li><a class="btn-action" href="javascript:;" onclick="fnFormModeSubmit('form1', '<!--{$tpl_mode}-->', '', ''); return false;"><span class="btn-next"><!--{t string="tpl_Save and continue_01"}--></span></a></li>
306        </ul>
307    </div>
308</div>
309<div style="display: none">
310    <div id="maparea">
311        <div id="maps" style="width: 300px; height: 300px"></div>
312        <a class="btn-normal" href="javascript:;" id="inputPoint"><!--{t string="tpl_Enter this position."}--></a>
313    </div>
314</div>
315<!--{* ▲登録テーブルここまで *}-->
316</form>
Note: See TracBrowser for help on using the repository browser.