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

Revision 22177, 17.4 KB checked in by h_yoshimoto, 11 years ago (diff)

#1997 カナのテキストフィールドを削除

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