Merge branch 'master' of http://git.dirt.kz/igor/Metadata_PHP
This commit is contained in:
@ -15,7 +15,7 @@ class EdtRec
|
||||
this.uid=getUID();
|
||||
|
||||
this.win=new TWin();
|
||||
this.win.TWin(pageX-10,pageY-10);
|
||||
this.win.BuildGUI(pageX-10,pageY-10);
|
||||
this.win.setSize("500px","150px");
|
||||
this.win.setContent('<div id="eDiv'+this.uid+'" style="width: 100%; /*height: 100%;*/ position: relative;"></div>');
|
||||
|
||||
@ -135,7 +135,7 @@ class EdtRec
|
||||
this.setPropCdata(nodeType.getAttribute("ObjectID"),record_id);
|
||||
|
||||
let str='';
|
||||
str+=' <table id="eTable'+this.uid+'" border="0px" cellspacing="1" cellpadding="1" style="width: 100%; height: 100%; background-color: #afafaf;">';
|
||||
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">';
|
||||
@ -262,7 +262,7 @@ class EdtRec
|
||||
{
|
||||
rpos++;
|
||||
tr = document.createElement('tr');
|
||||
if (rpos%2==0) bgColor='#EEEEEE'; else bgColor='#FFFFFF';
|
||||
if (rpos%2==0) bgColor=g_rowColor1; else bgColor=g_rowColor2;
|
||||
tr.setAttribute("bgColor",bgColor);
|
||||
if(nodeProp.getAttribute("visible")=='0') tr.style.display='none';
|
||||
var td1 = document.createElement('td');
|
||||
@ -338,7 +338,8 @@ class EdtRec
|
||||
var tObj=findNode(nodeProp, "type");
|
||||
if(tObj!=null)
|
||||
{
|
||||
var button = document.createElement('input');
|
||||
let button = document.createElement('input');
|
||||
button.className='button-secondary';
|
||||
button.setAttribute("type","button");
|
||||
button.setAttribute("value","...");
|
||||
button.style.cssText="width:30px;font-size:9pt;margin:0px;padding:0px;";
|
||||
@ -351,8 +352,18 @@ class EdtRec
|
||||
|
||||
}
|
||||
td2.appendChild( table );
|
||||
|
||||
}else
|
||||
|
||||
}else
|
||||
if(vt=="password")
|
||||
{
|
||||
input = document.createElement('input');
|
||||
input.style.cssText="width: 100%;";
|
||||
input.setAttribute("type","password");
|
||||
input.setAttribute("name",nodeProp.getAttribute("n"));
|
||||
input.setAttribute("value",value);
|
||||
input.setAttribute("id","prop_"+this.uid+"_"+nodeProp.getAttribute("n"));
|
||||
td2.appendChild( input );
|
||||
}else
|
||||
if(vt=="b")
|
||||
{
|
||||
var select = document.createElement('select');
|
||||
@ -442,6 +453,7 @@ class EdtRec
|
||||
newCell1.appendChild( input );
|
||||
|
||||
button = document.createElement('input');
|
||||
button.className='button-secondary';
|
||||
button.setAttribute("type","button");
|
||||
button.setAttribute("value","+");
|
||||
button.setAttribute("title",_("Increase_by_1"));
|
||||
@ -451,6 +463,7 @@ class EdtRec
|
||||
newCell2.appendChild( button );
|
||||
|
||||
button = document.createElement('input');
|
||||
button.className='button-secondary';
|
||||
button.setAttribute("type","button");
|
||||
button.setAttribute("value","-");
|
||||
button.setAttribute("title",_("Decrease_by_1"));
|
||||
@ -503,6 +516,7 @@ class EdtRec
|
||||
//cmbInp.addEventListener(IndexChangeEvent.CHANGE,onComboObjectChangeHandler);
|
||||
|
||||
var button = document.createElement('input');
|
||||
button.className='button-secondary';
|
||||
button.setAttribute("type","button");
|
||||
button.setAttribute("value","...");
|
||||
button.style.cssText="width:30px;font-size:9pt;margin:0px;padding:0px;height:100%;";
|
||||
@ -571,6 +585,7 @@ class EdtRec
|
||||
hidden.value=value;
|
||||
newCell1.appendChild(hidden);
|
||||
var button = document.createElement('input');
|
||||
button.className='button-secondary';
|
||||
button.setAttribute("type","button");
|
||||
button.setAttribute("value","...");
|
||||
button.style.cssText="width:30px;font-size:9pt;margin:0px;padding:0px;";
|
||||
@ -638,7 +653,8 @@ class EdtRec
|
||||
newCell1.appendChild(input);
|
||||
|
||||
//Button to send the file to the server
|
||||
var btnSel = document.createElement('input');
|
||||
let btnSel = document.createElement('input');
|
||||
button.className='button-secondary';
|
||||
btnSel.setAttribute("type","button");
|
||||
btnSel.setAttribute("value","...");
|
||||
btnSel.setAttribute("title",_('Upload'));
|
||||
@ -646,7 +662,8 @@ class EdtRec
|
||||
btnSel.style.cssText="width:30px;font-size:9pt;margin:0px;padding:0px;";
|
||||
newCell2.appendChild(btnSel);
|
||||
|
||||
var button2 = document.createElement('input');
|
||||
let button2 = document.createElement('input');
|
||||
button.className='button-secondary';
|
||||
button2.setAttribute("type","button");
|
||||
button2.setAttribute("value","X");
|
||||
button2.setAttribute("title",_('Delete'));
|
||||
@ -749,13 +766,14 @@ class EdtRec
|
||||
//Button apply
|
||||
tr = document.createElement('tr');
|
||||
var td = document.createElement('td');
|
||||
td.style.cssText="padding: 5px; vertical-align: bottom; background-color: #f5f5f5;";
|
||||
td.style.cssText="padding: 5px; vertical-align: bottom;";
|
||||
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"> '+_('Repeat_the_addition_of_the_entry')+'</label>';
|
||||
tr.appendChild(td);
|
||||
//var td = document.createElement('td');
|
||||
td.setAttribute("align","right");
|
||||
button = document.createElement('input');
|
||||
button.className='button-secondary';
|
||||
button.setAttribute("type","button");
|
||||
button.style.cssText="margin:0px;margin-right:1px;";
|
||||
button.setAttribute("value",_('Apply'));
|
||||
@ -768,6 +786,7 @@ class EdtRec
|
||||
|
||||
button = document.createElement('input'); //Button cancel
|
||||
button.setAttribute("type","button");
|
||||
button.className='button-secondary';
|
||||
button.style.cssText="margin:0px;";
|
||||
button.setAttribute("value",_('Cancel'));
|
||||
//button.onclick=function f_exit(this) { alert(this.win.div); }
|
||||
@ -867,7 +886,7 @@ class EdtRec
|
||||
selObj(typeName,propname)
|
||||
{
|
||||
var win=new TWin();
|
||||
win.TWin(pageX-10,pageY-10);
|
||||
win.BuildGUI(pageX-10,pageY-10);
|
||||
|
||||
var str='';
|
||||
str+='<table id="thetable'+win+'" bgcolor="SlateGrey" style="border: 1px solid rgb(99, 99, 99);" width="100%">';
|
||||
@ -988,7 +1007,7 @@ class EdtRec
|
||||
}else
|
||||
{
|
||||
//We request the field title by the field id (if it is filled).
|
||||
if ((value!="")&&(value!=-1))
|
||||
/*if ((value!="")&&(value!=-1))
|
||||
{
|
||||
var xml='<?xml version="1.0" encoding="utf-8"?><metadata fn="6"><type n="'+nodeProp.getAttribute("ot")+'" c="'+nodeProp.getAttribute("FieldCaption")+'" pn="'+nodeProp.getAttribute("n")+'" fn="'+nodeProp.getAttribute("fn")+'" id="'+value+'">';
|
||||
xml+='<objects-list><filter><column n="'+findFirstNode(this.nodeMetadata, 'type').getAttribute('ObjectID')+'"><![CDATA['+value+']]></column></filter></objects-list>';
|
||||
@ -997,7 +1016,7 @@ class EdtRec
|
||||
{
|
||||
this.showProgressBar();
|
||||
}
|
||||
}
|
||||
}*/
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1132,7 +1151,7 @@ class EdtRec
|
||||
htmlString+='</table>';
|
||||
|
||||
var win=new TWin();
|
||||
win.TWin(pageX-280,pageY-7);
|
||||
win.BuildGUI(pageX-280,pageY-7);
|
||||
win.setContent(htmlString);
|
||||
win.setCaption(document.createTextNode(_("Selection")));
|
||||
win.setParent(this.win);
|
||||
|
||||
Reference in New Issue
Block a user