Changeset 1411
- Timestamp:
- Sep 25, 2010, 7:56:03 PM (10 years ago)
- Location:
- cpc/trunk/project
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
cpc/trunk/project/apps/frontend/modules/circonscription/actions/actions.class.php
r1408 r1411 252 252 $src = url_for("@deptmts_image_png?w=$w&h=$h"); 253 253 254 echo "<img class=\"carte_departement\" src=\"$src\" usemap=\"#deptmts\" ";254 echo "<img alt=\"Carte issue de Wikipedia : Départements et régions de France par Bayo (sous licence GFDL)\" class=\"carte_departement\" src=\"$src\" usemap=\"#deptmts\" "; 255 255 echo 'style="width:'.$w.'px; height:'.$h.'px;" />'; 256 256 echo "<map name=\"deptmts\">"; -
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 -
cpc/trunk/project/apps/frontend/modules/parlementaire/templates/_table.php
r1391 r1411 21 21 <a href="<?php echo url_for('@parlementaire?slug='.$depute->slug); ?>"><?php echo $depute->getNomPrenom(); ?></a> 22 22 </span> 23 <span class="list_right"><a href="<?php echo url_for('@list_parlementaires_departement?departement='.$depute->nom_circo); ?>"><?php23 <span class="list_right"><a href="<?php if (!isset($circo)) echo url_for('@list_parlementaires_departement?departement='.$depute->nom_circo); else echo url_for('@parlementaire?slug='.$depute->slug); ?>"><?php 24 24 if (isset($circo)) { 25 25 echo '<span class="list_num_circo">'; -
cpc/trunk/project/web/css/xneth/style.css
r1402 r1411 1669 1669 .list_circo { 1670 1670 float: left; 1671 margin-left: 15px; 1671 margin-bottom: 30px; 1672 width: 40%; 1673 } 1674 .list_deptmts { 1675 float: left; 1676 margin: 10px 9px 25px 9px; 1672 1677 width: 12%; 1673 1678 font-size: 12px;
Note: See TracChangeset
for help on using the changeset viewer.