Allows to easily come back to the full view once in the main address view
[platal.git] / templates / include / plview.geoloc.tpl
CommitLineData
8c4a0c30 1{**************************************************************************}
2{* *}
179afa7f 3{* Copyright (C) 2003-2008 Polytechnique.org *}
8c4a0c30 4{* http://opensource.polytechnique.org/ *}
5{* *}
6{* This program is free software; you can redistribute it and/or modify *}
7{* it under the terms of the GNU General Public License as published by *}
8{* the Free Software Foundation; either version 2 of the License, or *}
9{* (at your option) any later version. *}
10{* *}
11{* This program is distributed in the hope that it will be useful, *}
12{* but WITHOUT ANY WARRANTY; without even the implied warranty of *}
13{* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *}
14{* GNU General Public License for more details. *}
15{* *}
16{* You should have received a copy of the GNU General Public License *}
17{* along with this program; if not, write to the Free Software *}
18{* Foundation, Inc., *}
19{* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *}
20{* *}
21{**************************************************************************}
22
a2aa8436 23<script type="text/javascript">//<![CDATA[
8c4a0c30 24{literal}
25function ficheXorg(id)
26{
a2aa8436 27 window.open('{/literal}{if !$annu}https://{#globals.core.secure_domain#}/{/if}{literal}profile/'+id,'_blank','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=840,height=600');
8c4a0c30 28}
29{/literal}
a2aa8436 30{if $annu}
31var search_url = platal_baseurl + "{$platal->ns}{$annu}{$plset_search|smarty:nodefaults}";
8c4a0c30 32{literal}
33function clickOnCity(id)
34{
a2aa8436 35 window.open(search_url + unescape('%26')+'cityid=' + id, '_blank', '');
8c4a0c30 36}
37var mapid = 0;
38function goToCountry(id)
39{
a2aa8436 40 mapid = id;
8c4a0c30 41}
a2aa8436 42function searchMapId()
8c4a0c30 43{
a2aa8436 44 window.open(search_url + unescape('%26')+'mapid=' + mapid, '_blank', '');
8c4a0c30 45}
46{/literal}
47{/if}
48
a2aa8436 49//]]></script>
8c4a0c30 50
51{if !$request_geodesix}
29abb563 52
8c4a0c30 53 <p class="center">
29abb563 54 {if $smarty.request.only_current neq 'on'}
0e2472b6 55 [<a href="{$platal->ns}{$plset_base}/geoloc{$plset_search}only_current=on">Ne voir que les adresses principales</a>]
29abb563
SJ
56 {else}
57 [<a href="{$platal->ns}{$plset_base}">Voir toutes les adresses</a>]
8c4a0c30 58 {/if}
29abb563
SJ
59 </p>
60
8c4a0c30 61 <p class="center">
62 <object
0e2472b6
PC
63 type="application/x-shockwave-flash"
64 data="{$platal->ns}{$plset_base}/geoloc/dynamap.swf"
8c4a0c30 65 width="600"
0e2472b6
PC
66 height="450">
67 <param name="movie" value="{$platal->ns}{$plset_base}/geoloc/dynamap.swf"/>
68 <param name="wmode" value="transparent"/>
e0fc5413 69 <param name="flashvars" value="initfile=init{$plset_search_enc}"/>
8c4a0c30 70 </object>
71 </p>
a2aa8436 72 {if $annu}
73 <p class="center">
74 <a href="javascript:searchMapId()">Lister les X présents sur cette carte</a>
75 </p>
76 {/if}
8c4a0c30 77 <p class="smaller">Carte fournie gracieusement par <a href="http://www.geodesix.com/">Geodesix</a>.</p>
78{else}
79 <p>Le moteur de carte n'a pas été installé sur cette version de plat/al. Veuillez contacter <a href="http://www.geodesix.com/">Geodesix</a>.</p>
80{/if}
d7dd70be 81<p class="descr">Pour toute question, problème ou suggestion tu peux envoyer un mail à
82<a href="mailto:{#globals.geoloc.email#}">{#globals.geoloc.email#}</a>.</p>
8c4a0c30 83
84{* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}