Changeset 1616


Ignore:
Timestamp:
Oct 4, 2010, 12:39:03 AM (10 years ago)
Author:
teymour
Message:

Revert _map

Location:
cpc/trunk/project/apps/frontend/modules
Files:
1 added
3 edited

Legend:

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

    r1614 r1616  
    11<?php
    2 if (!class_exists('CirconscriptionActions'))
    3   include(sfConfig::get('sf_app_dir').'/modules/circonscription/actions/actions.class.php');
    4 CirconscriptionActions::echoDeptmtsMap($circo, $width, $height);
     2if (!isset($num) || !$num)
     3return;
     4
     5if (preg_match('/^\d$/', $num)) 
     6$num = sprintf("%02d",$num);
     7
     8if (preg_match('/\d[a-z]/i', $num)) 
     9$fixednum = '0'.$num; 
     10else 
     11$fixednum = sprintf('%03d',$num);
     12
     13CirconscriptionActions::echoCircoMap($fixednum, $size, 0);
  • cpc/trunk/project/apps/frontend/modules/circonscription/templates/listSuccess.php

    r1611 r1616  
    22<h1>Toutes les circonscriptions par département</h1><?php
    33$sf_response->setTitle('Toutes les circonscriptions électorales par département - NosDéputés.fr'); ?>
    4 <?php include_partial('circonscription/map', array('circo'=>'full', 'height'=>600, 'width'=>546)); ?>
     4<?php include_partial('circonscription/mapDepartement', array('circo'=>'full', 'height'=>600, 'width'=>546)); ?>
    55<div class="list_deptmts">
    66<?php $iters = array("0" => 27, "27" => 55, "55" => 65, "65" => 75, "75" => 86, "86" => 96, "96" => 120);
  • cpc/trunk/project/apps/frontend/modules/parlementaire/templates/indexSuccess.php

    r1614 r1616  
    172172  <h2><span style="margin-right: 5px;"><img alt="actu" src="<?php echo $sf_request->getRelativeUrlRoot(); ?>/images/xneth/ico_nosdeputes.png" /></span>Touver son député</h2>
    173173    <div class="cont_box_news">
    174           <p><?php include_partial('circonscription/map', array('circo' => "full", 'width'=>200, 'height'=>0)); ?></p>
     174          <p><?php include_partial('circonscription/mapDepartement', array('circo' => "full", 'width'=>200, 'height'=>0)); ?></p>
    175175          </div>
    176176          <div class="message">
Note: See TracChangeset for help on using the changeset viewer.