SuperX-Kernmodul
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

66 lines
1.1 KiB

var maxOrdnungen=Ds.length-1;
var maxFelder=Ds[1].length -1;
NS4 = (document.layers)? 1: 0;
IE4=(document.all)?1:0;
ver4=(NS4 ||IE4) ? 1: 0;
if (document.getElementsByTagName && !document.all)
document.all = document.getElementsByTagName("*"); //für NS6
var zs="";
var ebene=0;
function init_btn(btnOjekt,elter)
{
zs="<select name=\""+btnOjekt.name+"\">";
//if(elter=="") zs+="<option value=''>----Keine "+btnOjekt.name+"-----</option>";
if(elter=="") elter=suche_root();
//alert(elter);
zs+=suche_kinder(elter);
zs+="</select>";
if (NS4)
{
with (document.Formular.document) {
open();
write(zs);
close();
}
}
else
{
document.all.Formular.innerHTML=zs;
}
}
function suche_kinder(elter)
{
var z="";
ebene++;
//alert(elter);
for (var i=1;i<=maxOrdnungen;i++)
{
if(Ds[i][1]==elter)
{
z+="<option value="+Ds[i][2]+">"
for (var j=1;j<=ebene;j++) z+="&nbsp;&nbsp;&nbsp;"
z+=Ds[i][3]+"</option>";
z+=suche_kinder(Ds[i][2]);
zs+=z;
}
}
ebene--;
return(z);
}
function suche_root()
{
var z=0;
for (var i=1;i<=maxOrdnungen;i++)
{
if(Ds[i][1]=="")
{
z=i;
}
}
return(Ds[z][2]);
}