1 | <h1 class="orange"><?php |
---|
2 | $titre = ''; |
---|
3 | if ($section->getSection()) { |
---|
4 | echo link_to($section->getSection()->getTitre(), '@section?id='.$section->section_id).'</h1><h2>'; |
---|
5 | $titre = ', '.$section->getSection()->getTitre(); |
---|
6 | } |
---|
7 | echo $section->titre; |
---|
8 | $titre = $section->titre.$titre; |
---|
9 | $sf_response->setTitle($titre.' - NosDéputés.fr'); |
---|
10 | if ($section->getSection()) echo '</h2>'; |
---|
11 | else echo '</h1>'; |
---|
12 | ?> |
---|
13 | <?php if ($section->url_an) echo '<span class="source">'.myTools::getLinkDossier($section->url_an)."</span>"; ?> |
---|
14 | <div class="numeros_textes"> |
---|
15 | <?php if ($section->nb_commentaires) { ?> |
---|
16 | <div class="source"><span class="list_com"><a href="#commentaires">Voir le<?php if ($section->nb_commentaires > 1) echo 's '.$section->nb_commentaires; ?> commentaire<?php if ($section->nb_commentaires > 1) echo 's'; ?></a></span></div> |
---|
17 | <?php } ?> |
---|
18 | <p> |
---|
19 | <?php $curid = 0; |
---|
20 | if ($docs) foreach ($docs as $id => $doc) { |
---|
21 | $shortid = preg_replace('/^(\d{4}).*$/', '\\1', $id); |
---|
22 | if ($curid != $shortid) { |
---|
23 | $curid = $shortid; |
---|
24 | if (isset($doc['texteloi_id'])) |
---|
25 | echo link_to(strip_tags($doc['titre']), '@loi?loi='.$doc['id']); |
---|
26 | else if (isset($doc['id'])) |
---|
27 | echo $doc['type']." ".$doc['type_details']." ".$doc['titre']." (".$doc['id'].")"; |
---|
28 | else |
---|
29 | echo 'Texte N° '.myTools::getLinkLoi($doc); |
---|
30 | echo "<br/>"; |
---|
31 | } |
---|
32 | } |
---|
33 | if (isset($lois_amendees)) echo link_to('Tous les amendements à ce dossier', '@find_amendements_by_loi_and_numero?loi='.urlencode(implode(',',$lois_amendees)).'&numero=all')."</p>"; |
---|
34 | ?> |
---|
35 | </div> |
---|
36 | <div class="resume"> |
---|
37 | <div class="right"> |
---|
38 | <div class="nuage_de_tags"> |
---|
39 | <h3>Mots-clés de cette section</h3> |
---|
40 | <?php echo include_component('tag', 'tagcloud', array('hide'=>1, 'tagquery' => $qtag, 'model' => 'Intervention', 'limit'=>40, 'route' => '@tag_section_interventions?section='.$section->id.'&')); ?> |
---|
41 | </div> |
---|
42 | </div> |
---|
43 | <div class="left"> |
---|
44 | <div class="plot_section"> |
---|
45 | <?php echo include_component('plot', 'groupes', array('plot' => 'section_'.$section->id)); ?> |
---|
46 | </div> |
---|
47 | </div> |
---|
48 | </div> |
---|
49 | <div class="clear"/> |
---|
50 | <?php $sommaire = $section->getSubSections(); |
---|
51 | if (count($sommaire)) { ?> |
---|
52 | <div class="orga_dossier right"> |
---|
53 | <h2>Organisation du dossier</h2> |
---|
54 | <ul> |
---|
55 | <?php foreach($section->getSubSections() as $subsection) : |
---|
56 | if ($subsection->id != $section->id) : ?> |
---|
57 | <li><?php $subtitre = $subsection->titre; |
---|
58 | if ($subsection->nb_commentaires > 0) { |
---|
59 | $subtitre .= ' (<span class="list_com">'.$subsection->nb_commentaires.' commentaire'; |
---|
60 | if ($subsection->nb_commentaires > 1) $subtitre .= 's'; |
---|
61 | $subtitre .= '</span>)'; |
---|
62 | } |
---|
63 | echo link_to($subtitre, '@interventions_seance?seance='.$subsection->getFirstSeance().'#table_'.$subsection->id); ?></li> |
---|
64 | <?php endif; endforeach;?> |
---|
65 | </ul> |
---|
66 | </div> |
---|
67 | <div class="left"> |
---|
68 | <?php } else echo '<div>'; ?> |
---|
69 | <div class="seances_dossier"> |
---|
70 | <h2>Toutes les séances consacrées à ce dossier</h2> |
---|
71 | <ul> |
---|
72 | <?php foreach($section->getSeances() as $seance) : ?> |
---|
73 | <li><?php $subtitre = $seance->getTitre(); |
---|
74 | if ($seance->nb_commentaires > 0) { |
---|
75 | $subtitre .= ' (<span class="list_com">'.$seance->nb_commentaires.' commentaire'; |
---|
76 | if ($seance->nb_commentaires > 1) $subtitre .= 's'; |
---|
77 | $subtitre .= '</span>)'; |
---|
78 | } |
---|
79 | echo link_to($subtitre, '@interventions_seance?seance='.$seance->id.'#table_'.$section->id); ?></li> |
---|
80 | <?php endforeach; ?> |
---|
81 | </ul> |
---|
82 | </div> |
---|
83 | <div class="orateurs_dossier"> |
---|
84 | <h2>Les principaux orateurs sur ce dossier :</h2> |
---|
85 | <?php echo include_component('parlementaire', 'list', array('parlementairequery' => $ptag, 'route'=>'@parlementaire_texte?id='.$section->id.'&slug=')); ?> |
---|
86 | </div> |
---|
87 | </div> |
---|
88 | <?php if ($section->nb_commentaires != 0) { ?> |
---|
89 | <div class="stopfloat"></div> |
---|
90 | <div class="commentaires" id="commentaires"> |
---|
91 | <h2 class="list_com">Derniers commentaires sur <?php echo $section->titre; ?> <span class="rss"><a href="<?php echo url_for('@section_rss_commentaires?id='.$section->id); ?>"><?php echo image_tag('xneth/rss.png', 'alt="Flux rss"'); ?></a></span></h2> |
---|
92 | <?php echo include_component('commentaire', 'lastObject', array('object' => $section, 'presentation' => 'nodossier')); |
---|
93 | if ($section->nb_commentaires > 4) |
---|
94 | echo '<p class="suivant">'.link_to('Voir les '.$section->nb_commentaires.' commentaires', '@section_commentaires?id='.$section->id).'</p><div class="stopfloat"></div>'; ?> |
---|
95 | </div> |
---|
96 | <?php } ?> |
---|