1 | <?php $titre1 = $amendement->getShortTitre(1); |
---|
2 | if ($section) $titre2 = link_to(ucfirst($section->titre), '@section?id='.$section->id); |
---|
3 | else $titre2=""; ?> |
---|
4 | <?php $sf_response->setTitle(strip_tags($titre2.' '.$titre1)); ?> |
---|
5 | <div class="amendement" id="L<?php echo $amendement->texteloi_id; ?>-A<?php echo $amendement->numero; ?>"> |
---|
6 | <div class="source"><a href="<?php echo $amendement->source; ?>">source</a> - <a href="<?php echo $amendement->getLinkPDF(); ?>">PDF</a></div> |
---|
7 | <h1><?php echo $titre1; ?></h1> |
---|
8 | <h2><?php echo $titre2; ?></h2> |
---|
9 | <div class="identiques"> |
---|
10 | |
---|
11 | </div> |
---|
12 | <?php if ($seance || count($identiques) > 1) { ?> |
---|
13 | <div class="seance_amendements"> |
---|
14 | <h3><?php if ($seance) echo 'Discuté en '.link_to('séance le '.myTools::displayDate($seance['date']), '@interventions_seance?seance='.$seance['seance_id'].'#amend_'.$amendement->numero); |
---|
15 | if (count($identiques) > 1) { |
---|
16 | if (count($identiques) > 2) |
---|
17 | $ident_titre = " ( amendements identiques : "; |
---|
18 | else $ident_titre = " ( amendement identique : "; ?> |
---|
19 | <em><?php echo $ident_titre; foreach($identiques as $identique) if ($identique->numero != $amendement->numero) |
---|
20 | echo link_to($identique->numero, '@amendement?loi='.$identique->texteloi_id.'&numero='.$identique->numero)." "; ?>)</em> |
---|
21 | <?php } ?></h3> |
---|
22 | </div> |
---|
23 | <?php } ?> |
---|
24 | <?php if ($sous_admts) { ?> |
---|
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> |
---|
30 | <?php } ?> |
---|
31 | <p>Déposé le <?php echo myTools::displayDate($amendement->date); ?> par : <?php echo $amendement->getSignataires(1); ?>.</p> |
---|
32 | <div class="signataires"> |
---|
33 | <div class="photos"><p> |
---|
34 | <?php $deputes = $amendement->Parlementaires; |
---|
35 | include_partial('parlementaire/photos', array("deputes" => $deputes)); ?> |
---|
36 | </p></div> |
---|
37 | </div> |
---|
38 | <div class="sujet"> |
---|
39 | <h3><?php $sujet = $amendement->getSujet(); |
---|
40 | if ($titreloi && preg_match('/^(.*)?(article\s*)((\d+|premier).*)$/i', $sujet, $match)) { |
---|
41 | $art = preg_replace('/premier/i', '1er', $match[3]); |
---|
42 | $art = preg_replace('/\s+/', '-', $art); |
---|
43 | $sujet = $match[1].link_to($match[2].$match[3], '@loi_article?loi='.$loi->texteloi_id.'&article='.$art); |
---|
44 | } |
---|
45 | if ($titreloi) |
---|
46 | echo link_to(preg_replace('/(Simplifions la loi 2\.0 : )?(.*)\s*<br.*$/', '\2', $titreloi->titre), '@loi?loi='.$titreloi->texteloi_id); |
---|
47 | else if ($loi) |
---|
48 | echo link_to($loi->getTitre(), '@document?id='.$loi->id); |
---|
49 | else echo 'Texte de loi N° '.$amendement->texteloi_id; |
---|
50 | echo '</h3><h3>'.$sujet; |
---|
51 | if ($l = $amendement->getLettreLoi()) echo "($l)"; ?></h3> |
---|
52 | </div> |
---|
53 | <div class="texte_intervention"> |
---|
54 | <?php $texte = $amendement->getTexte(); |
---|
55 | $texte = preg_replace('/\s+(:|;|!|\?|»|\-)/', ' \1', $texte); |
---|
56 | $texte = preg_replace('/(«|\-)\s+/', '\1 ', $texte); |
---|
57 | if ($titreloi && preg_match('/alin(e|é)a\s*(\d+)[^\d]/', $texte, $match)) { |
---|
58 | $link = link_to('alinéa '.$match[2], '@loi_article?loi='.$titreloi->texteloi_id.'&article='.$art.'#alinea_'.$match[2]); |
---|
59 | $texte = preg_replace('/(alin(e|é)a\s*\d+)([^\d])/', $link.'\3', $texte); |
---|
60 | } |
---|
61 | echo $texte; ?> |
---|
62 | </div> |
---|
63 | <?php if (isset($amendement->expose)) { ?> |
---|
64 | <div class="expose_amendement"> |
---|
65 | <h3>Exposé Sommaire :</h3> |
---|
66 | <?php $expose = $amendement->getExpose(); |
---|
67 | $expose = preg_replace('/\s+(:|;|!|\?|»|\-)/', ' \1', $expose); |
---|
68 | $expose = preg_replace('/(«|\-)\s+/', '\1 ', $expose); |
---|
69 | echo $expose; ?> |
---|
70 | </div> |
---|
71 | <?php } ?> |
---|
72 | <div class="commentaires" id="commentaires"> |
---|
73 | <?php if ($amendement->nb_commentaires == 0) |
---|
74 | echo '<h3 class="list_com">Aucun commentaire n\'a encore été formulé sur cet amendement</h3>'; |
---|
75 | else echo include_component('commentaire', 'showAll', array('object' => $amendement)); |
---|
76 | echo include_component('commentaire', 'form', array('object' => $amendement)); ?> |
---|
77 | </div> |
---|
78 | </div> |
---|