source: branches/version-2_11-dev/data/Smarty/templates/default/abouts/index.tpl @ 20794

Revision 20794, 4.5 KB checked in by shutta, 13 years ago (diff)

refs #1211 管理画面->基本情報設定及び, このサイトについてのページで 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-2011 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<!--▼CONTENTS-->
25<!--{if $objSiteInfo->data.latitude && $objSiteInfo->data.longitude}-->
26<script type="text/javascript">//<![CDATA[
27$(function() {
28    $("#maps").css({
29        'margin-top': '15px',
30        'margin-left': 'auto',
31        'margin-right': 'auto',
32        'width': '98%',
33        'height': '300px'
34    });
35    var lat = <!--{$objSiteInfo->data.latitude}-->
36    var lng = <!--{$objSiteInfo->data.longitude}-->
37    if (lat && lng) {
38        var latlng = new google.maps.LatLng(lat, lng);
39        var mapOptions = {
40            zoom: 15,
41            center: latlng,
42            mapTypeId: google.maps.MapTypeId.ROADMAP
43        };
44        var map = new google.maps.Map($("#maps").get(0), mapOptions);
45        var marker = new google.maps.Marker({map: map, position: latlng});
46    } else {
47        $("#maps").remove();
48    }
49});
50//]]>
51</script>
52<!--{/if}-->
53<div id="undercolumn">
54
55    <div id="undercolumn_aboutus">
56        <h2 class="title"><!--{$tpl_title|h}--></h2>
57
58        <table summary="当サイトについて">
59            <colgroup width="20%"></colgroup>
60            <colgroup width="80%"></colgroup>
61            <!--{if strlen($objSiteInfo->data.shop_name)}-->
62                <tr>
63                    <th>店名</th>
64                    <td><!--{$objSiteInfo->data.shop_name|h}--></td>
65                </tr>
66            <!--{/if}-->
67
68            <!--{if strlen($objSiteInfo->data.company_name)}-->
69                <tr>
70                    <th>会社名</th>
71                    <td><!--{$objSiteInfo->data.company_name|h}--></td>
72                </tr>
73            <!--{/if}-->
74
75            <!--{if strlen($objSiteInfo->data.zip01)}-->
76                <tr>
77                    <th>住所</th>
78                    <td>〒<!--{$objSiteInfo->data.zip01|h}-->-<!--{$objSiteInfo->data.zip02|h}--><br /><!--{$objSiteInfo->data.pref|h}--><!--{$objSiteInfo->data.addr01|h}--><!--{$objSiteInfo->data.addr02|h}--></td>
79                </tr>
80            <!--{/if}-->
81
82            <!--{if strlen($objSiteInfo->data.tel01)}-->
83                <tr>
84                    <th>電話番号</th>
85                    <td><!--{$objSiteInfo->data.tel01|h}-->-<!--{$objSiteInfo->data.tel02|h}-->-<!--{$objSiteInfo->data.tel03|h}--></td>
86                </tr>
87            <!--{/if}-->
88
89            <!--{if strlen($objSiteInfo->data.fax01)}-->
90                <tr>
91                    <th>FAX番号</th>
92                    <td><!--{$objSiteInfo->data.fax01|h}-->-<!--{$objSiteInfo->data.fax02|h}-->-<!--{$objSiteInfo->data.fax03|h}--></td>
93                </tr>
94            <!--{/if}-->
95
96            <!--{if strlen($objSiteInfo->data.email02)}-->
97                <tr>
98                    <th>メールアドレス</th>
99                    <td><a href="mailto:<!--{$objSiteInfo->data.email02|escape:'hex'}-->"><!--{$objSiteInfo->data.email02|escape:'hexentity'}--></a></td>
100                </tr>
101            <!--{/if}-->
102
103            <!--{if strlen($objSiteInfo->data.business_hour)}-->
104                <tr>
105                    <th>営業時間</th>
106                    <td><!--{$objSiteInfo->data.business_hour|h}--></td>
107                </tr>
108            <!--{/if}-->
109
110            <!--{if strlen($objSiteInfo->data.good_traded)}-->
111                <tr>
112                    <th>取扱商品</th>
113                    <td><!--{$objSiteInfo->data.good_traded|h|nl2br}--></td>
114                </tr>
115            <!--{/if}-->
116
117            <!--{if strlen($objSiteInfo->data.message)}-->
118                <tr>
119                    <th>メッセージ</th>
120                    <td><!--{$objSiteInfo->data.message|h|nl2br}--></td>
121                </tr>
122            <!--{/if}-->
123
124        </table>
125
126        <div id="maps"></div>
127    </div>
128</div>
129<!--▲CONTENTS-->
Note: See TracBrowser for help on using the repository browser.