return;\r
}\r
\r
-function updSelectState(lngState) {\r
- if (gLngSelectedCountry>0) {\r
-\r
- document.form1.txtSelectedState.value = lngState+1;\r
-\r
- }\r
-}\r
-\r
-/*\r
- * gArCountryInfo matrix holds the following information:\r
- * (0) Country name\r
- * (1) Name length\r
- * (2) Number of states\r
- * (3) Max state length\r
- */\r
function Update_Globals() {\r
gLngSelectedCountry=parseInt(document.form1.country_name.selectedIndex);\r
gLngSelectedState=parseInt(document.form1.region.selectedIndex);\r
- document.form1.txtSelectedCountry.value=gLngSelectedCountry;\r
- document.form1.txtSelectedState.value=gLngSelectedState+1;\r
- \r
- // working\r
-// document.form1.txtCountry.value=\r
-// document.form1.country_name.options[gLngSelectedCountry].text;\r
-// if (document.form1.txtSelectedState.value<=0) {\r
-// document.form1.txtState.value="";\r
-// }\r
-// else {\r
-// document.form1.txtState.value=\r
-// document.form1.region.options[gLngSelectedState].text;\r
-// }\r
- \r
-\r
return;\r
}\r
\r
|| (strlen($profile['region'])) \r
|| (strlen($profile['postal-code'])) \r
|| (strlen($profile['country-name']))) { ?>\r
- <div class="location">Location:\r
+ <span class="location">Location:\r
<div class="adr">\r
<div class="street-address"><?php if(strlen($profile['address'])) echo $profile['address']; ?></div>\r
- <div class="city-state-zip"><span class="locality"><?php echo $profile['locality']; ?></span><?php if(strlen($profile['region'])) echo ', '; ?><span class="region"><?php echo $profile['region'] ?></span><?php if(strlen($profile['postal-code'])) { ?> <span class="postal-code"><?php echo $profile['postal-code']; ?></span><?php } ?></div>\r
- <div class="country-name"><?php echo $profile['country-name']; ?></div>\r
+ <span class="city-state-zip"><span class="locality"><?php echo $profile['locality']; ?></span><?php if(strlen($profile['locality'])) echo ', '; ?><span class="region"><?php echo $profile['region'] ?></span><?php if(strlen($profile['postal-code'])) { ?> <span class="postal-code"><?php echo $profile['postal-code']; ?></span><?php } ?></span>\r
+ <span class="country-name"><?php echo $profile['country-name']; ?></span>\r
</div>\r
</div>\r
\r
<div id="profile-edit-postal-code-end"></div>
<div id="profile-edit-country-name-wrapper" >
-<input type="hidden" name="txtSelectedCountry" value="" >
-
<label id="profile-edit-country-name-label" for="profile-edit-country-name" >Country: </label>
<select name="country_name" id="profile-edit-country-name" onChange="Fill_States('$region');">
<option selected="selected" >$country_name</option>
<div id="profile-edit-country-name-end"></div>
<div id="profile-edit-region-wrapper" >
-<input type="hidden" name="txtSelectedState" value="" >
<label id="profile-edit-region-label" for="profile-edit-region" >Region/State: </label>
<select name="region" id="profile-edit-region" onChange="Update_Globals();" >
<option selected="selected" >$region</option>
ensure correct photo is pushed with notify/poll and used in wall/wall comments/posts
use photo hash to notify of changes?
-remove hidden vars country/state selector
contact editor