Changeset 2582 for cpc/trunk/project
- Timestamp:
- Jan 8, 2012, 8:04:04 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpc/trunk/project/apps/frontend/modules/parlementaire/templates/topSuccess.php
r2580 r2582 36 36 "interventions courtes en Hémicycle -- Nombre d'interventions de 20 mots et moins prononcées par le député en hémicycle", 37 37 "Amendements signés -- Nombre d'amendements signés ou co-signés par le député", 38 "Amendements adoptés -- Nombre d'amendements dudéputé qui ont été adoptés en séance",38 "Amendements adoptés -- Nombre d'amendements signés par le député qui ont été adoptés en séance", 39 39 "Rapports écrits -- Nombre de rapports ou avis dont le député est l'auteur", 40 40 "Propositions écrites -- Nombre de propositions de loi ou de résolution dont le député est l'auteur", … … 78 78 <td id="<?php echo $t[0]['slug']; ?>" class="jstitle phototitle c_<?php echo strtolower($t[0]['groupe_acronyme']); ?> <?php echo $class['parl']; ?>" title="<?php echo $t[0]['nom']; ?> -- Député<?php if ($t[0]['sexe'] === "F") echo 'e'; ?> <?php echo $t[0]['groupe_acronyme'].' '.preg_replace('/([^\'])$/', '\\1 ', Parlementaire::$dptmt_pref[trim($t[0]['nom_circo'])]).$t[0]['nom_circo']; ?>"><a class="urlphoto" href="<?php echo url_for('@parlementaire?slug='.$t[0]['slug']); ?>"><?php echo $t[0]['nom']; ?></a></td> 79 79 <?php for($i = 1 ; $i < count($t) ; $i++) { ?> 80 <td title="<?php echo $t[$i]['value'].' '; if ($t[$i]['value'] < 2) echo preg_replace('/s (.*-- ) ?/', ' \\1', preg_replace('/s (.*-- )?/', ' \\1', $bulles[$i])); else echo $bulles[$i]; ?>" <?php echo $t[$i]['style']; ?> class="jstitle <?php echo $class[$ktop[$i]]; ?>">80 <td title="<?php echo $t[$i]['value'].' '; if ($t[$i]['value'] < 2) echo preg_replace('/s (.*-- )/', ' \\1', preg_replace('/s (.*-- )/', ' \\1', $bulles[$i])); else echo $bulles[$i]; ?>" <?php echo $t[$i]['style']; ?> class="jstitle <?php echo $class[$ktop[$i]]; ?>"> 81 81 <?php if (preg_match('/\./', $t[$i]['value'])) 82 82 printf('%02d', $t[$i]['value']); … … 96 96 <tr> 97 97 <th class="<?php echo $class['parl']; ?>"> </th> 98 <th title="Semaines d'activité -- Nombre de semaines où le député a été relevé présent --en commission ou a pris la parole (même brièvement) en hémicycle" class="jstitle <?php if ($sort == 1) echo 'tr_odd';?>">Semaines</th>98 <th title="Semaines d'activité -- Nombre moyen de semaines où un député de ce groupe -- a été relevé présent en commission ou a pris la parole (même brièvement) en hémicycle" class="jstitle <?php if ($sort == 1) echo 'tr_odd';?>">Semaines</th> 99 99 <th colspan="2" class="<?php if ($sort == 2 || $sort == 3) echo 'tr_odd';?>">Commission</th> 100 100 <th colspan="2" class="<?php if ($sort == 4 || $sort == 5) echo 'tr_odd';?>">Hémicycle</th> 101 101 <th colspan="2" class="<?php if ($sort == 6 || $sort == 7) echo 'tr_odd';?>">Amendements</th> 102 <th title="Rapports écrits -- Nombre de rapports ou avis dont le député est l'auteur" class="jstitle <?php if ($sort == 8) echo 'tr_odd';?>">Rapports</th>102 <th title="Rapports écrits -- Nombre moyen de rapports ou avis dont le député est l'auteur" class="jstitle <?php if ($sort == 8) echo 'tr_odd';?>">Rapports</th> 103 103 <th colspan="2" class="<?php if ($sort == 9 || $sort == 10) echo 'tr_odd';?>">Propositions</th> 104 104 <th colspan="2" class="<?php if ($sort == 11 || $sort == 12) echo 'tr_odd';?>">Questions</th> … … 110 110 foreach($ktop as $key) { 111 111 if ($key === "") continue; 112 $bulles[$i] = str_replace('Nombre', 'Nombre moyen', str_replace('le député', 'un député de ce groupe', $bulles[$i])); 112 113 echo '<th title="'.$bulles[$i].'" class="jstitle '.$class[$key].($sort == $i ? ' tr_odd' : '').'">'.$title[$key].'</th>'; 113 114 $i++; … … 122 123 <td id="<?php echo $gpe; ?>" class="jstitle c_<?php echo strtolower($gpe); ?> <?php echo $class['parl']; ?>" title="<?php echo $t[0]['nom']." -- ".$t[0]['desc']; ?>"><a href="<?php echo url_for('@list_parlementaires_groupe?acro='.$gpe); ?>"><?php echo $gpe." : ".$t[0]['nb']." députés"; ?></a></td> 123 124 <?php for($i = 1 ; $i < count($t) ; $i++) { 124 $t[$i] = round($t[$i]/$t[0]['nb']); 125 if ($cpt == 1) $bulles[$i] = str_replace('Nombre', 'Nombre moyen', str_replace('le député', 'un député de ce groupe', $bulles[$i])); ?> 126 <td title="<?php echo $t[$i].' '; if ($t[$i] < 2) echo preg_replace('/s (.*-- )?/', ' \\1', preg_replace('/s (.*-- )?/', ' \\1', $bulles[$i])); else echo $bulles[$i]; ?>" class="jstitle <?php echo $class[$ktop[$i]]; ?>"> 125 $t[$i] = round($t[$i]/$t[0]['nb']); ?> 126 <td title="<?php echo $t[$i].' '; if ($t[$i] < 2) echo preg_replace('/s (.*-- )/', ' \\1', preg_replace('/s (.*-- )/', ' \\1', $bulles[$i])); else echo $bulles[$i]; ?>" class="jstitle <?php echo $class[$ktop[$i]]; ?>"> 127 127 <?php if (preg_match('/\./', $t[$i])) 128 128 printf('%02d', $t[$i]);
Note: See TracChangeset
for help on using the changeset viewer.