Переход на HTML5 и Group_id to Role_id
This commit is contained in:
@ -20,7 +20,7 @@ class EdtRec
|
|||||||
this.win.setContent('<div id="eDiv'+this.uid+'" style="width: 100%; /*height: 100%;*/ position: relative;"></div>');
|
this.win.setContent('<div id="eDiv'+this.uid+'" style="width: 100%; /*height: 100%;*/ position: relative;"></div>');
|
||||||
|
|
||||||
let eDiv=document.getElementById('eDiv'+this.uid);
|
let eDiv=document.getElementById('eDiv'+this.uid);
|
||||||
eDiv.innerHTML = '<table width="100%" height="100%" border="0px" cellspacing="0" cellpadding="0"><tr><td style="vertical-align:middle;" bgcolor="#F1F1F1"><center><IMG src="../resources/metadata/dbms/images/loading.gif"></center></td></tr></table>'
|
eDiv.innerHTML = '<table width="100%" height="100%"><tr><td style="vertical-align:middle;" bgcolor="#F1F1F1"><center><IMG src="../resources/metadata/dbms/images/loading.gif"></center></td></tr></table>'
|
||||||
|
|
||||||
if(caption!='')
|
if(caption!='')
|
||||||
this.win.setCaption(document.createTextNode(caption));
|
this.win.setCaption(document.createTextNode(caption));
|
||||||
|
|||||||
102
metadata/dbms/html5doctor.css
Normal file
102
metadata/dbms/html5doctor.css
Normal file
@ -0,0 +1,102 @@
|
|||||||
|
/*
|
||||||
|
html5doctor.com Reset Stylesheet
|
||||||
|
v1.6.1
|
||||||
|
Last Updated: 2010-09-17
|
||||||
|
Author: Richard Clark - http://richclarkdesign.com
|
||||||
|
Twitter: @rich_clark
|
||||||
|
*/
|
||||||
|
|
||||||
|
html, body, div, span, object, iframe,
|
||||||
|
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
|
||||||
|
abbr, address, cite, code,
|
||||||
|
del, dfn, em, img, ins, kbd, q, samp,
|
||||||
|
small, strong, sub, sup, var,
|
||||||
|
b, i,
|
||||||
|
dl, dt, dd, ol, ul, li,
|
||||||
|
fieldset, form, label, legend,
|
||||||
|
table, caption, tbody, tfoot, thead, tr, th, td,
|
||||||
|
article, aside, canvas, details, figcaption, figure,
|
||||||
|
footer, header, hgroup, menu, nav, section, summary,
|
||||||
|
time, mark, audio, video {
|
||||||
|
margin:0;
|
||||||
|
padding:0;
|
||||||
|
border:0;
|
||||||
|
outline:0;
|
||||||
|
font-size:100%;
|
||||||
|
vertical-align:baseline;
|
||||||
|
background:transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
line-height:1;
|
||||||
|
}
|
||||||
|
|
||||||
|
article,aside,details,figcaption,figure,
|
||||||
|
footer,header,hgroup,menu,nav,section {
|
||||||
|
display:block;
|
||||||
|
}
|
||||||
|
|
||||||
|
nav ul {
|
||||||
|
list-style:none;
|
||||||
|
}
|
||||||
|
|
||||||
|
blockquote, q {
|
||||||
|
quotes:none;
|
||||||
|
}
|
||||||
|
|
||||||
|
blockquote:before, blockquote:after,
|
||||||
|
q:before, q:after {
|
||||||
|
content:'';
|
||||||
|
content:none;
|
||||||
|
}
|
||||||
|
|
||||||
|
a {
|
||||||
|
margin:0;
|
||||||
|
padding:0;
|
||||||
|
font-size:100%;
|
||||||
|
vertical-align:baseline;
|
||||||
|
background:transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* change colours to suit your needs */
|
||||||
|
ins {
|
||||||
|
background-color:#ff9;
|
||||||
|
color:#000;
|
||||||
|
text-decoration:none;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* change colours to suit your needs */
|
||||||
|
mark {
|
||||||
|
background-color:#ff9;
|
||||||
|
color:#000;
|
||||||
|
font-style:italic;
|
||||||
|
font-weight:bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
del {
|
||||||
|
text-decoration: line-through;
|
||||||
|
}
|
||||||
|
|
||||||
|
abbr[title], dfn[title] {
|
||||||
|
border-bottom:1px dotted;
|
||||||
|
cursor:help;
|
||||||
|
}
|
||||||
|
|
||||||
|
table {
|
||||||
|
border-collapse:collapse;
|
||||||
|
border-spacing:0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* change border colour to suit your needs */
|
||||||
|
hr {
|
||||||
|
display:block;
|
||||||
|
height:1px;
|
||||||
|
border:0;
|
||||||
|
border-top:1px solid #cccccc;
|
||||||
|
margin:1em 0;
|
||||||
|
padding:0;
|
||||||
|
}
|
||||||
|
|
||||||
|
input, select {
|
||||||
|
vertical-align:middle;
|
||||||
|
}
|
||||||
@ -111,7 +111,7 @@ class DBMSUser
|
|||||||
<td style="padding: 2px;"><input type="password" maxlength="33" style="width: 100%; padding: 2px; display: inline;" id="tcPassword'+this.uid+'" name="password"><br></td>\n\
|
<td style="padding: 2px;"><input type="password" maxlength="33" style="width: 100%; padding: 2px; display: inline;" id="tcPassword'+this.uid+'" name="password"><br></td>\n\
|
||||||
</tr>\n\
|
</tr>\n\
|
||||||
<tr>\n\
|
<tr>\n\
|
||||||
<td style="padding: 2px;" colspan="2"><table cellspacing="0" cellpadding="0" border="0" style="width: 100%;"><tr><td><label for="save0" style="white-space: nowrap;"><input id="save_'+this.uid+'" type="checkbox" style="display: inline;" checked/> Remember (<a href="#" onclick="g_user.showRestoreForm();">Forgot your password?</a>)</label></td></tr></table></td>\n\
|
<td style="padding: 2px;" colspan="2"><table style="width: 100%;"><tr><td><label for="save0" style="white-space: nowrap;"><input id="save_'+this.uid+'" type="checkbox" style="display: inline;" checked/> Remember (<a href="#" onclick="g_user.showRestoreForm();">Forgot your password?</a>)</label></td></tr></table></td>\n\
|
||||||
</tr>\n\
|
</tr>\n\
|
||||||
<tr><td colspan="2" style="text-align: right;"><input class="button-secondary" id="TLogin_E'+this.uid+'" type="button" style="display: inline;" value="'+trt('Log_in')+'"></td></tr>\n\
|
<tr><td colspan="2" style="text-align: right;"><input class="button-secondary" id="TLogin_E'+this.uid+'" type="button" style="display: inline;" value="'+trt('Log_in')+'"></td></tr>\n\
|
||||||
</table>\n\
|
</table>\n\
|
||||||
|
|||||||
@ -280,7 +280,7 @@
|
|||||||
//Вернём значение прав доступа для запрошенного объекта
|
//Вернём значение прав доступа для запрошенного объекта
|
||||||
//$allow=true;
|
//$allow=true;
|
||||||
$allow=false;
|
$allow=false;
|
||||||
//$sql_query='select a.*,at.name from _Access a, _Actions at where a.del=false and at.id=a.action_id and at.name=\'Insert_'.$typename.'\' and a.group_id in (select group_id from _UsersRoles where user_id='.$_SESSION['USER_ID'].');'
|
//$sql_query='select a.*,at.name from _Access a, _Actions at where a.del=false and at.id=a.action_id and at.name=\'Insert_'.$typename.'\' and a.role_id in (select group_id from _UsersRoles where user_id='.$_SESSION['USER_ID'].');'
|
||||||
$sql_query='select '.$Schema.'p_getaccess('.getSQLValue(gettype($_SESSION['USER_ID']),$_SESSION['USER_ID']).',\'Insert_'.$typename.'\') as allow;';
|
$sql_query='select '.$Schema.'p_getaccess('.getSQLValue(gettype($_SESSION['USER_ID']),$_SESSION['USER_ID']).',\'Insert_'.$typename.'\') as allow;';
|
||||||
|
|
||||||
$res = $db->query($sql_query);
|
$res = $db->query($sql_query);
|
||||||
@ -293,7 +293,7 @@
|
|||||||
$currNode->setAttributeNode($xmlAttr);
|
$currNode->setAttributeNode($xmlAttr);
|
||||||
|
|
||||||
$allow=false;
|
$allow=false;
|
||||||
//$sql_query='select a.*,at.name from _Access a, _Actions at where a.del=false and at.id=a.action_id and at.name=\'Update_'.$typename.'\' and a.group_id in (select group_id from _UsersRoles where user_id='.$_SESSION['USER_ID'].');';
|
//$sql_query='select a.*,at.name from _Access a, _Actions at where a.del=false and at.id=a.action_id and at.name=\'Update_'.$typename.'\' and a.role_id in (select group_id from _UsersRoles where user_id='.$_SESSION['USER_ID'].');';
|
||||||
$sql_query='select '.$Schema.'p_getaccess('.getSQLValue(gettype($_SESSION['USER_ID']),$_SESSION['USER_ID']).',\'Update_'.$typename.'\') as allow;';
|
$sql_query='select '.$Schema.'p_getaccess('.getSQLValue(gettype($_SESSION['USER_ID']),$_SESSION['USER_ID']).',\'Update_'.$typename.'\') as allow;';
|
||||||
$res = $db->query($sql_query);
|
$res = $db->query($sql_query);
|
||||||
while ($row = $res->fetch(PDO::FETCH_ASSOC))// $row - ассоциативный массив значений, ключи - названия столбцов
|
while ($row = $res->fetch(PDO::FETCH_ASSOC))// $row - ассоциативный массив значений, ключи - названия столбцов
|
||||||
@ -305,7 +305,7 @@
|
|||||||
$currNode->setAttributeNode($xmlAttr);
|
$currNode->setAttributeNode($xmlAttr);
|
||||||
|
|
||||||
$allow=false;
|
$allow=false;
|
||||||
//$sql_query='select a.*,at.name from _Access a, _Actions at where a.del=false and at.id=a.action_id and at.name=\'Delete_'.$typename.'\' and a.group_id in (select group_id from _UsersRoles where user_id='.$_SESSION['USER_ID'].');';
|
//$sql_query='select a.*,at.name from _Access a, _Actions at where a.del=false and at.id=a.action_id and at.name=\'Delete_'.$typename.'\' and a.role_id in (select group_id from _UsersRoles where user_id='.$_SESSION['USER_ID'].');';
|
||||||
$sql_query='select '.$Schema.'p_getaccess('.getSQLValue(gettype($_SESSION['USER_ID']),$_SESSION['USER_ID']).',\'Delete_'.$typename.'\') as allow;';
|
$sql_query='select '.$Schema.'p_getaccess('.getSQLValue(gettype($_SESSION['USER_ID']),$_SESSION['USER_ID']).',\'Delete_'.$typename.'\') as allow;';
|
||||||
$res = $db->query($sql_query);
|
$res = $db->query($sql_query);
|
||||||
while ($row = $res->fetch(PDO::FETCH_ASSOC))// $row - ассоциативный массив значений, ключи - названия столбцов
|
while ($row = $res->fetch(PDO::FETCH_ASSOC))// $row - ассоциативный массив значений, ключи - названия столбцов
|
||||||
@ -787,7 +787,7 @@
|
|||||||
//загружаем мета данные и смотрим какие поля должны передать клиенту
|
//загружаем мета данные и смотрим какие поля должны передать клиенту
|
||||||
$mdoc = new DOMDocument();
|
$mdoc = new DOMDocument();
|
||||||
try
|
try
|
||||||
{ //$mdoc->load('metadata.xml');
|
{
|
||||||
$mdoc->loadXML($xmls);
|
$mdoc->loadXML($xmls);
|
||||||
} catch (Exception $e)
|
} catch (Exception $e)
|
||||||
{ sendError($e->getMessage());
|
{ sendError($e->getMessage());
|
||||||
@ -920,7 +920,7 @@
|
|||||||
$res = $db->query("select 1 from _Users where del=false and email = '$login';");
|
$res = $db->query("select 1 from _Users where del=false and email = '$login';");
|
||||||
if($res->rowCount()>0)
|
if($res->rowCount()>0)
|
||||||
{
|
{
|
||||||
mail($login,'BigFootTrade.kz','Not implement',"Content-type: text/html; charset=utf-8\r\nFrom: BigFootTrade Site <info@bigfoottrade.kz>");
|
mail($login,'rigor.kz','Not implement',"Content-type: text/html; charset=utf-8\r\nFrom: rigor Site <info@rigor.kz>");
|
||||||
}
|
}
|
||||||
}elseif($cmd==1) //Logout
|
}elseif($cmd==1) //Logout
|
||||||
{
|
{
|
||||||
@ -1007,6 +1007,27 @@
|
|||||||
}else
|
}else
|
||||||
if ($fn==8)//Получить отчёт как Excel.xls файл (почти тоже самое что и функция 4)
|
if ($fn==8)//Получить отчёт как Excel.xls файл (почти тоже самое что и функция 4)
|
||||||
{
|
{
|
||||||
|
$dir='./temp/';
|
||||||
|
|
||||||
|
if(isset($_REQUEST['file'])) {
|
||||||
|
$file = $_REQUEST['file'];
|
||||||
|
$myFile = $dir.$file;
|
||||||
|
if(file_exists($myFile))
|
||||||
|
{
|
||||||
|
header("Content-type: application/octet-stream");
|
||||||
|
header('Content-Disposition: attachment; filename="'.$file.'"');
|
||||||
|
header('Content-Length: '.filesize($myFile));
|
||||||
|
readfile($myFile);
|
||||||
|
exit();
|
||||||
|
}else
|
||||||
|
{
|
||||||
|
header($_SERVER["SERVER_PROTOCOL"]." 404 Not Found", true, 404);
|
||||||
|
echo 'File "'.$file.'" not found!';
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
session_write_close(); //Разблокируем сессионный файл так как запросы могут быть достаточно долгими
|
session_write_close(); //Разблокируем сессионный файл так как запросы могут быть достаточно долгими
|
||||||
//if (!isset($_SESSION['USER_ID']) || $_SESSION['USER_ID']=='') sendError(trt('You are not logged in!'));
|
//if (!isset($_SESSION['USER_ID']) || $_SESSION['USER_ID']=='') sendError(trt('You are not logged in!'));
|
||||||
|
|
||||||
@ -1029,6 +1050,7 @@
|
|||||||
{
|
{
|
||||||
$objXMLDocument=$currNode->ownerDocument;
|
$objXMLDocument=$currNode->ownerDocument;
|
||||||
|
|
||||||
|
$objListR = findFirstNode($nTypeR,'objects-list');
|
||||||
//В переданном запросе может быть не полный фильтр заполняем серверный значениями из переданного
|
//В переданном запросе может быть не полный фильтр заполняем серверный значениями из переданного
|
||||||
$f1=findNodeOnPath($currNode,'objects-list/filter');
|
$f1=findNodeOnPath($currNode,'objects-list/filter');
|
||||||
$f2=findNodeOnPath($nTypeR,'objects-list/filter');
|
$f2=findNodeOnPath($nTypeR,'objects-list/filter');
|
||||||
@ -1116,6 +1138,10 @@
|
|||||||
$nextnode = $nextnode->nextSibling;
|
$nextnode = $nextnode->nextSibling;
|
||||||
}
|
}
|
||||||
$sql_query=str_replace('${_user_id}',getSQLValue(gettype($_SESSION['USER_ID']),$_SESSION['USER_ID']),$sql_query);
|
$sql_query=str_replace('${_user_id}',getSQLValue(gettype($_SESSION['USER_ID']),$_SESSION['USER_ID']),$sql_query);
|
||||||
|
if($objListR!=null && $objListR->getAttribute('order')!='' && $objListR->getAttribute('order')!=null && $objListR->getAttribute('order')!='null')
|
||||||
|
{
|
||||||
|
$sql_query=str_replace('${_order}',findNodeOnAttribute(findFirstNode($currNode,'objects-list'), "column","n",$objListR->getAttribute("order"))->getAttribute("order"),$sql_query);
|
||||||
|
}else $sql_query=str_replace('${_order}','1',$sql_query);
|
||||||
|
|
||||||
//Выполняем запрос
|
//Выполняем запрос
|
||||||
try
|
try
|
||||||
@ -1125,7 +1151,6 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
//Сохраняем результсет в файл в виде HTML с расширением XLS
|
//Сохраняем результсет в файл в виде HTML с расширением XLS
|
||||||
$dir='./temp/';
|
|
||||||
$file='file_'.rand(0,1000).'.xls';
|
$file='file_'.rand(0,1000).'.xls';
|
||||||
$myFile = $dir.$file;
|
$myFile = $dir.$file;
|
||||||
|
|
||||||
@ -1258,7 +1283,7 @@
|
|||||||
{
|
{
|
||||||
session_write_close(); //Разблокируем сессионный файл так как запросы могут быть достаточно долгими
|
session_write_close(); //Разблокируем сессионный файл так как запросы могут быть достаточно долгими
|
||||||
//Клиент передаёт название таблицы, название поля, id поля
|
//Клиент передаёт название таблицы, название поля, id поля
|
||||||
$typename = $_REQUEST['t']; //Тип из metadata.xml
|
$typename = $_REQUEST['t']; //Тип
|
||||||
$field = $_REQUEST['f']; //Название поля с двоичными данными
|
$field = $_REQUEST['f']; //Название поля с двоичными данными
|
||||||
$name = $_REQUEST['n']; //поле с названием файла
|
$name = $_REQUEST['n']; //поле с названием файла
|
||||||
$idval = $_REQUEST['i']; //Идентификатор поля в базе
|
$idval = $_REQUEST['i']; //Идентификатор поля в базе
|
||||||
@ -1277,7 +1302,7 @@
|
|||||||
//Ищем поле в метаданных
|
//Ищем поле в метаданных
|
||||||
$objXMLDocument = new DOMDocument();
|
$objXMLDocument = new DOMDocument();
|
||||||
try
|
try
|
||||||
{ //$objXMLDocument->load('metadata.xml');
|
{
|
||||||
$objXMLDocument->loadXML($xmls);
|
$objXMLDocument->loadXML($xmls);
|
||||||
} catch (Exception $e)
|
} catch (Exception $e)
|
||||||
{ echo $e->getMessage();
|
{ echo $e->getMessage();
|
||||||
|
|||||||
@ -81,7 +81,7 @@ class SRec
|
|||||||
if(this.rwin!=null)
|
if(this.rwin!=null)
|
||||||
{
|
{
|
||||||
this.rwin.hideProgressBar();
|
this.rwin.hideProgressBar();
|
||||||
this.rwin.setContent('<table border="0px" style="width: 100%; height: 100%; background-color: #f1f1f1;"><tr><td align="center"><a href="'+ScriptRName+'?file='+findFirstNode(node,'#cdata-section').nodeValue+'" target="_blank">'+trt('Download_report')+': "'+this.win.getCaption().innerHTML+'".</a></td></tr></table>');
|
this.rwin.setContent('<table border="0px" style="width: 100%; height: 100%; background-color: '+g_backColor1+';"><tr><td align="center"><a href="'+ScriptRName+(ScriptRName.indexOf('?')!=-1 ? '&file=' : '?file=')+findFirstNode(node,'#cdata-section').nodeValue+'" target="_blank">'+trt('Download_report')+': "'+this.win.getCaption().innerHTML+'".</a></td></tr></table>');
|
||||||
}
|
}
|
||||||
}else
|
}else
|
||||||
alert2(trt('Alert'),"Unknown function! fn=\""+fn+"\"" );
|
alert2(trt('Alert'),"Unknown function! fn=\""+fn+"\"" );
|
||||||
@ -141,7 +141,7 @@ class SRec
|
|||||||
{
|
{
|
||||||
let str='\
|
let str='\
|
||||||
<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" border="0" cellspacing="0" cellpadding="0" 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><thead></thead><tbody></tbody>\
|
||||||
</table>\
|
</table>\
|
||||||
@ -185,7 +185,7 @@ class SRec
|
|||||||
|
|
||||||
document.getElementById('SRec_Add_'+this.uid).onclick = ()=>this.insertRecord();
|
document.getElementById('SRec_Add_'+this.uid).onclick = ()=>this.insertRecord();
|
||||||
document.getElementById('SRec_Del_'+this.uid).onclick = ()=>this.deleteRecord();
|
document.getElementById('SRec_Del_'+this.uid).onclick = ()=>this.deleteRecord();
|
||||||
document.getElementById('SRec_Exc_'+this.uid).onclick = ()=>this.showreport('xls');
|
document.getElementById('SRec_Exc_'+this.uid).onclick = ()=>this.showReport('xls');
|
||||||
document.getElementById('SRec_Rfr_'+this.uid).onclick = ()=>{this.appendFilter(); this.sendFilter(-1,0);};
|
document.getElementById('SRec_Rfr_'+this.uid).onclick = ()=>{this.appendFilter(); this.sendFilter(-1,0);};
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1437,7 +1437,7 @@ class SRec
|
|||||||
if (error_msg!="") alert2(trt('Alert'),"ShowRecords: \n"+error_msg);
|
if (error_msg!="") alert2(trt('Alert'),"ShowRecords: \n"+error_msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
showreport(ext)
|
showReport(ext)
|
||||||
{
|
{
|
||||||
if(this.rwin!=null) this.rwin.Close();
|
if(this.rwin!=null) this.rwin.Close();
|
||||||
|
|
||||||
@ -1446,7 +1446,7 @@ class SRec
|
|||||||
this.rwin.setParent(this.win);
|
this.rwin.setParent(this.win);
|
||||||
this.rwin.setSize(280,130);
|
this.rwin.setSize(280,130);
|
||||||
this.rwin.setCaption(trt('Report'));
|
this.rwin.setCaption(trt('Report'));
|
||||||
this.rwin.setContent('<table border="0px" style="width: 100%; height: 100%; background-color: #f1f1f1;"><tr><td align="center"><b>'+trt('Preparing_of_report')+'</b></td></tr></table>');
|
this.rwin.setContent('<table border="0px" style="width: 100%; height: 100%; background-color: '+g_backColor1+';"><tr><td align="center"><b>'+trt('Preparing_of_report')+'</b></td></tr></table>');
|
||||||
|
|
||||||
this.appendFilter();
|
this.appendFilter();
|
||||||
//Call data from server
|
//Call data from server
|
||||||
|
|||||||
@ -1204,7 +1204,7 @@ class TWin
|
|||||||
this.tWinId=Wins.add(this);
|
this.tWinId=Wins.add(this);
|
||||||
/*
|
/*
|
||||||
var hd='';
|
var hd='';
|
||||||
hd+='<table border="0px" cellspacing="0" cellpadding="0" 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="../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(../metadata/dbms/form/1.gif) repeat-x top;" id="TWin_H2_'+this.tWinId+'"><nobr id="TWin_Ca_'+this.tWinId+'"></nobr></td>';
|
||||||
@ -1218,7 +1218,7 @@ class TWin
|
|||||||
hd+='</table>';
|
hd+='</table>';
|
||||||
|
|
||||||
var str='';
|
var str='';
|
||||||
str+='<table id="TWin_TBL_'+this.tWinId+'" border="0px" cellspacing="0" cellpadding="0" 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="../metadata/dbms/form/_t-l.gif" alt="" style="width: 10px; height: 10px; display: block;" border="0px" draggable="false" id="TWin_TL_'+this.tWinId+'"></td>';
|
||||||
@ -1227,7 +1227,7 @@ class TWin
|
|||||||
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="../metadata/dbms/form/l.gif" id="TWin_L_'+this.tWinId+'"></td>';
|
||||||
str+=' <td style="vertical-align:top;cursor:default;"><table border="0px" cellspacing="0" cellpadding="0" 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="../metadata/dbms/form/r.gif" id="TWin_R_'+this.tWinId+'"></td>';
|
||||||
str+=' </tr>';
|
str+=' </tr>';
|
||||||
str+=' <tr>';
|
str+=' <tr>';
|
||||||
@ -1239,8 +1239,8 @@ class TWin
|
|||||||
*/
|
*/
|
||||||
/*
|
/*
|
||||||
var str='';
|
var str='';
|
||||||
str+='<table id="TWin_TBL_'+this.tWinId+'" class="TWin" border="0px" cellspacing="0" cellpadding="0">';
|
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 cellspacing="0" cellpadding="0" 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="../resources/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="../resources/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>';
|
||||||
@ -1248,7 +1248,7 @@ class TWin
|
|||||||
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>';
|
||||||
str+=' <td style="vertical-align:top; cursor: default;"><table border="0px" cellspacing="0" cellpadding="0" 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="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>';
|
||||||
@ -1267,8 +1267,8 @@ class TWin
|
|||||||
}
|
}
|
||||||
|
|
||||||
let str='';
|
let str='';
|
||||||
str+='<table id="TWin_TBL_'+this.tWinId+'" class="shadow" border="0px" cellspacing="0" cellpadding="0" style="width: 100%; height: 100%; border: 1px solid #000000;">';
|
str+='<table id="TWin_TBL_'+this.tWinId+'" class="shadow" 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 cellspacing="0" cellpadding="0" 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(../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>';
|
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="../resources/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>';
|
||||||
@ -1276,7 +1276,7 @@ class TWin
|
|||||||
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>';
|
||||||
str+=' <td style="vertical-align:top;cursor:default;"><table border="0px" cellspacing="0" cellpadding="0" 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="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>';
|
||||||
|
|||||||
@ -23,7 +23,7 @@ $_CONFIG = array(
|
|||||||
|
|
||||||
'disabled' => false,
|
'disabled' => false,
|
||||||
'uploadURL' => "upload",
|
'uploadURL' => "upload",
|
||||||
'uploadDir' => "O:/www/www.bigfoottrade.kz_old/shop/",
|
'uploadDir' => "O:/www/www.rigor.kz_old/shop/",
|
||||||
'theme' => "default",
|
'theme' => "default",
|
||||||
|
|
||||||
'types' => array(
|
'types' => array(
|
||||||
|
|||||||
@ -16,7 +16,7 @@ function trt($text)
|
|||||||
global $db,$Schema;
|
global $db,$Schema;
|
||||||
|
|
||||||
$result='';
|
$result='';
|
||||||
$sql='select translation from '.$Schema.'._translations where del=false and language_id='.$_SESSION["LNG"].' and identifier=\''.$text.'\';';
|
$sql='select translation from '.$Schema.'_translations where del=false and language_id='.$_SESSION["LNG"].' and identifier=\''.$text.'\';';
|
||||||
//$sql='select translation from main._translations where del=false and language_id=(select id from main._languages where short_name=\''.$_SESSION["LNG"].'\') and identifier=\''.$text.'\';';
|
//$sql='select translation from main._translations where del=false and language_id=(select id from main._languages where short_name=\''.$_SESSION["LNG"].'\') and identifier=\''.$text.'\';';
|
||||||
$res = NULL;
|
$res = NULL;
|
||||||
try
|
try
|
||||||
|
|||||||
@ -285,7 +285,7 @@ function TMenu(v_obj,v_scr,v_treepath) //Горизонтальное меню
|
|||||||
pn=pn.parent;
|
pn=pn.parent;
|
||||||
}
|
}
|
||||||
//Шаблон кнопки по умолчанию
|
//Шаблон кнопки по умолчанию
|
||||||
if(str=='') str='<div style="border: 1px solid #dddddd;" onClick="window.location.href = \'./?path=${path}\'" onMouseOver="this.style.backgroundColor=\'#ffffff\'; this.style.textDecoration=\'underline\';" onMouseOut="this.style.backgroundColor=\'#dddddd\'; this.style.textDecoration=\'none\';"><table border="0" cellspacing="0" cellpadding="0" style="width: 100%;"><tr><td style="vertical-align: middle;"><nobr> <a href="./?path=${path}" style="${select}">${name}</a> </nobr></td><td style="vertical-align: middle; width: 10px; padding-right: 4px;"><img src="./img/next.gif" alt="" align="right" style="vertical-align: middle; display: ${none};"></td></tr></table></div>';
|
if(str=='') str='<div style="border: 1px solid #dddddd;" onClick="window.location.href = \'./?path=${path}\'" onMouseOver="this.style.backgroundColor=\'#ffffff\'; this.style.textDecoration=\'underline\';" onMouseOut="this.style.backgroundColor=\'#dddddd\'; this.style.textDecoration=\'none\';"><table style="width: 100%;"><tr><td style="vertical-align: middle;"><nobr> <a href="./?path=${path}" style="${select}">${name}</a> </nobr></td><td style="vertical-align: middle; width: 10px; padding-right: 4px;"><img src="./img/next.gif" alt="" align="right" style="vertical-align: middle; display: ${none};"></td></tr></table></div>';
|
||||||
|
|
||||||
str=str.replace(/\${path}/g, tn.getTreePath());
|
str=str.replace(/\${path}/g, tn.getTreePath());
|
||||||
str=str.replace(/\${hash}/g, crc32(tn.getTreePath()));
|
str=str.replace(/\${hash}/g, crc32(tn.getTreePath()));
|
||||||
@ -417,7 +417,7 @@ function TMenu(v_obj,v_scr,v_treepath) //Горизонтальное меню
|
|||||||
if(str!='') break;
|
if(str!='') break;
|
||||||
nTmp=nTmp.parentNode;
|
nTmp=nTmp.parentNode;
|
||||||
}
|
}
|
||||||
if(str=='') str='<div style="border: 1px solid #dddddd;" onClick="window.location.href = \'./?path=${path}\'" onMouseOver="this.style.backgroundColor=\'#ffffff\'; this.style.textDecoration=\'underline\';" onMouseOut="this.style.backgroundColor=\'#dddddd\'; this.style.textDecoration=\'none\';"><table border="0" cellspacing="0" cellpadding="0" style="width: 100%;"><tr><td style="vertical-align: middle;"><nobr> <a href="./?path=${path}">${name}</a> </nobr></td><td style="vertical-align: middle; width: 10px; padding-right: 4px;"><img src="./img/next.gif" alt="" align="right" style="vertical-align: middle; display: ${none};"></td></tr></table></div>';
|
if(str=='') str='<div style="border: 1px solid #dddddd;" onClick="window.location.href = \'./?path=${path}\'" onMouseOver="this.style.backgroundColor=\'#ffffff\'; this.style.textDecoration=\'underline\';" onMouseOut="this.style.backgroundColor=\'#dddddd\'; this.style.textDecoration=\'none\';"><table style="width: 100%;"><tr><td style="vertical-align: middle;"><nobr> <a href="./?path=${path}">${name}</a> </nobr></td><td style="vertical-align: middle; width: 10px; padding-right: 4px;"><img src="./img/next.gif" alt="" align="right" style="vertical-align: middle; display: ${none};"></td></tr></table></div>';
|
||||||
str=str.replace(/\${path}/g, this.m_tn[this.m_tn.length-1].getTreePath());
|
str=str.replace(/\${path}/g, this.m_tn[this.m_tn.length-1].getTreePath());
|
||||||
str=str.replace(/\${name}/g, getCdataValue(nodeTree));
|
str=str.replace(/\${name}/g, getCdataValue(nodeTree));
|
||||||
str=str.replace(/\${none}/g, nodeTree.getAttribute("c")=='1' ? 'block' : 'none');
|
str=str.replace(/\${none}/g, nodeTree.getAttribute("c")=='1' ? 'block' : 'none');
|
||||||
|
|||||||
@ -503,7 +503,7 @@ function getSiteMap($nParent,$nParams,$db,$first,$path)
|
|||||||
$rСol.='</columns>'."\n";
|
$rСol.='</columns>'."\n";
|
||||||
|
|
||||||
$result.=' <url>'."\n";
|
$result.=' <url>'."\n";
|
||||||
$result.=' <loc>http://'.$_SERVER["SERVER_NAME"].$url.'</loc>'."\n";
|
$result.=' <loc>https://'.$_SERVER["SERVER_NAME"].$url.'</loc>'."\n";
|
||||||
$result.=' <lastmod>'.$date.'</lastmod>'."\n";
|
$result.=' <lastmod>'.$date.'</lastmod>'."\n";
|
||||||
$result.=' <changefreq>daily</changefreq>'."\n";
|
$result.=' <changefreq>daily</changefreq>'."\n";
|
||||||
$result.=' </url>'."\n";
|
$result.=' </url>'."\n";
|
||||||
|
|||||||
Reference in New Issue
Block a user