source: cpc/trunk/project/apps/frontend/modules/circonscription/templates/_map.php @ 937

Last change on this file since 937 was 937, checked in by MrLapinot, 11 years ago

Dynamic maps

File size: 274 bytes
Line 
1<?php
2
3if (!isset($num) || !$num)
4  return;
5
6if (preg_match('/^\d$/', $num)) 
7  $num = sprintf("%02d",$num);
8
9if (preg_match('/\d[a-z]/i', $num)) 
10  $fixednum = '0'.$num; 
11 else 
12   $fixednum = sprintf('%03d',$num);
13
14CirconscriptionActions::echoCircoMap($fixednum, 250, 0);
Note: See TracBrowser for help on using the repository browser.