0337d704 |
1 | {**************************************************************************} |
2 | {* *} |
56670b6a |
3 | {* Copyright (C) 2003-2006 Polytechnique.org *} |
0337d704 |
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 | <h1>Géolocalisation</h1> |
24 | |
56670b6a |
25 | <script type="text/javascript"> |
26 | {literal} |
27 | function ficheXorg(id) |
28 | { |
80244bbe |
29 | window.open('{/literal}{if $no_annu}https://www.polytechnique.org/{/if}{literal}profile/'+id,'_blank','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=840,height=600'); |
56670b6a |
30 | } |
2b105fb6 |
31 | {/literal} |
32 | {if !$no_annu} |
33 | {literal} |
56670b6a |
34 | function clickOnCity(id) |
35 | { |
36 | var f = document.getElementById('search_form'); |
37 | var url = f.action; |
1f017b2d |
38 | f.action += unescape('%26')+'cityid=' + id; |
56670b6a |
39 | f.submit(); |
40 | f.action = url; |
41 | document.getElementById('search_results').style.height = '250px'; |
42 | } |
43 | var mapid = 0; |
44 | function goToCountry(id) |
45 | { |
46 | mapid = id; |
47 | } |
48 | function searchMapId(f) |
49 | { |
50 | var url = f.action; |
1f017b2d |
51 | f.action += unescape('%26')+'mapid=' + mapid; |
56670b6a |
52 | f.submit(); |
53 | f.action = url; |
54 | document.getElementById('search_results').style.height = '250px'; |
55 | } |
56 | {/literal} |
2b105fb6 |
57 | {/if} |
0337d704 |
58 | |
56670b6a |
59 | </script> |
00d0011e |
60 | {if $localises} |
2b105fb6 |
61 | <p class="descr"> |
62 | Aujourd'hui {$localises} de nos camarades sont localisés grâce à leurs adresses personnelles. |
63 | </p> |
56670b6a |
64 | {/if} |
80244bbe |
65 | {if !$request_geodesix} |
2b105fb6 |
66 | <p class="center"> |
00d0011e |
67 | <embed |
80244bbe |
68 | src="{$platal->ns}geoloc/dynamap.swf" |
00d0011e |
69 | quality="high" |
70 | bgcolor="#ffffff" |
71 | width="600" |
72 | height="450" |
73 | name="dynamap" |
74 | id="dynamap" |
75 | align="middle" |
80244bbe |
76 | flashvars="initfile={$platal->ns}geoloc%2Finit{$search}" |
00d0011e |
77 | type="application/x-shockwave-flash" |
78 | menu="false" |
79 | wmode="opaque" |
80 | salign="tl" |
81 | pluginspage="{$protocole}://www.macromedia.com/go/getflashplayer" /> |
2b105fb6 |
82 | </p> |
83 | <p class="smaller">Carte fournie gracieusement par <a href="http://www.geodesix.com/">Geodesix</a>.</p> |
84 | {if !$no_annu} |
7b2413f6 |
85 | <form id="search_form" action="search/adv/?{$dynamap_vars|default:"only_current=on"}&rechercher=1" method="post"> |
2b105fb6 |
86 | <p> |
e9c58101 |
87 | <input type="button" value="Lister les camarades de la carte ci-dessus" onclick="searchMapId(this.form)"/> |
2b105fb6 |
88 | </p> |
89 | </form> |
90 | {/if} |
5c7c72a4 |
91 | {else} |
2b105fb6 |
92 | <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> |
5c7c72a4 |
93 | {/if} |
0337d704 |
94 | <p class="descr">Pour toute question, problème ou suggestion tu peux envoyer un mail à <a href="mailto:contact+geoloc@polytechnique.org">contact+geoloc@polytechnique.org</a></p> |
95 | |
96 | {* vim:set et sw=2 sts=2 sws=2: *} |