Changeset 1553


Ignore:
Timestamp:
Oct 3, 2010, 11:00:09 AM (10 years ago)
Author:
roux
Message:

images onover députés

Location:
cpc/trunk/project
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • cpc/trunk/project/apps/frontend/modules/parlementaire/templates/_table.php

    r1531 r1553  
    2929foreach($deputes as $depute) {
    3030  $ct++; ?>
    31   <div class="list_dep<?php if (isset($circo) && $depute->fin_mandat == null) echo ' dep_map" id="dep'.preg_replace('/^(\d[\dab])$/', '0\\1', strtolower(Parlementaire::getNumeroDepartement($depute->nom_circo))).'-'.sprintf('%02d', $depute->num_circo); ?>" onclick="document.location='<?php echo url_for('@parlementaire?slug='.$depute->slug); ?>'">
     31  <div class="list_dep<?php if (isset($circo) && $depute->fin_mandat == null) echo ' dep_map" id="dep'.preg_replace('/^(\d[\dab])$/', '0\\1', strtolower(Parlementaire::getNumeroDepartement($depute->nom_circo))).'-'.sprintf('%02d', $depute->num_circo); ?>" onclick="document.location='<?php echo url_for('@parlementaire?slug='.$depute->slug); ?>'"><span title="<?php echo $depute->nom.' -- '.$depute->getMoyenStatut(); ?>" class="jstitle phototitle"><a class="urlphoto" href="<?php echo url_for('@parlementaire?slug='.$depute->slug); ?>"></a>
    3232    <span class="list_nom">
    3333      <a href="<?php echo url_for('@parlementaire?slug='.$depute->slug); ?>"><?php echo $depute->getNomPrenom(); ?></a>
     
    5555    ?>
    5656    </span><br/>
    57   </div>
     57  </span></div>
    5858  <?php if (isset($list) && $ct % $div == 0 && $ct != $totaldep && $totaldep != 1) {
    5959    $td++;
  • cpc/trunk/project/apps/frontend/modules/parlementaire/templates/topSuccess.php

    r1502 r1553  
    7575  foreach($tops as $t) {
    7676    $cpt++;?><tr<?php if ($cpt %2) echo ' class="tr_odd"'?>>
    77     <td title="<?php echo $t[0]['nom']; ?> -- Député<?php if ($t[0]['sexe'] === "F") echo 'e'; ?> <?php echo $t[0]['groupe_acronyme'].' '.preg_replace('/([^\'])$/', '\\1 ', Parlementaire::$dptmt_pref[trim($t[0]['nom_circo'])]).$t[0]['nom_circo']; ?>" class="jstitle couleur_<?php echo strtolower($t[0]['groupe_acronyme']); ?> <?php echo $class['parl']; ?>"><a name="<?php echo $t[0]['slug']; ?>" href="<?php echo url_for('@parlementaire?slug='.$t[0]['slug']); ?>"></a><?php echo link_to($t[0]['nom'], '@parlementaire?slug='.$t[0]['slug']); ?></td>
     77    <td id="<?php echo $t[0]['slug']; ?>" class="jstitle phototitle couleur_<?php echo strtolower($t[0]['groupe_acronyme']); ?> <?php echo $class['parl']; ?>" title="<?php echo $t[0]['nom']; ?> -- Député<?php if ($t[0]['sexe'] === "F") echo 'e'; ?> <?php echo $t[0]['groupe_acronyme'].' '.preg_replace('/([^\'])$/', '\\1 ', Parlementaire::$dptmt_pref[trim($t[0]['nom_circo'])]).$t[0]['nom_circo']; ?>"><a class="urlphoto" href="<?php echo url_for('@parlementaire?slug='.$t[0]['slug']); ?>"><?php echo $t[0]['nom']; ?></a></td>
    7878    <?php for($i = 1 ; $i < count($t) ; $i++) { ?>
    7979      <td title="<?php echo $t[$i]['value'].' '; if ($t[$i]['value'] < 2) echo preg_replace('/s (.*-- )/', ' \\1', preg_replace('/s (.*-- )/', ' \\1', $bulles[$i])); else echo $bulles[$i]; ?>" <?php echo $t[$i]['style']; ?> class="jstitle <?php echo $class[$ktop[$i]]; ?>">
  • cpc/trunk/project/web/css/xneth/style.css

    r1532 r1553  
    18821882  color: #7AA925;
    18831883}
     1884.phototitle {
     1885  display: block;
     1886}
  • cpc/trunk/project/web/js/jstitle.js

    r1498 r1553  
    44    }
    55    if ($(this).attr('title')) {
    6       $(this).attr('jstitle', $(this).attr('title'));
     6      title = $(this).attr('title').replace(/ \-\- /g, '<br/>').replace(/^([^<]+)<br/, '<b>$1</b><br');
     7      if ($(this).hasClass('phototitle') && !title.match(/<img src/)) {
     8        title = '<img src=\'' + $(this).children('.urlphoto')[0].href.replace(/\/([^\/]+)$/, "/depute/photo/$1/70") + '\'/><br/>' + title;
     9      }
     10      $(this).attr('jstitle', title);
    711      $(this).attr('title', '');
    812    }
    9     title = $(this).attr('jstitle');
    10     $('#jstitle').html(title.replace(/ \-\- /g, '<br/>'));
     13    $('#jstitle').html($(this).attr('jstitle'));
    1114    $('#jstitle').css('background-color', "white");
    1215    $('#jstitle').css('top', e.pageY+10);
Note: See TracChangeset for help on using the changeset viewer.