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

Revision 22179, 16.9 KB checked in by h_yoshimoto, 11 years ago (diff)

#1998 都道府県関連を削除

  • 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_061"}-->');
46                }
47            });
48        } else {
49            alert('<!--{t string="tpl_061"}-->');
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_027"}--></h2>
118    <table summary="<!--{t string="tpl_027"}-->" id="basis-index-basis">
119        <tr>
120            <th><!--{t string="tpl_028"}--></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_023" T_FIELD=$smarty.const.STEXT_LEN}--></span>
125            </td>
126        </tr>
127        <tr>
128            <th><!--{t string="tpl_030_1"}--></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_023" T_FIELD=$smarty.const.STEXT_LEN}--></span>
133            </td>
134        </tr>
135        <tr>
136            <th><!--{t string="tpl_032"}--></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_023" T_FIELD=$smarty.const.MTEXT_LEN}--></span>
141            </td>
142        </tr>
143        <tr>
144            <th><!--{t string="tpl_033_1"}--></th>
145            <td>
146                <span class="attention"><!--{$arrErr.zip01}--></span>
147                <span class="attention"><!--{$arrErr.zip02}--></span>
148                <!--{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}-->" />
149                <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_034"}--></a>
150            </td>
151        </tr>
152        <tr>
153            <th><!--{t string="tpl_035"}--></th>
154            <td>
155                <p>
156                    <span class="attention"><!--{$arrErr.addr01}--></span>
157                    <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_023" T_FIELD=$smarty.const.STEXT_LEN}--></span><br />
158                    <!--{$smarty.const.SAMPLE_ADDRESS1}-->
159                </p>
160                <p>
161                    <span class="attention"><!--{$arrErr.addr02}--></span>
162                    <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_023" T_FIELD=$smarty.const.STEXT_LEN}--></span><br />
163                    <!--{$smarty.const.SAMPLE_ADDRESS2}-->
164                </p>
165            </td>
166        </tr>
167        <tr>
168            <th><!--{t string="tpl_037"}--></th>
169            <td>
170                <span class="attention"><!--{$arrErr.tel01}--></span>
171                <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}-->" /> -
172                <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}-->" /> -
173                <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}-->" />
174            </td>
175        </tr>
176        <tr>
177            <th><!--{t string="tpl_039"}--></th>
178            <td>
179                <span class="attention"><!--{$arrErr.fax01}--></span>
180                <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}-->" /> -
181                <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}-->" /> -
182                <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}-->" />
183            </td>
184        </tr>
185        <tr>
186            <th><!--{t string="tpl_039"}--></th>
187            <td>
188                <span class="attention"><!--{$arrErr.business_hour}--></span>
189                <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}-->" />
190                <span class="attention"> <!--{t string="tpl_023" T_FIELD=$smarty.const.STEXT_LEN}--></span>
191            </td>
192        </tr>
193        <tr>
194            <th><!--{t string="tpl_040"}--></th>
195            <td>
196                <span class="attention"><!--{$arrErr.email01}--></span>
197                <input type="text" name="email01" value="<!--{$arrForm.email01|h}-->" size="60" class="box60" style="<!--{if $arrErr.email01 != ""}-->background-color: <!--{$smarty.const.ERR_COLOR}-->;<!--{/if}-->" />
198            </td>
199        </tr>
200        <tr>
201            <th><!--{t string="tpl_041"}--></th>
202            <td>
203                <span class="attention"><!--{$arrErr.email02}--></span>
204                <input type="text" name="email02" value="<!--{$arrForm.email02|h}-->" size="60" class="box60" style="<!--{if $arrErr.email02 != ""}-->background-color: <!--{$smarty.const.ERR_COLOR}-->;<!--{/if}-->"/>
205            </td>
206        </tr>
207        <tr>
208            <th><!--{t string="tpl_042"}--></th>
209            <td>
210                <span class="attention"><!--{$arrErr.email03}--></span>
211                <input type="text" name="email03" value="<!--{$arrForm.email03|h}-->" size="60" class="box60" style="<!--{if $arrErr.email03 != ""}-->background-color: <!--{$smarty.const.ERR_COLOR}-->;<!--{/if}-->"/>
212            </td>
213        </tr>
214        <tr>
215            <th><!--{t string="tpl_043"}--></th>
216            <td>
217                <span class="attention"><!--{$arrErr.email04}--></span>
218                <input type="text" name="email04" value="<!--{$arrForm.email04|h}-->" size="60" class="box60" style="<!--{if $arrErr.email04 != ""}-->background-color: <!--{$smarty.const.ERR_COLOR}-->;<!--{/if}-->"/>
219            </td>
220        </tr>
221        <tr>
222            <th><!--{t string="tpl_044"}--></th>
223            <td>
224                <!--{assign var=key value="good_traded"}-->
225                <span class="attention"><!--{$arrErr[$key]}--></span>
226                <textarea name="<!--{$key}-->" cols="60" rows="8" class="area60" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" ><!--{"\n"}--><!--{$arrForm[$key]|h}--></textarea>
227                <span class="attention"> <!--{t string="tpl_023" T_FIELD=$smarty.const.LLTEXT_LEN}--></span>
228            </td>
229        </tr>
230        <tr>
231            <th><!--{t string="tpl_045"}--></th>
232            <td>
233                <!--{assign var=key value="message"}-->
234                <span class="attention"><!--{$arrErr[$key]}--></span>
235                <textarea name="<!--{$key}-->" cols="60" rows="8" class="area60" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" ><!--{"\n"}--><!--{$arrForm[$key]|h}--></textarea>
236                <span class="attention"> <!--{t string="tpl_023" T_FIELD=$smarty.const.LLTEXT_LEN}--></span>
237            </td>
238        </tr>
239    </table>
240
241    <h2><!--{t string="tpl_046"}--></h2>
242    <table id="basis-index-holiday">
243        <tr>
244            <th><!--{t string="tpl_047"}--></th>
245            <td>
246                <span class="attention"><!--{$arrErr.regular_holiday_ids}--></span>
247                <!--{html_checkboxes name="regular_holiday_ids" options=$arrRegularHoliday selected=$arrForm.regular_holiday_ids}-->
248            </td>
249        </tr>
250    </table>
251
252    <h2><!--{t string="tpl_048"}--></h2>
253    <table id="basis-index-func">
254        <tr>
255            <th><!--{t string="tpl_049"}--></th>
256            <td>
257                <span class="attention"><!--{$arrErr.tax}--></span>
258                <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="%"}-->
259            </td>
260        </tr>
261        <tr>
262            <th><!--{t string="tpl_050"}--></th>
263            <td>
264                <span class="attention"><!--{$arrErr.tax_rule}--></span>
265                <!--{html_radios name="tax_rule" options=$arrTAXRULE selected=$arrForm.tax_rule}-->
266            </td>
267        </tr>
268        <tr>
269            <th><!--{t string="tpl_051"}--> </th>
270            <td>
271                <span class="attention"><!--{$arrErr.free_rule}--></span>
272                <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"}-->
273            </td>
274        </tr>
275        <tr>
276            <th><!--{t string="tpl_052"}--></th>
277            <td>
278                <span class="attention"><!--{$arrErr.downloadable_days}--></span>
279                <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"}-->
280                <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_053"}-->
281            </td>
282        </tr>
283    </table>
284
285    <h2><!--{t string="tpl_054"}--></h2>
286    <table>
287        <tr>
288            <th><!--{t string="tpl_055"}--></th>
289            <td>
290                <span class="attention"><!--{$arrErr.latitude}--></span>
291                <span class="attention"><!--{$arrErr.longitude}--></span>
292                <!--{t string="tpl_056"}--><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" />
293                <!--{t string="tpl_057"}--><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" />
294                <a class="btn-normal" href="javascript:;" name="codeAddress" id="codeAddress" onclick=""><!--{t string="tpl_058"}--></a>
295                <a href="#maparea" id="mapAddress"><!--{t string="tpl_059"}--></a>
296            </td>
297        </tr>
298    </table>
299
300    <div class="btn-area">
301        <ul>
302            <li><a class="btn-action" href="javascript:;" onclick="fnFormModeSubmit('form1', '<!--{$tpl_mode}-->', '', ''); return false;"><span class="btn-next"><!--{t string="tpl_021"}--></span></a></li>
303        </ul>
304    </div>
305</div>
306<div style="display: none">
307    <div id="maparea">
308        <div id="maps" style="width: 300px; height: 300px"></div>
309        <a class="btn-normal" href="javascript:;" id="inputPoint"><!--{t string="tpl_060"}--></a>
310    </div>
311</div>
312<!--{* ▲登録テーブルここまで *}-->
313</form>
Note: See TracBrowser for help on using the repository browser.