Changeset 12135
- Timestamp:
- 2006-07-11T13:42:50+12:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/cic-hcap/macros/extra.dm
r12133 r12135 913 913 function prepareStateSearch() 914 914 \{ 915 var stq_value = ""; 916 for (var i = 0; i < document.StateQueryForm.stc.options.length; i++) \{ 917 if (document.StateQueryForm.stc.options[i].selected == true) \{ 918 if (stq_value != "") stq_value += ","; 919 stq_value += document.StateQueryForm.stc.options[i].value; 920 \} 921 \} 922 document.StateQueryForm.stq.value = stq_value; 915 923 \} 916 924 917 925 function selectRegion(region) 918 926 \{ 919 for (var i = 0; i < document.StateQueryForm.st q.options.length; i++) \{920 if (document.StateQueryForm.st q.options[i].value== region) \{921 document.StateQueryForm.st q.options[i].selected = true;927 for (var i = 0; i < document.StateQueryForm.stc.options.length; i++) \{ 928 if (document.StateQueryForm.stc.options[i].text == region) \{ 929 document.StateQueryForm.stc.options[i].selected = true; 922 930 break; 923 931 \} … … 952 960 <input type="hidden" name="qst" value="1"> 953 961 <input type="hidden" name="qrst" value="1"> 954 <select name="stq" size="25" multiple="true" style="width: 125px;"> 962 <input type="hidden" name="stq" value=""> 963 <select name="stc" size="25" multiple="true" style="width: 125px;"> 964 <option value="Northeast">Northeast</option> 965 <option value="Southeast">Southeast</option> 966 <option value="Midwest">Midwest</option> 967 <option value="Southwest">Southwest</option> 968 <option value="Mountain">Mountain</option> 969 <option value="West">West</option> 955 970 _cicstateoptions_ 956 971 </select> … … 973 988 # Shared between the "search institutions by state" and "advanced search" pages 974 989 _cicstateoptions_ { 975 <option value="Northeast">Northeast</option>976 <option value="Southeast">Southeast</option>977 <option value="Midwest">Midwest</option>978 <option value="Southwest">Southwest</option>979 <option value="Mountain">Mountain</option>980 <option value="West">West</option>981 990 <option value="AL">Alabama</option> 982 991 <option value="AK">Alaska</option> … … 1292 1301 <td valign="top"> 1293 1302 <select name="stq" onChange="prepareadvancedsearch();" size="10" multiple="true" style="width: 225px;"> 1303 <option value="Northeast">Northeast</option> 1304 <option value="Southeast">Southeast</option> 1305 <option value="Midwest">Midwest</option> 1306 <option value="Southwest">Southwest</option> 1307 <option value="Mountain">Mountain</option> 1308 <option value="West">West</option> 1294 1309 _cicstateoptions_ 1295 1310 </select>
Note:
See TracChangeset
for help on using the changeset viewer.