} } </script> <div style="display:inline"> <select class='selectbox' name="query_mode" onChange="update();"> <option>Søg på:</option> <option>- - - - - - - - - - - - -</option> <option value="adresse" <?php if ($query_mode=="adresse") echo "SELECTED";?>>Adresse</option> <option value="matrikel" <?php if ($query_mode=="matrikel") echo "SELECTED";?>>Matrikelnr</option> </select> </div> <!-- Select form for matrikel query --> <? $postgisObject->open(); if ($query_mode == "matrikel") { echo "<input type='hidden' name='db_field' value='LOD_ID'>"; echo "<SELECT class='selectbox' name='elavnavn' onChange='update();'>"; $query = ("select $ejerlavbetegn,$ejerlavkode from $matrikelTabel group by $ejerlavkode,$ejerlavbetegn order by $ejerlavbetegn"); $result = pg_exec($query); $num_results = pg_numrows($result); if (!$elavnavn) { echo "<option SELECTED;>Ejerlav</option>"; echo "<option>- - - - - - - - - - - - - - - - -</option>"; } for ($i = 0; $i < $num_results; $i ++) { $row = pg_fetch_array($result);