Changeset 12038
- Timestamp:
- 2006-07-06T16:01:40+12:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/cic-hcap/macros/extra.dm
r12037 r12038 890 890 } 891 891 892 _cicaqpdefault_ {<select id='aqp_1_field' name='aqp'><option value='0'>contains</option><option value='1'>is</option></select>}893 _cicaqptypeofplace_ {<select id='aqp_1_field' name='aqp' disabled='true'><option value='0'>contains</option><option value='1' selected='true'>is</option></select>}894 895 892 _cicaqvdefault_ {<input id='aqv_1_field' name='aqv' type='text' style='width: 450px'/>} 896 893 _cicaqvtypeofplace_ {<select id='aqv_1_field' name='aqv' style='width: 450px'><option value='Individual building'>Individual building</option><option value='Landscape site'>Landscape site</option><option value='Campus arrangement'>Campus arrangement</option><option value='Building group'>Building group</option></select>} … … 909 906 <input type="hidden" name="aqib" value=""> 910 907 911 <span id="aqp_1_"> 912 _cicaqpdefault_(_1_) 913 </span> 908 <select name='aqp'> 909 <option value='0'>contains</option> 910 <option value='1'>is</option> 911 </select> 914 912 915 913 <span id="aqv_1_"> … … 1221 1219 function initializeadvancedsearch() 1222 1220 \{ 1223 changedAQI(); 1221 for (var i = 0; i < document.QueryForm.aqi.length; i++) \{ 1222 if (document.QueryForm.aqi[i].value == "PL") \{ 1223 document.QueryForm.aqp[i].disabled = true; 1224 document.QueryForm.aqp[i].options[1].selected = true; 1225 document.getElementById("aqv" + i).innerHTML = "_cicaqvtypeofplace_(" + i + ")"; 1226 \} 1227 \} 1228 1229 prepareadvancedsearch(); 1224 1230 \} 1225 1231 … … 1229 1235 if (document.QueryForm.aqi[i].value != document.QueryForm.aqib[i].value) \{ 1230 1236 if (document.QueryForm.aqi[i].value == "PL") \{ 1231 document.getElementById("aqp" + i).innerHTML = "_cicaqptypeofplace_(" + i + ")"; 1237 document.QueryForm.aqp[i].disabled = true; 1238 document.QueryForm.aqp[i].options[1].selected = true; 1232 1239 document.getElementById("aqv" + i).innerHTML = "_cicaqvtypeofplace_(" + i + ")"; 1233 1240 \} 1234 1241 else \{ 1235 document.getElementById("aqp" + i).innerHTML = "_cicaqpdefault_(" + i + ")";1242 document.QueryForm.aqp[i].disabled = false; 1236 1243 document.getElementById("aqv" + i).innerHTML = "_cicaqvdefault_(" + i + ")"; 1237 1244 \}
Note:
See TracChangeset
for help on using the changeset viewer.