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

Revision 20459, 3.9 KB checked in by nanasess, 11 years ago (diff)

#997(冗長な dtb_baseinfo の取得)

  • SC_View のコンストラクタで取得していたのを LC_Page へ移動

#793 (非推奨機能の削除)

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