Changeset 2677


Ignore:
Timestamp:
May 12, 2012, 9:17:56 PM (8 years ago)
Author:
teymour
Message:

Ajout des tailles de plots pour améliorer l'affiche au load

File:
1 edited

Legend:

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

    r1627 r2677  
    1111}
    1212$PictureID = "Map_".rand(1,10000).".map";
    13 ?>
    14 
    15 <?php if ($link === 'true') echo '<a href="'.url_for('@parlementaire_plot?slug='.$parlementaire->slug.'&time=lastyear').'">';
    16 else echo '<div class="par_session">'; ?>
    17 <img 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();"/>
     13$size = 'height="300" width="800"';
     14if ($link === 'true') {
     15  echo '<a href="'.url_for('@parlementaire_plot?slug='.$parlementaire->slug.'&time=lastyear').'">';
     16  $size = 'height="150" width="800"';
     17 } 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();"/>
    1819<?php if ($link === 'true') { ?>
    1920<script type="text/javascript">
Note: See TracChangeset for help on using the changeset viewer.