From a758140f78a5e235279e087e4000b4c6d5422a9c Mon Sep 17 00:00:00 2001 From: Igor Date: Tue, 10 Nov 2020 22:01:48 +0600 Subject: [PATCH] =?UTF-8?q?=D0=9C=D0=B5=D0=BB=D0=BE=D1=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- metadata/dbms/login.js | 27 ++++++++++++--------------- metadata/include/captcha.php | 2 +- metadata/include/tools.php | 4 ++-- 3 files changed, 15 insertions(+), 18 deletions(-) diff --git a/metadata/dbms/login.js b/metadata/dbms/login.js index 2630f1f..5ff5a44 100644 --- a/metadata/dbms/login.js +++ b/metadata/dbms/login.js @@ -230,20 +230,18 @@ class DBMSUser win.BuildGUI(10,10); win.setCaption(trt("Password_recovery")); - str='
\n\ - \n\ - \n\ - \n\ - \n\ - \n\ - \n\ -
'+trt('Login')+' (E-mail)\n\ -
\n\ - \n\ -
'; - document.getElementById('TWin_Co_'+win.tWinId).innerHTML=str; - - win.setSize("300px","100px"); + str='
\n\ + \n\ + \n\ + \n\ + \n\ + \n\ + \n\ +
'+trt('Login')+' (E-mail)\n\ +
\n\ + \n\ +
'; + win.setContent(str); //Центрируем окно и отображаем тень if(win.tbl.offsetHeight>win.div.offsetHeight) win.div.style.height=win.tbl.offsetHeight+"px"; @@ -261,7 +259,6 @@ class DBMSUser { return function() { win.showProgressBar(); - //showProgressBar(document.getElementById('TWin_DT_'+win.tWinId),win.uid); var em=document.getElementById(win.uid+'_email').value; diff --git a/metadata/include/captcha.php b/metadata/include/captcha.php index f6459cf..2c63972 100644 --- a/metadata/include/captcha.php +++ b/metadata/include/captcha.php @@ -54,4 +54,4 @@ if (isset($_REQUEST['id'])) $id = $_REQUEST['id']; else $id = ''; header ("Content-type: image/gif"); imagegif($src); -?> + diff --git a/metadata/include/tools.php b/metadata/include/tools.php index f9b66e9..b0d7332 100644 --- a/metadata/include/tools.php +++ b/metadata/include/tools.php @@ -13,10 +13,10 @@ function getScript($path) //Функция для перевода текста без применения GetText "trt(" function trt($text) { - global $db; + global $db,$Schema; $result=''; - $sql='select translation from main._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.'\';'; $res = NULL; try