Changeset 12035
- Timestamp:
- 2006-07-06T14:06:12+12:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/cic-hcap/macros/extra.dm
r11991 r12035 890 890 } 891 891 892 _cicaqpdefault_ {<select name='aqp'><option value='0'>contains</option><option value='1'>is</option></select>}893 _cicaqptypeofplace_ {<select name='aqp' disabled='true'><option value='0'>contains</option><option value='1' selected='true'>is</option></select>}894 895 _cicaqvdefault_ {<input name='aqv' type='text' style='width: 450px'/>}896 _cicaqvtypeofplace_ {<select 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>}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 _cicaqvdefault_ {<input id='aqv_1_field' name='aqv' type='text' style='width: 450px'/>} 896 _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>} 897 897 898 898 _cicaqline_ { … … 910 910 911 911 <span id="aqp_1_"> 912 _cicaqpdefault_ 912 _cicaqpdefault_(_1_) 913 913 </span> 914 914 915 915 <span id="aqv_1_"> 916 _cicaqvdefault_ 916 _cicaqvdefault_(_1_) 917 917 </span> 918 918 … … 1228 1228 for (var i = 0; i < document.QueryForm.aqi.length; i++) \{ 1229 1229 if (document.QueryForm.aqi[i].value != document.QueryForm.aqib[i].value) \{ 1230 alert("Changed " + i + ": " + document.QueryForm.aqi[i].value);1231 1230 if (document.QueryForm.aqi[i].value == "PL") \{ 1232 document.getElementById("aqp" + i).innerHTML = "_cicaqptypeofplace_ ";1233 document.getElementById("aqv" + i).innerHTML = "_cicaqvtypeofplace_ ";1231 document.getElementById("aqp" + i).innerHTML = "_cicaqptypeofplace_(" + i + ")"; 1232 document.getElementById("aqv" + i).innerHTML = "_cicaqvtypeofplace_(" + i + ")"; 1234 1233 \} 1235 1234 else \{ 1236 document.getElementById("aqp" + i).innerHTML = "_cicaqpdefault_ ";1237 document.getElementById("aqv" + i).innerHTML = "_cicaqvdefault_ ";1235 document.getElementById("aqp" + i).innerHTML = "_cicaqpdefault_(" + i + ")"; 1236 document.getElementById("aqv" + i).innerHTML = "_cicaqvdefault_(" + i + ")"; 1238 1237 \} 1239 1238 … … 1249 1248 document.QueryForm.q.value = ""; 1250 1249 1251 for (var i = 0; i < document.QueryForm.aqi.length; i++) \{ 1252 alert(i + ": " + document.QueryForm.aqi[i].value + "," + document.QueryForm.aqv[i].value); 1250 for (var i = 0; i < document.QueryForm.aqv.length; i++) \{ 1253 1251 if (document.QueryForm.aqv[i].value != "") \{ 1254 addQueryTerm(document.QueryForm.q, "[" + document.QueryForm.aqv[i].value + "]:" + document.QueryForm.aqi[i].value);1255 alert(document.QueryForm.aqi[i].value + " -- " + document.QueryForm.q.value);1252 var real_index = /aqv([0-9]+)field/.exec(document.QueryForm.aqv[i].id)[1]; 1253 addQueryTerm(document.QueryForm.q, "[" + document.QueryForm.aqv[i].value + "]:" + document.QueryForm.aqi[real_index].value); 1256 1254 \} 1257 1255 \}
Note:
See TracChangeset
for help on using the changeset viewer.