Changeset 12038


Ignore:
Timestamp:
2006-07-06T16:01:40+12:00 (18 years ago)
Author:
mdewsnip
Message:

Improved the aqp fields (now static).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/cic-hcap/macros/extra.dm

    r12037 r12038  
    890890}
    891891
    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 
    895892_cicaqvdefault_ {<input id='aqv_1_field' name='aqv' type='text' style='width: 450px'/>}
    896893_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>}
     
    909906    <input type="hidden" name="aqib" value="">
    910907
    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>
    914912
    915913    <span id="aqv_1_">
     
    12211219function initializeadvancedsearch()
    12221220\{
    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();
    12241230\}
    12251231
     
    12291235      if (document.QueryForm.aqi[i].value != document.QueryForm.aqib[i].value) \{
    12301236         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;
    12321239        document.getElementById("aqv" + i).innerHTML = "_cicaqvtypeofplace_(" + i + ")";
    12331240     \}
    12341241     else \{
    1235             document.getElementById("aqp" + i).innerHTML = "_cicaqpdefault_(" + i + ")";
     1242        document.QueryForm.aqp[i].disabled = false;
    12361243        document.getElementById("aqv" + i).innerHTML = "_cicaqvdefault_(" + i + ")";
    12371244     \}
Note: See TracChangeset for help on using the changeset viewer.