После слияния с рабочей копией

This commit is contained in:
2020-07-30 16:47:51 +06:00
parent d4157589b5
commit 6e7158adc6
7 changed files with 23 additions and 16 deletions

View File

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

View File

@ -5,7 +5,7 @@ class tcTab
this.bColor=""; this.bColor="";
if(typeof config == 'undefined' || config == null) config = {};
if(typeof config.float == 'undefined'){ config.float='left'; } if(typeof config.float == 'undefined'){ config.float='left'; }
this.id=0; this.id=0;
@ -99,7 +99,7 @@ class tcTabs
addTab(config) addTab(config)
{ {
var tab=new tcTab(config) let tab=new tcTab(config)
tab.par=this tab.par=this
this.btt.appendChild(tab.div); this.btt.appendChild(tab.div);

View File

@ -169,7 +169,7 @@ function loadContent(url,obj)
function alert2(text) function alert2(text)
{ {
var win=new TWin(); var win=new TWin();
win.TWin(10,10); win.BuildGUI(10,10);
win.setCaption(document.createTextNode("Alert")); win.setCaption(document.createTextNode("Alert"));
var html='\n\ var html='\n\
<table border="0" cellpadding="0" cellspacing="0" style="width: 100%; height: 100%;">\n\ <table border="0" cellpadding="0" cellspacing="0" style="width: 100%; height: 100%;">\n\
@ -1060,7 +1060,7 @@ class TWin
this.pBarCnt=0; //Прогресс бар this.pBarCnt=0; //Прогресс бар
this.pBarDiv=null; //Прогресс бар this.pBarDiv=null; //Прогресс бар
var fnResizeListener=null; this.fnResizeListener=null;
} }
addResizeListener(func) addResizeListener(func)
@ -1071,7 +1071,7 @@ class TWin
onResize(x,y) onResize(x,y)
{ {
var win=this; let win=this;
return function(e){ return function(e){
if(!e) e = window.event; if(!e) e = window.event;
win.dx=e.pageX || e.x win.dx=e.pageX || e.x
@ -1085,10 +1085,10 @@ class TWin
}; };
document.onmousemove = function(e) { document.onmousemove = function(e) {
if(!e) e = window.event; if(!e) e = window.event;
var x2 = e.pageX || e.x; let x2 = e.pageX || e.x;
var y2 = e.pageY || e.y; let y2 = e.pageY || e.y;
var w=parseInt(win.div.style.width)-(win.dx-x2)*x; let w=parseInt(win.div.style.width)-(win.dx-x2)*x;
var h=parseInt(win.div.style.height)-(win.dy-y2)*y; let h=parseInt(win.div.style.height)-(win.dy-y2)*y;
if(w<0)w=0; if(w<0)w=0;
if(h<0)h=0; if(h<0)h=0;
win.setWidth(w+"px"); win.setWidth(w+"px");
@ -1348,7 +1348,12 @@ class TWin
if(this.tbl.offsetWidth>this.div.offsetWidth) this.div.style.width=this.tbl.offsetWidth+"px" if(this.tbl.offsetWidth>this.div.offsetWidth) this.div.style.width=this.tbl.offsetWidth+"px"
}; };
getWidth(){return parseInt(this.tbl.offsetWidth);}; getWidth(){
if(this.tbl!=null)
return parseInt(this.tbl.offsetWidth);
else
return 0;
};
setHeight(h) setHeight(h)
{ {

View File

@ -67,7 +67,7 @@
// Соединяемся с базой данных // Соединяемся с базой данных
$db=null; $db=null;
try try
{ $db = new PDO($db_connstr, $db_login, $db_password); { $db = new PDO($db_connection, $db_login, $db_password);
$db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
} catch (Exception $e) } catch (Exception $e)
{ {

View File

@ -12,7 +12,7 @@ require_once("../include/class_table.php");
require_once("../../config.php"); require_once("../../config.php");
try try
{ $db = new PDO($db_connstr, $db_login, $db_password); { $db = new PDO($db_connection, $db_login, $db_password);
$db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
} catch (Exception $e) } catch (Exception $e)
{ echo 'Ошибка соединения: ' . $e->getMessage(); { echo 'Ошибка соединения: ' . $e->getMessage();

View File

@ -47,7 +47,7 @@
} }
try try
{ $db = new PDO($db_connstr, $db_login, $db_password); { $db = new PDO($db_connection, $db_login, $db_password);
$db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
} catch (Exception $e) } catch (Exception $e)
{ echo 'Ошибка соединения: ' . $e->getMessage(); { echo 'Ошибка соединения: ' . $e->getMessage();

View File

@ -6,7 +6,7 @@ require_once("../include/class_table.php");
require_once("../../config.php"); require_once("../../config.php");
try try
{ $db = new PDO($db_connstr, $db_login, $db_password); { $db = new PDO($db_connection, $db_login, $db_password);
$db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
} catch (Exception $e) } catch (Exception $e)
{ echo 'Ошибка соединения: ' . $e->getMessage(); { echo 'Ошибка соединения: ' . $e->getMessage();