Changeset 1703


Ignore:
Timestamp:
Oct 7, 2010, 6:42:34 PM (11 years ago)
Author:
goya
Message:

refacto photos pour présents séance

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpc/trunk/project/apps/frontend/modules/presence/templates/seanceSuccess.php

    r1696 r1703  
    1010</div>
    1111  <div class="photos"><p>
    12   <?php $ntot = count($presents); $line = floor($ntot/(floor($ntot/16)+1)); $ct = 0; foreach ($presents as $presence) {
    13     $depute = $presence->getParlementaire();
    14     $titre = $depute->nom.', '.$depute->groupe_acronyme;
    15     //    if ($ct != 0 && $ct != $ntot-1 && !($ct % $line)) echo '<br/>'; $ct++;
    16     echo '<a href="'.url_for($depute->getPageLink()).'">';
    17     include_partial('parlementaire/photoParlementaire', array('parlementaire' => $depute, 'height' => 64));
    18     echo '</a>&nbsp;';
    19   } ?></p></div>
    20 
     12  <?php $deputes = array();
     13    $ntot = 0;
     14    foreach ($presents as $presence) {
     15      $ntot++;
     16      $deputes[] = $presence->getParlementaire();
     17    }
     18    include_partial('parlementaire/photos', array('deputes' => $deputes));
     19  ?>
     20  </p></div>
    2121<ul>
    2222<?php $nb = count($intervenants);
Note: See TracChangeset for help on using the changeset viewer.