Hi list,
i have a problem with the searchWindow, when accept the form does not show 
anything. why??(searchwindow.phtml and js_search.php)
the search in the main screen serves correctly("SearchFor").(js_custom.php)
 
thanks.
 
this is the js_search
 
function createLayers(layerSet) {  var lStr = '';  lStr += '<center><select 
id="qlayer" name="findlist" onchange="createColumns(this.value)" style="width: 
130px">';  lStr += '<option value="#">Seleccione</option>';  for (key in 
layerSet) {    lStr += '<option value="' + key + '">' + key + '</option>';  }  
lStr += '</select></center>';
   document.getElementById('layers').innerHTML = lStr;}
var colNr = 0;
function createColumns(selVal) {
  el = document.getElementById('columns');
  if (selVal=="") {    selVal = 
document.searchForm.qlayer.options[document.searchForm.qlayer.selectedIndex].value;
  } else {    colNr = 0;    len = el.rows.length;    for (i=0;i<len;i++) {      
el.deleteRow(len-i-1);    }  }
  row = el.insertRow(-1);  cell = row.insertCell(-1);  var lStr = '';  lStr += 
'';  lStr += '<center>';  lStr += '&nbsp;<font color="white"><b>Criterio:';  
lStr += '<select multiple id="selectColumn_'+selVal+'_'+colNr+'" style="width: 
130px">';  for (key in layerSet[selVal]) {    lStr += '<option 
name="#'+layerSet[selVal][key]+'" 
value="#'+layerSet[selVal][key]+'">'+layerSet[selVal][key]+'</option>'; }  lStr 
+= '</select></center><center><input type="text" name="#" 
id="inpText_'+selVal+'_'+colNr+'"></center>';   //<input type="checkbox" 
name="" id="chBox_'+selVal+'_'+colNr+'">"is-niet"';  cell.innerHTML = lStr;
  cell2 = row.insertCell(-1);  cell2.innerHTML = '';
  colNr++;}
 
this is the js_custom
 
function createSearchOptions() {    if (_$("searchForm")) {        var sStr = 
'';        sStr += '<div class="celldiv"><select name="findlist" 
onChange="createSearchInput()">';        sStr += '<option value="#"><?php echo 
_p("Buscar Por") ?></option>';        for (var s in searchList) {            
sStr += '<option value="' + s + '">' + s + '</option>';   }  sStr += 
'</select></div><div id="searchInput"></div>';        //alert(sStr);            
    $('#bottom1').html(sStr);    }}
function createSearchInput() {    var searchForm = _$("searchForm");    if 
(searchForm) {        var searchItem = 
searchForm.findlist.options[searchForm.findlist.selectedIndex].value;        if 
(searchItem != '#') {            var paramList = searchList[searchItem];        
    var fieldStr = paramList[1];            var annoStr = paramList[2];
            if (fieldStr.match(/&&/)) {                var fieldList = 
fieldStr.split('&&');                var annoList = annoStr.split('&&');        
    } else {                var fieldList = new Array(fieldStr);                
var annoList = new Array(annoStr);            }                        var iStr 
= '';            for (var f=0; f<fieldList.length; f++) {                iStr 
+= '<div class="celldiv" style="padding-left:14px">' + annoList[f] + '</div>';  
              iStr += '<div class="celldiv"><input type=text name="' + 
fieldList[f] + '" size=15></div>';            }            iStr += '<div 
class="celldiv"><input type="button" value="Buscar" size=20  
onclick="submitSearch()" onmouseover="changeButtonClr(this, \'over\')" 
onmouseout="changeButtonClr (this, \'out\')"></div>';            iStr += 
'<input type=hidden name="qlayer" value="'+ searchItem +'">';               if 
(paramList[3].length > 1) {                iStr += '<input type=hidden 
name="dbtable" value="' + paramList[3] + '">';            }                     
   iStr += <?php echo ("'<input type=\"hidden\" name=\"" . 
ini_get("session.name") . "\" value=\"" . session_id() . "\">'") ?>;            
            //alert(iStr);                 $('#bottom2').html(iStr);            
searchForm.findlist.options[0].selected = true;         }    }}
 
 
.:::l\l€/V\4:::.
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
pmapper-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pmapper-users

Reply via email to