Changeset 1396
- Timestamp:
- Sep 20, 2010, 8:46:06 AM (10 years ago)
- Location:
- cpc/trunk/project/apps/frontend/modules/circonscription/templates
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpc/trunk/project/apps/frontend/modules/circonscription/templates/listSuccess.php
r1395 r1396 7 7 $ct++; 8 8 if (preg_match('/^\d$/', $num)) $num = sprintf("%02d",$num); 9 echo '<p on click="document.location=\''.url_for('@list_parlementaires_departement?departement='.preg_replace('/ /', '_', $circo)).'\'" class="dept" id="dep'.$num.'">'.link_to($circo, '@list_parlementaires_departement?departement='.preg_replace('/ /', '_', $circo)).'</p>';9 echo '<p onmouseover="document.getElementById(\'d'.strtoupper($num).'\').className+=\' maphilighted\'; document.getElementById(\'d'.strtoupper($num).'\').class+=\' maphilighted\'; document.getElementById(\'d'.strtoupper($num).'\').maphilight();" onclick="document.location=\''.url_for('@list_parlementaires_departement?departement='.preg_replace('/ /', '_', $circo)).'\'" class="dept" id="dep'.strtoupper($num).'">'.link_to($circo, '@list_parlementaires_departement?departement='.preg_replace('/ /', '_', $circo)).'</p>'; 10 10 if ($ct == 27) 11 11 break; … … 20 20 continue; 21 21 if (preg_match('/^\d$/', $num)) $num = sprintf("%02d",$num); 22 echo '<p onclick="document.location=\''.url_for('@list_parlementaires_departement?departement='.preg_replace('/ /', '_', $circo)).'\'" class="dept" id="dep'. $num.'">'.link_to($circo, '@list_parlementaires_departement?departement='.preg_replace('/ /', '_', $circo)).'</p>';22 echo '<p onclick="document.location=\''.url_for('@list_parlementaires_departement?departement='.preg_replace('/ /', '_', $circo)).'\'" class="dept" id="dep'.strtoupper($num).'">'.link_to($circo, '@list_parlementaires_departement?departement='.preg_replace('/ /', '_', $circo)).'</p>'; 23 23 if ($ct == 55) 24 24 break; … … 32 32 continue; 33 33 if (preg_match('/^\d$/', $num)) $num = sprintf("%02d",$num); 34 echo '<p onclick="document.location=\''.url_for('@list_parlementaires_departement?departement='.preg_replace('/ /', '_', $circo)).'\'" class="dept" id="dep'. $num.'">'.link_to($circo, '@list_parlementaires_departement?departement='.preg_replace('/ /', '_', $circo)).'</p>';34 echo '<p onclick="document.location=\''.url_for('@list_parlementaires_departement?departement='.preg_replace('/ /', '_', $circo)).'\'" class="dept" id="dep'.strtoupper($num).'">'.link_to($circo, '@list_parlementaires_departement?departement='.preg_replace('/ /', '_', $circo)).'</p>'; 35 35 if ($ct == 66) 36 36 break; … … 44 44 continue; 45 45 if (preg_match('/^\d$/', $num)) $num = sprintf("%02d",$num); 46 echo '<p onclick="document.location=\''.url_for('@list_parlementaires_departement?departement='.preg_replace('/ /', '_', $circo)).'\'" class="dept" id="dep'. $num.'">'.link_to($circo, '@list_parlementaires_departement?departement='.preg_replace('/ /', '_', $circo)).'</p>';46 echo '<p onclick="document.location=\''.url_for('@list_parlementaires_departement?departement='.preg_replace('/ /', '_', $circo)).'\'" class="dept" id="dep'.strtoupper($num).'">'.link_to($circo, '@list_parlementaires_departement?departement='.preg_replace('/ /', '_', $circo)).'</p>'; 47 47 if ($ct == 77) 48 48 break; … … 56 56 continue; 57 57 if (preg_match('/^\d$/', $num)) $num = sprintf("%02d",$num); 58 echo '<p onclick="document.location=\''.url_for('@list_parlementaires_departement?departement='.preg_replace('/ /', '_', $circo)).'\'" class="dept" id="dep'. $num.'">'.link_to($circo, '@list_parlementaires_departement?departement='.preg_replace('/ /', '_', $circo)).'</p>';58 echo '<p onclick="document.location=\''.url_for('@list_parlementaires_departement?departement='.preg_replace('/ /', '_', $circo)).'\'" class="dept" id="dep'.strtoupper($num).'">'.link_to($circo, '@list_parlementaires_departement?departement='.preg_replace('/ /', '_', $circo)).'</p>'; 59 59 if ($ct == 88) 60 60 break; … … 68 68 continue; 69 69 if (preg_match('/^\d$/', $num)) $num = sprintf("%02d",$num); 70 echo '<p onclick="document.location=\''.url_for('@list_parlementaires_departement?departement='.preg_replace('/ /', '_', $circo)).'\'" class="dept" id="dep'. $num.'">'.link_to($circo, '@list_parlementaires_departement?departement='.preg_replace('/ /', '_', $circo)).'</p>';70 echo '<p onclick="document.location=\''.url_for('@list_parlementaires_departement?departement='.preg_replace('/ /', '_', $circo)).'\'" class="dept" id="dep'.strtoupper($num).'">'.link_to($circo, '@list_parlementaires_departement?departement='.preg_replace('/ /', '_', $circo)).'</p>'; 71 71 if ($ct == 96) 72 72 break; … … 81 81 continue; 82 82 if (preg_match('/^\d$/', $num)) $num = sprintf("%02d",$num); 83 echo '<p onclick="document.location=\''.url_for('@list_parlementaires_departement?departement='.preg_replace('/ /', '_', $circo)).'\'" class="dept" id="dep'. $num.'">'.link_to($circo, '@list_parlementaires_departement?departement='.preg_replace('/ /', '_', $circo)).'</p>';83 echo '<p onclick="document.location=\''.url_for('@list_parlementaires_departement?departement='.preg_replace('/ /', '_', $circo)).'\'" class="dept" id="dep'.strtoupper($num).'">'.link_to($circo, '@list_parlementaires_departement?departement='.preg_replace('/ /', '_', $circo)).'</p>'; 84 84 } ?> 85 85 </div>
Note: See TracChangeset
for help on using the changeset viewer.