%PDF- %PDF- 403WebShell
403Webshell
Server IP : 37.220.80.31  /  Your IP : 3.138.204.96
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/colorpicker/

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/colorpicker/template.php
<?php
if (!defined('B_PROLOG_INCLUDED') || B_PROLOG_INCLUDED !== true) die();
/** @var array $arResult */
/** @var \Bitrix\Report\VisualConstructor\Fields\Valuable\ColorPicker $field */
$field = $arResult['CONFIGURATION_FIELD'];
$fieldValue = $field->getValue();
$events = $arResult['CONFIGURATION_FIELD_EVENTS'];
$fieldName = $field->getName();
$behaviours = $arResult['CONFIGURATION_FIELD_BEHAVIOURS'];
$id = $field->getId();
\CJSCore::init("color_picker");
?>

<div class="report-configuration-item report-configuration-color-picker-item">
	<?php if ($field->isDisplayLabel()): ?>
		<div class="report-configuration-col-title">
			<div class="report-configuration-label">
				<?= $field->getLabel() ?>
			</div>
		</div>
	<?php endif; ?>

	<div class="report-configuration-col-content">
		<div class="report-configuration-content-center">
			<div class="report-color-picker" id="color-picker-<?= $id ?>">
				<div class="report-color-picker-wrapper" data-role="visualconstructor-fields-picker">
					<div class="report-color-picker-color" data-role="visualconstructor-fields-picker-preview" style="background-color: <?= $field->getValue() ?>"></div>
					<input class="report-color-picker-input" data-role="visualconstructor-color-picker-input" id="<?= $id ?>" name="<?= $fieldName ?>" value="<?= $fieldValue ?>">
					<div class="report-color-picker-reset" data-role="visualconstructor-fields-picker-reset"></div>
				</div>
			</div>
		</div>
	</div>
</div>

<script>
	new BX.Report.VisualConstructor.Widget.Config.Fields.ColorPicker({
		defaultColor: "<?=$field->getDefaultValue()?>",
		fieldScope: BX("color-picker-<?=$id?>"),
		events:  <?=CUtil::PhpToJSObject($events)?>,
		behaviours:  <?=CUtil::PhpToJSObject($behaviours)?>
	});
</script>

Youez - 2016 - github.com/yon3zu
LinuXploit