Отображаю номер столбца при скачивании Excel файла
This commit is contained in:
@ -127,7 +127,7 @@ class EdtRec
|
|||||||
this.record_id=record_id;
|
this.record_id=record_id;
|
||||||
|
|
||||||
this.nodeMetadata=Node.cloneNode(true); //Для чего клонирую?
|
this.nodeMetadata=Node.cloneNode(true); //Для чего клонирую?
|
||||||
var nodeType=findFirstNode(this.nodeMetadata, 'type');
|
let nodeType=findFirstNode(this.nodeMetadata, 'type');
|
||||||
//Appending settings to nodeMetadata
|
//Appending settings to nodeMetadata
|
||||||
this.setXMLSettings(this.f_Settings);
|
this.setXMLSettings(this.f_Settings);
|
||||||
|
|
||||||
@ -163,7 +163,7 @@ class EdtRec
|
|||||||
//For convenience, when adding a new record, we rewrite the values from the parent filter in the edit field.
|
//For convenience, when adding a new record, we rewrite the values from the parent filter in the edit field.
|
||||||
if(nodeFilters!=null)
|
if(nodeFilters!=null)
|
||||||
{
|
{
|
||||||
var nodeFilter=nodeFilters.firstChild;
|
let nodeFilter=nodeFilters.firstChild;
|
||||||
while (nodeFilter!=null)
|
while (nodeFilter!=null)
|
||||||
{
|
{
|
||||||
if(nodeFilter.nodeName=="column")
|
if(nodeFilter.nodeName=="column")
|
||||||
@ -196,8 +196,8 @@ class EdtRec
|
|||||||
}
|
}
|
||||||
|
|
||||||
nodeProp=nodeProperties.firstChild;
|
nodeProp=nodeProperties.firstChild;
|
||||||
var newRowM=null;
|
let newRowM=null;
|
||||||
var rpos=0;
|
let rpos=0;
|
||||||
while (nodeProp!=null)
|
while (nodeProp!=null)
|
||||||
{
|
{
|
||||||
if (nodeProp.nodeName=="type") //Grouping fields.
|
if (nodeProp.nodeName=="type") //Grouping fields.
|
||||||
@ -208,7 +208,7 @@ class EdtRec
|
|||||||
td.style.cssText="font-weight: bold;";
|
td.style.cssText="font-weight: bold;";
|
||||||
td.colSpan = "2";
|
td.colSpan = "2";
|
||||||
|
|
||||||
var div=document.createElement('div');
|
let div=document.createElement('div');
|
||||||
div.style.cssText='border: solid 1px black; background-color: rgba(0,0,0,0.5); width:100%; height: 300px;';
|
div.style.cssText='border: solid 1px black; background-color: rgba(0,0,0,0.5); width:100%; height: 300px;';
|
||||||
div.innerHTML='';
|
div.innerHTML='';
|
||||||
|
|
||||||
@ -216,12 +216,12 @@ class EdtRec
|
|||||||
tr.appendChild(td);
|
tr.appendChild(td);
|
||||||
eTable.tBodies[0].appendChild(tr);
|
eTable.tBodies[0].appendChild(tr);
|
||||||
|
|
||||||
var subSRec=new SRec();
|
let subSRec=new SRec();
|
||||||
subSRec.create(div);
|
subSRec.create(div);
|
||||||
|
|
||||||
//Перебираю данные из текущего запроса и пытаюсь подменить строку (до получения анных (при создании новой записи))
|
//Перебираю данные из текущего запроса и пытаюсь подменить строку (до получения анных (при создании новой записи))
|
||||||
var nPs=findFirstNode(this.nodeMetadata, 'properties')
|
let nPs=findFirstNode(this.nodeMetadata, 'properties')
|
||||||
var nP=nPs.firstChild
|
let nP=nPs.firstChild
|
||||||
while (nP!=null)
|
while (nP!=null)
|
||||||
{
|
{
|
||||||
if (nP.nodeName=="prop")
|
if (nP.nodeName=="prop")
|
||||||
@ -241,9 +241,9 @@ class EdtRec
|
|||||||
}else
|
}else
|
||||||
if (nodeProp.nodeName=="divide") //Grouping fields.
|
if (nodeProp.nodeName=="divide") //Grouping fields.
|
||||||
{
|
{
|
||||||
var tr = document.createElement('tr');
|
let tr = document.createElement('tr');
|
||||||
tr.style.cssText="background-color: var(--back-color-title);";
|
tr.style.cssText="background-color: var(--back-color-title);";
|
||||||
var td = document.createElement('td');
|
let td = document.createElement('td');
|
||||||
td.style.cssText="font-weight: bold;";
|
td.style.cssText="font-weight: bold;";
|
||||||
td.colSpan = "2";
|
td.colSpan = "2";
|
||||||
td.innerHTML=nodeProp.getAttribute("d");
|
td.innerHTML=nodeProp.getAttribute("d");
|
||||||
@ -253,13 +253,13 @@ class EdtRec
|
|||||||
}else
|
}else
|
||||||
if (nodeProp.nodeName=="prop")
|
if (nodeProp.nodeName=="prop")
|
||||||
{
|
{
|
||||||
var bgColor='';
|
let bgColor='';
|
||||||
var tr = null;
|
let tr = null;
|
||||||
var td1 = null;
|
let td1 = null;
|
||||||
var td2 = null;
|
let td2 = null;
|
||||||
let vt=nodeProp.getAttribute("vt");
|
let vt=nodeProp.getAttribute("vt");
|
||||||
|
|
||||||
var row=nodeProp.getAttribute("row"); //Several fields in the 1st row.
|
let row=nodeProp.getAttribute("row"); //Several fields in the 1st row.
|
||||||
if(row==null)
|
if(row==null)
|
||||||
{
|
{
|
||||||
rpos++;
|
rpos++;
|
||||||
@ -267,12 +267,12 @@ class EdtRec
|
|||||||
if (rpos%2==0) bgColor=g_rowColor1; else bgColor=g_rowColor2;
|
if (rpos%2==0) bgColor=g_rowColor1; else bgColor=g_rowColor2;
|
||||||
tr.setAttribute("bgColor",bgColor);
|
tr.setAttribute("bgColor",bgColor);
|
||||||
if(nodeProp.getAttribute("visible")=='0') tr.style.display='none';
|
if(nodeProp.getAttribute("visible")=='0') tr.style.display='none';
|
||||||
var td1 = document.createElement('td');
|
td1 = document.createElement('td');
|
||||||
var td2 = document.createElement('td');
|
td2 = document.createElement('td');
|
||||||
tr.appendChild(td1);
|
tr.appendChild(td1);
|
||||||
tr.appendChild(td2);
|
tr.appendChild(td2);
|
||||||
|
|
||||||
var table=document.createElement('table');
|
let table=document.createElement('table');
|
||||||
table.border=0;
|
table.border=0;
|
||||||
table.setAttribute("width","100%");
|
table.setAttribute("width","100%");
|
||||||
table.cellspacing=0;
|
table.cellspacing=0;
|
||||||
@ -301,22 +301,22 @@ class EdtRec
|
|||||||
if(nodeProp.getAttribute("t")!=null) td1.title=nodeProp.getAttribute("t");
|
if(nodeProp.getAttribute("t")!=null) td1.title=nodeProp.getAttribute("t");
|
||||||
if (nodeProp.getAttribute("maybenull")=='0') td1.style.cssText="font-weight: bold;";
|
if (nodeProp.getAttribute("maybenull")=='0') td1.style.cssText="font-weight: bold;";
|
||||||
|
|
||||||
var value=getCdata(nodeProp).nodeValue;
|
let value=getCdata(nodeProp).nodeValue;
|
||||||
|
|
||||||
|
|
||||||
if(vt=="string" || vt=="str")
|
if(vt=="string" || vt=="str")
|
||||||
{
|
{
|
||||||
var table=document.createElement('table');
|
let table=document.createElement('table');
|
||||||
table.style.cssText="width:100%;border-spacing:0;border-collapse:collapse;";
|
table.style.cssText="width:100%;border-spacing:0;border-collapse:collapse;";
|
||||||
table.border=0;
|
table.border=0;
|
||||||
let newRow=table.insertRow(0); //add a row to the created table
|
let newRow=table.insertRow(0); //add a row to the created table
|
||||||
var newCell1 = newRow.insertCell(0); //in the created line we add a column
|
let newCell1 = newRow.insertCell(0); //in the created line we add a column
|
||||||
newCell1.style.cssText="padding:0px; padding-right:1px; width: 100%;";
|
newCell1.style.cssText="padding:0px; padding-right:1px; width: 100%;";
|
||||||
var newCell2 = newRow.insertCell(1); //in the created line we add a column
|
let newCell2 = newRow.insertCell(1); //in the created line we add a column
|
||||||
newCell2.style.cssText="padding:0px;";
|
newCell2.style.cssText="padding:0px;";
|
||||||
|
|
||||||
//If there is a list node with CheckBox elements, then we create them
|
//If there is a list node with CheckBox elements, then we create them
|
||||||
var nList=findNode(nodeProp, "options");
|
let nList=findNode(nodeProp, "options");
|
||||||
if(nList!=null)
|
if(nList!=null)
|
||||||
{
|
{
|
||||||
nodeProp.field = new TCheckboxListField(nodeProp.getAttribute("n"));
|
nodeProp.field = new TCheckboxListField(nodeProp.getAttribute("n"));
|
||||||
@ -344,7 +344,7 @@ class EdtRec
|
|||||||
//td2.appendChild( input );
|
//td2.appendChild( input );
|
||||||
|
|
||||||
//Button for translation
|
//Button for translation
|
||||||
var tObj=findNode(nodeProp, "type");
|
let tObj=findNode(nodeProp, "type");
|
||||||
if(tObj!=null)
|
if(tObj!=null)
|
||||||
{
|
{
|
||||||
let button = document.createElement('input');
|
let button = document.createElement('input');
|
||||||
@ -380,10 +380,10 @@ class EdtRec
|
|||||||
select.classList.add('DBMS');
|
select.classList.add('DBMS');
|
||||||
select.style.cssText="width: 100%;";
|
select.style.cssText="width: 100%;";
|
||||||
select.setAttribute("name",nodeProp.getAttribute("n"));
|
select.setAttribute("name",nodeProp.getAttribute("n"));
|
||||||
var opt=findFirstNode(nodeProp,"options");
|
let opt=findFirstNode(nodeProp,"options");
|
||||||
if(opt==null)
|
if(opt==null)
|
||||||
{
|
{
|
||||||
var option = document.createElement('option');
|
let option = document.createElement('option');
|
||||||
option.setAttribute("value","");
|
option.setAttribute("value","");
|
||||||
option.appendChild(document.createTextNode(""));
|
option.appendChild(document.createTextNode(""));
|
||||||
option.selected = true;
|
option.selected = true;
|
||||||
@ -418,7 +418,7 @@ class EdtRec
|
|||||||
{
|
{
|
||||||
//If there is a node "list" with the elements "CheckBox" then create them.
|
//If there is a node "list" with the elements "CheckBox" then create them.
|
||||||
let opt=findNode(nodeProp, "options");
|
let opt=findNode(nodeProp, "options");
|
||||||
if(opt!=null) //If combobox
|
if(opt!=null){ //If combobox
|
||||||
let select = document.createElement('select');
|
let select = document.createElement('select');
|
||||||
select.classList.add('DBMS');
|
select.classList.add('DBMS');
|
||||||
select.style.cssText="width: 100%;";
|
select.style.cssText="width: 100%;";
|
||||||
@ -440,16 +440,16 @@ class EdtRec
|
|||||||
|
|
||||||
}else
|
}else
|
||||||
{
|
{
|
||||||
var table=document.createElement('table');
|
let table=document.createElement('table');
|
||||||
table.style.cssText="width:100%;border-spacing:0;border-collapse:collapse;";
|
table.style.cssText="width:100%;border-spacing:0;border-collapse:collapse;";
|
||||||
//table.setAttribute("bgColor","#0000FF");
|
//table.setAttribute("bgColor","#0000FF");
|
||||||
table.border=0;
|
table.border=0;
|
||||||
let newRow=table.insertRow(0); //add a row to the created table
|
let newRow=table.insertRow(0); //add a row to the created table
|
||||||
var newCell1 = newRow.insertCell(0); //in the created line we add a column
|
let newCell1 = newRow.insertCell(0); //in the created line we add a column
|
||||||
newCell1.style.cssText="padding:0px; padding-right:1px; width: 100%;";
|
newCell1.style.cssText="padding:0px; padding-right:1px; width: 100%;";
|
||||||
var newCell2 = newRow.insertCell(1); //in the created line we add a column
|
let newCell2 = newRow.insertCell(1); //in the created line we add a column
|
||||||
newCell2.style.cssText="padding:0px; padding-right:1px;height:100%;";
|
newCell2.style.cssText="padding:0px; padding-right:1px;height:100%;";
|
||||||
var newCell3 = newRow.insertCell(2); //in the created line we add a column
|
let newCell3 = newRow.insertCell(2); //in the created line we add a column
|
||||||
newCell3.style.cssText="padding:0px;height:100%;";
|
newCell3.style.cssText="padding:0px;height:100%;";
|
||||||
|
|
||||||
input = document.createElement('input');
|
input = document.createElement('input');
|
||||||
@ -788,10 +788,10 @@ class EdtRec
|
|||||||
}
|
}
|
||||||
nodeProp=nodeProp.nextSibling;
|
nodeProp=nodeProp.nextSibling;
|
||||||
}
|
}
|
||||||
|
|
||||||
//Button apply
|
//Button apply
|
||||||
tr = document.createElement('tr');
|
let tr = document.createElement('tr');
|
||||||
var td = document.createElement('td');
|
let td = document.createElement('td');
|
||||||
|
|
||||||
td.style.cssText="padding: 5px; vertical-align: bottom;";
|
td.style.cssText="padding: 5px; vertical-align: bottom;";
|
||||||
td.setAttribute("colspan", "2");
|
td.setAttribute("colspan", "2");
|
||||||
if (this.record_id==-1) td.innerHTML='<label style="float: left; white-space: nowrap;"><input id="readd_'+this.uid+'" type="checkbox"> '+trt('Repeat_the_addition_of_the_entry')+'</label>';
|
if (this.record_id==-1) td.innerHTML='<label style="float: left; white-space: nowrap;"><input id="readd_'+this.uid+'" type="checkbox"> '+trt('Repeat_the_addition_of_the_entry')+'</label>';
|
||||||
|
|||||||
@ -227,7 +227,7 @@ class DBMSUser
|
|||||||
win.BuildGUI(10,10);
|
win.BuildGUI(10,10);
|
||||||
win.setCaption(trt("Password_recovery"));
|
win.setCaption(trt("Password_recovery"));
|
||||||
|
|
||||||
str='<div style="width: 100%; height: 100%; padding: 4px; text-align: left;">\n\
|
let str='<div style="width: 100%; height: 100%; padding: 4px; text-align: left;">\n\
|
||||||
<table cellpadding="0" cellspacing="0" style="width: 100%; height: 100%; padding: 0px;">\n\
|
<table cellpadding="0" cellspacing="0" style="width: 100%; height: 100%; padding: 0px;">\n\
|
||||||
<tr>\n\
|
<tr>\n\
|
||||||
<td style="padding: 2px; white-space: nowrap"><b>'+trt('Login')+' (E-mail)</b></td>\n\
|
<td style="padding: 2px; white-space: nowrap"><b>'+trt('Login')+' (E-mail)</b></td>\n\
|
||||||
|
|||||||
@ -1171,6 +1171,7 @@
|
|||||||
fwrite($fh, ' <caption><b>'.findNode($currNode,'objects-list')->getAttribute("d").'</b></caption>'."\n");
|
fwrite($fh, ' <caption><b>'.findNode($currNode,'objects-list')->getAttribute("d").'</b></caption>'."\n");
|
||||||
fwrite($fh, ' <thead>'."\n");
|
fwrite($fh, ' <thead>'."\n");
|
||||||
fwrite($fh, ' <tr>');
|
fwrite($fh, ' <tr>');
|
||||||
|
fwrite($fh, '<td bgcolor="#d1d1d1">№</td>');
|
||||||
$nextnode=findNode($currNode,'objects-list')->firstChild;
|
$nextnode=findNode($currNode,'objects-list')->firstChild;
|
||||||
$col=0;
|
$col=0;
|
||||||
while ($nextnode)
|
while ($nextnode)
|
||||||
@ -1182,9 +1183,11 @@
|
|||||||
fwrite($fh, ' </tr>'."\n");
|
fwrite($fh, ' </tr>'."\n");
|
||||||
fwrite($fh, ' </thead>'."\n");
|
fwrite($fh, ' </thead>'."\n");
|
||||||
fwrite($fh, ' <tbody>'."\n");
|
fwrite($fh, ' <tbody>'."\n");
|
||||||
|
$pos=0;
|
||||||
while ($row = $res->fetch(PDO::FETCH_ASSOC))
|
while ($row = $res->fetch(PDO::FETCH_ASSOC))
|
||||||
{
|
{
|
||||||
fwrite($fh, ' <tr>');
|
fwrite($fh, ' <tr>');
|
||||||
|
fwrite($fh, '<td>'.(++$pos).'</td>');
|
||||||
$nextnode=findNode($currNode,'objects-list')->firstChild;
|
$nextnode=findNode($currNode,'objects-list')->firstChild;
|
||||||
while ($nextnode)
|
while ($nextnode)
|
||||||
{ if ($nextnode->nodeName=='column')
|
{ if ($nextnode->nodeName=='column')
|
||||||
|
|||||||
@ -150,7 +150,7 @@ class SRec
|
|||||||
<div id="eDiv'+this.uid+'" style="width: 100%; height: 100%; position: relative;">\
|
<div id="eDiv'+this.uid+'" style="width: 100%; height: 100%; position: relative;">\
|
||||||
<table class="SFilter" style="width: 100%; height: 100%;"><tr><td>\
|
<table class="SFilter" style="width: 100%; height: 100%;"><tr><td>\
|
||||||
<table id="idfilter'+this.uid+'" cellspacing="2" cellpadding="0" style="border: 1px solid rgb(99, 99, 99); table-layout: auto;" width="100%" bgcolor="'+g_rowColor2+'">\
|
<table id="idfilter'+this.uid+'" cellspacing="2" cellpadding="0" style="border: 1px solid rgb(99, 99, 99); table-layout: auto;" width="100%" bgcolor="'+g_rowColor2+'">\
|
||||||
<caption></caption><thead></thead><tbody></tbody>\
|
<caption></caption><tbody></tbody>\
|
||||||
</table>\
|
</table>\
|
||||||
</td></tr><tr><td>\
|
</td></tr><tr><td>\
|
||||||
<table style="width:100%;"><tr><td><img src="../resources/metadata/dbms/images/rplus.png" alt="add" id="SRec_Add_'+this.uid+'" title="'+trt('Add_record')+'" style="cursor: pointer;"/></td>\
|
<table style="width:100%;"><tr><td><img src="../resources/metadata/dbms/images/rplus.png" alt="add" id="SRec_Add_'+this.uid+'" title="'+trt('Add_record')+'" style="cursor: pointer;"/></td>\
|
||||||
|
|||||||
@ -1103,9 +1103,14 @@ class myXMLHttpRequest
|
|||||||
//Класс окна
|
//Класс окна
|
||||||
class TWin
|
class TWin
|
||||||
{
|
{
|
||||||
constructor(dialog)
|
constructor(dialog,path)
|
||||||
{
|
{
|
||||||
this.dialog=dialog; //Показывать окно как диалог (без возможности изменения размеров)
|
this.dialog=dialog; //Показывать окно как диалог (без возможности изменения размеров)
|
||||||
|
if(typeof path !== 'undefined')
|
||||||
|
this.path=path;
|
||||||
|
else
|
||||||
|
this.path='../resources';
|
||||||
|
|
||||||
this.disableClosing=false;
|
this.disableClosing=false;
|
||||||
|
|
||||||
this.closed=false; //Закрыли (те. удалили из родителя и детей и из DOM)
|
this.closed=false; //Закрыли (те. удалили из родителя и детей и из DOM)
|
||||||
@ -1215,14 +1220,14 @@ class TWin
|
|||||||
let hd='';
|
let hd='';
|
||||||
hd+='<table style="width: 100%;">';
|
hd+='<table style="width: 100%;">';
|
||||||
hd+=' <tr>';
|
hd+=' <tr>';
|
||||||
hd+=' <td style="vertical-align:bottom;cursor:move;" id="TWin_H1_'+this.tWinId+'"><img src="../metadata/dbms/form/t1.gif" style="width: 20px; height: 20px; display: block;" alt="" border="0px" draggable="false"/></td>';
|
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(../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%" 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 style="vertical-align:bottom;cursor:move;" id="TWin_H3_'+this.tWinId+'"><img src="../metadata/dbms/form/t2.gif" alt="" style="width: 20px; height: 20px; display: block;" border="0px" draggable="false"/></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 width="100%"> </td>';
|
||||||
hd+=' <td style="vertical-align:bottom;cursor:pointer;"><img src="../metadata/dbms/form/none.gif" alt="" style="width: 21px; height: 21px; display: block;" border="0px" draggable="false"/></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>';
|
||||||
hd+=' <td style="vertical-align:bottom;cursor:pointer;"><img src="../metadata/dbms/form/none.gif" alt="" style="width: 21px; height: 21px; display: block;" border="0px" draggable="false"/></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>';
|
||||||
hd+=' <td style="vertical-align:bottom;cursor:pointer;"><img src="../metadata/dbms/form/close.gif" alt="X" style="width: 21px; height: 21px; display: block;" border="0px" draggable="false" id="TWin_CL_'+this.tWinId+'"/></td>';
|
hd+=' <td style="vertical-align:bottom;cursor:pointer;"><img src="'+this.path+'/metadata/dbms/form/close.gif" alt="X" style="width: 21px; height: 21px; display: block;" border="0px" draggable="false" id="TWin_CL_'+this.tWinId+'"/></td>';
|
||||||
hd+=' <td style="vertical-align:bottom;"><img src="../metadata/dbms/form/none.gif" alt="" style="width: 21px; height: 21px; display: block;" border="0px" draggable="false"/></td>';
|
hd+=' <td style="vertical-align:bottom;"><img src="'+this.path+'/metadata/dbms/form/none.gif" alt="" style="width: 21px; height: 21px; display: block;" border="0px" draggable="false"/></td>';
|
||||||
hd+=' </tr>';
|
hd+=' </tr>';
|
||||||
hd+='</table>';
|
hd+='</table>';
|
||||||
|
|
||||||
@ -1230,30 +1235,30 @@ class TWin
|
|||||||
str+='<table id="TWin_TBL_'+this.tWinId+'" border="0px" style="width: 100%; height: 100%;">';
|
str+='<table id="TWin_TBL_'+this.tWinId+'" border="0px" style="width: 100%; height: 100%;">';
|
||||||
str+=' <tr id="TWin_H0_'+this.tWinId+'"><td colspan=3>'+hd+'</td></tr>';
|
str+=' <tr id="TWin_H0_'+this.tWinId+'"><td colspan=3>'+hd+'</td></tr>';
|
||||||
str+=' <tr>';
|
str+=' <tr>';
|
||||||
str+=' <td style="width: 10px; height: 10px; cursor:nw-resize;"><img src="../metadata/dbms/form/_t-l.gif" alt="" style="width: 10px; height: 10px; display: block;" border="0px" draggable="false" id="TWin_TL_'+this.tWinId+'"></td>';
|
str+=' <td style="width: 10px; height: 10px; cursor:nw-resize;"><img src="'+this.path+'/metadata/dbms/form/_t-l.gif" alt="" style="width: 10px; height: 10px; display: block;" border="0px" draggable="false" id="TWin_TL_'+this.tWinId+'"></td>';
|
||||||
str+=' <td style="vertical-align:top; height: 10px; cursor:n-resize;" background="../metadata/dbms/form/t.gif" id="TWin_T_'+this.tWinId+'"></td>';
|
str+=' <td style="vertical-align:top; height: 10px; cursor:n-resize;" background="'+this.path+'/metadata/dbms/form/t.gif" id="TWin_T_'+this.tWinId+'"></td>';
|
||||||
str+=' <td style="width: 10px; height: 10px; cursor:ne-resize;" id="TWin_TR_'+this.tWinId+'"><img src="../metadata/dbms/form/t-r.gif" alt="" style="width: 10px; height: 10px; display: block;" border="0px" draggable="false"></td>';
|
str+=' <td style="width: 10px; height: 10px; cursor:ne-resize;" id="TWin_TR_'+this.tWinId+'"><img src="'+this.path+'/metadata/dbms/form/t-r.gif" alt="" style="width: 10px; height: 10px; display: block;" border="0px" draggable="false"></td>';
|
||||||
str+=' </tr>';
|
str+=' </tr>';
|
||||||
str+=' <tr style="height: 100%">';
|
str+=' <tr style="height: 100%">';
|
||||||
str+=' <td style="vertical-align:top;height: 10px; cursor:w-resize;" background="../metadata/dbms/form/l.gif" id="TWin_L_'+this.tWinId+'"></td>';
|
str+=' <td style="vertical-align:top;height: 10px; cursor:w-resize;" background="'+this.path+'/metadata/dbms/form/l.gif" id="TWin_L_'+this.tWinId+'"></td>';
|
||||||
str+=' <td style="vertical-align:top;cursor:default;"><table style="width: 100%; height: 100%;"><tr><td id="TWin_Co_'+this.tWinId+'" style="vertical-align:top;"> </td></tr></table></td>';
|
str+=' <td style="vertical-align:top;cursor:default;"><table style="width: 100%; height: 100%;"><tr><td id="TWin_Co_'+this.tWinId+'" style="vertical-align:top;"> </td></tr></table></td>';
|
||||||
str+=' <td style="vertical-align: top; height: 10px; cursor:e-resize;" background="../metadata/dbms/form/r.gif" id="TWin_R_'+this.tWinId+'"></td>';
|
str+=' <td style="vertical-align: top; height: 10px; cursor:e-resize;" background="'+this.path+'/metadata/dbms/form/r.gif" id="TWin_R_'+this.tWinId+'"></td>';
|
||||||
str+=' </tr>';
|
str+=' </tr>';
|
||||||
str+=' <tr>';
|
str+=' <tr>';
|
||||||
str+=' <td style="width: 10px; height: 10px; cursor:sw-resize;" id="TWin_BL_'+this.tWinId+'"><img src="../metadata/dbms/form/b-l.gif" alt="" style="width: 10px; height: 10px; display: block;" border="0px" draggable="false"></td>';
|
str+=' <td style="width: 10px; height: 10px; cursor:sw-resize;" id="TWin_BL_'+this.tWinId+'"><img src="'+this.path+'/metadata/dbms/form/b-l.gif" alt="" style="width: 10px; height: 10px; display: block;" border="0px" draggable="false"></td>';
|
||||||
str+=' <td style="vertical-align: top; height: 10px; cursor:s-resize;" background="../metadata/dbms/form/b.gif" id="TWin_B_'+this.tWinId+'"></td>';
|
str+=' <td style="vertical-align: top; height: 10px; cursor:s-resize;" background="'+this.path+'/metadata/dbms/form/b.gif" id="TWin_B_'+this.tWinId+'"></td>';
|
||||||
str+=' <td style="width: 10px; height: 10px; cursor:se-resize;" id="TWin_BR_'+this.tWinId+'"><img src="../metadata/dbms/form/b-r.gif" alt="" style="width: 10px; height: 10px; display: block;" border="0px" draggable="false"></td>';
|
str+=' <td style="width: 10px; height: 10px; cursor:se-resize;" id="TWin_BR_'+this.tWinId+'"><img src="'+this.path+'/metadata/dbms/form/b-r.gif" alt="" style="width: 10px; height: 10px; display: block;" border="0px" draggable="false"></td>';
|
||||||
str+=' </tr>';
|
str+=' </tr>';
|
||||||
str+='</table>';
|
str+='</table>';
|
||||||
*/
|
*/
|
||||||
/*
|
/*
|
||||||
let str='';
|
let str='';
|
||||||
str+='<table id="TWin_TBL_'+this.tWinId+'" class="TWin">';
|
str+='<table id="TWin_TBL_'+this.tWinId+'" class="TWin">';
|
||||||
str+=' <tr id="TWin_H0_'+this.tWinId+'" style="border-bottom: 1px solid #b3b3b3;"><td></td><td><table style="width: 100%; height: 29px;"><tr><td id="TWin_Ca_'+this.tWinId+'" style="vertical-align: middle; cursor: move; font-weight: bold; white-space: nowrap;"></td><td style="width: 10px; vertical-align: middle;"><img src="../resources/metadata/dbms/form/x.gif" id="TWin_CL_'+this.tWinId+'" style="cursor:pointer;"></td></tr></table></td><td></td></tr>';
|
str+=' <tr id="TWin_H0_'+this.tWinId+'" style="border-bottom: 1px solid #b3b3b3;"><td></td><td><table style="width: 100%; height: 29px;"><tr><td id="TWin_Ca_'+this.tWinId+'" style="vertical-align: middle; cursor: move; font-weight: bold; white-space: nowrap;"></td><td style="width: 10px; vertical-align: middle;"><img src="'+this.path+'/metadata/dbms/form/x.gif" id="TWin_CL_'+this.tWinId+'" style="cursor:pointer;"></td></tr></table></td><td></td></tr>';
|
||||||
str+=' <tr>';
|
str+=' <tr>';
|
||||||
str+=' <td style="width: 5px; height: 5px;'+(!this.dialog ? ' cursor:nw-resize;' : '')+'" id="TWin_TL_'+this.tWinId+'"><img src="../resources/metadata/dbms/form/5.gif" alt="" style="display: block;" border="0px" draggable="false"></td>';
|
str+=' <td style="width: 5px; height: 5px;'+(!this.dialog ? ' cursor:nw-resize;' : '')+'" id="TWin_TL_'+this.tWinId+'"><img src="'+this.path+'/metadata/dbms/form/5.gif" alt="" style="display: block;" border="0px" draggable="false"></td>';
|
||||||
str+=' <td style="vertical-align: top; height: 5px;'+(!this.dialog ? ' cursor: n-resize;' : '')+'" id="TWin_T_'+this.tWinId+'"></td>';
|
str+=' <td style="vertical-align: top; height: 5px;'+(!this.dialog ? ' cursor: n-resize;' : '')+'" id="TWin_T_'+this.tWinId+'"></td>';
|
||||||
str+=' <td style="width: 5px; height: 5px;'+(!this.dialog ? ' cursor:ne-resize;' : '')+'" id="TWin_TR_'+this.tWinId+'"><img src="../resources/metadata/dbms/form/5.gif" alt="" style="display: block;" border="0px" draggable="false"></td>';
|
str+=' <td style="width: 5px; height: 5px;'+(!this.dialog ? ' cursor:ne-resize;' : '')+'" id="TWin_TR_'+this.tWinId+'"><img src="'+this.path+'/metadata/dbms/form/5.gif" alt="" style="display: block;" border="0px" draggable="false"></td>';
|
||||||
str+=' </tr>';
|
str+=' </tr>';
|
||||||
str+=' <tr style="height: 100%">';
|
str+=' <tr style="height: 100%">';
|
||||||
str+=' <td style="height: 5px;'+(!this.dialog ? ' cursor:w-resize;' : '')+'" id="TWin_L_'+this.tWinId+'"></td>';
|
str+=' <td style="height: 5px;'+(!this.dialog ? ' cursor:w-resize;' : '')+'" id="TWin_L_'+this.tWinId+'"></td>';
|
||||||
@ -1261,9 +1266,9 @@ class TWin
|
|||||||
str+=' <td style="height: 5px;'+(!this.dialog ? ' cursor:e-resize;' : '')+'" id="TWin_R_'+this.tWinId+'"></td>';
|
str+=' <td style="height: 5px;'+(!this.dialog ? ' cursor:e-resize;' : '')+'" id="TWin_R_'+this.tWinId+'"></td>';
|
||||||
str+=' </tr>';
|
str+=' </tr>';
|
||||||
str+=' <tr>';
|
str+=' <tr>';
|
||||||
str+=' <td style="width: 5px; height: 5px;'+(!this.dialog ? ' cursor:sw-resize;' : '')+'" id="TWin_BL_'+this.tWinId+'"><img src="../resources/metadata/dbms/form/5.gif" alt="" style="display: block;" border="0px" draggable="false"></td>';
|
str+=' <td style="width: 5px; height: 5px;'+(!this.dialog ? ' cursor:sw-resize;' : '')+'" id="TWin_BL_'+this.tWinId+'"><img src="'+this.path+'/metadata/dbms/form/5.gif" alt="" style="display: block;" border="0px" draggable="false"></td>';
|
||||||
str+=' <td style="vertical-align:top;height: 5px;'+(!this.dialog ? ' cursor: s-resize;' : '')+'" id="TWin_B_'+this.tWinId+'"></td>';
|
str+=' <td style="vertical-align:top;height: 5px;'+(!this.dialog ? ' cursor: s-resize;' : '')+'" id="TWin_B_'+this.tWinId+'"></td>';
|
||||||
str+=' <td style="width: 5px; height: 5px;'+(!this.dialog ? ' cursor:se-resize;' : '')+'" id="TWin_BR_'+this.tWinId+'"><img src="../resources/metadata/dbms/form/5.gif" alt="" style="display: block;" border="0px" draggable="false"></td>';
|
str+=' <td style="width: 5px; height: 5px;'+(!this.dialog ? ' cursor:se-resize;' : '')+'" id="TWin_BR_'+this.tWinId+'"><img src="'+this.path+'/metadata/dbms/form/5.gif" alt="" style="display: block;" border="0px" draggable="false"></td>';
|
||||||
str+=' </tr>';
|
str+=' </tr>';
|
||||||
str+='</table>';
|
str+='</table>';
|
||||||
*/
|
*/
|
||||||
@ -1277,11 +1282,11 @@ class TWin
|
|||||||
|
|
||||||
let str='';
|
let str='';
|
||||||
str+='<table id="TWin_TBL_'+this.tWinId+'" class="DBMSShadow" style="width: 100%; height: 100%; border: 1px solid #000000;">';
|
str+='<table id="TWin_TBL_'+this.tWinId+'" class="DBMSShadow" style="width: 100%; height: 100%; border: 1px solid #000000;">';
|
||||||
str+=' <tr id="TWin_H0_'+this.tWinId+'" style="background: url(../resources/metadata/dbms/form/'+imgB+') repeat-x;"><td></td><td><table style="width: 100%; height: 29px;"><tr><td id="TWin_Ca_'+this.tWinId+'" style="vertical-align: middle; cursor: move; font-weight: bold; white-space: nowrap;"></td><td style="width: 10px; vertical-align: middle;">'+(this.disableClosing ? '' : '<img src="../resources/metadata/dbms/form/'+imgX+'" id="TWin_CL_'+this.tWinId+'" style="cursor:pointer;padding-right: 5px;">')+'</td></tr></table></td><td></td></tr>';
|
str+=' <tr id="TWin_H0_'+this.tWinId+'" style="background: url('+this.path+'/metadata/dbms/form/'+imgB+') repeat-x;"><td></td><td><table style="width: 100%; height: 29px;"><tr><td id="TWin_Ca_'+this.tWinId+'" style="vertical-align: middle; cursor: move; font-weight: bold; white-space: nowrap;"></td><td style="width: 10px; vertical-align: middle;">'+(this.disableClosing ? '' : '<img src="'+this.path+'/metadata/dbms/form/'+imgX+'" id="TWin_CL_'+this.tWinId+'" style="cursor:pointer;padding-right: 5px;">')+'</td></tr></table></td><td></td></tr>';
|
||||||
str+=' <tr>';
|
str+=' <tr>';
|
||||||
str+=' <td style="width: 5px; height: 5px;'+(!this.dialog ? ' cursor:nw-resize;' : '')+'" id="TWin_TL_'+this.tWinId+'"><img src="../resources/metadata/dbms/form/5.gif" alt="" style="display: block;" border="0px" draggable="false"></td>';
|
str+=' <td style="width: 5px; height: 5px;'+(!this.dialog ? ' cursor:nw-resize;' : '')+'" id="TWin_TL_'+this.tWinId+'"><img src="'+this.path+'/metadata/dbms/form/5.gif" alt="" style="display: block;" border="0px" draggable="false"></td>';
|
||||||
str+=' <td style="vertical-align:top;height: 5px;'+(!this.dialog ? ' cursor:n-resize;' : '')+'" id="TWin_T_'+this.tWinId+'"></td>';
|
str+=' <td style="vertical-align:top;height: 5px;'+(!this.dialog ? ' cursor:n-resize;' : '')+'" id="TWin_T_'+this.tWinId+'"></td>';
|
||||||
str+=' <td style="width: 5px; height: 5px;'+(!this.dialog ? ' cursor:ne-resize;' : '')+'" id="TWin_TR_'+this.tWinId+'"><img src="../resources/metadata/dbms/form/5.gif" alt="" style="display: block;" border="0px" draggable="false"></td>';
|
str+=' <td style="width: 5px; height: 5px;'+(!this.dialog ? ' cursor:ne-resize;' : '')+'" id="TWin_TR_'+this.tWinId+'"><img src="'+this.path+'/metadata/dbms/form/5.gif" alt="" style="display: block;" border="0px" draggable="false"></td>';
|
||||||
str+=' </tr>';
|
str+=' </tr>';
|
||||||
str+=' <tr style="height: 100%">';
|
str+=' <tr style="height: 100%">';
|
||||||
str+=' <td style="height: 5px;'+(!this.dialog ? ' cursor:w-resize;' : '')+'" id="TWin_L_'+this.tWinId+'"></td>';
|
str+=' <td style="height: 5px;'+(!this.dialog ? ' cursor:w-resize;' : '')+'" id="TWin_L_'+this.tWinId+'"></td>';
|
||||||
@ -1289,9 +1294,9 @@ class TWin
|
|||||||
str+=' <td style="height: 5px;'+(!this.dialog ? ' cursor:e-resize;' : '')+'" id="TWin_R_'+this.tWinId+'"></td>';
|
str+=' <td style="height: 5px;'+(!this.dialog ? ' cursor:e-resize;' : '')+'" id="TWin_R_'+this.tWinId+'"></td>';
|
||||||
str+=' </tr>';
|
str+=' </tr>';
|
||||||
str+=' <tr>';
|
str+=' <tr>';
|
||||||
str+=' <td style="width: 5px; height: 5px;'+(!this.dialog ? ' cursor:sw-resize;' : '')+'" id="TWin_BL_'+this.tWinId+'"><img src="../resources/metadata/dbms/form/5.gif" alt="" style="display: block;" border="0px" draggable="false"></td>';
|
str+=' <td style="width: 5px; height: 5px;'+(!this.dialog ? ' cursor:sw-resize;' : '')+'" id="TWin_BL_'+this.tWinId+'"><img src="'+this.path+'/metadata/dbms/form/5.gif" alt="" style="display: block;" border="0px" draggable="false"></td>';
|
||||||
str+=' <td style="vertical-align:top; height: 5px;'+(!this.dialog ? ' cursor:s-resize;' : '')+'" id="TWin_B_'+this.tWinId+'"></td>';
|
str+=' <td style="vertical-align:top; height: 5px;'+(!this.dialog ? ' cursor:s-resize;' : '')+'" id="TWin_B_'+this.tWinId+'"></td>';
|
||||||
str+=' <td style="width: 5px; height: 5px;'+(!this.dialog ? ' cursor:se-resize;' : '')+'" id="TWin_BR_'+this.tWinId+'"><img src="../resources/metadata/dbms/form/5.gif" alt="" style="display: block;" border="0px" draggable="false"></td>';
|
str+=' <td style="width: 5px; height: 5px;'+(!this.dialog ? ' cursor:se-resize;' : '')+'" id="TWin_BR_'+this.tWinId+'"><img src="'+this.path+'/metadata/dbms/form/5.gif" alt="" style="display: block;" border="0px" draggable="false"></td>';
|
||||||
str+=' </tr>';
|
str+=' </tr>';
|
||||||
str+='</table>';
|
str+='</table>';
|
||||||
|
|
||||||
@ -1542,7 +1547,7 @@ class TWin
|
|||||||
|
|
||||||
this.pBarDiv=document.createElement('div');
|
this.pBarDiv=document.createElement('div');
|
||||||
this.pBarDiv.style.cssText='position: absolute; left: 0px; top: 0px; z-index: 1; width:100%; height: 100%; margin-top:30px; padding-bottom:30px;';
|
this.pBarDiv.style.cssText='position: absolute; left: 0px; top: 0px; z-index: 1; width:100%; height: 100%; margin-top:30px; padding-bottom:30px;';
|
||||||
this.pBarDiv.innerHTML='<table style="background-color: rgba(0,0,0,0.5);" width="100%" height="100%" cellpadding="0" cellspacing="0"><tr><td align="center" style="vertical-align: middle;"><img src="../resources/metadata/dbms/images/'+img+'" alt=""></td></tr></table>';
|
this.pBarDiv.innerHTML='<table style="background-color: rgba(0,0,0,0.5);" width="100%" height="100%" cellpadding="0" cellspacing="0"><tr><td align="center" style="vertical-align: middle;"><img src="'+this.path+'/metadata/dbms/images/'+img+'" alt=""></td></tr></table>';
|
||||||
|
|
||||||
//var eDiv=document.getElementById('eDiv'+this.uid);
|
//var eDiv=document.getElementById('eDiv'+this.uid);
|
||||||
this.div.appendChild(this.pBarDiv);
|
this.div.appendChild(this.pBarDiv);
|
||||||
|
|||||||
Reference in New Issue
Block a user