dynamap pas obligatoire
[platal.git] / templates / geoloc / index.tpl
1 {**************************************************************************}
2 {*                                                                        *}
3 {*  Copyright (C) 2003-2006 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 <h1>Géolocalisation</h1>
24
25 <script type="text/javascript">
26 {literal}
27 function ficheXorg(id)
28 {
29   window.open('../fiche.php?user='+id,'_blank','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=840,height=600');
30 }
31 function clickOnCity(id)
32 {
33         var f = document.getElementById('search_form');
34         var url = f.action;
35         f.action += unescape('%26')+'cityid=' + id; 
36         f.submit();
37         f.action = url;
38         document.getElementById('search_results').style.height = '250px';
39 }
40 var mapid = 0;
41 function goToCountry(id)
42 {
43         mapid = id;
44 }
45 function searchMapId(f)
46 {
47         var url = f.action;
48         f.action += unescape('%26')+'mapid=' + mapid; 
49         f.submit();
50         f.action = url;
51         document.getElementById('search_results').style.height = '250px';
52 }
53 {/literal}
54
55 </script>
56 {if !$dynamap_vars}
57 <p class="descr">
58 Aujourd'hui {$localises} de nos camarades sont localisés grâce à leurs adresses personnelles.
59 </p>
60 {/if}
61 {if $use_map}
62 <p class="center">
63 <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="600" height="450" id="dynamap" align="middle">
64 <param name="allowScriptAccess" value="sameDomain" />
65 <param name="quality" value="high" />
66 <param name="bgcolor" value="#ffffff" />
67 <param name="movie" value="dynamap{$dynamap_vars|default:"only_current=on"}.swf" />
68 <embed src="dynamap{$dynamap_vars|default:"only_current=on"}.swf" quality="high" bgcolor="#ffffff" width="600" height="450" name="dynamap" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
69 </object>
70 <p class="smaller">Carte fournie gracieusement par <a href="http://www.geodesix.com/">Geodesix</a>.</p>
71 </p>
72 <form id="search_form" action="{#globals.baseurl#}/advanced_search.php?{$dynamap_vars|default:"only_current=on"}&amp;rechercher=1" method="post">
73 <p>
74         <input type="button" value="Lister les camarades de la carte" onclick="searchMapId(this.form)"/>
75 </p>
76 </form>
77 {else}
78 <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>
79 {/if} 
80 <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>
81
82 {* vim:set et sw=2 sts=2 sws=2: *}