28 lines
1.3 KiB
PHTML
28 lines
1.3 KiB
PHTML
<?php
|
|
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
|
|
?>
|
|
<?php if (!Domain::isIcpSupported()) return ?>
|
|
{
|
|
header: <?php echo $this->jsLmsg('components.icp-permit.icpPermit') ?>,
|
|
sortable: true,
|
|
dataIndex: 'icpStatus',
|
|
renderer: function(item) {
|
|
var description = 1 == item.icpStatus
|
|
? <?php echo $this->jsLmsg('components.icp-permit.icpStatusAllowedDescription') ?>
|
|
: <?php echo $this->jsLmsg('components.icp-permit.icpStatusNotAllowedDescription') ?>;
|
|
var icon = 1 == item.icpStatus
|
|
? '<?php echo $this->skinUrl('/icons/16/plesk/subscription-status-ok.png') ?>'
|
|
: '<?php echo $this->skinUrl('/icons/16/plesk/att-tr.png') ?>';
|
|
var link = <?php echo $this->link ? $this->jsEscape($this->link) : 'null' ?>;
|
|
var permit = item.icpPermit
|
|
? Jsw.escapeHtml(item.icpPermit)
|
|
: (1 == item.icpStatus ? ''
|
|
: <?php echo $this->jsLmsg('components.icp-permit.icpStatusNotAllowed') ?>);
|
|
return '<span class="tooltipData">' + description + '</span>'
|
|
+ '<img src="' + icon + '" alt=""/>' + "\n"
|
|
+ (link ? '<a href="' + link + '" target="_blank">': '')
|
|
+ permit
|
|
+ (link ? '</a>' : '') + "\n";
|
|
}
|
|
},
|