Changeset 1671


Ignore:
Timestamp:
Oct 5, 2010, 1:21:32 PM (11 years ago)
Author:
popeye
Message:

Correction décalage du graph des recherches

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpc/trunk/project/apps/frontend/modules/solr/templates/searchSuccess.php

    r1643 r1671  
    187187  <div class="date" style="width: <?php echo $width_date ?>px;">
    188188  <ul>
    189     <?php $i = 0; foreach($fdates['values'] as $date => $nb) :
    190     $i++;
     189    <?php $i = 0; foreach($fdates['values'] as $date => $nb) :   
    191190    $height = round($nb['pc']*100/($fdates['max']) * 2);
    192191    $padding = 200-$height;
    193     $left = $left + $width; if($i < (count($fdates['values']))) { $left = $left + $espacement; }
     192    if($i != 0) { $left = $left + $width; } if($i < (count($fdates['values']))) { $left = $left + $espacement; }
     193   
    194194    $newargs = $selected;
    195    
    196195    $newargs['date'] = $date.'%2C'.$date;
    197196   
     
    209208    echo '<div class="hover_graph" style="width: '.$width.'px; height: '.$padding.'px;  bottom: '.$height.'px;"></div><span class="text_graph">'.link_search($nb['nb'], $query, $newargs, array()).'</span>';
    210209   
    211     # echo ' '.$nb['nb'].' résultats ('; printf('%02d', $nb['pc']*100/($fdates['max'])); echo '%)';
     210    $i++;
    212211    ?>
    213212    </li>
Note: See TracChangeset for help on using the changeset viewer.