1 | <h1>Toutes les circonscriptions par département</h1><?php |
---|
2 | $sf_response->setTitle('Toutes les circonscriptions électorales par département - NosDéputés.fr'); ?> |
---|
3 | <?php // CirconscriptionActions::echoCircoMap("full", 900, 0); ?> |
---|
4 | <div class="list_circo"> |
---|
5 | <?php $div = floor(count($circos)/6)+1; $ct = 0; |
---|
6 | foreach($circos as $num => $circo) { |
---|
7 | $ct++; |
---|
8 | if (preg_match('/^\d$/', $num)) $num = sprintf("%02d",$num); |
---|
9 | echo '<p onmouseover="document.getElementById(\'d'.strtoupper($num).'\').className+=\' maphilighted\'; document.getElementById(\'d'.strtoupper($num).'\').class+=\' maphilighted\'; document.getElementById(\'d'.strtoupper($num).'\').maphilight();" onclick="document.location=\''.url_for('@list_parlementaires_departement?departement='.preg_replace('/ /', '_', $circo)).'\'" class="dept" id="dep'.strtoupper($num).'">'.link_to($circo, '@list_parlementaires_departement?departement='.preg_replace('/ /', '_', $circo)).'</p>'; |
---|
10 | if ($ct == 27) |
---|
11 | break; |
---|
12 | } ?> |
---|
13 | </div> |
---|
14 | <?php CirconscriptionActions::echoDeptmtsMap(600, 546); ?> |
---|
15 | <div class="list_circo borderleft"> |
---|
16 | <?php $ct = 0; |
---|
17 | foreach($circos as $num => $circo) { |
---|
18 | $ct++; |
---|
19 | if ($ct <= 27) |
---|
20 | continue; |
---|
21 | if (preg_match('/^\d$/', $num)) $num = sprintf("%02d",$num); |
---|
22 | echo '<p onclick="document.location=\''.url_for('@list_parlementaires_departement?departement='.preg_replace('/ /', '_', $circo)).'\'" class="dept" id="dep'.strtoupper($num).'">'.link_to($circo, '@list_parlementaires_departement?departement='.preg_replace('/ /', '_', $circo)).'</p>'; |
---|
23 | if ($ct == 55) |
---|
24 | break; |
---|
25 | } ?> |
---|
26 | </div> |
---|
27 | <div class="list_circo borderleft"> |
---|
28 | <?php $ct = 0; |
---|
29 | foreach($circos as $num => $circo) { |
---|
30 | $ct++; |
---|
31 | if ($ct <= 55) |
---|
32 | continue; |
---|
33 | if (preg_match('/^\d$/', $num)) $num = sprintf("%02d",$num); |
---|
34 | echo '<p onclick="document.location=\''.url_for('@list_parlementaires_departement?departement='.preg_replace('/ /', '_', $circo)).'\'" class="dept" id="dep'.strtoupper($num).'">'.link_to($circo, '@list_parlementaires_departement?departement='.preg_replace('/ /', '_', $circo)).'</p>'; |
---|
35 | if ($ct == 66) |
---|
36 | break; |
---|
37 | } ?> |
---|
38 | </div> |
---|
39 | <div class="list_circo borderleft"> |
---|
40 | <?php $ct = 0; |
---|
41 | foreach($circos as $num => $circo) { |
---|
42 | $ct++; |
---|
43 | if ($ct <= 66) |
---|
44 | continue; |
---|
45 | if (preg_match('/^\d$/', $num)) $num = sprintf("%02d",$num); |
---|
46 | echo '<p onclick="document.location=\''.url_for('@list_parlementaires_departement?departement='.preg_replace('/ /', '_', $circo)).'\'" class="dept" id="dep'.strtoupper($num).'">'.link_to($circo, '@list_parlementaires_departement?departement='.preg_replace('/ /', '_', $circo)).'</p>'; |
---|
47 | if ($ct == 77) |
---|
48 | break; |
---|
49 | } ?> |
---|
50 | </div> |
---|
51 | <div class="list_circo borderleft"> |
---|
52 | <?php $ct = 0; |
---|
53 | foreach($circos as $num => $circo) { |
---|
54 | $ct++; |
---|
55 | if ($ct <= 77) |
---|
56 | continue; |
---|
57 | if (preg_match('/^\d$/', $num)) $num = sprintf("%02d",$num); |
---|
58 | echo '<p onclick="document.location=\''.url_for('@list_parlementaires_departement?departement='.preg_replace('/ /', '_', $circo)).'\'" class="dept" id="dep'.strtoupper($num).'">'.link_to($circo, '@list_parlementaires_departement?departement='.preg_replace('/ /', '_', $circo)).'</p>'; |
---|
59 | if ($ct == 88) |
---|
60 | break; |
---|
61 | } ?> |
---|
62 | </div> |
---|
63 | <div class="list_circo borderleft"> |
---|
64 | <?php $ct = 0; |
---|
65 | foreach($circos as $num => $circo) { |
---|
66 | $ct++; |
---|
67 | if ($ct <= 88) |
---|
68 | continue; |
---|
69 | if (preg_match('/^\d$/', $num)) $num = sprintf("%02d",$num); |
---|
70 | echo '<p onclick="document.location=\''.url_for('@list_parlementaires_departement?departement='.preg_replace('/ /', '_', $circo)).'\'" class="dept" id="dep'.strtoupper($num).'">'.link_to($circo, '@list_parlementaires_departement?departement='.preg_replace('/ /', '_', $circo)).'</p>'; |
---|
71 | if ($ct == 96) |
---|
72 | break; |
---|
73 | } ?> |
---|
74 | </div> |
---|
75 | <div class="list_circo borderleft"> |
---|
76 | <h3 class="align_center">DOM-TOMs :</h3> |
---|
77 | <?php $ct = 0; |
---|
78 | foreach($circos as $num => $circo) { |
---|
79 | $ct++; |
---|
80 | if ($ct <= 96) |
---|
81 | continue; |
---|
82 | if (preg_match('/^\d$/', $num)) $num = sprintf("%02d",$num); |
---|
83 | echo '<p onclick="document.location=\''.url_for('@list_parlementaires_departement?departement='.preg_replace('/ /', '_', $circo)).'\'" class="dept" id="dep'.strtoupper($num).'">'.link_to($circo, '@list_parlementaires_departement?departement='.preg_replace('/ /', '_', $circo)).'</p>'; |
---|
84 | } ?> |
---|
85 | </div> |
---|
86 | |
---|