Some uncommitted work I made before being away.
[platal.git] / templates / include / plview.geoloc.tpl
1 {**************************************************************************}
2 {*                                                                        *}
3 {*  Copyright (C) 2003-2007 Polytechnique.org                             *}
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
23 <script type="text/javascript">//<![CDATA[
24 {literal}
25 function ficheXorg(id)
26 {
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');
28 }
29 {/literal}
30 {if $annu}
31 var search_url = platal_baseurl + "{$platal->ns}{$annu}{$plset_search|smarty:nodefaults}";
32 {literal}
33 function clickOnCity(id)
34 {
35     window.open(search_url + unescape('%26')+'cityid=' + id, '_blank', '');
36 }
37 var mapid = 0;
38 function goToCountry(id)
39 {
40     mapid = id;
41 }
42 function searchMapId()
43 {
44     window.open(search_url + unescape('%26')+'mapid=' + mapid, '_blank', '');
45 }
46 {/literal}
47 {/if}
48
49 //]]></script>
50
51 {if !$request_geodesix}
52   
53   {if $smarty.request.only_current neq 'on'}
54   <p class="center">
55     [<a href="{$platal->ns}{$plset_base}/geoloc{$plset_search}only_current=on">Ne voir que les adresses principales</a>]
56   </p>
57   {/if}
58   
59   <p class="center">
60   <object
61     classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
62     codebase="{$protocole}://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"
63     width="600"
64     height="450"
65     align="middle">
66       <param name="movie" value="{$platal->ns}{$plset_base}/geoloc/dynamap.swf"/>
67       <param name="bgcolor" value="#ffffff"/>
68       <param name="wmode" value="opaque"/>
69       <param name="quality" value="high"/>
70       <param name="flashvars" value="initfile={$platal->ns|urlencode}{$plset_base|urlencode}%2Fgeoloc%2Finit{$plset_search_enc}"/>
71       <embed
72         src="{$platal->ns}{$plset_base}/geoloc/dynamap.swf"
73         quality="high"
74         bgcolor="#ffffff"
75         width="600"
76         height="450"
77         name="dynamap"
78         id="dynamap"
79         align="middle"
80         flashvars="initfile={$platal->ns|urlencode}{$plset_base|urlencode}%2Fgeoloc%2Finit{$plset_search_enc}"
81         type="application/x-shockwave-flash"
82         menu="false"
83         wmode="opaque"
84         salign="tl"
85         pluginspage="{$protocole}://www.macromedia.com/go/getflashplayer"/>
86     </object>
87   </p>
88   {if $annu}
89   <p class="center">
90     <a href="javascript:searchMapId()">Lister les X présents sur cette carte</a>
91   </p>
92   {/if}
93   <p class="smaller">Carte fournie gracieusement par <a href="http://www.geodesix.com/">Geodesix</a>.</p>
94 {else}
95   <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>
96 {/if} 
97 <p class="descr">Pour toute question, problème ou suggestion tu peux envoyer un mail à <a href="mailto:geoloc@staff.polytechnique.org">geoloc@staff.polytechnique.org</a></p>
98
99 {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}