Ignore:
Timestamp:
May 13, 2012, 9:57:33 PM (8 years ago)
Author:
teymour
Message:

Image size style + reduction des risques des graphes identiques

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpc/trunk/project/apps/frontend/modules/plot/templates/_plotParlementaire.php

    r2677 r2695  
    11<?php
     2$size='';
    23if ($time === 'lastyear')
    34  $shortduree = 'annee';
     
    1011  $titre .= '-'.$shortduree;
    1112}
    12 $PictureID = "Map_".rand(1,10000).".map";
    13 $size = 'height="300" width="800"';
     13$PictureID = "Map_".$parlementaire->slug.'_'.rand(1,10000).".map";
    1414if ($link === 'true') {
    1515  echo '<a href="'.url_for('@parlementaire_plot?slug='.$parlementaire->slug.'&time=lastyear').'">';
    16   $size = 'height="150" width="800"';
     16  $size = 'height:150px; width:800px';
    1717 } else echo '<div class="par_session">'; ?>
    18  <img <?php echo $size; ?> id="graph<?php echo $PictureID; ?>" alt="Participation <?php echo $titre; ?> de <?php echo $parlementaire->nom; ?>" src="<?php echo url_for('@parlementaire_plot_graph?slug='.$parlementaire->slug.'&time='.$time.'&type='.$type.'&questions='.$questions.'&link='.$link.'&mapId='.$PictureID); ?>" onmousemove="getMousePosition(event);" onmouseout="nd();"/>
     18 <img style="<?php echo $size; ?>" id="graph<?php echo $PictureID; ?>" alt="Participation <?php echo $titre; ?> de <?php echo $parlementaire->nom; ?>" src="<?php echo url_for('@parlementaire_plot_graph?slug='.$parlementaire->slug.'&time='.$time.'&type='.$type.'&questions='.$questions.'&link='.$link.'&mapId='.$PictureID); ?>" onmousemove="getMousePosition(event);" onmouseout="nd();"/>
    1919<?php if ($link === 'true') { ?>
    2020<script type="text/javascript">
Note: See TracChangeset for help on using the changeset viewer.