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

Revision 23570, 18.5 KB checked in by shutta, 10 years ago (diff)

#2594 (SC_CheckError::TEL_CHECK()の数字入力チェックに漏れ)

  • 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-2014 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">//<![CDATA[
26var map;
27var marker;
28
29$(function() {
30    var geocoder = new google.maps.Geocoder();
31
32    $("#codeAddress").click(function() {
33        var result = true;
34        var address = $("#addr01").val() + $("#addr02").val();
35        if (geocoder && address) {
36            geocoder.geocode({'address': address}, function (results, status) {
37                if (status == google.maps.GeocoderStatus.OK) {
38                    latlng = results[0].geometry.location;
39                    $("#latitude").val(latlng.lat());
40                    $("#longitude").val(latlng.lng());
41                } else {
42                    alert('所在地の場所が見つかりません');
43                }
44            });
45        } else {
46            alert('所在地の場所が見つかりません');
47        }
48    });
49
50    $("a#mapAddress").colorbox({
51        inline: true,
52        width: 360,
53        onComplete: 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                map = new google.maps.Map(document.getElementById("maps"), mapOptions);
84            } else {
85                map.panTo(latlng);
86            }
87
88            if (!marker) {
89                marker = new google.maps.Marker({map: map, position: latlng});
90                marker.setDraggable(true);
91            } else {
92                marker.setPosition(latlng);
93            }
94
95            // TODO Maker のダブルクリックにも対応したい
96            $("#inputPoint").click(function() {
97                latlng = marker.getPosition();
98                $("#latitude").val(latlng.lat());
99                $("#longitude").val(latlng.lng());
100                $.colorbox.close();
101            });
102        },
103    });
104});
105//]]></script>
106<form name="form1" id="form1" method="post" action="?">
107    <input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" />
108    <input type="hidden" name="mode" value="confirm" />
109    <!--{* ▼登録テーブルここから *}-->
110    <div id="basis" class="contents-main">
111
112        <h2>基本情報</h2>
113        <table summary="基本情報" id="basis-index-basis">
114            <tr>
115                <th>会社名</th>
116                <td>
117                    <span class="attention"><!--{$arrErr.company_name}--></span>
118                    <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}-->" />
119                    <span class="attention"> (上限<!--{$smarty.const.STEXT_LEN}-->文字)</span>
120                </td>
121            </tr>
122            <tr>
123                <th>会社名(フリガナ)</th>
124                <td>
125                    <span class="attention"><!--{$arrErr.company_kana}--></span>
126                    <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}-->" />
127                    <span class="attention"> (上限<!--{$smarty.const.STEXT_LEN}-->文字)</span>
128                </td>
129            </tr>
130            <tr>
131                <th>店名<span class="attention"> *</span></th>
132                <td>
133                    <span class="attention"><!--{$arrErr.shop_name}--></span>
134                    <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}-->" />
135                    <span class="attention"> (上限<!--{$smarty.const.STEXT_LEN}-->文字)</span>
136                </td>
137            </tr>
138            <tr>
139                <th>店名(フリガナ)</th>
140                <td>
141                    <span class="attention"><!--{$arrErr.shop_kana}--></span>
142                    <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}-->" />
143                    <span class="attention"> (上限<!--{$smarty.const.STEXT_LEN}-->文字)</span>
144                </td>
145            </tr>
146            <tr>
147                <th>店名(英語表記)</th>
148                <td>
149                    <span class="attention"><!--{$arrErr.shop_name_eng}--></span>
150                    <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}-->" />
151                    <span class="attention"> (上限<!--{$smarty.const.MTEXT_LEN}-->文字)</span>
152                </td>
153            </tr>
154            <tr>
155                <th>郵便番号<span class="attention"> *</span></th>
156                <td>
157                    <span class="attention"><!--{$arrErr.zip01}--></span>
158                    <span class="attention"><!--{$arrErr.zip02}--></span>
159                    〒 <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}-->" />
160                    <a class="btn-normal" href="javascript:;" name="address_input" onclick="eccube.getAddress('<!--{$smarty.const.INPUT_ZIP_URLPATH}-->', 'zip01', 'zip02', 'pref', 'addr01'); return false;">所在地入力</a>
161                </td>
162            </tr>
163            <tr>
164                <th>SHOP所在地<span class="attention"> *</span></th>
165                <td>
166                    <p>
167                        <span class="attention"><!--{$arrErr.pref}--></span>
168                        <select class="top" name="pref" style="<!--{if $arrErr.pref != ""}-->background-color: <!--{$smarty.const.ERR_COLOR}-->;<!--{/if}-->" >
169                            <option value="" selected="selected">都道府県を選択</option>
170                            <!--{html_options options=$arrPref selected=$arrForm.pref}-->
171                        </select>
172                    </p>
173                    <p>
174                        <span class="attention"><!--{$arrErr.addr01}--></span>
175                        <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 />
176                        <!--{$smarty.const.SAMPLE_ADDRESS1}-->
177                    </p>
178                    <p>
179                        <span class="attention"><!--{$arrErr.addr02}--></span>
180                        <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 />
181                        <!--{$smarty.const.SAMPLE_ADDRESS2}-->
182                    </p>
183                </td>
184            </tr>
185            <tr>
186                <th>TEL</th>
187                <td>
188                    <span class="attention"><!--{$arrErr.tel01}--></span>
189                    <span class="attention"><!--{$arrErr.tel02}--></span>
190                    <span class="attention"><!--{$arrErr.tel03}--></span>
191                    <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}-->" /> -
192                    <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}-->" /> -
193                    <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}-->" />
194                </td>
195            </tr>
196            <tr>
197                <th>FAX</th>
198                <td>
199                    <span class="attention"><!--{$arrErr.fax01}--></span>
200                    <span class="attention"><!--{$arrErr.fax02}--></span>
201                    <span class="attention"><!--{$arrErr.fax03}--></span>
202                    <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}-->" /> -
203                    <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}-->" /> -
204                    <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}-->" />
205                </td>
206            </tr>
207            <tr>
208                <th>店舗営業時間</th>
209                <td>
210                    <span class="attention"><!--{$arrErr.business_hour}--></span>
211                    <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}-->" />
212                    <span class="attention"> (上限<!--{$smarty.const.STEXT_LEN}-->文字)</span>
213                </td>
214            </tr>
215            <tr>
216                <th>商品注文受付<br />メールアドレス<span class="attention"> *</span></th>
217                <td>
218                    <span class="attention"><!--{$arrErr.email01}--></span>
219                    <input type="text" name="email01" value="<!--{$arrForm.email01|h}-->" size="60" class="box60" style="<!--{if $arrErr.email01 != ""}-->background-color: <!--{$smarty.const.ERR_COLOR}-->;<!--{/if}-->" />
220                </td>
221            </tr>
222            <tr>
223                <th>問い合わせ受付<br />メールアドレス<span class="attention"> *</span></th>
224                <td>
225                    <span class="attention"><!--{$arrErr.email02}--></span>
226                    <input type="text" name="email02" value="<!--{$arrForm.email02|h}-->" size="60" class="box60" style="<!--{if $arrErr.email02 != ""}-->background-color: <!--{$smarty.const.ERR_COLOR}-->;<!--{/if}-->"/>
227                </td>
228            </tr>
229            <tr>
230                <th>メール送信元<br />メールアドレス<span class="attention"> *</span></th>
231                <td>
232                    <span class="attention"><!--{$arrErr.email03}--></span>
233                    <input type="text" name="email03" value="<!--{$arrForm.email03|h}-->" size="60" class="box60" style="<!--{if $arrErr.email03 != ""}-->background-color: <!--{$smarty.const.ERR_COLOR}-->;<!--{/if}-->"/>
234                </td>
235            </tr>
236            <tr>
237                <th>送信エラー受付<br />メールアドレス<span class="attention"> *</span></th>
238                <td>
239                    <span class="attention"><!--{$arrErr.email04}--></span>
240                    <input type="text" name="email04" value="<!--{$arrForm.email04|h}-->" size="60" class="box60" style="<!--{if $arrErr.email04 != ""}-->background-color: <!--{$smarty.const.ERR_COLOR}-->;<!--{/if}-->"/>
241                </td>
242            </tr>
243            <tr>
244                <th>取扱商品</th>
245                <td>
246                    <!--{assign var=key value="good_traded"}-->
247                    <span class="attention"><!--{$arrErr[$key]}--></span>
248                    <textarea name="<!--{$key}-->" cols="60" rows="8" class="area60" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" ><!--{"\n"}--><!--{$arrForm[$key]|h}--></textarea>
249                    <span class="attention"> (上限<!--{$smarty.const.LLTEXT_LEN}-->文字)</span>
250                </td>
251            </tr>
252            <tr>
253                <th>メッセージ</th>
254                <td>
255                    <!--{assign var=key value="message"}-->
256                    <span class="attention"><!--{$arrErr[$key]}--></span>
257                    <textarea name="<!--{$key}-->" cols="60" rows="8" class="area60" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" ><!--{"\n"}--><!--{$arrForm[$key]|h}--></textarea>
258                    <span class="attention"> (上限<!--{$smarty.const.LLTEXT_LEN}-->文字)</span>
259                </td>
260            </tr>
261        </table>
262
263        <h2>定休日設定</h2>
264        <table id="basis-index-holiday">
265            <tr>
266                <th>定休日</th>
267                <td>
268                    <span class="attention"><!--{$arrErr.regular_holiday_ids}--></span>
269                    <!--{html_checkboxes name="regular_holiday_ids" options=$arrRegularHoliday selected=$arrForm.regular_holiday_ids}-->
270                </td>
271            </tr>
272        </table>
273
274        <h2>SHOP機能</h2>
275        <table id="basis-index-func">
276            <tr>
277                <th>送料無料条件</th>
278                <td>
279                    <span class="attention"><!--{$arrErr.free_rule}--></span>
280                    <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}-->" /> 円以上購入時無料
281                </td>
282            </tr>
283            <tr>
284                <th>ダウンロード可能日数</th>
285                <td>
286                    <span class="attention"><!--{$arrErr.downloadable_days}--></span>
287                    <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}-->" /> 日間有効
288                    <input type="checkbox" name="downloadable_days_unlimited" value="1" <!--{if $arrForm.downloadable_days_unlimited == "1"}-->checked<!--{/if}--> onclick="eccube.checkLimit('downloadable_days', 'downloadable_days_unlimited', '<!--{$smarty.const.DISABLED_RGB}-->');"/>無制限
289                </td>
290            </tr>
291        </table>
292
293        <h2>地図設定</h2>
294        <table>
295            <tr>
296                <th>緯度/経度情報</th>
297                <td>
298                    <span class="attention"><!--{$arrErr.latitude}--></span>
299                    <span class="attention"><!--{$arrErr.longitude}--></span>
300                    緯度: <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" />
301                    経度: <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" />
302                    <a class="btn-normal" href="javascript:;" name="codeAddress" id="codeAddress" onclick="">所在地より自動取得</a>
303                    <a href="#maparea" id="mapAddress">地図で設定</a>
304                </td>
305            </tr>
306        </table>
307
308        <div class="btn-area">
309            <ul>
310                <li><a class="btn-action" href="javascript:;" onclick="eccube.submitForm(); return false;"><span class="btn-next">確認ページへ</span></a></li>
311            </ul>
312        </div>
313    </div>
314    <div style="display: none">
315        <div id="maparea">
316            <div id="maps" style="width: 300px;height: 300px;"></div>
317            <div class="btn-area">
318                <ul>
319                    <li><a class="btn-normal" href="javascript:;" id="inputPoint">この位置を入力</a></li>
320                </ul>
321            </div>
322        </div>
323    </div>
324    <!--{* ▲登録テーブルここまで *}-->
325</form>
Note: See TracBrowser for help on using the repository browser.