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

Revision 20518, 4.4 KB checked in by Seasoft, 13 years ago (diff)

#627(ソース整形・ソースコメントの改善)
#624(軽微な表示乱れを修正)

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