source:
cpc/trunk/project/apps/frontend/modules/circonscription/templates/_map.php
@
937
Last change on this file since 937 was 937, checked in by , 11 years ago | |
---|---|
File size: 274 bytes |
Line | |
---|---|
1 | <?php |
2 | |
3 | if (!isset($num) || !$num) |
4 | return; |
5 | |
6 | if (preg_match('/^\d$/', $num)) |
7 | $num = sprintf("%02d",$num); |
8 | |
9 | if (preg_match('/\d[a-z]/i', $num)) |
10 | $fixednum = '0'.$num; |
11 | else |
12 | $fixednum = sprintf('%03d',$num); |
13 | |
14 | CirconscriptionActions::echoCircoMap($fixednum, 250, 0); |
Note: See TracBrowser
for help on using the repository browser.