Changeset 1391
- Timestamp:
- Sep 19, 2010, 7:30:30 PM (10 years ago)
- Location:
- cpc/trunk/project
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
cpc/trunk/project/apps/frontend/modules/circonscription/templates/showSuccess.php
r1333 r1391 1 <h1 class="list_inter">Les députés par circonscription s</h1>1 <h1 class="list_inter">Les députés par circonscription</h1> 2 2 <h2><?php echo $circo.' ('.$departement_num.')'; ?></h2> 3 <?php $sf_response->setTitle($circo.' ('.$departement_num.') : Les députés par circonscription s'); ?>3 <?php $sf_response->setTitle($circo.' ('.$departement_num.') : Les députés par circonscription'); ?> 4 4 <?php include_partial('map', array('num'=>strtolower($departement_num))); ?> 5 5 <p><?php echo $total; ?> députés trouvés :</p> -
cpc/trunk/project/apps/frontend/modules/citoyen/templates/indexSuccess.php
r1333 r1391 5 5 $types = array("date" => "date d'inscription", 6 6 "alpha" => "ordre alphabétique", 7 "comm" => "commentaires postés", 8 "last" => "derniers commentaires"); ?> 7 "comm" => "commentaires postés"); ?> 9 8 <div class="list_choix">Ordonner par : 10 9 <?php foreach($types as $type => $texte) { … … 13 12 $ct++; 14 13 if ($ct != count($types)) echo ', '; 15 } ?> 14 } 15 echo ', '.link_to('derniers commentaires', '@commentaires'); 16 ?> 17 16 18 </div> 17 19 <p><?php echo $total; ?> citoyens se sont inscrits sur NosDéputés.fr depuis l'ouverture du site le 14 septembre 2009. <?php echo $comments['auteurs']; ?> d'entre eux ont laissé un total de <?php echo link_to($comments['comments'].' commentaires', '@commentaires'); ?>.<?php if (!$sf_user->isAuthenticated()) echo '<br/>Vous n\'avez pas encore de compte ? Cliquez <a href="'.url_for('@inscription').'">ici pour vous inscrire</a> ou <a href="'.url_for('@signin').'">vous connecter</a>.'; ?></p> … … 22 24 <?php $ct = 0; 23 25 foreach($pager->getResults() as $citoyen) { 24 $ct++; ?> 25 <td><a href="<?php echo url_for('@citoyen?slug='.$citoyen->slug); ?>"><div class="list_cit"> 26 <div class="list_img_left"><?php 27 if (!$citoyen->photo) echo ''.image_tag('xneth/avatar_citoyen.png', array('alt' => 'Avatar par défaut', 'height' => '50px')); 28 else echo '<img src="'.url_for('@photo_citoyen?slug='.$citoyen->slug).'" alt="avatar de '.$citoyen->login.'" height="50px"/>'; 29 ?></div> 30 <div class="list_nom"> 31 <?php echo $citoyen->login; ?> 32 </div> 33 <div class="list_right"> 34 <?php echo preg_replace('/membre/', 'inscrit', $citoyen->role).($citoyen->sexe === "F" ? "e" : "").' <br/>le '.myTools::displayVeryShortDate($citoyen->created_at); ?> 35 </div> 36 <div class="list_left"><?php 37 if (!empty($citoyen->activite)) 38 echo '<i>'.truncate_text(html_entity_decode(strip_tags($citoyen->activite), ENT_NOQUOTES, "UTF-8"), 25).'</i>'; 39 ?></div> 40 <div class="list_right"><?php 41 if (!$citoyen->nb_comment) 42 echo "0 commentaire"; 43 else { 44 echo '<span class="list_com">'.$citoyen->nb_comment.' commentaire'; 45 if ($citoyen->nb_comment > 1) echo 's'; 46 echo '</span>'; 47 } 48 ?></div> 49 </div></a></td> 50 <?php if ($ct % 3 == 0 && $ct != $total) echo '</tr><tr>'; 51 } ?> 52 </td><?php while ($ct % 3 != 0) { $ct++; echo '<td/>'; } ?></tr></table> 26 $ct++; 27 if ($ct % 3 == 1 && $ct != 1) echo '</tr><tr>'; ?> 28 <td onclick="document.location='<?php echo url_for('@citoyen?slug='.$citoyen->slug); ?>'"> 29 <div class="list_cit"><span class="list_img_left"><a href="<?php echo url_for('@citoyen?slug='.$citoyen->slug); ?>"><?php 30 if (!$citoyen->photo) echo ''.image_tag('xneth/avatar_citoyen.png', array('alt' => 'Avatar par défaut', 'height' => '50px')); 31 else echo '<img src="'.url_for('@photo_citoyen?slug='.$citoyen->slug).'" alt="avatar de '.$citoyen->login.'" height="50px"/>'; 32 ?></a></span> 33 <span class="list_nom"><a href="<?php echo url_for('@citoyen?slug='.$citoyen->slug); ?>"> 34 <?php echo truncate_text($citoyen->login, 26); 35 if (!empty($citoyen->activite)) 36 echo '</a><br/><small><i><a href="'.url_for('@citoyen?slug='.$citoyen->slug).'">'.truncate_text(html_entity_decode(strip_tags($citoyen->activite), ENT_NOQUOTES, "UTF-8"), 25).'</a>i</i></small>'; 37 else echo '</a>';?> 38 </span> 39 <span class="list_right"><a href="<?php echo url_for('@citoyen?slug='.$citoyen->slug); ?>"> 40 <?php echo preg_replace('/membre/', 'inscrit', $citoyen->role).($citoyen->sexe === "F" ? "e" : "").' <br/>le '.myTools::displayVeryShortDate($citoyen->created_at); ?> 41 </a><br/> 42 <a href="<?php echo url_for('@citoyen?slug='.$citoyen->slug); ?>"><?php 43 if (!$citoyen->nb_comment) 44 echo "0 commentaire"; 45 else { 46 echo '<strong><span class="list_com">'.$citoyen->nb_comment.' commentaire'; 47 if ($citoyen->nb_comment > 1) echo 's'; 48 echo '</span></strong>'; 49 } 50 ?></a></span></div> 51 </td> 52 <?php } ?> 53 <?php while ($ct % 3 != 0) { $ct++; echo '<td/>'; } ?></tr></table> 53 54 </div> 54 55 <?php if ($pager->haveToPaginate()) include_partial('parlementaire/paginate', array('pager'=>$pager, 'link'=>'@list_citoyens?order='.$order.'&')); ?> -
cpc/trunk/project/apps/frontend/modules/documents/templates/showSuccess.php
r1385 r1391 36 36 </div> 37 37 <div class="left"> 38 <?php if ((isset($texte) && $texte > 0) || count($annexes) ) { ?>38 <?php if ((isset($texte) && $texte > 0) || count($annexes) || $amendements) { ?> 39 39 <h3>Documents associés</h3><ul> 40 40 <?php if (isset($texte) && $texte > 0) -
cpc/trunk/project/apps/frontend/modules/parlementaire/templates/_paginate.php
r1255 r1391 1 1 <?php if ($pager->haveToPaginate()) : ?> 2 2 <div class="pagination"> 3 <?php if ($pager->getPage() != 1) echo link_to('<img src="'.$sf_request->getRelativeUrlRoot().'/images/xneth/min2.png"/> ', $link.'page=1'); ?>4 <?php if ($pager->getPage() != 1) echo link_to('<img src="'.$sf_request->getRelativeUrlRoot().'/images/xneth/left.png"/> ', $link.'page='.$pager->getPreviousPage()); ?>3 <?php if ($pager->getPage() != 1) echo link_to('<img alt="first" src="'.$sf_request->getRelativeUrlRoot().'/images/xneth/min2.png"/> ', $link.'page=1'); ?> 4 <?php if ($pager->getPage() != 1) echo link_to('<img alt="left" src="'.$sf_request->getRelativeUrlRoot().'/images/xneth/left.png"/> ', $link.'page='.$pager->getPreviousPage()); ?> 5 5 <?php foreach ($pager->getLinks() as $page): ?> 6 6 <?php if ($page == $pager->getPage()): ?> … … 10 10 <?php endif; ?> 11 11 <?php endforeach; ?> 12 <?php if ($pager->getPage() != $pager->getLastPage()) echo link_to('<img src="'.$sf_request->getRelativeUrlRoot().'/images/xneth/right.png"/>', $link.'page='.$pager->getNextPage()); ?>13 <?php if ($pager->getPage() != $pager->getLastPage()) echo link_to('<img src="'.$sf_request->getRelativeUrlRoot().'/images/xneth/max2.png"/> ', $link.'page='.$pager->getLastPage()); ?>12 <?php if ($pager->getPage() != $pager->getLastPage()) echo link_to('<img alt="right" src="'.$sf_request->getRelativeUrlRoot().'/images/xneth/right.png"/>', $link.'page='.$pager->getNextPage()); ?> 13 <?php if ($pager->getPage() != $pager->getLastPage()) echo link_to('<img alt="last" src="'.$sf_request->getRelativeUrlRoot().'/images/xneth/max2.png"/> ', $link.'page='.$pager->getLastPage()); ?> 14 14 </div> 15 15 <?php endif; ?> -
cpc/trunk/project/apps/frontend/modules/parlementaire/templates/_table.php
r1283 r1391 17 17 foreach($deputes as $depute) { 18 18 $ct++; ?> 19 < a href="<?php echo url_for('@parlementaire?slug='.$depute->slug); ?>"><div class="list_dep">20 < divclass="list_nom">21 < ?php echo $depute->getNomPrenom(); ?>22 </ div>23 < div class="list_right"><?php19 <div class="list_dep" onclick="document.location='<?php echo url_for('@parlementaire?slug='.$depute->slug); ?>'"> 20 <span class="list_nom"> 21 <a href="<?php echo url_for('@parlementaire?slug='.$depute->slug); ?>"><?php echo $depute->getNomPrenom(); ?></a> 22 </span> 23 <span class="list_right"><a href="<?php echo url_for('@list_parlementaires_departement?departement='.$depute->nom_circo); ?>"><?php 24 24 if (isset($circo)) { 25 25 echo '<span class="list_num_circo">'; … … 27 27 if (isset($dept)) 28 28 $string = $depute->getNumDepartement().' — '.preg_replace("/nscription/", "", $string); 29 echo $string.'</span> ';29 echo $string.'</span></a>'; 30 30 } else echo $depute->nom_circo; 31 ?></ div><div class="clear"/>32 < divclass="list_left">31 ?></a></span><br/> 32 <span class="list_left"> 33 33 <?php if (isset($imp)) { 34 34 echo ' '.$depute->fonction; 35 35 if (!isset($nogroupe)) 36 echo ' — < span class="couleur_'.strtolower($depute->getGroupeAcronyme()).'">'.$depute->getGroupeAcronyme().'</span>';36 echo ' — <a href="'.url_for('@list_parlementaires_groupe?acro='.$depute->groupe_acronyme).'"><span class="couleur_'.strtolower($depute->getGroupeAcronyme()).'">'.$depute->getGroupeAcronyme().'</span></a>'; 37 37 } else 38 echo preg_replace('/\s([A-Z]+)$/', ' < span class="couleur_'.strtolower($depute->getGroupeAcronyme()).'">'."\\1</span>", $depute->getStatut()); ?>39 </ div>40 < divclass="list_right"><?php38 echo preg_replace('/\s([A-Z]+)$/', ' <a href="'.url_for('@list_parlementaires_groupe?acro='.$depute->groupe_acronyme).'"><span class="couleur_'.strtolower($depute->getGroupeAcronyme()).'">'."\\1</span></a>", $depute->getStatut()); ?> 39 </span> 40 <span class="list_right"><?php 41 41 if (!$depute->nb_commentaires) 42 42 echo "0 commentaire"; 43 43 else { 44 echo '<span class="list_com">'.$depute->nb_commentaires.' commentaire'; 45 if ($depute->nb_commentaires > 1) echo 's'; echo '</span>'; 44 echo '<a href="'.url_for('@parlementaire_commentaires?slug='.$depute->slug).'"><span class="list_com">'.$depute->nb_commentaires.' commentaire'; 45 if ($depute->nb_commentaires > 1) echo 's'; 46 echo '</span></a>'; 46 47 } 47 ?> </div>48 </ div>49 </div> </a>48 ?> 49 </span><br/> 50 </div> 50 51 <?php if (isset($list) && $ct % $div == 0 && $ct != $totaldep && $totaldep != 1) { 51 52 $td++; -
cpc/trunk/project/lib/model/doctrine/CitoyenTable.class.php
r1275 r1391 6 6 { 7 7 public function getPager($request, $query = NULL) { 8 $pager = new sfDoctrinePager('Citoyen', 36);8 $pager = new sfDoctrinePager('Citoyen', 24); 9 9 $pager->setQuery($query); 10 10 $pager->setPage($request->getParameter('page', 1)); -
cpc/trunk/project/web/css/xneth/style.css
r1385 r1391 1684 1684 font-size: 10px; 1685 1685 } 1686 .list_bordertop { 1687 border-top: thin solid; 1688 } 1689 1686 1690 .list_borderleft { 1687 1691 border-left: thin solid; 1688 1692 } 1689 1693 .list_cit { 1690 margin: 8px;1694 padding: 4px; 1691 1695 min-height: 58px; 1692 1696 } … … 1727 1731 .list_left { 1728 1732 float: left; 1733 display: block; 1734 clear: both; 1729 1735 padding-left: 4px; 1730 1736 } … … 1736 1742 .list_right { 1737 1743 font-size: 9px; 1744 float: right; 1738 1745 text-align: right; 1739 1746 padding-right: 2px;
Note: See TracChangeset
for help on using the changeset viewer.