i++ передвидул выше а то на выборка при нажатии на колонку происходила не правильно
This commit is contained in:
@ -1716,7 +1716,7 @@ public class DBMSRecords implements ServletContextAware {
|
||||
Object exprResult = expr.evaluate(nTypeS, XPathConstants.NODESET);
|
||||
nodeList = (NodeList) exprResult;
|
||||
for (int i = 0; i < nodeList.getLength(); i++) {
|
||||
writer.write("<td bgcolor=\"#d1d1d1\" width=\"" + nodeList.item(i).getAttributes().getNamedItem("width").getNodeValue() + "px\"><b>" + trts(conn,nodeList.item(i).getAttributes().getNamedItem("d").getNodeValue(),user)
|
||||
writer.write("<td style=\"background-color:#d1d1d1;\" width=\"" + nodeList.item(i).getAttributes().getNamedItem("width").getNodeValue() + "px\"><b>" + trts(conn,nodeList.item(i).getAttributes().getNamedItem("d").getNodeValue(),user)
|
||||
+ "</b></td>");
|
||||
}
|
||||
writer.write(" </tr>\n");
|
||||
|
||||
@ -1247,12 +1247,12 @@
|
||||
fwrite($fh, ' <caption><b>'.findNode($currNode,'objects-list')->getAttribute("d").'</b></caption>'."\n");
|
||||
fwrite($fh, ' <thead>'."\n");
|
||||
fwrite($fh, ' <tr>');
|
||||
fwrite($fh, '<td bgcolor="#d1d1d1">№</td>');
|
||||
fwrite($fh, '<td style="background-color:#d1d1d1;">№</td>');
|
||||
$nextnode=findNode($currNode,'objects-list')->firstChild;
|
||||
$col=0;
|
||||
while ($nextnode)
|
||||
{ if ($nextnode->nodeName=='column')
|
||||
{ fwrite($fh, '<td bgcolor="#d1d1d1" width="'.$nextnode->getAttribute("width").'px"><b>'.$nextnode->getAttribute("d")."</b></td>");
|
||||
{ fwrite($fh, '<td style="background-color:#d1d1d1;" width="'.$nextnode->getAttribute("width").'px"><b>'.$nextnode->getAttribute("d")."</b></td>");
|
||||
}
|
||||
$nextnode = $nextnode->nextSibling;
|
||||
}
|
||||
|
||||
@ -144,7 +144,7 @@ class EdtRec
|
||||
str+=' <table class="SEdit" id="eTable'+this.uid+'" border="0px" cellspacing="1" cellpadding="1" style="width: 100%; height: 100%;">';
|
||||
str+=' <caption><b id="caption'+this.uid+'"></b></caption>';
|
||||
str+=' <thead>';
|
||||
str+=' <tr bgcolor="#dadada">';
|
||||
str+=' <tr style="background-color:#dadada;">';
|
||||
str+=' <th style="width:20%">'+trt('Name')+'</th>';
|
||||
str+=' <th style="width:80%">'+trt('Value')+'</th>';
|
||||
str+=' </tr>';
|
||||
@ -935,7 +935,7 @@ class EdtRec
|
||||
let win=new TWin();
|
||||
win.BuildGUI(pageX-10,pageY-10);
|
||||
let str=`
|
||||
<table id="thetable`+win+`" bgcolor="SlateGrey" style="border: 1px solid rgb(99, 99, 99);" width="100%">
|
||||
<table id="thetable`+win+`" style="background-color:SlateGrey;border: 1px solid rgb(99, 99, 99);" width="100%">
|
||||
<caption></caption>
|
||||
<thead><tr><th></th></tr></thead>
|
||||
<tbody><tr><td></td></tr></tbody>
|
||||
@ -1168,7 +1168,7 @@ class EdtRec
|
||||
}else
|
||||
if(count>1) //Display the item selection window.
|
||||
{
|
||||
let htmlString='<table width="100%" bgcolor="whitesmoke">';
|
||||
let htmlString='<table width="100%" style="background-color:whitesmoke;">';
|
||||
nodeProp=nodeType.firstChild;
|
||||
let i=0;
|
||||
while (nodeProp!=null)
|
||||
@ -1182,7 +1182,7 @@ class EdtRec
|
||||
value=value.replace(/"/g, """);
|
||||
value=value.replace(/'/g, "\\'");
|
||||
value=value.replace(/\n/g, " ");
|
||||
htmlString+='<tr><td bgColor="'+bgColor+'" onClick="setPropVal('+this.uid+',\''+id+'\',\''+value+'\',\''+prop_name+'\');" style="cursor: pointer;">'+findFirstNode(nodeProp, '#cdata-section').nodeValue+'</td></tr>'+"\n";
|
||||
htmlString+='<tr><td onClick="setPropVal('+this.uid+',\''+id+'\',\''+value+'\',\''+prop_name+'\');" style="background-color:"'+bgColor+'";cursor: pointer;">'+findFirstNode(nodeProp, '#cdata-section').nodeValue+'</td></tr>'+"\n";
|
||||
i++;
|
||||
}
|
||||
nodeProp=nodeProp.nextSibling;
|
||||
|
||||
@ -1252,7 +1252,7 @@
|
||||
$col=0;
|
||||
while ($nextnode)
|
||||
{ if ($nextnode->nodeName=='column')
|
||||
{ fwrite($fh, '<td bgcolor="#d1d1d1" width="'.$nextnode->getAttribute("width").'px"><b>'.$nextnode->getAttribute("d")."</b></td>");
|
||||
{ fwrite($fh, '<td style="background-color:#d1d1d1;" width="'.$nextnode->getAttribute("width").'px"><b>'.$nextnode->getAttribute("d")."</b></td>");
|
||||
}
|
||||
$nextnode = $nextnode->nextSibling;
|
||||
}
|
||||
|
||||
@ -360,7 +360,8 @@ class SRec
|
||||
id=nodeProp.getAttribute("id");
|
||||
value=getCdataValue(nodeProp);
|
||||
value=value.replace(/"/g, """); value=value.replace(/'/g, "\\'");
|
||||
htmlString+='<tr><td bgColor="'+bgColor+'" onClick="setFilterVal('+this.uid+',\''+id+'\',\''+value+'\',\''+prop_id+'\')" style="cursor: pointer;">'+findFirstNode(nodeProp, '#cdata-section').nodeValue+' </td></tr>'+"\n";
|
||||
|
||||
htmlString+='<tr><td onClick="setFilterVal('+this.uid+',\''+id+'\',\''+value+'\',\''+prop_id+'\')" style="cursor:pointer;background-color:'+bgColor+';">'+findFirstNode(nodeProp, '#cdata-section').nodeValue+' </td></tr>'+"\n";
|
||||
i++;
|
||||
}
|
||||
nodeProp=nodeProp.nextSibling;
|
||||
@ -1296,9 +1297,9 @@ class SRec
|
||||
};
|
||||
//when you click on a cell, the sent filter is prefilled with variables in accordance with the id of the pressed line
|
||||
//in the function we pass the cell id and the column number
|
||||
td.onclick=function(obj,val1,val2){
|
||||
td.onclick=function(thiz,val1,val2){
|
||||
return function(){
|
||||
obj.callWindow(val1,val2);
|
||||
thiz.callWindow(val1,val2);
|
||||
}
|
||||
}(this,id,colN);
|
||||
}else
|
||||
@ -1453,10 +1454,10 @@ class SRec
|
||||
{
|
||||
if(nodeCol.nodeName=="column")
|
||||
{
|
||||
i++;
|
||||
if(nodeCol.getAttribute("n")==name){
|
||||
break;
|
||||
}
|
||||
i++;
|
||||
}
|
||||
nodeCol = nodeCol.nextSibling;
|
||||
}
|
||||
|
||||
@ -120,7 +120,7 @@ class TWin
|
||||
hd+='<table style="width: 100%;">';
|
||||
hd+=' <tr>';
|
||||
hd+=' <td style="vertical-align:bottom;cursor:move;" id="TWin_H1_'+this.tWinId+'"><img src="'+this.path+'/metadata/dbms/form/t1.gif" style="width: 20px; height: 20px; display: block;" alt="" border="0px" draggable="false"/></td>';
|
||||
hd+=' <td align="center" width="100%" bgcolor="#3366CC" style="font-weight: bold; cursor:move; background: #92b5df url('+this.path+'/metadata/dbms/form/1.gif) repeat-x top;" id="TWin_H2_'+this.tWinId+'"><nobr id="TWin_Ca_'+this.tWinId+'"></nobr></td>';
|
||||
hd+=' <td align="center" width="100%" style="background-color:#3366CC;font-weight: bold; cursor:move; background: #92b5df url('+this.path+'/metadata/dbms/form/1.gif) repeat-x top;" id="TWin_H2_'+this.tWinId+'"><nobr id="TWin_Ca_'+this.tWinId+'"></nobr></td>';
|
||||
hd+=' <td style="vertical-align:bottom;cursor:move;" id="TWin_H3_'+this.tWinId+'"><img src="'+this.path+'/metadata/dbms/form/t2.gif" alt="" style="width: 20px; height: 20px; display: block;" border="0px" draggable="false"/></td>';
|
||||
//hd+=' <td width="100%"> </td>';
|
||||
hd+=' <td style="vertical-align:bottom;cursor:pointer;"><img src="'+this.path+'/metadata/dbms/form/none.gif" alt="" style="width: 21px; height: 21px; display: block;" border="0px" draggable="false"/></td>';
|
||||
|
||||
Reference in New Issue
Block a user