Changeset 1385
- Timestamp:
- Sep 19, 2010, 12:41:33 PM (10 years ago)
- Location:
- cpc/trunk/project
- Files:
-
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
cpc/trunk/project/apps/frontend/config/routing.yml
r1384 r1385 374 374 commentaires_widget: 375 375 url: /commentaires/widget 376 param: {module: commentaire, action: Widget}376 param: {module: commentaire, action: widget} 377 377 378 378 parlementaire: -
cpc/trunk/project/apps/frontend/modules/amendement/templates/showSuccess.php
r1367 r1385 40 40 $sujet = $match[1].link_to($match[2].$match[3], '@loi_article?loi='.$loi->texteloi_id.'&article='.$art); 41 41 } 42 echo $sujet.' '; 43 if ($titreloi) echo '— '.link_to(preg_replace('/(Simplifions la loi 2\.0 : )?(.*)\s*<br.*$/', '\2', $loi->titre), '@loi?loi='.$loi->texteloi_id); 44 else if ($loi) echo 'du '.link_to($loi->getTitre(), '@document?id='.$loi->id); 45 if ($l = $amendement->getLettreLoi()) echo "($l)"; ?></h3> 42 if ($titreloi) 43 echo link_to(preg_replace('/(Simplifions la loi 2\.0 : )?(.*)\s*<br.*$/', '\2', $titreloi->titre), '@loi?loi='.$titreloi->texteloi_id); 44 else if ($loi) 45 echo link_to($loi->getTitre(), '@document?id='.$loi->id); 46 else echo 'Texte de loi N° '.$amendement->texteloi_id; 47 echo '</h3><h3>'.$sujet; 48 if ($l = $amendement->getLettreLoi()) echo "($l)"; ?></h3> 46 49 </div> 47 50 <div class="texte_intervention"> … … 49 52 $texte = preg_replace('/\s+(:|;|!|\?|»|\-)/', ' \1', $texte); 50 53 $texte = preg_replace('/(«|\-)\s+/', '\1 ', $texte); 51 if ($ loi && preg_match('/alin(e|é)a\s*(\d+)[^\d]/', $texte, $match)) {52 $link = link_to('alinéa '.$match[2], '@loi_article?loi='.$ loi->texteloi_id.'&article='.$art.'#alinea_'.$match[2]);54 if ($titreloi && preg_match('/alin(e|é)a\s*(\d+)[^\d]/', $texte, $match)) { 55 $link = link_to('alinéa '.$match[2], '@loi_article?loi='.$titreloi->texteloi_id.'&article='.$art.'#alinea_'.$match[2]); 53 56 $texte = preg_replace('/(alin(e|é)a\s*\d+)([^\d])/', $link.'\3', $texte); 54 57 } -
cpc/trunk/project/apps/frontend/modules/commentaire/templates/_showTruncWidget.php
r1384 r1385 5 5 ?> a dit le <?php echo date('d/m/Y', strtotime($c->created_at)); ?> :</a></span></p> 6 6 <div class="commentaire_avatar"><?php include_component('citoyen','avatarCitoyen', array('citoyen_id'=>$c->citoyen_id)); ?></div> 7 <p><?php echo truncate_text(strip_tags($c->commentaire), 300); ?></p>7 <p><?php echo truncate_text(strip_tags($c->commentaire), 280); ?></p> 8 8 <p><a href="<?php echo url_for($c->lien); ?>#commentaire_<?php echo $c->id; ?>">Lire dans le contexte</a></p> 9 9 </div> -
cpc/trunk/project/apps/frontend/modules/documents/templates/showSuccess.php
r1367 r1385 1 1 <div class="source"><?php if ($section) echo link_to('Dossier relatif', '@section?id='.$section->id); else echo '<a href="'.$doc->url_an.'">Dossier sur le site de l\'Assemblée</a>'; ?></div> 2 <h1 class="orange"><?php echo $doc->getTitre(); ?></h1> 2 <h1 class="orange"><?php echo preg_replace('/(N°\s\d+[,\s])/', '\\1<br/>', $doc->getTitre()); ?></h1> 3 <h3 class="aligncenter"><?php echo myTools::displayDate($doc->date); ?></h3> 3 4 <div class="document"> 4 5 <?php $feminin = ""; -
cpc/trunk/project/apps/frontend/modules/parlementaire/templates/_duJour.php
r1384 r1385 1 <h 3><?php if ($p['sexe'] == 'F') echo 'La députée du jour'; else echo 'Le député du jour'; ?></h3>2 <p><a href="<?php echo url_for('@parlementaire?slug='.$p['slug']); ?>"><img src="<?php echo url_for('@flip_resized_photo_parlementaire?height=150&slug='.$p['slug']); ?>" alt="<?php echo $p['nom']; ?>" /></a>< br/>3 < ?php echo link_to($p['nom'], '@parlementaire?slug='.$p['slug']); ?></p>1 <h2><?php if ($p['sexe'] == 'F') echo 'La députée du jour'; else echo 'Le député du jour'; ?></h2> 2 <p><a href="<?php echo url_for('@parlementaire?slug='.$p['slug']); ?>"><img src="<?php echo url_for('@flip_resized_photo_parlementaire?height=150&slug='.$p['slug']); ?>" alt="<?php echo $p['nom']; ?>" /></a></p> 3 <h3><?php echo link_to($p['nom'], '@parlementaire?slug='.$p['slug']); ?></h3> 4 4 <p><?php echo link_to('Un autre député au hasard', '@parlementaire_random'); ?></p> -
cpc/trunk/project/apps/frontend/modules/parlementaire/templates/indexSuccess.php
r1384 r1385 155 155 <div class="clear accueil"> 156 156 <div class="box_news"> 157 <h2><span style="margin-right: 5px;"><img alt=" " src="<?php echo $sf_request->getRelativeUrlRoot(); ?>/images/xneth/ico_nosdeputes.png"></span>Notre actualité</h2>157 <h2><span style="margin-right: 5px;"><img alt="actu" src="<?php echo $sf_request->getRelativeUrlRoot(); ?>/images/xneth/ico_nosdeputes.png"></span>Notre actualité</h2> 158 158 <div class="cont_box_news"> 159 <h3> Étude sur la présence : 243 000 € de sanctions prévues par le règlement</h3>160 <p>< img style="float: left; margin-right: 7px; width: 257px;" src="http://www.nosdeputes.fr/confiseurs/presence-moyenne.png" alt="moyenne des présences" />Regards Citoyens a mené une étude à partir des données de NosDeputes.fr visant à évaluer l'incidence des modifications du règlement sur la participation des députés aux travaux de l'Assemblée, notamment aux réunions des commissions.</p>159 <h3><a href="http://www.nosdeputes.fr/confiseurs/">Étude sur la présence : 243 000 € de sanctions prévues par le règlement</a></h3> 160 <p><a href="http://www.nosdeputes.fr/confiseurs/"><img style="float: left; margin-right: 7px; width: 257px;" src="http://www.nosdeputes.fr/confiseurs/presence-moyenne.png" alt="moyenne des présences" /></a>Regards Citoyens a mené une étude à partir des données de NosDeputes.fr visant à évaluer l'incidence des modifications du règlement sur la participation des députés aux travaux de l'Assemblée, notamment aux réunions des commissions.</p> 161 161 <p>Le règlement impose en effet avec ses articles 43 et 159 des sanctions financières sur l'indemnité de fonction des députés manifestant des absences répétées aux réunions de leur commission permanente le mercredi matin ou aux scrutins solennels en hémicycle.</p> 162 162 <p>La somme de ces sanctions pour la session ordinaire 2009 — 2010 représenterait 243 737,33 € d'économie possible pour l'Assemblée.</p> … … 165 165 </div> 166 166 <div class="box_widget"> 167 <h2><span style="margin-right: 5px;"><img alt=" " src="<?php echo $sf_request->getRelativeUrlRoot(); ?>/images/xneth/ico_comment.png"></span><a href="javascript:getWidget();">Les derniers commentaires</a></h2>167 <h2><span style="margin-right: 5px;"><img alt="comments" src="<?php echo $sf_request->getRelativeUrlRoot(); ?>/images/xneth/ico_comment.png"></span><a href="<?php echo url_for('@commentaires'); ?>">Les derniers commentaires</a></h2> 168 168 <div id="coms_widget"> 169 169 <noscript> … … 174 174 </div> 175 175 <div class="box_repartition"> 176 <h2><span style="margin-right: 5px;"><img alt=" " src="<?php echo $sf_request->getRelativeUrlRoot(); ?>/images/xneth/ico_graph.png"></span>Travail parlementaire des 12 derniers mois</h2>176 <h2><span style="margin-right: 5px;"><img alt="activite" src="<?php echo $sf_request->getRelativeUrlRoot(); ?>/images/xneth/ico_graph.png"></span><a href="<?php echo url_for('@top_global'); ?>">Travail parlementaire des 12 derniers mois</a></h2> 177 177 <?php echo include_component('plot', 'groupes', array('plot' => 'total')); ?> 178 178 </div> 179 179 <div class="box_tags"> 180 <h2><span style="margin-right: 5px;"><img alt=" " src="<?php echo $sf_request->getRelativeUrlRoot(); ?>/images/xneth/assemblee-nationale.png"></span><?php echo link_to('En ce moment à l\'Assemblée Nationale', '@parlementaires_tags'); ?></h2>180 <h2><span style="margin-right: 5px;"><img alt="tags" src="<?php echo $sf_request->getRelativeUrlRoot(); ?>/images/xneth/assemblee-nationale.png"></span><?php echo link_to('En ce moment à l\'Assemblée Nationale', '@parlementaires_tags'); ?></h2> 181 181 <?php echo include_component('tag', 'globalActivite'); ?> 182 182 </div> -
cpc/trunk/project/apps/frontend/modules/section/actions/actions.class.php
r1378 r1385 58 58 if ($this->section->url_an || $lois) { 59 59 $qtextes = Doctrine_Query::create() 60 ->select('t.id, t.type, t.type_details, t.titre, t.signataires ')60 ->select('t.id, t.type, t.type_details, t.titre, t.signataires, t.nb_commentaires') 61 61 ->from('Texteloi t') 62 62 ->whereIn('t.numero', $lois); -
cpc/trunk/project/apps/frontend/modules/section/templates/showSuccess.php
r1367 r1385 73 73 if (preg_match('/mixte paritaire/', $doc['signataires'])) 74 74 $doctitre .= " de la Commission mixte paritaire"; 75 if ($doc ->nb_commentaires)76 $doctitre .= ' (<span class="list_com">'.$doc ->nb_commentaires.' commentaire';77 if ($doc ->nb_commentaires> 1)75 if ($doc['nb_commentaires']) 76 $doctitre .= ' (<span class="list_com">'.$doc['nb_commentaires'].' commentaire'; 77 if ($doc['nb_commentaires'] > 1) 78 78 $doctitre .= "s"; 79 if ($doc ->nb_commentaires) {79 if ($doc['nb_commentaires']) { 80 80 $doctitre .= "</span>"; 81 81 if ($amendements) -
cpc/trunk/project/apps/frontend/modules/solr/templates/searchSuccess.php
r1378 r1385 81 81 <p class="intervenant"><a href="<?php echo $record['link']; ?>" rel="nofollow"><?php echo $record['personne']; ?></a></p> 82 82 <p class="content"><?php echo $record['highlighting']; ?></p> 83 <p class="more"><a href="<?php echo $record['link']; ?>"> Lire dans son contexte</a></p>83 <p class="more"><a href="<?php echo $record['link']; ?>">Consulter</a></p> 84 84 </div> 85 85 <div class="record"> -
cpc/trunk/project/apps/frontend/modules/tag/templates/_tagcloud.php
r1368 r1385 21 21 echo $nom; 22 22 if (isset($route)) { ?></a> <?php } 23 ?></span> <?php $ct++; endforeach;23 ?></span> <?php $ct++; endforeach; 24 24 } else { ?> 25 25 <span><em>Aucun mot-clé trouvé</em></span> -
cpc/trunk/project/lib/model/doctrine/Amendement.class.php
r1330 r1385 102 102 103 103 public function getTitre() { 104 return 'Projet de loi N° '.$this->texteloi_id.' : '.$this->sujet.' - '.$this->getShortTitre();104 return $this->getPresentTitre().' au texte N° '.$this->texteloi_id.' - '.$this->sujet.' ('.$this->getPresentSort().')'; 105 105 } 106 106 107 107 public function getShortTitre() { 108 return $this->getPresentTitre().' ('.$this->getPresentSort().')'; 109 } 110 111 public function getPresentTitre() { 108 112 $parent = 0; 109 113 $pluriel = ""; … … 137 141 if ($parent != 0) 138 142 $titre .= ' à l\'amendement N° <a href="/amendements/'.$this->texteloi_id.'/'.$parent[0].'">'.$parent[0].$lettre.'</a>'; 139 return "$titre".' ('.preg_replace('/indéfini/i', 'Sort indéfini', $this->getSort()).')'; 143 return $titre; 144 } 145 146 public function getPresentSort() { 147 return preg_replace('/indéfini/i', 'Sort indéfini', $this->getSort()); 140 148 } 141 149 -
cpc/trunk/project/lib/model/doctrine/Intervention.class.php
r1367 r1385 22 22 23 23 public function getTitre() { 24 $titre = 'Intervention du '.$this->date.' '; 25 if ($this->type == 'commission') { 26 $titre .= 'en commission'; 27 }else{ 28 $titre .= 'en hémicycle'; 29 } 30 return $titre; 24 if ($this->type === 'question') 25 $titre = 'Question orale'; 26 else $titre = 'Intervention'; 27 if ($this->type === 'commission') 28 $titre .= ' en commission'; 29 else 30 $titre .= ' en hémicycle'; 31 return $titre.' le '.myTools::displayShortDate($this->date); 31 32 } 32 33 … … 209 210 'key' => 'numero', 210 211 'return' => 'value'))); 211 for ($i = 0 ; $i < count($match[0]) ; $i++) {212 if ($lois) for ($i = 0 ; $i < count($match[0]) ; $i++) { 212 213 $match_protected = preg_replace('/(\s*)(\d[\d\s\à]*rectifiés?|\d[\d\s\à]*)(,\s*|\s*et\s*)*/', '\1%\2%\3', $match[3][$i]); 213 214 if (preg_match_all('/\s*%([^%]+)%(,\s*|\s*et\s*)*/', $match_protected, $amends)) { -
cpc/trunk/project/lib/model/doctrine/Parlementaire.class.php
r1374 r1385 11 11 } 12 12 public function getTitre() { 13 return $this->get Nom();13 return $this->getStatut(); 14 14 } 15 15 public function getPersonne() { -
cpc/trunk/project/lib/model/doctrine/QuestionEcrite.class.php
r1377 r1385 25 25 public function getTitre() { 26 26 $titre = 'Question N° '.$this->numero.' du '.myTools::displayShortDate($this->date).' ('.preg_replace('/\s*[\/\(].*$/', '', $this->ministere).')'; 27 if ($this->date_cloture && !$this->reponse && date("Y-m-d") > $this->date_cloture) $titre .= ' ( retirée)';28 else if (!$this->reponse) $titre .= ' ( sans réponse)';27 if ($this->date_cloture && !$this->reponse && date("Y-m-d") > $this->date_cloture) $titre .= ' (Retirée)'; 28 else if (!$this->reponse) $titre .= ' (Sans réponse)'; 29 29 return $titre; 30 30 } -
cpc/trunk/project/web/css/xneth/style.css
r1384 r1385 23 23 background-color: #FAFAFA; 24 24 margin-bottom: 16px; 25 } 26 #coms_widget { 25 27 overflow: auto; 26 28 } … … 956 958 color: #6F6F6F; 957 959 background-color: #dbd5c8; 960 margin-top: 18px; 961 padding-top: 2px; 962 padding-bottom: 2px; 958 963 } 959 964 /* les boites principales */ … … 984 989 } 985 990 986 .b_d_infos 991 .b_d_infos h3{ 987 992 988 993 } … … 1112 1117 } 1113 1118 .commentaires { 1119 padding-top: 5px; 1114 1120 clear:both; 1115 1121 margin-bottom: 15px; … … 1336 1342 1337 1343 .nuage_de_tags { 1338 min-height: 172px;1344 min-height:92px; 1339 1345 margin:5px 0 0 40px; 1340 1346 padding:5px; … … 1363 1369 1364 1370 .document { 1365 padding: 10px; 1366 } 1371 padding: 6px; 1372 } 1373 1374 .documentlist { 1375 padding: 3px; 1376 text-align: justify; 1377 } 1367 1378 1368 1379 .documents, .orga_dossier { … … 1526 1537 } 1527 1538 1528 .accueil_liste_liens 1539 .accueil_liste_liens h2 { 1529 1540 background-color:#dbd5c8; 1530 1541 font-size: 1.2em; … … 1532 1543 } 1533 1544 1534 .accueil_deputes_jour h3{1545 .accueil_deputes_jour h2 { 1535 1546 font-size: 1.4em; 1536 1547 color: #6F6F6F; 1537 1548 text-shadow: 0 0 4px #FFFFFF; 1538 margin: 11px0;1549 margin: 0; 1539 1550 background: #dbea9e url("images/fond_translucide.png"); 1540 1551 border-top: 1px solid #DDDDDD; … … 1561 1572 float: left; 1562 1573 width: 662px; 1574 height: 223px; 1563 1575 font-size: 12px; 1564 1576 border: 1px dashed #dddddd;
Note: See TracChangeset
for help on using the changeset viewer.