Мелоч

This commit is contained in:
2020-09-10 10:41:01 +06:00
parent e25f7ba293
commit 1190aea0f7
5 changed files with 11 additions and 11 deletions

View File

@ -1,3 +1,4 @@
//
package kz.goodssales.GoodsSales.dbms; package kz.goodssales.GoodsSales.dbms;
import java.io.BufferedOutputStream; import java.io.BufferedOutputStream;

View File

@ -3,7 +3,7 @@
//ini_set('display_errors','Off'); //Чтоб ошибки не отправлялись клиентам //ini_set('display_errors','Off'); //Чтоб ошибки не отправлялись клиентам
//ini_set("error_log", "php_error.log"); //Чтоб ошибки сохранялись в локальную папку //ini_set("error_log", "php_error.log"); //Чтоб ошибки сохранялись в локальную папку
$host = $_SERVER['HTTP_HOST']; $host = $_SERVER['HTTP_HOST'];
$host = '.'.cutAfterLast($host,'.',2); $host = '.'.cutAfterLast($host,'.',2);
ini_set('session.cookie_domain', $host); ini_set('session.cookie_domain', $host);
@ -14,8 +14,7 @@
if(isset($_SESSION['REMOTE_ADDR']) && $_SESSION['REMOTE_ADDR'] != $_SERVER['REMOTE_ADDR']) unset($_SESSION['USER_ID']); //Делаемся не авторизованным если зашли с другого ip адреса if(isset($_SESSION['REMOTE_ADDR']) && $_SESSION['REMOTE_ADDR'] != $_SERVER['REMOTE_ADDR']) unset($_SESSION['USER_ID']); //Делаемся не авторизованным если зашли с другого ip адреса
if(!isset($_SESSION['USER_ID'])) { $_SESSION['USER_ID']=null; } if(!isset($_SESSION['USER_ID'])) { $_SESSION['USER_ID']=null; }
if(!isset($_COOKIE['GUID'])) { $_COOKIE['GUID']=null; } if(!isset($_COOKIE['GUID'])) { $_COOKIE['GUID']=null; }
//include("../include/xmltools.php"); //include("../include/xmltools.php");
//include("../include/toExcell.php"); //include("../include/toExcell.php");
//require_once("config.php"); //require_once("config.php");

View File

@ -1,4 +1,4 @@
//var ScriptName='../metadata/dbms/records.jsp'; //var ScriptName='../records'; //POST
var ScriptName='../records'; //var ScriptDName='../download';
var ScriptDName='../download'; //var ScriptUName='../upload';
var ScriptUName='./upload'; //var ScriptRName='../reports'; //GET For download reports (?file=name)

View File

@ -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="'+findFirstNode(node,'#cdata-section').nodeValue+'">'+trt('Download_report')+': "'+this.win.getCaption().innerHTML+'".</a></td></tr></table>'); 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>');
} }
}else }else
alert2(trt('Alert'),"Unknown function! fn=\""+fn+"\"" ); alert2(trt('Alert'),"Unknown function! fn=\""+fn+"\"" );

View File

@ -196,9 +196,9 @@ function alert2(title,text)
<tr>\n\ <tr>\n\
<td colspan="2" style="text-align: center; vertical-align: middle;">'+text+'</td>\n\ <td colspan="2" style="text-align: center; vertical-align: middle;">'+text+'</td>\n\
</tr>\n\ </tr>\n\
<tr style="height: 10px;">\n\ <tr style="width: 100%;height: 10px;">\n\
<td style="width: 100%;">&nbsp;</td>\n\ <td>&nbsp;</td>\n\
<td><button class="button-secondary" id="'+win.uid+'_close" style="width: 80px;">'+trt('OK')+'</button></td>\n\ <td style="width: 80px;"><button class="button-secondary" id="'+win.uid+'_close" style="width: 100%;">'+trt('OK')+'</button></td>\n\
</tr>\n\ </tr>\n\
</table>'; </table>';