Merge branch 'master' of https://git.dirt.kz/igor/Metadata_PHP
This commit is contained in:
BIN
metadata/dbms/images/config.png
Normal file
BIN
metadata/dbms/images/config.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.3 KiB |
1
metadata/dbms/images/config.svg
Normal file
1
metadata/dbms/images/config.svg
Normal file
@ -0,0 +1 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path fill="#4681A0" d="M50 0c-27.614 0-50 22.386-50 50 0 27.615 22.386 50 50 50 27.613 0 50-22.385 50-50 0-27.614-22.387-50-50-50z"/><path fill="#70A0BA" d="M71 20.999c1.104 0 2 .896 2 2v54c0 1.104-.896 2-2 2s-2-.896-2-2v-54c0-1.104.896-2 2-2m-21 0c1.104 0 2 .896 2 2v54c0 1.104-.896 2-2 2s-2-.896-2-2v-54c0-1.104.896-2 2-2m-21 0c1.104 0 2 .896 2 2v54c0 1.104-.896 2-2 2s-2-.896-2-2v-54c0-1.104.896-2 2-2m42-2c-2.206 0-4 1.794-4 4v54c0 2.206 1.794 4 4 4s4-1.794 4-4v-54c0-2.206-1.794-4-4-4zm-21 0c-2.206 0-4 1.794-4 4v54c0 2.206 1.794 4 4 4s4-1.794 4-4v-54c0-2.206-1.794-4-4-4zm-21 0c-2.206 0-4 1.794-4 4v54c0 2.206 1.794 4 4 4s4-1.794 4-4v-54c0-2.206-1.794-4-4-4z"/><path fill="#376B86" d="M50 20.999c-1.104 0-2 .896-2 2v54c0 1.104.896 2 2 2s2-.896 2-2v-54c0-1.104-.896-2-2-2zm21 0c-1.104 0-2 .896-2 2v54c0 1.104.896 2 2 2s2-.896 2-2v-54c0-1.104-.896-2-2-2zm-42 0c-1.104 0-2 .896-2 2v54c0 1.104.896 2 2 2s2-.896 2-2v-54c0-1.104-.896-2-2-2z"/><g fill="#316078"><path d="M50 20.999c-.174 0-.339.029-.5.071.86.223 1.5.999 1.5 1.929v54c0 .931-.64 1.706-1.5 1.929.161.042.326.071.5.071 1.104 0 2-.896 2-2v-54c0-1.104-.896-2-2-2zM29 20.999c-.174 0-.339.029-.5.071.861.223 1.5.999 1.5 1.929v54c0 .931-.639 1.706-1.5 1.929.161.042.326.071.5.071 1.104 0 2-.896 2-2v-54c0-1.104-.896-2-2-2zM71 20.999c-.174 0-.339.029-.5.071.86.223 1.5.999 1.5 1.929v54c0 .931-.64 1.706-1.5 1.929.161.042.326.071.5.071 1.104 0 2-.896 2-2v-54c0-1.104-.896-2-2-2z"/></g><path fill="#3D708B" d="M34 32.999h-10c-1.104 0-2 .896-2 2v12c0 1.104.896 2 2 2h10c1.104 0 2-.896 2-2v-12c0-1.104-.896-2-2-2zm21 22h-10c-1.104 0-2 .896-2 2v12c0 1.104.896 2 2 2h10c1.104 0 2-.896 2-2v-12c0-1.104-.896-2-2-2zm21-22h-10c-1.104 0-2 .896-2 2v12c0 1.104.896 2 2 2h10c1.104 0 2-.896 2-2v-12c0-1.104-.896-2-2-2z"/><g fill="#5F889E"><path d="M73 32.999h2v16h-2zM67 32.999h2v16h-2zM46 54.999h2v16h-2zM25 32.999h2v16h-2zM31 32.999h2v16h-2zM52 54.999h2v16h-2z"/></g><g fill="#2F5B72"><path d="M69 32.999h4v16h-4zM27 32.999h4v16h-4zM48 54.999h4v16h-4z"/></g><g fill="#2A5266"><path d="M72 32.999h1v16h-1zM30 32.999h1v16h-1zM51 54.999h1v16h-1z"/></g><path fill="#D4D4D4" d="M34 30.999h-10c-1.104 0-2 .896-2 2v12c0 1.104.896 2 2 2h10c1.104 0 2-.896 2-2v-12c0-1.104-.896-2-2-2zm21 22h-10c-1.104 0-2 .896-2 2v12c0 1.104.896 2 2 2h10c1.104 0 2-.896 2-2v-12c0-1.104-.896-2-2-2zm21-22h-10c-1.104 0-2 .896-2 2v12c0 1.104.896 2 2 2h10c1.104 0 2-.896 2-2v-12c0-1.104-.896-2-2-2z"/><path fill="#EDEDED" d="M34 29.999h-10c-1.104 0-2 .896-2 2v11c0 1.104.896 2 2 2h10c1.104 0 2-.896 2-2v-11c0-1.104-.896-2-2-2zm21 22h-10c-1.104 0-2 .896-2 2v11c0 1.104.896 2 2 2h10c1.104 0 2-.896 2-2v-11c0-1.104-.896-2-2-2zm21-22h-10c-1.104 0-2 .896-2 2v11c0 1.104.896 2 2 2h10c1.104 0 2-.896 2-2v-11c0-1.104-.896-2-2-2z"/><path fill="#C3C3C3" d="M32 35.999h-6c-.553 0-1 .448-1 1 0 .553.447 1 1 1h6c.553 0 1-.447 1-1 0-.552-.447-1-1-1zm0 4h-6c-.553 0-1 .447-1 1 0 .553.447 1 1 1h6c.553 0 1-.447 1-1 0-.553-.447-1-1-1zm21 18h-6c-.553 0-1 .446-1 1 0 .553.447 1 1 1h6c.553 0 1-.447 1-1 0-.554-.447-1-1-1zm0 4h-6c-.553 0-1 .446-1 1 0 .553.447 1 1 1h6c.553 0 1-.447 1-1 0-.554-.447-1-1-1zm15-24h6c.553 0 1-.447 1-1 0-.552-.447-1-1-1h-6c-.553 0-1 .448-1 1 0 .553.447 1 1 1zm6 2h-6c-.553 0-1 .447-1 1 0 .553.447 1 1 1h6c.553 0 1-.447 1-1 0-.553-.447-1-1-1z"/><g fill="#fff"><path d="M34 29.999h-10c-1.104 0-2 .896-2 2v2c0-1.104.896-2 2-2h10c1.104 0 2 .896 2 2v-2c0-1.104-.896-2-2-2zM55 51.999h-10c-1.104 0-2 .896-2 2v2c0-1.104.896-2 2-2h10c1.104 0 2 .896 2 2v-2c0-1.104-.896-2-2-2zM76 29.999h-10c-1.104 0-2 .896-2 2v2c0-1.104.896-2 2-2h10c1.104 0 2 .896 2 2v-2c0-1.104-.896-2-2-2z"/></g></svg>
|
||||||
|
After Width: | Height: | Size: 3.6 KiB |
BIN
metadata/dbms/images/gear.png
Normal file
BIN
metadata/dbms/images/gear.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.2 KiB |
202
metadata/dbms/images/gear.svg
Normal file
202
metadata/dbms/images/gear.svg
Normal file
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 33 KiB |
@ -150,7 +150,8 @@ class SRec
|
|||||||
<td><img src="../resources/metadata/dbms/images/rdel.png" alt="del" id="SRec_Del_'+this.uid+'" title="'+trt('Delete_record')+'" border="0" style="cursor: pointer;"/></td>\
|
<td><img src="../resources/metadata/dbms/images/rdel.png" alt="del" id="SRec_Del_'+this.uid+'" title="'+trt('Delete_record')+'" border="0" style="cursor: pointer;"/></td>\
|
||||||
<td><img src="../resources/metadata/dbms/images/excel.png" alt="excel" id="SRec_Exc_'+this.uid+'" title="'+trt('Export_to_Excel')+'" border="0" style="cursor: pointer;"/></td>\
|
<td><img src="../resources/metadata/dbms/images/excel.png" alt="excel" id="SRec_Exc_'+this.uid+'" title="'+trt('Export_to_Excel')+'" border="0" style="cursor: pointer;"/></td>\
|
||||||
<td style="width: 99%;"> </td>\
|
<td style="width: 99%;"> </td>\
|
||||||
<td><img src="../resources/metadata/dbms/images/refresh.png" alt="refresh" id="SRec_Rfr_'+this.uid+'" title="'+trt('Update')+'" border="0" style="cursor: pointer;"/></td></tr>\
|
<td><img src="../resources/metadata/dbms/images/config.png" alt="'+trt('Settings')+'" id="SRec_Cnf_'+this.uid+'" title="'+trt('Settings')+'" border="0" style="cursor: pointer;"/></td>\
|
||||||
|
<td><img src="../resources/metadata/dbms/images/refresh.png" alt="'+trt('Refresh')+'" id="SRec_Rfr_'+this.uid+'" title="'+trt('Update')+'" border="0" style="cursor: pointer;"/></td></tr>\
|
||||||
</table>\
|
</table>\
|
||||||
</td></tr><tr><td id="tblContainer_'+this.uid+'" style="vertical-align:top; overflow:hidden; width:100%; height:100%; text-align:center;">\
|
</td></tr><tr><td id="tblContainer_'+this.uid+'" style="vertical-align:top; overflow:hidden; width:100%; height:100%; text-align:center;">\
|
||||||
<div id="tblSContainer_'+this.uid+'" style="position: absolute; overflow:scroll; width: 400px; height: 400px;">\
|
<div id="tblSContainer_'+this.uid+'" style="position: absolute; overflow:scroll; width: 400px; height: 400px;">\
|
||||||
|
|||||||
@ -1,3 +1,74 @@
|
|||||||
|
/** HTML закладки
|
||||||
|
*/
|
||||||
|
class tcTabs
|
||||||
|
{
|
||||||
|
//element_id - Контейнер где будут созданны закладки
|
||||||
|
constructor(element_id){
|
||||||
|
this.tbs=new Array();
|
||||||
|
if(typeof element_id == 'string') this.bd=document.getElementById(element_id); else this.bd=element_id;
|
||||||
|
|
||||||
|
this.wra=document.createElement('div');
|
||||||
|
this.wra.style.cssText="display: table; width :100%; height: 100%; padding: 0px; margin: 0px; border-collapse: collapse; border: 0px solid #000000;";
|
||||||
|
|
||||||
|
var tr=null;
|
||||||
|
tr=document.createElement('div');
|
||||||
|
tr.style.cssText='display: table-row; height: 1%; padding: 0px; margin: 0px; border: 0px solid #0000ff;'
|
||||||
|
|
||||||
|
this.btt=document.createElement('div');
|
||||||
|
this.btt.style.cssText='display: table-cell; width :100%; height: 1%; padding: 0px; margin: 0px; border: 0px solid #0000ff;background-color: '+g_backColor2+';color:'+g_textColor1+';';
|
||||||
|
tr.appendChild(this.btt);
|
||||||
|
this.wra.appendChild(tr);
|
||||||
|
|
||||||
|
tr=document.createElement('div');
|
||||||
|
tr.style.cssText='display: table-row; width :100%; height: 100%; padding: 0px; margin: 0px; border: 0px solid #0000ff;'
|
||||||
|
|
||||||
|
//Content
|
||||||
|
this.ctt=document.createElement('div');
|
||||||
|
this.ctt.style.cssText='display:table-cell; width :100%; height: 100%; padding: 0px; margin: 0px; border; border: 1px solid #b3b3b3; overflow:hidden;'
|
||||||
|
|
||||||
|
tr.appendChild(this.ctt);
|
||||||
|
this.wra.appendChild(tr);
|
||||||
|
|
||||||
|
this.bd.appendChild(this.wra);
|
||||||
|
}
|
||||||
|
//Добавление новой закладки
|
||||||
|
addTab(config)
|
||||||
|
{
|
||||||
|
let tab=new tcTab(config)
|
||||||
|
tab.par=this
|
||||||
|
this.btt.appendChild(tab.div);
|
||||||
|
|
||||||
|
this.tbs[this.tbs.length]=tab;
|
||||||
|
return tab;
|
||||||
|
}
|
||||||
|
//Удаление закладки
|
||||||
|
delTab(tab)
|
||||||
|
{
|
||||||
|
if (typeof tab === 'string' || tab instanceof String)
|
||||||
|
{
|
||||||
|
}else
|
||||||
|
{
|
||||||
|
for(let i=0;i<this.tbs.length;i++)
|
||||||
|
{
|
||||||
|
if(this.tbs[i]==tab)
|
||||||
|
{
|
||||||
|
this.btt.removeChild(tab.div);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
//Поиск закладки по имени
|
||||||
|
getTabByName(name)
|
||||||
|
{
|
||||||
|
for(let i=0;i<this.tbs.length;i++)
|
||||||
|
{
|
||||||
|
if(this.tbs[i].name==name)
|
||||||
|
{
|
||||||
|
return this.tbs[i];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
class tcTab
|
class tcTab
|
||||||
{
|
{
|
||||||
@ -7,8 +78,10 @@ class tcTab
|
|||||||
|
|
||||||
if(typeof config == 'undefined' || config == null) config = {};
|
if(typeof config == 'undefined' || config == null) config = {};
|
||||||
if(typeof config.float == 'undefined'){ config.float='left'; }
|
if(typeof config.float == 'undefined'){ config.float='left'; }
|
||||||
|
if(typeof config.name == 'undefined'){ config.name=''; }
|
||||||
|
|
||||||
this.id=0;
|
this.id=0;
|
||||||
|
this.name=config.name;
|
||||||
this.par=null;
|
this.par=null;
|
||||||
this.sel=false;
|
this.sel=false;
|
||||||
this.con=null; //Элемент с содержимым
|
this.con=null; //Элемент с содержимым
|
||||||
@ -62,64 +135,3 @@ class tcTab
|
|||||||
this.sel=true
|
this.sel=true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Создать закладки
|
|
||||||
* id - контейнер либо идентификатор контейнера в который вставляем табы
|
|
||||||
*/
|
|
||||||
class tcTabs
|
|
||||||
{
|
|
||||||
constructor(id){
|
|
||||||
this.tbs=new Array();
|
|
||||||
if(typeof id == 'string') this.bd=document.getElementById(id); else this.bd=id;
|
|
||||||
|
|
||||||
this.wra=document.createElement('div');
|
|
||||||
this.wra.style.cssText="display: table; width :100%; height: 100%; padding: 0px; margin: 0px; border-collapse: collapse; border: 0px solid #000000;";
|
|
||||||
|
|
||||||
var tr=null;
|
|
||||||
tr=document.createElement('div');
|
|
||||||
tr.style.cssText='display: table-row; height: 1%; padding: 0px; margin: 0px; border: 0px solid #0000ff;'
|
|
||||||
|
|
||||||
this.btt=document.createElement('div');
|
|
||||||
this.btt.style.cssText='display: table-cell; width :100%; height: 1%; padding: 0px; margin: 0px; border: 0px solid #0000ff;background-color: '+g_backColor2+';color:'+g_textColor1+';';
|
|
||||||
tr.appendChild(this.btt);
|
|
||||||
this.wra.appendChild(tr);
|
|
||||||
|
|
||||||
tr=document.createElement('div');
|
|
||||||
tr.style.cssText='display: table-row; width :100%; height: 100%; padding: 0px; margin: 0px; border: 0px solid #0000ff;'
|
|
||||||
|
|
||||||
//Content
|
|
||||||
this.ctt=document.createElement('div');
|
|
||||||
this.ctt.style.cssText='display:table-cell; width :100%; height: 100%; padding: 0px; margin: 0px; border; border: 1px solid #b3b3b3; overflow:hidden;'
|
|
||||||
|
|
||||||
tr.appendChild(this.ctt);
|
|
||||||
this.wra.appendChild(tr);
|
|
||||||
|
|
||||||
this.bd.appendChild(this.wra);
|
|
||||||
}
|
|
||||||
|
|
||||||
addTab(config)
|
|
||||||
{
|
|
||||||
let tab=new tcTab(config)
|
|
||||||
tab.par=this
|
|
||||||
this.btt.appendChild(tab.div);
|
|
||||||
|
|
||||||
this.tbs[this.tbs.length]=tab;
|
|
||||||
return tab;
|
|
||||||
}
|
|
||||||
|
|
||||||
delTab(tab)
|
|
||||||
{
|
|
||||||
if (typeof tab === 'string' || tab instanceof String)
|
|
||||||
{
|
|
||||||
}else
|
|
||||||
{
|
|
||||||
for(let i=0;i<this.tbs.length;i++)
|
|
||||||
{
|
|
||||||
if(this.tbs[i]==tab)
|
|
||||||
{
|
|
||||||
this.btt.removeChild(tab.div);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|||||||
@ -1714,3 +1714,12 @@ function number_format( number, decimals, dec_point, thousands_sep )
|
|||||||
return km + kw + kd;
|
return km + kw + kd;
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
//Получить случайное RGB в заданном промежутке
|
||||||
|
function getRandomColor(start,end)
|
||||||
|
{
|
||||||
|
let r = Math.floor(Math.random() * (end-start)+start);
|
||||||
|
let g = Math.floor(Math.random() * (end-start)+start);
|
||||||
|
let b = Math.floor(Math.random() * (end-start)+start);
|
||||||
|
return 'rgb('+r+','+g+','+b+')';
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user