Мелоч

This commit is contained in:
2020-11-10 22:01:48 +06:00
parent 4ae91bc52c
commit a758140f78
3 changed files with 15 additions and 18 deletions

View File

@ -230,7 +230,7 @@ class DBMSUser
win.BuildGUI(10,10); win.BuildGUI(10,10);
win.setCaption(trt("Password_recovery")); win.setCaption(trt("Password_recovery"));
str='<div id="TWin_DT_'+win.tWinId+'" style="width: 100%; height: 100%; padding: 4px; text-align: left;">\n\ str='<div style="width: 100%; height: 100%; padding: 4px; text-align: left;">\n\
<table border="0" cellpadding="0" cellspacing="0" style="width: 100%; height: 100%; padding: 0px;">\n\ <table border="0" cellpadding="0" cellspacing="0" style="width: 100%; height: 100%; padding: 0px;">\n\
<tr>\n\ <tr>\n\
<td style="padding: 2px; white-space: nowrap"><b>'+trt('Login')+' (E-mail)</b></td>\n\ <td style="padding: 2px; white-space: nowrap"><b>'+trt('Login')+' (E-mail)</b></td>\n\
@ -241,9 +241,7 @@ class DBMSUser
</table>\n\ </table>\n\
</td></tr>\n\ </td></tr>\n\
</div>'; </div>';
document.getElementById('TWin_Co_'+win.tWinId).innerHTML=str; win.setContent(str);
win.setSize("300px","100px");
//Центрируем окно и отображаем тень //Центрируем окно и отображаем тень
if(win.tbl.offsetHeight>win.div.offsetHeight) win.div.style.height=win.tbl.offsetHeight+"px"; if(win.tbl.offsetHeight>win.div.offsetHeight) win.div.style.height=win.tbl.offsetHeight+"px";
@ -261,7 +259,6 @@ class DBMSUser
{ return function() { return function()
{ {
win.showProgressBar(); win.showProgressBar();
//showProgressBar(document.getElementById('TWin_DT_'+win.tWinId),win.uid);
var em=document.getElementById(win.uid+'_email').value; var em=document.getElementById(win.uid+'_email').value;

View File

@ -54,4 +54,4 @@ if (isset($_REQUEST['id'])) $id = $_REQUEST['id']; else $id = '';
header ("Content-type: image/gif"); header ("Content-type: image/gif");
imagegif($src); imagegif($src);
?>

View File

@ -13,10 +13,10 @@ function getScript($path)
//Функция для перевода текста без применения GetText "trt(" //Функция для перевода текста без применения GetText "trt("
function trt($text) function trt($text)
{ {
global $db; global $db,$Schema;
$result=''; $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.'\';'; //$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