Changeset 1283


Ignore:
Timestamp:
Aug 23, 2010, 2:54:53 PM (11 years ago)
Author:
goya
Message:

quelques itérations sur les listes de députés suite aux comments sur le chan

Location:
cpc/trunk/project
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • cpc/trunk/project/apps/frontend/modules/parlementaire/templates/_table.php

    r1275 r1283  
    11<?php
     2$ct = 0;
    23if (isset($list)) {
    3   echo '<table><tr><td>';
     4  echo '<table><tr>';
    45  $totaldep = count($deputes);
    56  $div = floor($totaldep/3)+1;
     
    78    $div--;
    89  $td = 0;
    9 }
    10 $ct = 0;
    11 if (isset($imp) && $imp == 100 && count($deputes) == 1) {
    12   echo '</td><td>';
    13   $td++;
     10  if ($totaldep == 1) {
     11    echo '<td/><td>';
     12    $td++;
     13  } else if ($totaldep == 2 || $totaldep == 4)
     14    echo '<td class="list_td_small"/><td>';
     15  else echo '<td>';
    1416}
    1517foreach($deputes as $depute) {
     
    5355if (isset($list)) {
    5456  echo '</td>';
    55   while ($td < 2) {
     57  if ($totaldep == 2 || $totaldep == 4)
     58    echo '<td class="list_td_small"/>';
     59  else while ($td < 2) {
    5660    $td++;
    5761    echo '<td/>';
  • cpc/trunk/project/apps/frontend/modules/parlementaire/templates/listGroupeSuccess.php

    r1275 r1283  
    22<h1><?php echo '<span class="couleur_'.strtolower($orga->getSmallNomGroupe()).'">'.$title.'</span>'; $sf_response->setTitle($title); ?></h1>
    33<h2><?php echo $total; ?> député<?php if ($total > 1) echo 's'; ?></h2>
    4 <ul>
    54<div class="liste">
    65<?php $listimp = array_keys($parlementaires);
  • cpc/trunk/project/web/css/xneth/style.css

    r1275 r1283  
    14811481  width: 100%;
    14821482}
     1483.list_table .list_td_small {
     1484  width: 16%;
     1485}
    14831486.list_table td {
    14841487  width: 31%;
     
    15001503}
    15011504.list_dep {
    1502   margin: 10px;
     1505  margin: 5px;
     1506  padding: 5px;
    15031507  height: 32px;
    15041508}
Note: See TracChangeset for help on using the changeset viewer.