[Station Location] Added Belgium States
这个提交包含在:
		
							父节点
							
								
									d76896edd8
								
							
						
					
					
						当前提交
						f40b244f73
					
				
					共有  2 个文件被更改,包括 21 次插入 和 2 次删除
				
			
		|  | @ -629,6 +629,24 @@ | |||
| 							<small id="StateHelp" class="form-text text-muted"><?php echo lang("station_location_state_hint"); ?></small>
 | ||||
| 						</div> | ||||
| 
 | ||||
| 						<div class="mb-3" id="belgium_state"> | ||||
| 							<label for="stateInput"><?php echo lang("station_location_state"); ?></label>
 | ||||
| 							<select class="form-select" name="station_state" id="StateHelp" aria-describedby="stationCntyInputHelp"> | ||||
| 								<option value=""></option> | ||||
| 								<option value="AN" <?php if($my_station_profile->state == "AN") { echo "selected"; } ?>>Antwerpen</option>
 | ||||
| 								<option value="BR" <?php if($my_station_profile->state == "BR") { echo "selected"; } ?>>Brussels</option>
 | ||||
| 								<option value="BW" <?php if($my_station_profile->state == "BW") { echo "selected"; } ?>>Brabant Wallon</option>
 | ||||
| 								<option value="HT" <?php if($my_station_profile->state == "HT") { echo "selected"; } ?>>Hainaut</option>
 | ||||
| 								<option value="LB" <?php if($my_station_profile->state == "LB") { echo "selected"; } ?>>Limburg</option>
 | ||||
| 								<option value="LG" <?php if($my_station_profile->state == "LG") { echo "selected"; } ?>>Liêge</option>
 | ||||
| 								<option value="NM" <?php if($my_station_profile->state == "NM") { echo "selected"; } ?>>Namur</option>
 | ||||
| 								<option value="LU" <?php if($my_station_profile->state == "LU") { echo "selected"; } ?>>Luxembourg</option>
 | ||||
| 								<option value="OV" <?php if($my_station_profile->state == "OV") { echo "selected"; } ?>>Oost-Vlaanderen</option>
 | ||||
| 								<option value="VB" <?php if($my_station_profile->state == "VB") { echo "selected"; } ?>>Vlaams Brabant</option>
 | ||||
| 								<option value="WV" <?php if($my_station_profile->state == "WV") { echo "selected"; } ?>>West-Vlaanderen</option>
 | ||||
| 							</select> | ||||
| 							<small id="StateHelp" class="form-text text-muted"><?php echo lang("station_location_state_hint"); ?></small>
 | ||||
| 						</div> | ||||
| 
 | ||||
| 
 | ||||
| 						<!-- US County --> | ||||
|  |  | |||
|  | @ -38,11 +38,12 @@ $(document).ready( function () { | |||
|         '150': 'australia_state', | ||||
|         '163': 'png_state', | ||||
|         '170': 'nz_state', | ||||
|         '209': 'belgium_state', | ||||
|         '6': 'us_state' // Alaska
 | ||||
|     }; | ||||
| 
 | ||||
|     // Hide all states initially
 | ||||
|     $("#canada_state, #aland_state, #asiatic_russia_state, #belarus_state, #mexico_state, #eu_russia_state, #argentina_state, #brazil_state, #chile_state, #us_state, #paraguay_state, #korea_state, #uruguay_state, #venezuela_state, #australia_state, #png_state, #nz_state").hide(); | ||||
|     $("#canada_state, #aland_state, #asiatic_russia_state, #belarus_state, #mexico_state, #eu_russia_state, #argentina_state, #brazil_state, #chile_state, #us_state, #paraguay_state, #korea_state, #uruguay_state, #venezuela_state, #australia_state, #png_state, #nz_state, #belgium_state").hide(); | ||||
|     /** | ||||
|      * Gets the selected DXCC ID and shows the corresponding state. | ||||
|      */ | ||||
|  | @ -66,7 +67,7 @@ $(document).ready( function () { | |||
|         var stateToShow = stateMap[selectedValue] || stateMap['default']; | ||||
|      | ||||
|         // Hide all states
 | ||||
|         $("#mexico_state, #belarus_state, #asiatic_russia_state, #aland_state, #canada_state, #us_state, #eu_russia_state, #argentina_state, #brazil_state, #chile_state, #paraguay_state, #korea_state, #uruguay_state, #venezuela_state, #australia_state, #png_state, #nz_state").hide(); | ||||
|         $("#mexico_state, #belarus_state, #asiatic_russia_state, #aland_state, #canada_state, #us_state, #eu_russia_state, #argentina_state, #brazil_state, #chile_state, #paraguay_state, #korea_state, #uruguay_state, #venezuela_state, #australia_state, #png_state, #nz_state, #belgium_state").hide(); | ||||
|      | ||||
|         // Show the selected state
 | ||||
|         $("#" + stateToShow).show(); | ||||
|  |  | |||
		正在加载…
	
		在新工单中引用