Changeset 1411 for cpc/trunk/project/apps/frontend/modules/circonscription/templates/listSuccess.php
- Timestamp:
- Sep 25, 2010, 7:56:03 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpc/trunk/project/apps/frontend/modules/circonscription/templates/listSuccess.php
r1408 r1411 2 2 $sf_response->setTitle('Toutes les circonscriptions électorales par département - NosDéputés.fr'); ?> 3 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) { 4 <?php CirconscriptionActions::echoDeptmtsMap(600, 546); ?> 5 <div class="list_deptmts"> 6 <?php $iters = array("0" => 27, "27" => 55, "55" => 65, "65" => 75, "75" => 86, "86" => 96, "96" => 120); 7 $div = floor(count($circos)/6)+1; 8 foreach ($iters as $iter1 => $iter2) { 9 $ct = 0; 10 if ($iter1 != 0) 11 echo '</div><div class="list_deptmts">'; 12 if ($iter2 == 120) 13 echo '<h3 class="align_center">DOM-TOMs :</h3>'; 14 foreach($circos as $num => $circo) { 7 15 $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) 16 if ($ct <= $iter1) 20 17 continue; 21 18 if (preg_match('/^\d$/', $num)) $num = sprintf("%02d",$num); 22 19 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)20 if ($ct == $iter2) 24 21 break; 22 } 25 23 } ?> 26 24 </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
Note: See TracChangeset
for help on using the changeset viewer.