Fix Javascript for IE
[platal.git] / templates / geoloc / index.tpl
... / ...
CommitLineData
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<h1>Géolocalisation</h1>
24
25<script type="text/javascript">
26{literal}
27function ficheXorg(id)
28{
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');
30}
31{/literal}
32{if !$no_annu}
33{literal}
34function clickOnCity(id)
35{
36 var f = document.getElementById('search_form');
37 var url = f.action;
38 f.action += unescape('%26')+'cityid=' + id;
39 f.submit();
40 f.action = url;
41 document.getElementById('search_results').style.height = '250px';
42}
43var mapid = 0;
44function goToCountry(id)
45{
46 mapid = id;
47}
48function searchMapId(f)
49{
50 var url = f.action;
51 f.action += unescape('%26')+'mapid=' + mapid;
52 f.submit();
53 f.action = url;
54 document.getElementById('search_results').style.height = '250px';
55}
56{/literal}
57{/if}
58
59</script>
60{if $localises}
61 <p class="descr">
62 Aujourd'hui {$localises} de nos camarades sont localisés grâce à leurs adresses personnelles.
63 </p>
64{/if}
65{if !$request_geodesix}
66 <p class="center">
67 <object
68 classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
69 codebase="{$protocole}://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"
70 width="600"
71 height="450"
72 align="middle">
73 <param name="movie" value="$platal->ns}geoloc/dynamap.swf"/>
74 <param name="bgcolor" value="#ffffff"/>
75 <param name="wmode" value="opaque"/>
76 <param name="quality" value="high"/>
77 <param name="flashvars" value="initfile={$platal->ns}geoloc%2Finit{$search|smarty:nodefaults}"/>
78 <embed
79 src="{$platal->ns}geoloc/dynamap.swf"
80 quality="high"
81 bgcolor="#ffffff"
82 width="600"
83 height="450"
84 name="dynamap"
85 id="dynamap"
86 align="middle"
87 flashvars="initfile={$platal->ns}geoloc%2Finit{$search|smarty:nodefaults}"
88 type="application/x-shockwave-flash"
89 menu="false"
90 wmode="opaque"
91 salign="tl"
92 pluginspage="{$protocole}://www.macromedia.com/go/getflashplayer"/>
93 </object>
94 </p>
95 <p class="smaller">Carte fournie gracieusement par <a href="http://www.geodesix.com/">Geodesix</a>.</p>
96 {if !$no_annu}
97 <form id="search_form" action="search/adv/?{$dynamap_vars|default:"only_current=on"}&amp;rechercher=1" method="post">
98 <p>
99 <input type="button" value="Lister les camarades de la carte ci-dessus" onclick="searchMapId(this.form)"/>
100 </p>
101 </form>
102 {/if}
103{else}
104 <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>
105{/if}
106<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>
107
108{* vim:set et sw=2 sts=2 sws=2: *}