1 | <!--{* |
---|
2 | /* |
---|
3 | * This file is part of EC-CUBE |
---|
4 | * |
---|
5 | * Copyright(c) 2000-2010 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" src="<!--{$TPL_DIR}-->jquery.fancybox/jquery.mousewheel-3.0.2.pack.js"></script> |
---|
25 | <script type="text/javascript" src="<!--{$TPL_DIR}-->jquery.fancybox/jquery.fancybox-1.3.1.pack.js"></script> |
---|
26 | <link rel="stylesheet" href="<!--{$TPL_DIR}-->jquery.fancybox/jquery.fancybox-1.3.1.css" type="text/css" media="screen" /> |
---|
27 | <script type="text/javascript">//<![CDATA[ |
---|
28 | $(function() { |
---|
29 | var geocoder = new google.maps.Geocoder(); |
---|
30 | |
---|
31 | $("#codeAddress").click(function() { |
---|
32 | var result = true; |
---|
33 | var address = $("#addr01").val() + $("#addr02").val(); |
---|
34 | if (geocoder && address) { |
---|
35 | geocoder.geocode({'address': address}, function (results, status) { |
---|
36 | if (status == google.maps.GeocoderStatus.OK) { |
---|
37 | latlng = results[0].geometry.location; |
---|
38 | $("#latitude").val(latlng.lat()); |
---|
39 | $("#longitude").val(latlng.lng()); |
---|
40 | } else { |
---|
41 | alert('住所の場所が見つかりません'); |
---|
42 | } |
---|
43 | }); |
---|
44 | } else { |
---|
45 | alert('住所の場所が見つかりません'); |
---|
46 | } |
---|
47 | }); |
---|
48 | |
---|
49 | $("a#mapAddress").fancybox({onStart: function() { |
---|
50 | var lat = $("#latitude").val(); |
---|
51 | var lng = $("#longitude").val(); |
---|
52 | |
---|
53 | var latlng; |
---|
54 | if (lat && lng) { |
---|
55 | latlng = new google.maps.LatLng(lat, lng); |
---|
56 | } else { |
---|
57 | var address = $("#addr01").val() + $("#addr02").val(); |
---|
58 | if (geocoder) { |
---|
59 | geocoder.geocode({'address': address}, function(results, status) { |
---|
60 | if (status == google.maps.GeocoderStatus.OK) { |
---|
61 | latlng = results[0].geometry.location; |
---|
62 | } |
---|
63 | }); |
---|
64 | } |
---|
65 | } |
---|
66 | |
---|
67 | if (!latlng) { |
---|
68 | // 座標が取得できない場合は北緯35度東経135度から取得 |
---|
69 | latlng = new google.maps.LatLng(35, 135); |
---|
70 | } |
---|
71 | |
---|
72 | var mapOptions = {zoom: 15, |
---|
73 | center: latlng, |
---|
74 | mapTypeId: google.maps.MapTypeId.ROADMAP}; |
---|
75 | var map = new google.maps.Map($("#maps").get(0), mapOptions); |
---|
76 | var marker = new google.maps.Marker({map: map, position: latlng}); |
---|
77 | marker.setDraggable(true); |
---|
78 | |
---|
79 | // TODO Maker のダブルクリックにも対応したい |
---|
80 | $("#inputPoint").click(function() { |
---|
81 | latlng = marker.getPosition(); |
---|
82 | $("#latitude").val(latlng.lat()); |
---|
83 | $("#longitude").val(latlng.lng()); |
---|
84 | $.fancybox.close(); |
---|
85 | }); |
---|
86 | }}); |
---|
87 | }); |
---|
88 | //]]> |
---|
89 | </script> |
---|
90 | <form name="form1" id="form1" method="post" action="?"> |
---|
91 | <input type="hidden" name="mode" value="<!--{$tpl_mode}-->" /> |
---|
92 | <!--{* ▼登録テーブルここから *}--> |
---|
93 | <div id="basis" class="contents-main"> |
---|
94 | |
---|
95 | <h2>基本情報</h2> |
---|
96 | <table summary="基本情報" id="basis-index-basis"> |
---|
97 | <tr> |
---|
98 | <th>会社名</th> |
---|
99 | <td> |
---|
100 | <span class="attention"><!--{$arrErr.company_name}--></span> |
---|
101 | <input type="text" name="company_name" value="<!--{$arrForm.company_name|escape}-->" maxlength="<!--{$smarty.const.STEXT_LEN}-->" size="60" class="box60" style="<!--{if $arrErr.company_name != ""}-->background-color: <!--{$smarty.const.ERR_COLOR}-->;<!--{/if}-->" /> |
---|
102 | <span class="attention"> (上限<!--{$smarty.const.STEXT_LEN}-->文字)</span> |
---|
103 | </td> |
---|
104 | </tr> |
---|
105 | <tr> |
---|
106 | <th>会社名(カナ)</th> |
---|
107 | <td> |
---|
108 | <span class="attention"><!--{$arrErr.company_kana}--></span> |
---|
109 | <input type="text" name="company_kana" value="<!--{$arrForm.company_kana|escape}-->" maxlength="<!--{$smarty.const.STEXT_LEN}-->" size="60" class="box60" style="<!--{if $arrErr.company_kana != ""}-->background-color: <!--{$smarty.const.ERR_COLOR}-->;<!--{/if}-->" /> |
---|
110 | <span class="attention"> (上限<!--{$smarty.const.STEXT_LEN}-->文字)</span> |
---|
111 | </td> |
---|
112 | </tr> |
---|
113 | <tr> |
---|
114 | <th>店名<span class="attention"> *</span></th> |
---|
115 | <td> |
---|
116 | <span class="attention"><!--{$arrErr.shop_name}--></span> |
---|
117 | <input type="text" name="shop_name" value="<!--{$arrForm.shop_name|escape}-->" maxlength="<!--{$smarty.const.STEXT_LEN}-->" size="60" class="box60" style="<!--{if $arrErr.shop_name != ""}-->background-color: <!--{$smarty.const.ERR_COLOR}-->;<!--{/if}-->" /> |
---|
118 | <span class="attention"> (上限<!--{$smarty.const.STEXT_LEN}-->文字)</span> |
---|
119 | </td> |
---|
120 | </tr> |
---|
121 | <tr> |
---|
122 | <th>店名(カナ)</th> |
---|
123 | <td> |
---|
124 | <span class="attention"><!--{$arrErr.shop_kana}--></span> |
---|
125 | <input type="text" name="shop_kana" value="<!--{$arrForm.shop_kana|escape}-->" maxlength="<!--{$smarty.const.STEXT_LEN}-->" size="60" class="box60" style="<!--{if $arrErr.shop_kana != ""}-->background-color: <!--{$smarty.const.ERR_COLOR}-->;<!--{/if}-->" /> |
---|
126 | <span class="attention"> (上限<!--{$smarty.const.STEXT_LEN}-->文字)</span> |
---|
127 | </td> |
---|
128 | </tr> |
---|
129 | <tr> |
---|
130 | <th>店名(英語表記)</th> |
---|
131 | <td> |
---|
132 | <span class="attention"><!--{$arrErr.shop_name_eng}--></span> |
---|
133 | <input type="text" name="shop_name_eng" value="<!--{$arrForm.shop_name_eng|escape}-->" maxlength="<!--{$smarty.const.MTEXT_LEN}-->" size="60" class="box60" style="<!--{if $arrErr.shop_name_eng != ""}-->background-color: <!--{$smarty.const.ERR_COLOR}-->;<!--{/if}-->" /> |
---|
134 | <span class="attention"> (上限<!--{$smarty.const.MTEXT_LEN}-->文字)</span> |
---|
135 | </td> |
---|
136 | </tr> |
---|
137 | <tr> |
---|
138 | <th>郵便番号<span class="attention"> *</span></th> |
---|
139 | <td> |
---|
140 | <span class="attention"><!--{$arrErr.zip01}--></span> |
---|
141 | <span class="attention"><!--{$arrErr.zip02}--></span> |
---|
142 | 〒 <input type="text" name="zip01" value="<!--{$arrForm.zip01|escape}-->" 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|escape}-->" maxlength="4" size="6" class="box6" style="<!--{if $arrErr.zip02 != ""}-->background-color: <!--{$smarty.const.ERR_COLOR}-->;<!--{/if}-->" /> |
---|
143 | <input type="button" name="address_input" value="住所入力" onclick="fnCallAddress('<!--{$smarty.const.URL_INPUT_ZIP}-->', 'zip01', 'zip02', 'pref', 'addr01');" /> |
---|
144 | </td> |
---|
145 | </tr> |
---|
146 | <tr> |
---|
147 | <th>SHOP住所<span class="attention"> *</span></th> |
---|
148 | <td> |
---|
149 | <p> |
---|
150 | <span class="attention"><!--{$arrErr.pref}--></span> |
---|
151 | <select name="pref" style="<!--{if $arrErr.pref != ""}-->background-color: <!--{$smarty.const.ERR_COLOR}-->;<!--{/if}-->" > |
---|
152 | <option value="" selected="selected">都道府県を選択</option> |
---|
153 | <!--{html_options options=$arrPref selected=$arrForm.pref}--> |
---|
154 | </select> |
---|
155 | </p> |
---|
156 | <p> |
---|
157 | <span class="attention"><!--{$arrErr.addr01}--></span> |
---|
158 | <input type="text" name="addr01" value="<!--{$arrForm.addr01|escape}-->" 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"> (上限<!--{$smarty.const.STEXT_LEN}-->文字)</span><br /> |
---|
159 | <!--{$smarty.const.SAMPLE_ADDRESS1}--> |
---|
160 | </p> |
---|
161 | <p> |
---|
162 | <span class="attention"><!--{$arrErr.addr02}--></span> |
---|
163 | <input type="text" name="addr02" value="<!--{$arrForm.addr02|escape}-->" 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"> (上限<!--{$smarty.const.STEXT_LEN}-->文字)</span><br /> |
---|
164 | <!--{$smarty.const.SAMPLE_ADDRESS2}--> |
---|
165 | </p> |
---|
166 | </td> |
---|
167 | </tr> |
---|
168 | <tr> |
---|
169 | <th>TEL</th> |
---|
170 | <td> |
---|
171 | <span class="attention"><!--{$arrErr.tel01}--></span> |
---|
172 | <input type="text" name="tel01" value="<!--{$arrForm.tel01}-->" maxlength="6" size="6" class="box6" style="<!--{if $arrErr.tel01 != ""}-->background-color: <!--{$smarty.const.ERR_COLOR}-->;<!--{/if}-->" /> - |
---|
173 | <input type="text" name="tel02" value="<!--{$arrForm.tel02}-->" maxlength="6" size="6" class="box6" style="<!--{if $arrErr.tel01 != ""}-->background-color: <!--{$smarty.const.ERR_COLOR}-->;<!--{/if}-->" /> - |
---|
174 | <input type="text" name="tel03" value="<!--{$arrForm.tel03}-->" maxlength="6" size="6" class="box6" style="<!--{if $arrErr.tel01 != ""}-->background-color: <!--{$smarty.const.ERR_COLOR}-->;<!--{/if}-->" /> |
---|
175 | </td> |
---|
176 | </tr> |
---|
177 | <tr> |
---|
178 | <th>FAX</th> |
---|
179 | <td> |
---|
180 | <span class="attention"><!--{$arrErr.fax01}--></span> |
---|
181 | <input type="text" name="fax01" value="<!--{$arrForm.fax01}-->" maxlength="6" size="6" class="box6" style="<!--{if $arrErr.fax01 != ""}-->background-color: <!--{$smarty.const.ERR_COLOR}-->;<!--{/if}-->" /> - |
---|
182 | <input type="text" name="fax02" value="<!--{$arrForm.fax02}-->" maxlength="6" size="6" class="box6" style="<!--{if $arrErr.fax02 != ""}-->background-color: <!--{$smarty.const.ERR_COLOR}-->;<!--{/if}-->" /> - |
---|
183 | <input type="text" name="fax03" value="<!--{$arrForm.fax03}-->" maxlength="6" size="6" class="box6" style="<!--{if $arrErr.fax03 != ""}-->background-color: <!--{$smarty.const.ERR_COLOR}-->;<!--{/if}-->" /> |
---|
184 | </td> |
---|
185 | </tr> |
---|
186 | <tr> |
---|
187 | <th>店舗営業時間</th> |
---|
188 | <td> |
---|
189 | <span class="attention"><!--{$arrErr.business_hour}--></span> |
---|
190 | <input type="text" name="business_hour" value="<!--{$arrForm.business_hour|escape}-->" maxlength="<!--{$smarty.const.STEXT_LEN}-->" size="60" class="box60" style="<!--{if $arrErr.business_hour != ""}-->background-color: <!--{$smarty.const.ERR_COLOR}-->;<!--{/if}-->" /> |
---|
191 | <span class="attention"> (上限<!--{$smarty.const.STEXT_LEN}-->文字)</span> |
---|
192 | </td> |
---|
193 | </tr> |
---|
194 | <tr> |
---|
195 | <th>商品注文受付<br />メールアドレス<span class="attention"> *</span></th> |
---|
196 | <td> |
---|
197 | <span class="attention"><!--{$arrErr.email01}--></span> |
---|
198 | <input type="text" name="email01" value="<!--{$arrForm.email01|escape}-->" maxlength="<!--{$smarty.const.STEXT_LEN}-->" size="60" class="box60" style="<!--{if $arrErr.email01 != ""}-->background-color: <!--{$smarty.const.ERR_COLOR}-->;<!--{/if}-->" /> |
---|
199 | <span class="attention"> (上限<!--{$smarty.const.STEXT_LEN}-->文字)</span> |
---|
200 | </td> |
---|
201 | </tr> |
---|
202 | <tr> |
---|
203 | <th>問い合わせ受付<br />メールアドレス<span class="attention"> *</span></th> |
---|
204 | <td> |
---|
205 | <span class="attention"><!--{$arrErr.email02}--></span> |
---|
206 | <input type="text" name="email02" value="<!--{$arrForm.email02|escape}-->" maxlength="<!--{$smarty.const.STEXT_LEN}-->" size="60" class="box60" style="<!--{if $arrErr.email02 != ""}-->background-color: <!--{$smarty.const.ERR_COLOR}-->;<!--{/if}-->"/> |
---|
207 | <span class="attention"> (上限<!--{$smarty.const.STEXT_LEN}-->文字)</span> |
---|
208 | </td> |
---|
209 | </tr> |
---|
210 | <tr> |
---|
211 | <th>メール送信元<br />メールアドレス<span class="attention"> *</span></th> |
---|
212 | <td> |
---|
213 | <span class="attention"><!--{$arrErr.email03}--></span> |
---|
214 | <input type="text" name="email03" value="<!--{$arrForm.email03|escape}-->" maxlength="<!--{$smarty.const.STEXT_LEN}-->" size="60" class="box60" style="<!--{if $arrErr.email03 != ""}-->background-color: <!--{$smarty.const.ERR_COLOR}-->;<!--{/if}-->"/> |
---|
215 | <span class="attention"> (上限<!--{$smarty.const.STEXT_LEN}-->文字)</span> |
---|
216 | </td> |
---|
217 | </tr> |
---|
218 | <tr> |
---|
219 | <th>送信エラー受付<br />メールアドレス<span class="attention"> *</span></th> |
---|
220 | <td> |
---|
221 | <span class="attention"><!--{$arrErr.email04}--></span> |
---|
222 | <input type="text" name="email04" value="<!--{$arrForm.email04|escape}-->" maxlength="<!--{$smarty.const.STEXT_LEN}-->" size="60" class="box60" style="<!--{if $arrErr.email04 != ""}-->background-color: <!--{$smarty.const.ERR_COLOR}-->;<!--{/if}-->"/> |
---|
223 | <span class="attention"> (上限<!--{$smarty.const.STEXT_LEN}-->文字)</span> |
---|
224 | </td> |
---|
225 | </tr> |
---|
226 | <tr> |
---|
227 | <th>取扱商品</th> |
---|
228 | <td> |
---|
229 | <!--{assign var=key value="good_traded"}--> |
---|
230 | <span class="attention"><!--{$arrErr[$key]}--></span> |
---|
231 | <textarea name="<!--{$key}-->" cols="60" rows="8" class="area60" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" ><!--{$arrForm[$key]|escape}--></textarea> |
---|
232 | <span class="attention"> (上限<!--{$smarty.const.LLTEXT_LEN}-->文字)</span> |
---|
233 | </td> |
---|
234 | </tr> |
---|
235 | <tr> |
---|
236 | <th>メッセージ</th> |
---|
237 | <td> |
---|
238 | <!--{assign var=key value="message"}--> |
---|
239 | <span class="attention"><!--{$arrErr[$key]}--></span> |
---|
240 | <textarea name="<!--{$key}-->" cols="60" rows="8" class="area60" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" ><!--{$arrForm[$key]|escape}--></textarea> |
---|
241 | <span class="attention"> (上限<!--{$smarty.const.LLTEXT_LEN}-->文字)</span> |
---|
242 | </td> |
---|
243 | </tr> |
---|
244 | </table> |
---|
245 | |
---|
246 | <h2>定休日設定</h2> |
---|
247 | <table id="basis-index-holiday"> |
---|
248 | <tr> |
---|
249 | <th>定休日</th> |
---|
250 | <td> |
---|
251 | <span class="attention"><!--{$arrErr.regular_holiday_ids}--></span> |
---|
252 | <!--{html_checkboxes name="regular_holiday_ids" options=$arrRegularHoliday selected=$arrForm.regular_holiday_ids}--> |
---|
253 | </td> |
---|
254 | </tr> |
---|
255 | </table> |
---|
256 | |
---|
257 | <h2>SHOP機能</h2> |
---|
258 | <table id="basis-index-func"> |
---|
259 | <tr> |
---|
260 | <th>消費税率<span class="attention"> *</span></th> |
---|
261 | <td> |
---|
262 | <span class="attention"><!--{$arrErr.tax}--></span> |
---|
263 | <input type="text" name="tax" value="<!--{$arrForm.tax|escape}-->" maxlength="<!--{$smarty.const.PERCENTAGE_LEN}-->" size="6" class="box6" style="<!--{if $arrErr.tax != ""}-->background-color: <!--{$smarty.const.ERR_COLOR}-->;<!--{/if}-->" /> % |
---|
264 | </td> |
---|
265 | </tr> |
---|
266 | <tr> |
---|
267 | <th>課税規則<span class="attention"> *</span></th> |
---|
268 | <td> |
---|
269 | <span class="attention"><!--{$arrErr.tax_rule}--></span> |
---|
270 | <!--{html_radios name="tax_rule" options=$arrTAXRULE selected=$arrForm.tax_rule}--> |
---|
271 | </td> |
---|
272 | </tr> |
---|
273 | <tr> |
---|
274 | <th>送料無料条件</th> |
---|
275 | <td> |
---|
276 | <span class="attention"><!--{$arrErr.free_rule}--></span> |
---|
277 | <input type="text" name="free_rule" value="<!--{$arrForm.free_rule|escape}-->" maxlength="<!--{$smarty.const.PRICE_LEN}-->" size="6" class="box6" style="<!--{if $arrErr.free_rule != ""}-->background-color: <!--{$smarty.const.ERR_COLOR}-->;<!--{/if}-->" /> 円以上購入時無料 |
---|
278 | </td> |
---|
279 | </tr> |
---|
280 | </table> |
---|
281 | |
---|
282 | <h2>地図設定</h2> |
---|
283 | <table id="basis-index-func"> |
---|
284 | <tr> |
---|
285 | <th>緯度/経度情報</th> |
---|
286 | <td> |
---|
287 | <span class="attention"><!--{$arrErr.latitude}--></span> |
---|
288 | <span class="attention"><!--{$arrErr.longitude}--></span> |
---|
289 | 緯度: <input type="text" name="latitude" value="<!--{$arrForm.latitude|escape}-->" maxlength="<!--{$smarty.const.STEXT_LEN}-->" size="30" class="box30" style="<!--{if $arrErr.latitude != ""}-->background-color: <!--{$smarty.const.ERR_COLOR}-->;<!--{/if}-->" id="latitude" /> |
---|
290 | 経度: <input type="text" name="longitude" value="<!--{$arrForm.longitude|escape}-->" maxlength="<!--{$smarty.const.STEXT_LEN}-->" size="30" class="box30" style="<!--{if $arrErr.longitude != ""}-->background-color: <!--{$smarty.const.ERR_COLOR}-->;<!--{/if}-->" id="longitude" /> |
---|
291 | <input type="button" name="codeAddress" id="codeAddress" value="住所より自動取得" /> |
---|
292 | <a href="#maparea" id="mapAddress">地図で設定</a> |
---|
293 | </td> |
---|
294 | </tr> |
---|
295 | </table> |
---|
296 | |
---|
297 | <div class="btn"> |
---|
298 | <button type="submit"><span>この内容で登録する</span></button> |
---|
299 | </div> |
---|
300 | </div> |
---|
301 | <div style="display: none"> |
---|
302 | <div id="maparea"> |
---|
303 | <div id="maps" style="width: 300px; height: 300px"></div> |
---|
304 | <input type="button" id="inputPoint" value="この位置を入力" /> |
---|
305 | </div> |
---|
306 | </div> |
---|
307 | <!--{* ▲登録テーブルここまで *}--> |
---|
308 | </form> |
---|