Changeset 1506


Ignore:
Timestamp:
Sep 29, 2010, 8:13:24 PM (10 years ago)
Author:
roux
Message:

hilight page departement a partir du code de popeye

Location:
cpc/trunk/project/apps/frontend/modules
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpc/trunk/project/apps/frontend/modules/circonscription/templates/showSuccess.php

    r1391 r1506  
    77  <?php include_partial('parlementaire/table', array('deputes' => $parlementaires, 'circo' => $departement_num)); ?>
    88</div>
     9<script type="text/javascript">
     10/* survol du txt */
     11$(".list_dep").live("mouseover", function() {
     12  dep = $(this).attr("id").substring(3);
     13  $("#map"+dep).mouseover();
     14})
     15$(".list_dep").live("mouseout", function() {
     16  dep = $(this).attr("id").substring(3);
     17  $("#map"+dep).mouseout();
     18})
     19/* survol de la map */
     20$("area").live("mouseover", function() {
     21  dep = $(this).attr("id").substring(3);
     22  $("#dep"+dep).css("background-color", "#D1EA74");
     23})
     24$("area").live("mouseout", function() {
     25  dep = $(this).attr("id").substring(3);
     26  $("#dep"+dep).css("background-color", "#fff");
     27})
     28</script>
  • cpc/trunk/project/apps/frontend/modules/parlementaire/templates/_table.php

    r1411 r1506  
    1717foreach($deputes as $depute) {
    1818  $ct++; ?>
    19   <div class="list_dep" onclick="document.location='<?php echo url_for('@parlementaire?slug='.$depute->slug); ?>'">
     19  <div <?php if (isset($circo) && $depute->fin_mandat == null) echo 'id="dep'.preg_replace('/^(\d[\dab])$/', '0\\1', strtolower(Parlementaire::getNumeroDepartement($depute->nom_circo))).'-'.sprintf('%02d', $depute->num_circo).'" '; ?>class="list_dep" onclick="document.location='<?php echo url_for('@parlementaire?slug='.$depute->slug); ?>'">
    2020    <span class="list_nom">
    2121      <a href="<?php echo url_for('@parlementaire?slug='.$depute->slug); ?>"><?php echo $depute->getNomPrenom(); ?></a>
Note: See TracChangeset for help on using the changeset viewer.