56670b6a |
1 | {**************************************************************************}\r |
2 | {* *}\r |
5ddeb07c |
3 | {* Copyright (C) 2003-2007 Polytechnique.org *}\r |
56670b6a |
4 | {* http://opensource.polytechnique.org/ *}\r |
5 | {* *}\r |
6 | {* This program is free software; you can redistribute it and/or modify *}\r |
7 | {* it under the terms of the GNU General Public License as published by *}\r |
8 | {* the Free Software Foundation; either version 2 of the License, or *}\r |
9 | {* (at your option) any later version. *}\r |
10 | {* *}\r |
11 | {* This program is distributed in the hope that it will be useful, *}\r |
12 | {* but WITHOUT ANY WARRANTY; without even the implied warranty of *}\r |
13 | {* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *}\r |
14 | {* GNU General Public License for more details. *}\r |
15 | {* *}\r |
16 | {* You should have received a copy of the GNU General Public License *}\r |
17 | {* along with this program; if not, write to the Free Software *}\r |
18 | {* Foundation, Inc., *}\r |
19 | {* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *}\r |
20 | {* *}\r |
21 | {**************************************************************************}\r |
22 | <?xml version="1.0" encoding="utf-8"?>\r |
23 | <country id="{$smarty.request.mapid}">\r |
24 | <countries>\r |
25 | {foreach from=$countries item="country"}\r |
629e500f |
26 | <country id="{$country.id}" name="{$country.name}">\r |
56670b6a |
27 | <file swf="{$country.swf}" scale="{$country.scale}" xclip="{$country.xclip}" yclip="{$country.yclip}">\r |
28 | <color value="{$country.color}"/>\r |
29 | </file>\r |
30 | {if $country.nbPop > 0 or $country.id eq 0}\r |
31 | <map x="{$country.x}" y="{$country.y}" height="{$country.height}" width="{$country.width}" ratio="{$country.rat}"/>\r |
629e500f |
32 | <icon x="{$country.xPop}" y="{$country.yPop}" nb="{$country.nbPop}" size="{$country.rad}" name="{$country.name}" green="{if $country.nbPop}{$country.yellow/$country.nbPop}{else}0{/if}" blue="0" alpha="0.7"/>\r |
35fa92e8 |
33 | <moreinfos url="country{$plset_search}mapid={$country.id}"/>\r |
56670b6a |
34 | {/if}\r |
35 | </country>\r |
36 | {/foreach}\r |
37 | </countries>\r |
38 | <cities>\r |
39 | {foreach from=$cities item="city"}\r |
40 | <city id="{$city.id}" name="{$city.name}">\r |
00d0011e |
41 | <icon x="{$city.x}" y="{$city.y}" nb="{$city.pop}" size="{$city.size}" name="{$city.name}" green="{if $city.pop}{$city.yellow/$city.pop}{else}0{/if}" blue="0"/>\r |
35fa92e8 |
42 | <moreinfos url="city{$plset_search}cityid={$city.id}"/>\r |
56670b6a |
43 | </city>\r |
44 | {/foreach}\r |
45 | </cities>\r |
46 | </country>\r |
a7de4ef7 |
47 | {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}\r |