Changeset 1522
- Timestamp:
- Oct 1, 2010, 3:06:50 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpc/trunk/project/apps/frontend/modules/documents/templates/showSuccess.php
r1518 r1522 59 59 } 60 60 echo '</ul></div>'; 61 } 62 if (count($relatifs) || $section) { ?> 63 <div class="annexes"> 64 <h3>Documents relatifs</h3><ul> 65 <?php if ($section) echo '<li>'.link_to('Dossier : '.$section->titre, '@section?id='.$section->id).'</li>'; 66 $curid = 0; 67 foreach ($relatifs as $rel) { 68 $shortid = preg_replace('/-[atv].*$/', '', preg_replace('/[A-Z]/', '', $rel['id'])); 69 if ($curid != $shortid) { 70 echo '<li>'; 71 $curid = $shortid; 72 $doctitre = $rel['type']." N° $curid"; 73 if (!preg_match('/^,/', $rel['type_details'])) 74 $doctitre .= " "; 75 $doctitre .= $rel['type_details']; 76 if (preg_match('/mixte paritaire/', $rel['signataires'])) 77 $doctitre .= " de la Commission mixte paritaire"; 78 echo link_to($doctitre, '@document?id='.$curid).'</li>'; 79 } 80 } 81 echo '</ul></div>'; 61 82 } ?> 62 83 </div>
Note: See TracChangeset
for help on using the changeset viewer.