Мелкое

This commit is contained in:
2020-08-02 22:26:34 +06:00
parent 6e7158adc6
commit 4df922252f
3 changed files with 13 additions and 14 deletions

View File

@ -1,9 +1,9 @@
/*Переменные для настройки цветов*/ /*Переменные для настройки цветов*/
:root{ :root{
/*--header-color: #505050;*/ --header-color: #505050;
--header-color: #fdfdfd; /*--header-color: #fdfdfd;*/
/*--back-color: #3a3a3a;*/ --back-color: #3a3a3a;
--back-color: #ffffff; /*--back-color: #ffffff;*/
} }

View File

@ -654,7 +654,7 @@ class EdtRec
//Button to send the file to the server //Button to send the file to the server
let btnSel = document.createElement('input'); let btnSel = document.createElement('input');
button.className='button-secondary'; btnSel.className='button-secondary';
btnSel.setAttribute("type","button"); btnSel.setAttribute("type","button");
btnSel.setAttribute("value","..."); btnSel.setAttribute("value","...");
btnSel.setAttribute("title",_('Upload')); btnSel.setAttribute("title",_('Upload'));
@ -663,7 +663,7 @@ class EdtRec
newCell2.appendChild(btnSel); newCell2.appendChild(btnSel);
let button2 = document.createElement('input'); let button2 = document.createElement('input');
button.className='button-secondary'; button2.className='button-secondary';
button2.setAttribute("type","button"); button2.setAttribute("type","button");
button2.setAttribute("value","X"); button2.setAttribute("value","X");
button2.setAttribute("title",_('Delete')); button2.setAttribute("title",_('Delete'));
@ -672,7 +672,7 @@ class EdtRec
newCell3.appendChild(button2); newCell3.appendChild(button2);
//Download button //Download button
newCell4.innerHTML='<form action="'+ScriptDName+'" method="get" style="display:inline;" target="_blank"><input type="hidden" name="fn" value="10"/><input type="hidden" name="n" value="'+nodeProp.getAttribute('cd')+'"/><input type="hidden" name="t" value="'+nodeType.getAttribute('n')+'"/><input type="hidden" name="f" value="'+nodeProp.getAttribute('n')+'"/><input type="hidden" name="i" value="'+record_id+'"/><input style="height:22px;width:22px;" type="submit" title="'+_('Download')+'" value="D" /></form>' newCell4.innerHTML='<form action="'+ScriptDName+'" method="get" style="display:inline;" target="_blank"><input type="hidden" name="fn" value="10"/><input type="hidden" name="n" value="'+nodeProp.getAttribute('cd')+'"/><input type="hidden" name="t" value="'+nodeType.getAttribute('n')+'"/><input type="hidden" name="f" value="'+nodeProp.getAttribute('n')+'"/><input type="hidden" name="i" value="'+record_id+'"/><input class="button-secondary" style="height:22px;width:22px;" type="submit" title="'+_('Download')+'" value="D" /></form>'
td2.appendChild( tbl_b ); td2.appendChild( tbl_b );

View File

@ -1059,7 +1059,7 @@ class SRec
th.style.textDecoration='underline'; th.style.textDecoration='underline';
th.style.cursor='pointer'; th.style.cursor='pointer';
th.onclick=function(thiz,cName){ return function(){ findNodeOnPath(thiz.nodeMetadata,"type/objects-list").setAttribute('order',cName); thiz.appendFilter(); thiz.sendFilter(-1,0);}; }(this,columnNode.getAttribute("n")); th.onclick=function(thiz,cName){ return function(){ findNodeOnPath(thiz.nodeMetadata,"type/objects-list").setAttribute('order',cName); thiz.appendFilter(); thiz.sendFilter(-1,0);}; }(this,columnNode.getAttribute("n"));
th.onmouseover=function(){ this.style.backgroundColor='#C2D7FC'; }; th.onmouseover=function(){ this.style.backgroundColor="var(--btn-color2)"; };
th.onmouseout=function(thiz,cName){ return function(){ if(findNodeOnPath(thiz.nodeMetadata,"type/objects-list").getAttribute('order') == cName) this.style.backgroundColor='#afafaf'; else this.style.backgroundColor='#dadada'; }; }(this,columnNode.getAttribute("n")); th.onmouseout=function(thiz,cName){ return function(){ if(findNodeOnPath(thiz.nodeMetadata,"type/objects-list").getAttribute('order') == cName) this.style.backgroundColor='#afafaf'; else this.style.backgroundColor='#dadada'; }; }(this,columnNode.getAttribute("n"));
} }
tr.appendChild(th); tr.appendChild(th);
@ -1167,8 +1167,8 @@ class SRec
let id=nodeRecord.getAttribute("id"); let id=nodeRecord.getAttribute("id");
//add rows to an existing record table //add rows to an existing record table
let tr = document.createElement('tr'); let tr = document.createElement('tr');
tr.onmouseover=function(){this.setAttribute("bgColor","#C2D7FC");}; tr.onmouseover=function(){ this.style.backgroundColor="var(--btn-color2)"; };
tr.onmouseout=function(val1,val2){return function(){val1.setAttribute("bgColor",val2);}}(tr,bgColor); tr.onmouseout=function(val1,val2){return function(){val1.style.backgroundColor=val2;}}(tr,bgColor);
tr.setAttribute("id",id+'_'+this.uid); tr.setAttribute("id",id+'_'+this.uid);
tr.setAttribute("bgColor",bgColor); tr.setAttribute("bgColor",bgColor);
//sequential record number //sequential record number
@ -1211,13 +1211,12 @@ class SRec
if (this.masCT[colN]!=null) if (this.masCT[colN]!=null)
{ {
//Opening a new window in the filter is passed to the current values of the row //Opening a new window in the filter is passed to the current values of the row
td.setAttribute("bgColor","#AAFFFF"); td.style.cssText="cursor: pointer; background-color: var(--btn-color); font-weight: bold;";
td.style.cssText="cursor: pointer;";
td.onmouseover=function(){ td.onmouseover=function(){
this.setAttribute("bgColor","#FFAAAA"); this.style.backgroundColor="var(--btn-color2)";
}; };
td.onmouseout=function(){ td.onmouseout=function(){
this.setAttribute("bgColor","#AAFFFF"); this.style.backgroundColor="var(--btn-color)";
}; };
//when you click on a cell, the sent filter is prefilled with variables in accordance with the id of the pressed line //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 //in the function we pass the cell id and the column number