Changeset 1116 for cpc/trunk/project/apps
- Timestamp:
- Feb 17, 2010, 3:55:52 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpc/trunk/project/apps/frontend/modules/loi/templates/loiSuccess.php
r1113 r1116 12 12 } ?> 13 13 <div class="sommaireloi"> 14 <?php $nart = 0; 14 <?php $nart = 0; $nbart = 0; 15 15 if (isset($soussections)) { 16 16 $chapitre = 0; 17 17 $section = 0; 18 18 foreach ($soussections as $ss) { 19 if (($section != 0 || $chapitre != 0) && ($ss->chapitre != $chapitre || $ss->section > 1)) { 20 echo '<br/> Article'; 21 if ($nbart > 1) echo 's'; 22 echo ' '; 23 for ($i=$nart;$i<$nart+$nbart;$i++) 24 echo link_to($articles[$i]['titre'], '@loi_article?loi='.$loi->texteloi_id.'&article='.$articles[$i]['slug']).' '; 25 $nart += $nbart; 26 } 27 $nbart = $ss->nb_articles; 19 28 if (isset($ss->chapitre) && $ss->chapitre != $chapitre && (!($ss->section) || $ss->section == 0)) { 20 29 if ($section != 0) echo '</li></ul>'; … … 41 50 } 42 51 echo ')'; 43 echo '<br/> Article';44 if ($ss->nb_articles > 1) echo 's';45 echo ' ';46 for ($i=$nart;$i<$nart+$ss->nb_articles;$i++) {47 echo link_to($articles[$i]['titre'], '@loi_article?loi='.$loi->texteloi_id.'&article='.$articles[$i]['slug']).' ';;48 }49 $nart += $ss->nb_articles;50 52 } 53 echo '<br/> Article'; 54 if ($nbart > 1) echo 's'; 55 echo ' '; 56 for ($i=$nart;$i<$nart+$nbart;$i++) 57 echo link_to($articles[$i]['titre'], '@loi_article?loi='.$loi->texteloi_id.'&article='.$articles[$i]['slug']).' '; 51 58 if ($section != 0) echo '</li></ul>'; 52 59 if ($chapitre != 0) echo '</li></ul>';
Note: See TracChangeset
for help on using the changeset viewer.