Changeset 1411


Ignore:
Timestamp:
Sep 25, 2010, 7:56:03 PM (10 years ago)
Author:
roux
Message:

correction mineures

Location:
cpc/trunk/project
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • cpc/trunk/project/apps/frontend/modules/circonscription/actions/actions.class.php

    r1408 r1411  
    252252    $src = url_for("@deptmts_image_png?w=$w&h=$h");
    253253
    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\" ";
    255255    echo 'style="width:'.$w.'px; height:'.$h.'px;" />';
    256256    echo "<map name=\"deptmts\">";
  • cpc/trunk/project/apps/frontend/modules/circonscription/templates/listSuccess.php

    r1408 r1411  
    22$sf_response->setTitle('Toutes les circonscriptions électorales par département - NosDéputés.fr'); ?>
    33<?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;
     8foreach ($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&nbsp;:</h3>';
     14 foreach($circos as $num => $circo) {
    715  $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)
    2017    continue;
    2118  if (preg_match('/^\d$/', $num)) $num = sprintf("%02d",$num);
    2219  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)
    2421    break;
     22 }
    2523} ?>
    2624</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&nbsp;:</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  
    2121      <a href="<?php echo url_for('@parlementaire?slug='.$depute->slug); ?>"><?php echo $depute->getNomPrenom(); ?></a>
    2222    </span>
    23     <span class="list_right"><a href="<?php echo url_for('@list_parlementaires_departement?departement='.$depute->nom_circo); ?>"><?php
     23    <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
    2424      if (isset($circo)) {
    2525        echo '<span class="list_num_circo">';
  • cpc/trunk/project/web/css/xneth/style.css

    r1402 r1411  
    16691669.list_circo {
    16701670  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;
    16721677  width: 12%;
    16731678  font-size: 12px;
Note: See TracChangeset for help on using the changeset viewer.