source: branches/version-2_13-dev/data/Smarty/templates/admin/basis/index.tpl @ 23064

Revision 23064, 18.3 KB checked in by pineray, 11 years ago (diff)

#2342 JavaScript?のグローバルな宣言を減らす
フォーム関連残り.

  • 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-2013 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('所在地の場所が見つかりません');
46                }
47            });
48        } else {
49            alert('所在地の場所が見つかりません');
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="confirm" />
114    <!--{* ▼登録テーブルここから *}-->
115    <div id="basis" class="contents-main">
116
117        <h2>基本情報</h2>
118        <table summary="基本情報" id="basis-index-basis">
119            <tr>
120                <th>会社名</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"> (上限<!--{$smarty.const.STEXT_LEN}-->文字)</span>
125                </td>
126            </tr>
127            <tr>
128                <th>会社名(フリガナ)</th>
129                <td>
130                    <span class="attention"><!--{$arrErr.company_kana}--></span>
131                    <input type="text" name="company_kana" value="<!--{$arrForm.company_kana|h}-->" maxlength="<!--{$smarty.const.STEXT_LEN}-->" size="60" class="box60" style="<!--{if $arrErr.company_kana != ""}-->background-color: <!--{$smarty.const.ERR_COLOR}-->;<!--{/if}-->" />
132                    <span class="attention"> (上限<!--{$smarty.const.STEXT_LEN}-->文字)</span>
133                </td>
134            </tr>
135            <tr>
136                <th>店名<span class="attention"> *</span></th>
137                <td>
138                    <span class="attention"><!--{$arrErr.shop_name}--></span>
139                    <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}-->" />
140                    <span class="attention"> (上限<!--{$smarty.const.STEXT_LEN}-->文字)</span>
141                </td>
142            </tr>
143            <tr>
144                <th>店名(フリガナ)</th>
145                <td>
146                    <span class="attention"><!--{$arrErr.shop_kana}--></span>
147                    <input type="text" name="shop_kana" value="<!--{$arrForm.shop_kana|h}-->" maxlength="<!--{$smarty.const.STEXT_LEN}-->" size="60" class="box60" style="<!--{if $arrErr.shop_kana != ""}-->background-color: <!--{$smarty.const.ERR_COLOR}-->;<!--{/if}-->" />
148                    <span class="attention"> (上限<!--{$smarty.const.STEXT_LEN}-->文字)</span>
149                </td>
150            </tr>
151            <tr>
152                <th>店名(英語表記)</th>
153                <td>
154                    <span class="attention"><!--{$arrErr.shop_name_eng}--></span>
155                    <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}-->" />
156                    <span class="attention"> (上限<!--{$smarty.const.MTEXT_LEN}-->文字)</span>
157                </td>
158            </tr>
159            <tr>
160                <th>郵便番号<span class="attention"> *</span></th>
161                <td>
162                    <span class="attention"><!--{$arrErr.zip01}--></span>
163                    <span class="attention"><!--{$arrErr.zip02}--></span>
164                    〒 <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}-->" />
165                    <a class="btn-normal" href="javascript:;" name="address_input" onclick="eccube.common.getAddress('<!--{$smarty.const.INPUT_ZIP_URLPATH}-->', 'zip01', 'zip02', 'pref', 'addr01'); return false;">所在地入力</a>
166                </td>
167            </tr>
168            <tr>
169                <th>SHOP所在地<span class="attention"> *</span></th>
170                <td>
171                    <p>
172                        <span class="attention"><!--{$arrErr.pref}--></span>
173                        <select class="top" name="pref" style="<!--{if $arrErr.pref != ""}-->background-color: <!--{$smarty.const.ERR_COLOR}-->;<!--{/if}-->" >
174                            <option value="" selected="selected">都道府県を選択</option>
175                            <!--{html_options options=$arrPref selected=$arrForm.pref}-->
176                        </select>
177                    </p>
178                    <p>
179                        <span class="attention"><!--{$arrErr.addr01}--></span>
180                        <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"> (上限<!--{$smarty.const.STEXT_LEN}-->文字)</span><br />
181                        <!--{$smarty.const.SAMPLE_ADDRESS1}-->
182                    </p>
183                    <p>
184                        <span class="attention"><!--{$arrErr.addr02}--></span>
185                        <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"> (上限<!--{$smarty.const.STEXT_LEN}-->文字)</span><br />
186                        <!--{$smarty.const.SAMPLE_ADDRESS2}-->
187                    </p>
188                </td>
189            </tr>
190            <tr>
191                <th>TEL</th>
192                <td>
193                    <span class="attention"><!--{$arrErr.tel01}--></span>
194                    <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}-->" /> -
195                    <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}-->" /> -
196                    <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}-->" />
197                </td>
198            </tr>
199            <tr>
200                <th>FAX</th>
201                <td>
202                    <span class="attention"><!--{$arrErr.fax01}--></span>
203                    <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}-->" /> -
204                    <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}-->" /> -
205                    <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}-->" />
206                </td>
207            </tr>
208            <tr>
209                <th>店舗営業時間</th>
210                <td>
211                    <span class="attention"><!--{$arrErr.business_hour}--></span>
212                    <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}-->" />
213                    <span class="attention"> (上限<!--{$smarty.const.STEXT_LEN}-->文字)</span>
214                </td>
215            </tr>
216            <tr>
217                <th>商品注文受付<br />メールアドレス<span class="attention"> *</span></th>
218                <td>
219                    <span class="attention"><!--{$arrErr.email01}--></span>
220                    <input type="text" name="email01" value="<!--{$arrForm.email01|h}-->" size="60" class="box60" style="<!--{if $arrErr.email01 != ""}-->background-color: <!--{$smarty.const.ERR_COLOR}-->;<!--{/if}-->" />
221                </td>
222            </tr>
223            <tr>
224                <th>問い合わせ受付<br />メールアドレス<span class="attention"> *</span></th>
225                <td>
226                    <span class="attention"><!--{$arrErr.email02}--></span>
227                    <input type="text" name="email02" value="<!--{$arrForm.email02|h}-->" size="60" class="box60" style="<!--{if $arrErr.email02 != ""}-->background-color: <!--{$smarty.const.ERR_COLOR}-->;<!--{/if}-->"/>
228                </td>
229            </tr>
230            <tr>
231                <th>メール送信元<br />メールアドレス<span class="attention"> *</span></th>
232                <td>
233                    <span class="attention"><!--{$arrErr.email03}--></span>
234                    <input type="text" name="email03" value="<!--{$arrForm.email03|h}-->" size="60" class="box60" style="<!--{if $arrErr.email03 != ""}-->background-color: <!--{$smarty.const.ERR_COLOR}-->;<!--{/if}-->"/>
235                </td>
236            </tr>
237            <tr>
238                <th>送信エラー受付<br />メールアドレス<span class="attention"> *</span></th>
239                <td>
240                    <span class="attention"><!--{$arrErr.email04}--></span>
241                    <input type="text" name="email04" value="<!--{$arrForm.email04|h}-->" size="60" class="box60" style="<!--{if $arrErr.email04 != ""}-->background-color: <!--{$smarty.const.ERR_COLOR}-->;<!--{/if}-->"/>
242                </td>
243            </tr>
244            <tr>
245                <th>取扱商品</th>
246                <td>
247                    <!--{assign var=key value="good_traded"}-->
248                    <span class="attention"><!--{$arrErr[$key]}--></span>
249                    <textarea name="<!--{$key}-->" cols="60" rows="8" class="area60" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" ><!--{"\n"}--><!--{$arrForm[$key]|h}--></textarea>
250                    <span class="attention"> (上限<!--{$smarty.const.LLTEXT_LEN}-->文字)</span>
251                </td>
252            </tr>
253            <tr>
254                <th>メッセージ</th>
255                <td>
256                    <!--{assign var=key value="message"}-->
257                    <span class="attention"><!--{$arrErr[$key]}--></span>
258                    <textarea name="<!--{$key}-->" cols="60" rows="8" class="area60" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" ><!--{"\n"}--><!--{$arrForm[$key]|h}--></textarea>
259                    <span class="attention"> (上限<!--{$smarty.const.LLTEXT_LEN}-->文字)</span>
260                </td>
261            </tr>
262        </table>
263
264        <h2>定休日設定</h2>
265        <table id="basis-index-holiday">
266            <tr>
267                <th>定休日</th>
268                <td>
269                    <span class="attention"><!--{$arrErr.regular_holiday_ids}--></span>
270                    <!--{html_checkboxes name="regular_holiday_ids" options=$arrRegularHoliday selected=$arrForm.regular_holiday_ids}-->
271                </td>
272            </tr>
273        </table>
274
275        <h2>SHOP機能</h2>
276        <table id="basis-index-func">
277            <tr>
278                <th>送料無料条件</th>
279                <td>
280                    <span class="attention"><!--{$arrErr.free_rule}--></span>
281                    <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}-->" /> 円以上購入時無料
282                </td>
283            </tr>
284            <tr>
285                <th>ダウンロード可能日数</th>
286                <td>
287                    <span class="attention"><!--{$arrErr.downloadable_days}--></span>
288                    <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}-->" /> 日間有効
289                    <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}-->');"/>無制限
290                </td>
291            </tr>
292        </table>
293
294        <h2>地図設定</h2>
295        <table>
296            <tr>
297                <th>緯度/経度情報</th>
298                <td>
299                    <span class="attention"><!--{$arrErr.latitude}--></span>
300                    <span class="attention"><!--{$arrErr.longitude}--></span>
301                    緯度: <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" />
302                    経度: <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" />
303                    <a class="btn-normal" href="javascript:;" name="codeAddress" id="codeAddress" onclick="">所在地より自動取得</a>
304                    <a href="#maparea" id="mapAddress">地図で設定</a>
305                </td>
306            </tr>
307        </table>
308
309        <div class="btn-area">
310            <ul>
311                <li><a class="btn-action" href="javascript:;" onclick="eccube.common.submitForm(); return false;"><span class="btn-next">確認ページへ</span></a></li>
312            </ul>
313        </div>
314    </div>
315    <div style="display: none">
316        <div id="maparea">
317            <div id="maps" style="width: 300px; height: 300px"></div>
318            <a class="btn-normal" href="javascript:;" id="inputPoint">この位置を入力</a>
319        </div>
320    </div>
321    <!--{* ▲登録テーブルここまで *}-->
322</form>
Note: See TracBrowser for help on using the repository browser.