Changeset 1494
- Timestamp:
- Sep 29, 2010, 2:11:21 AM (10 years ago)
- Location:
- cpc/trunk/project/apps/frontend/modules/amendement
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
cpc/trunk/project/apps/frontend/modules/amendement/actions/actions.class.php
r1378 r1494 38 38 39 39 $this->sous_admts = Doctrine_Query::create() 40 ->select('a.id, a.numero ')40 ->select('a.id, a.numero, a.sort') 41 41 ->from('Amendement a, Tagging tg, tg.Tag t') 42 42 ->where('a.texteloi_id = ?', $this->amendement->texteloi_id) -
cpc/trunk/project/apps/frontend/modules/amendement/templates/showSuccess.php
r1390 r1494 23 23 <?php } ?> 24 24 <?php if ($sous_admts) { ?> 25 <p>Sous-amendements associés : <?php foreach($sous_admts as $sous) 26 echo link_to($sous['numero'], '@amendement?loi='.$amendement->texteloi_id.'&numero='.$sous['numero']).' '; ?></p> 25 <p>Sous-amendements associés : <?php foreach($sous_admts as $sous) { 26 if ($sous['sort'] === 'Adopté') echo '<strong>'; 27 echo link_to($sous['numero'], '@amendement?loi='.$amendement->texteloi_id.'&numero='.$sous['numero']).' '; 28 if ($sous['sort'] === 'Adopté') echo '(Adopté)</strong> '; 29 } ?></p> 27 30 <?php } ?> 28 31 <p>Déposé le <?php echo myTools::displayDate($amendement->date); ?> par : <?php echo $amendement->getSignataires(1); ?>.</p>
Note: See TracChangeset
for help on using the changeset viewer.