Changeset 11991
- Timestamp:
- 2006-06-30T16:35:22+12:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/cic-hcap/macros/extra.dm
r11983 r11991 111 111 112 112 # We use a very simple pagebanner: just the collection icon, no javalinks etc 113 _pagebanner_ {<span style="font-size: 2 6px; float: right; padding-top: 10px;">Historic Campus Architecture Project</span><a href="_gwcgi_?a=p&p=home"><img src="_httpcollection_/images/logo.jpg"></a>}113 _pagebanner_ {<span style="font-size: 24px; float: right; padding-top: 10px;">Historic Campus Architecture Project</span><a href="_gwcgi_?a=p&p=home"><img src="_httpcollection_/images/logo.jpg"></a>} 114 114 115 115 _pagetitle_ {The Council of Independent Colleges: Historic Campus Architecture Project} … … 891 891 892 892 _cicaqpdefault_ {<select name='aqp'><option value='0'>contains</option><option value='1'>is</option></select>} 893 _cicaqptypeofplace_ {<select name='aqp' disabled ><option value='0'>contains</option><option value='1' selected>is</option></select>}893 _cicaqptypeofplace_ {<select name='aqp' disabled='true'><option value='0'>contains</option><option value='1' selected='true'>is</option></select>} 894 894 895 895 _cicaqvdefault_ {<input name='aqv' type='text' style='width: 450px'/>} 896 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>} 897 898 _cicaqline_ { 899 <tr> 900 <td colspan="3"> 901 <center> 902 <nobr> 903 <select name="aqi" onChange="changedAQI();"> 904 <option value="">Keyword</option> 905 <option value="PL">Type of place</option> 906 <option value="IN">Institution</option> 907 <option value="AR">Designer</option> 908 </select> 909 <input type="hidden" name="aqib" value=""> 910 911 <span id="aqp_1_"> 912 _cicaqpdefault_ 913 </span> 914 915 <span id="aqv_1_"> 916 _cicaqvdefault_ 917 </span> 918 919 <select name="aqc"> 920 <option value="and">and</option> 921 <option value="or">or</option> 922 </select> 923 </nobr> 924 </center> 925 </td> 926 </tr> 927 } 897 928 898 929 _advancedformsnew_ { … … 904 935 <input type="hidden" name="m" value="-1"> 905 936 906 <tr> 907 <td colspan="3"> 908 <center> 909 <nobr> 910 <select name="aqi" onChange="changedAQI();"> 911 <option value="ZZ">Keyword</option> 912 <option value="PL">Type of place</option> 913 <option value="IN">Institution</option> 914 <option value="AR">Designer</option> 915 </select> 916 917 <span id="aqp"> 918 _cicaqpdefault_ 919 </span> 920 921 <span id="aqv"> 922 _cicaqvdefault_ 923 </span> 924 925 <select name="aqc"> 926 <option value="and">and</option> 927 <option value="or">or</option> 928 </select> 929 </nobr> 930 </center> 931 </td> 932 </tr> 937 _cicaqline_(0) 938 _cicaqline_(1) 939 _cicaqline_(2) 933 940 934 941 <tr> … … 1214 1221 function initializeadvancedsearch() 1215 1222 \{ 1223 changedAQI(); 1216 1224 \} 1217 1225 1218 1226 function changedAQI() 1219 1227 \{ 1220 if (document.QueryForm.aqi.value == "PL") \{ 1221 document.getElementById('aqp').innerHTML = "_cicaqptypeofplace_"; 1222 document.getElementById('aqv').innerHTML = "_cicaqvtypeofplace_"; 1228 for (var i = 0; i < document.QueryForm.aqi.length; i++) \{ 1229 if (document.QueryForm.aqi[i].value != document.QueryForm.aqib[i].value) \{ 1230 alert("Changed " + i + ": " + document.QueryForm.aqi[i].value); 1231 if (document.QueryForm.aqi[i].value == "PL") \{ 1232 document.getElementById("aqp" + i).innerHTML = "_cicaqptypeofplace_"; 1233 document.getElementById("aqv" + i).innerHTML = "_cicaqvtypeofplace_"; 1234 \} 1235 else \{ 1236 document.getElementById("aqp" + i).innerHTML = "_cicaqpdefault_"; 1237 document.getElementById("aqv" + i).innerHTML = "_cicaqvdefault_"; 1238 \} 1239 1240 document.QueryForm.aqib[i].value = document.QueryForm.aqi[i].value; 1241 \} 1223 1242 \} 1224 else \{ 1225 document.getElementById('aqp').innerHTML = "_cicaqpdefault_"; 1226 document.getElementById('aqv').innerHTML = "_cicaqvdefault_"; 1227 \} 1243 1244 prepareadvancedsearch(); 1228 1245 \} 1229 1246 … … 1232 1249 document.QueryForm.q.value = ""; 1233 1250 1234 if (document.QueryForm.aqv.value != "") \{ 1235 addQueryTerm(document.QueryForm.q, "[" + document.QueryForm.aqv.value + "]:" + document.QueryForm.aqi.value); 1251 for (var i = 0; i < document.QueryForm.aqi.length; i++) \{ 1252 alert(i + ": " + document.QueryForm.aqi[i].value + "," + document.QueryForm.aqv[i].value); 1253 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); 1256 \} 1236 1257 \} 1237 1258 … … 1242 1263 addIndexValue(document.QueryForm.q, document.QueryForm.deq, "DE"); 1243 1264 addIndexValue(document.QueryForm.q, document.QueryForm.stq, "ST"); 1244 1245 alert(document.QueryForm.q.value);1246 1265 \} 1247 1266
Note:
See TracChangeset
for help on using the changeset viewer.