Changeset 2692


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

more CSS size for plots
+ W3C HTML for image size

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

Legend:

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

    r2675 r2692  
    77else $groupe = "Groupe parlementaire : ".$parlementaire->groupe_acronyme;
    88if ($parlementaire->slug)
    9   echo '<img title="'.$parlementaire->nom.' -- ('.$groupe.')" src="'.url_for('@resized_photo_parlementaire?height='.$height.'&slug='.$parlementaire->slug.$add).'" class="jstitle photo_fiche" width="'.round($height*156/200).'" height="'.$height.'" alt="Photo de '.$parlementaire->nom.'"/>';
     9  echo '<img title="'.$parlementaire->nom.' -- ('.$groupe.')" src="'.url_for('@resized_photo_parlementaire?height='.$height.'&slug='.$parlementaire->slug.$add).'" class="jstitle photo_fiche" style="width:'.round($height*156/200).'px; height:'.$height.'px;" alt="Photo de '.$parlementaire->nom.'"/>';
  • cpc/trunk/project/apps/frontend/modules/parlementaire/templates/_top.php

    r2503 r2692  
    8989    echo 'a';
    9090  else echo 'span';
    91   echo ' class="jstitle" title="'.$titre.'" href="'.url_for('@top_global_sorted?sort='.$sort[$k].'#'.$parlementaire->slug).'"><img height="16" width="16" src="'.$sf_request->getRelativeUrlRoot().'/images/xneth/';
     91  echo ' class="jstitle" title="'.$titre.'" href="'.url_for('@top_global_sorted?sort='.$sort[$k].'#'.$parlementaire->slug).'"><img style="height: 16px; width: 16px;" src="'.$sf_request->getRelativeUrlRoot().'/images/xneth/';
    9292  printf($images[$k], $couleur);
    9393  echo '" alt="'.$titre.'" />';
  • cpc/trunk/project/apps/frontend/modules/plot/templates/_groupes.php

    r2483 r2692  
    130130$Test->xsRender($filename);
    131131if ($plot == 'total')
    132   echo link_to(image_tag('tmp/xspchart/'.$filename, 'alt="Répartition '.$titre.'"'), '@top_global');
    133 else if (preg_match('/com/', $plot) && !isset($nolink))
    134   echo link_to(image_tag('tmp/xspchart/'.$filename, 'alt="Répartition '.$titre.'"'), '@presents_seance?seance='.$seance);
    135 else echo image_tag('tmp/xspchart/'.$filename, 'alt="Répartition '.$titre.'"');
     132  echo link_to(image_tag('tmp/xspchart/'.$filename, array('alt'=>"Répartition ".$titre, 'style'=>'width: '.$xsize.'px; height: '.$ysize.'px;')), '@top_global');
     133 else if (preg_match('/com/', $plot) && !isset($nolink))
     134   echo link_to(image_tag('tmp/xspchart/'.$filename, array('alt'=>"Répartition ".$titre, 'style'=>'width: '.$xsize.'px; height: '.$ysize.'px;')), '@presents_seance?seance='.$seance);
     135 else echo image_tag('tmp/xspchart/'.$filename, array('alt'=>'Répartition '.$titre, 'style'=>'width: '.$xsize.'px; height: '.$ysize.'px;'));
    136136
    137137echo include_partial('plot/groupesLegende', array());
  • cpc/trunk/project/apps/frontend/modules/plot/templates/_newGroupes.php

    r2682 r2692  
    11<div id="overDiv"></div>
    22<?php $PictureID = "Map_".rand(1,10000).".map"; ?>
    3 <?php if ($type === "home") echo '<a href="'.url_for('@top_global').'">'; ?>
    4 <img width="433" height="320" id="graph_groupes" alt="Répartition de l'activité parlementaire sur les 12 derniers mois" src="<?php echo url_for('@groupes_plot_graph?type='.$type.'&mapId='.$PictureID); ?>" onmousemove="getMousePosition(event);" onmouseout="nd();"/>
     3<?php $style = 'width:720px;height:336px;'; if ($type === "home") {echo '<a href="'.url_for('@top_global').'">'; $style="width:433px; height:320px;";}?>
     4<img style="<?php echo $style; ?>" id="graph_groupes" alt="Répartition de l'activité parlementaire <?php
     5if (myTools::isFinLegislature()) {
     6  echo 'sur l\'ensemble de la législature';
     7} else{
     8  echo 'sur les 12 derniers mois';
     9}?>" src="<?php echo url_for('@groupes_plot_graph?type='.$type.'&mapId='.$PictureID); ?>" onmousemove="getMousePosition(event);" onmouseout="nd();"/>
    510<?php if ($type === "home") echo '</a>'; ?>
    611<script type="text/javascript">
  • cpc/trunk/project/apps/frontend/modules/solr/actions/actions.class.php

    r2618 r2692  
    2626      return $this->getPartial('parlementaire/photoParlementaire', array('parlementaire'=>$obj, 'height'=>70));
    2727    case 'Commentaire':
    28       return '<img width="53" class="jstitle" title="'.$obj->getCitoyen()->getLogin().'" alt="'.$obj->getCitoyen()->getLogin().'" src="'.url_for('@photo_citoyen?slug='.$obj->getCitoyen()->getSlug()).'"/>';
     28      return '<img style="width:53px;" class="jstitle" title="'.$obj->getCitoyen()->getLogin().'" alt="'.$obj->getCitoyen()->getLogin().'" src="'.url_for('@photo_citoyen?slug='.$obj->getCitoyen()->getSlug()).'"/>';
    2929    case 'Citoyen':
    30       return '<img width="53" class="jstitle" title="'.$obj->getLogin().'" alt="'.$obj->getLogin().'" src="'.url_for('@photo_citoyen?slug='.$obj->getSlug()).'"/>';
     30      return '<img style="width:53px;" class="jstitle" title="'.$obj->getLogin().'" alt="'.$obj->getLogin().'" src="'.url_for('@photo_citoyen?slug='.$obj->getSlug()).'"/>';
    3131    case 'NonObjectPage':
    3232      return $obj->getImage();
Note: See TracChangeset for help on using the changeset viewer.