source: branches/version-2_12_3en-p2/data/Smarty/templates/default_en-US/abouts/index.tpl @ 22765

Revision 22765, 5.1 KB checked in by michael_nelson, 11 years ago (diff)

#2172 郵便番号の必須を外したい - disposed of not needed if statement.

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<!--{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    //]]></script>
51<!--{/if}-->
52<div id="undercolumn">
53
54    <div id="undercolumn_aboutus">
55        <h2 class="title"><!--{$tpl_title|h}--></h2>
56
57        <table summary="About this site">
58            <col width="20%" />
59            <col width="80%" />
60            <!--{if strlen($objSiteInfo->data.shop_name)}-->
61                <tr>
62                    <th>Store name</th>
63                    <td><!--{$objSiteInfo->data.shop_name|h}--></td>
64                </tr>
65            <!--{/if}-->
66
67            <!--{if strlen($objSiteInfo->data.company_name)}-->
68                <tr>
69                    <th>Company name</th>
70                    <td><!--{$objSiteInfo->data.company_name|h}--></td>
71                </tr>
72            <!--{/if}-->
73
74            <!--{*
75            <!--{if strlen($objSiteInfo->data.zip01)}-->
76                <tr>
77                    <th>Location</th>
78                    <td><!--{$objSiteInfo->data.zip01|h}-->-<!--{$objSiteInfo->data.zip02|h}--><br /><!--{$objSiteInfo->data.addr01|h}--><!--{$objSiteInfo->data.addr02|h}--></td>
79                </tr>
80            <!--{/if}-->
81            *}-->
82            <!--{if strlen($objSiteInfo->data.zipcode) || strlen($objSiteInfo->data.addr01) || strlen($objSiteInfo->data.addr02)}-->
83                <tr>
84                    <th>Location</th>
85                    <td><!--{if strlen($objSiteInfo->data.zipcode)}-->
86                        <!--{$objSiteInfo->data.zipcode|h}-->
87                        <br />
88                        <!--{/if}--><!--{$objSiteInfo->data.addr01|h}--> <!--{$objSiteInfo->data.addr02|h}--></td>
89                </tr>
90            <!--{/if}-->
91            <!--{if strlen($objSiteInfo->data.tel01)}-->
92                <tr>
93                    <th>Phone number</th>
94                    <td><!--{$objSiteInfo->data.tel01|h}-->-<!--{$objSiteInfo->data.tel02|h}-->-<!--{$objSiteInfo->data.tel03|h}--></td>
95                </tr>
96            <!--{/if}-->
97
98            <!--{if strlen($objSiteInfo->data.fax01)}-->
99                <tr>
100                    <th>Fax number</th>
101                    <td><!--{$objSiteInfo->data.fax01|h}-->-<!--{$objSiteInfo->data.fax02|h}-->-<!--{$objSiteInfo->data.fax03|h}--></td>
102                </tr>
103            <!--{/if}-->
104
105            <!--{if strlen($objSiteInfo->data.email02)}-->
106                <tr>
107                    <th>E-mail address</th>
108                    <td><a href="mailto:<!--{$objSiteInfo->data.email02|escape:'hex'}-->"><!--{$objSiteInfo->data.email02|escape:'hexentity'}--></a></td>
109                </tr>
110            <!--{/if}-->
111
112            <!--{if strlen($objSiteInfo->data.business_hour)}-->
113                <tr>
114                    <th>Business hours</th>
115                    <td><!--{$objSiteInfo->data.business_hour|h}--></td>
116                </tr>
117            <!--{/if}-->
118
119            <!--{if strlen($objSiteInfo->data.good_traded)}-->
120                <tr>
121                    <th>Available products</th>
122                    <td><!--{$objSiteInfo->data.good_traded|h|nl2br}--></td>
123                </tr>
124            <!--{/if}-->
125
126            <!--{if strlen($objSiteInfo->data.message)}-->
127                <tr>
128                    <th>Message</th>
129                    <td><!--{$objSiteInfo->data.message|h|nl2br}--></td>
130                </tr>
131            <!--{/if}-->
132
133        </table>
134
135        <div id="maps"></div>
136    </div>
137</div>
Note: See TracBrowser for help on using the repository browser.