Мелоч
This commit is contained in:
@ -230,20 +230,18 @@ 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\
|
||||||
<td style="padding: 2px;"><input type="text" maxlength="40" style="width: 100%; display: inline;" id="'+win.uid+'_email" name="login">\n\
|
<td style="padding: 2px;"><input type="text" maxlength="40" style="width: 100%; display: inline;" id="'+win.uid+'_email" name="login">\n\
|
||||||
<table id="'+win.uid+'_phone" style="width: 100%; display: none;" cellpadding="0" cellspacing="0"><tr><td style="white-space: nowrap;"><b>+7 ( </b><input type="text" maxlength="3" onkeydown="this.value = this.value.replace(/[^0-9]/g, \'\')" onkeyup="this.value = this.value.replace(/[^0-9]/g, \'\')" style="width: 35px; display: inline;" id="'+win.uid+'_phone0" value=""><b> ) </b></td><td style="width: 90%;"><input type="text" onkeydown="this.value = this.value.replace(/[^0-9]/g, \'\')" onkeyup="this.value = this.value.replace(/[^0-9]/g, \'\')" maxlength="7" style="width: 100%;display: inline;" id="'+win.uid+'_phone1" value=""></td></tr></table><br></td>\n\
|
<table id="'+win.uid+'_phone" style="width: 100%; display: none;" cellpadding="0" cellspacing="0"><tr><td style="white-space: nowrap;"><b>+7 ( </b><input type="text" maxlength="3" onkeydown="this.value = this.value.replace(/[^0-9]/g, \'\')" onkeyup="this.value = this.value.replace(/[^0-9]/g, \'\')" style="width: 35px; display: inline;" id="'+win.uid+'_phone0" value=""><b> ) </b></td><td style="width: 90%;"><input type="text" onkeydown="this.value = this.value.replace(/[^0-9]/g, \'\')" onkeyup="this.value = this.value.replace(/[^0-9]/g, \'\')" maxlength="7" style="width: 100%;display: inline;" id="'+win.uid+'_phone1" value=""></td></tr></table><br></td>\n\
|
||||||
</tr>\n\
|
</tr>\n\
|
||||||
<tr><td colspan="2" style="text-align: right; padding: 2px;"><input class="button-secondary" id="'+win.uid+'_restore" type="button" style="display: inline;" value="'+trt('Restore')+'"></td></tr>\n\
|
<tr><td colspan="2" style="text-align: right; padding: 2px;"><input class="button-secondary" id="'+win.uid+'_restore" type="button" style="display: inline;" value="'+trt('Restore')+'"></td></tr>\n\
|
||||||
</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;
|
||||||
|
|
||||||
|
|||||||
@ -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);
|
||||||
?>
|
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user