This commit is contained in:
cutemeli
2025-12-22 10:35:30 +00:00
parent 0bfc6c8425
commit 5ce7ca2c5d
38927 changed files with 0 additions and 4594700 deletions

View File

@@ -1,4 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>

View File

@@ -1,99 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<script type="text/javascript">
//<![CDATA[
Jsw.onReady(function() {
new Jsw.Hint({
renderTo: 'main',
hint: <?php echo $this->jsLmsg('subscriptionHint'); ?>
});
new Jsw.bar.Tabs({
renderTo: 'main',
type: 'dynamic',
cls: 'tabs',
items: [{
componentType: 'Jsw.bar.Button',
title: <?php echo $this->jsLmsg('tabResources'); ?>,
tabId: 'tab-resources',
active: true,
content: new Jsw.layout.TwoColumns({
items: [{
componentType: 'Jsw.Panel',
cls: 'form-box form-box-50x50',
items: [{
componentType: 'Jsw.Hint',
hint: <?php echo $this->jsLmsg('resourcesSummaryHint'); ?>
},
<?php foreach ($this->mainResourceLimits as $limitName => $limitDetails): ?>
{
componentType: 'Jsw.form.DisplayField',
fieldLabel: <?php echo $this->jsEscape($limitDetails['title']); ?>,
value: <?php echo $this->jsEscape($limitDetails['limitString']); ?>
},
<?php endforeach; ?>
null]
}, {
componentType: 'Jsw.Panel',
id: 'panelMoreResources',
cls: 'form-box form-box-50x50 b-collapsible',
title: <?php echo $this->jsLmsg('showMoreResources'); ?>,
hideContentTitle: <?php echo $this->jsLmsg('hideMoreResources'); ?>,
collapsed: true,
items: [
<?php foreach ($this->additionalResourceLimits as $limitName => $limitDetails): ?>
{
componentType: 'Jsw.form.DisplayField',
fieldLabel: <?php echo $this->jsEscape($limitDetails['title']); ?>,
value: <?php echo $this->jsEscape($limitDetails['limitString']); ?>
},
<?php endforeach; ?>
null]
}]
})
}, {
componentType: 'Jsw.bar.Button',
title: <?php echo $this->jsLmsg('tabPermissions'); ?>,
tabId: 'tab-permissions',
content: new Jsw.layout.TwoColumns({
items: [{
componentType: 'Jsw.Panel',
cls: 'form-box form-box-50x50',
items: [{
componentType: 'Jsw.Hint',
hint: <?php echo $this->jsLmsg('permissionsSummaryHint'); ?>
},
<?php foreach ($this->mainPermissions as $permission): ?>
{
componentType: 'Jsw.form.DisplayField',
fieldLabel: <?php echo $this->jsEscape($permission->getName()); ?>,
value: <?php echo $this->jsHtml($this->switchState($permission->getValue())); ?>
},
<?php endforeach; ?>
null]
}, {
componentType: 'Jsw.Panel',
id: 'panelMorePermissions',
cls: 'form-box form-box-50x50 b-collapsible',
title: <?php echo $this->jsLmsg('showMorePermissions'); ?>,
hideContentTitle: <?php echo $this->jsLmsg('hideMorePermissions'); ?>,
collapsed: true,
items: [
<?php foreach ($this->additionalPermissions as $permission): ?>
{
componentType: 'Jsw.form.DisplayField',
fieldLabel: <?php echo $this->jsEscape($permission->getName()); ?>,
value: <?php echo $this->jsHtml($this->switchState($permission->getValue())); ?>
},
<?php endforeach; ?>
null]
}]
})
}]
});
});
//]]>
</script>

View File

@@ -1,17 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<table cellspacing="0" class="popup-data-table">
<?php foreach ($this->resourceLimits as $limitName => $limitDetails): ?>
<tr>
<th><?php echo $limitDetails['title']; ?></th>
<td>
<?php if (in_array($limitName, array('max_traffic', 'disk_space'))): ?>
<?php echo $this->partial('partials/gauge.phtml', array('limitDetails' => $limitDetails)); ?>
<?php else: ?>
<?php echo $this->escape($limitDetails['usageString']); ?>
<?php endif; ?>
</td>
</tr>
<?php endforeach; ?>
</table>

View File

@@ -1,10 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<p><?php echo $this->lmsg('description'); ?></p>
<?= $this->requireJs('app/app/progress', [
'renderTo' => 'main',
'requestUrl' => '/smb/app/download-progress-data/catalogId/' . $this->catalogId . '/taskId/' . $this->taskId,
'redirectUrl' => '/smb/app-update/update/resourceId/' . $this->resourceId,
'redirectMethod' => 'post',
]) ?>

View File

@@ -1,61 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<div class="apps-box clearfix">
<div class="package-content">
<div class="package-block">
<?php if ($this->updateInfo && (count($this->updateInfo) > 0)): ?>
<p><?php echo $this->lmsg('whatsNew') ?></p>
<div class="package-block-area">
<?php foreach ($this->updateInfo as $changeLog): ?>
<p><?php if (isset($changeLog['date'])) {
echo $this->lmsg('changeLogDate',
array(
'version' => $this->escape($changeLog['version']),
'release' => $this->escape($changeLog['release']),
'date' => $this->escape($changeLog['date']),
));
} else {
echo $this->lmsg('changeLog',
array(
'version' => $this->escape($changeLog['version']),
'release' => $this->escape($changeLog['release']),
));
}
?></p>
<ul>
<?php foreach ($changeLog['description'] as $description): ?>
<li><?php echo $this->escape($description) ?></li>
<?php endforeach; ?>
</ul>
<?php endforeach; ?>
</div>
<?php else: ?>
<p><?php echo $this->lmsg('noUpdateDescriptionFound') ?></p>
<?php endif; ?>
<p><?php
echo $this->lmsg('moreInfo', array(
'appHomePage' => '<a href="' . $this->appHomePageUrl . '">' .
$this->lmsg('appHomePage') . '</a>',
));
?></p>
</div>
</div>
</div>
<?php if ($this->showButtons): ?>
<div class="btns-box">
<div class="box-area">
<div class="form-row">
<div class="field-name">&nbsp;</div>
<div class="field-value">
<button class="btn action" value="" type="submit" onclick="Jsw.redirectPost(<?php echo $this->jsEscape($this->updateUrl); ?>)">
<?php echo $this->lmsg('updateNow') ?>
</button>
<button class="btn" value="" type="submit" onclick="Jsw.redirect(<?php echo $this->jsEscape($this->cancelUrl); ?>)">
<?php echo $this->lmsg('components.buttons.cancel') ?>
</button>
</div>
</div>
</div>
</div>
<?php endif; ?>

View File

@@ -1,4 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<?php echo $this->form; ?>

View File

@@ -1,115 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<?php $prefixElement = $this->element->getElement('installationPrefix'); ?>
<div class='form-row<?php echo $prefixElement && $prefixElement->hasErrors() ? ' error' : ''?>'>
<div class='field-name'>
<?php echo $this->elementPart($this->element->getElement('domain'))->label(); ?>
</div>
<div class='field-value'>
<span>
<?php echo $this->elementPart($this->element->getElement('protocol'))->content(); ?>
<span></span>
://
<?php echo $this->elementPart($this->element->getElement('domain'))->content(); ?>
<?php
if ($prefixElement) {
echo ' / ';
echo $this->elementPart($prefixElement)->content();
}
?>
<span class="ajax-loading" style="display: none;"><?php echo $this->lmsg('loading');?></span>
<span class="hint"><?php echo $this->lmsg('httpsContentHint');?></span>
</span>
<span id="object-switcher"></span>
<?php if ($prefixElement && $prefixElement->hasErrors()): ?>
<span class='field-errors'><?php echo $this->elementPart($prefixElement)->errors() ?></span>
<?php else: ?>
<span class='field-errors' style="display: none;"></span>
<?php endif; ?>
</div>
</div>
<script type="text/javascript">
//<![CDATA[
(function () {
var contextsOptions = <?php echo json_encode($this->contextsOptions) ?>;
var protocolSelect = document.getElementById('<?php echo $this->element->getElement('protocol')->getId(); ?>');
var domainSelect = document.getElementById('<?php echo $this->element->getElement('domain')->getId(); ?>');
var onContextChange = function (doNotChangePrefix) {
if ('select' === domainSelect.tagName.toLowerCase()) {
document.getElementById('<?php echo $this->contextIdElement->getId(); ?>').value = domainSelect.value;
} else if ('select' === protocolSelect.tagName.toLowerCase()) {
document.getElementById('<?php echo $this->contextIdElement->getId(); ?>').value = Object.keys(contextsOptions[protocolSelect.value])[0];
}
var value = document.getElementById('<?php echo $this->contextIdElement->getId();?>').value.split("-");
if ('select' === protocolSelect.tagName.toLowerCase()) {
var hideSelector = Object.keys(contextsOptions).every(function (protocol) {
return protocol === protocolSelect.value || 'undefined' === typeof contextsOptions[protocol][value[0] + '-' + value[1] + '-' + protocol];
});
if (hideSelector) {
protocolSelect.style.display = 'none';
protocolSelect.nextElementSibling.innerHTML = protocolSelect.value;
} else {
protocolSelect.style.display = '';
protocolSelect.nextElementSibling.innerHTML = '';
}
}
if (true === doNotChangePrefix) {
return;
}
<?php if ($prefixElement): ?>
new Ajax.Request(Jsw.prepareUrl('/app/get-install-prefix/domainId/' + value[1] + '/metaId/' + '<?php echo $this->metaId; ?>'), {
method: 'get',
onCreate: function () {
document.querySelector('.ajax-loading').style.display = '';
var sendButtonWrapper = document.getElementById('btn-send');
if (sendButtonWrapper) {
sendButtonWrapper.disabled = true;
sendButtonWrapper.classList.add('disabled');
}
},
onSuccess: function (response) {
document.querySelector('.ajax-loading').style.display = 'none';
var sendButtonWrapper = document.getElementById('btn-send');
if (sendButtonWrapper) {
sendButtonWrapper.disabled = false;
sendButtonWrapper.classList.remove('disabled');
}
var response = JSON.parse(response.responseText);
if (response.redirect) {
Jsw.redirect(response.redirect);
return;
}
var prefix = (response.prefix) ? response.prefix : '';
document.getElementById('<?php echo $this->element->getElement('installationPrefix')->getId();?>').value = prefix;
}
});
<?php endif; ?>
};
var onProtocolChange = function () {
if ('select' === domainSelect.tagName.toLowerCase()) {
var newOptions = contextsOptions[protocolSelect.value];
var currentValue = document.getElementById('<?php echo $this->contextIdElement->getId();?>').value.split("-");
domainSelect.innerHTML = Object.keys(newOptions)
.map(contextId => '<option value="' + contextId + '">' + newOptions[contextId] + '</option>')
.join('');
var newValue = currentValue[0] + '-' + currentValue[1] + '-' + protocolSelect.value;
if ('undefined' !== typeof newOptions[newValue]) {
domainSelect.value = newValue;
}
}
onContextChange(true);
};
protocolSelect.addEventListener('change', onProtocolChange);
domainSelect.addEventListener('change', onContextChange);
onContextChange(true);
})();
//]]>
</script>

View File

@@ -1,9 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<div class='form-row'>
<div class='single-row'>
<p><?php echo $this->escape($this->captions['doYouAcceptLicense']); ?></p>
<iframe src="<?php echo $this->baseUrl($this->licenseContent) ?>" width="800px;" height="400px;"></iframe>
</div>
</div>

View File

@@ -1,9 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<div class='form-row'>
<div class='single-row'>
<p><?php echo $this->escape($this->captions['doYouAcceptLicense']); ?></p>
<textarea cols="80" rows="24" readonly="readonly" class="ta-eula"><?php echo $this->escape($this->licenseContent); ?></textarea>
</div>
</div>

View File

@@ -1,4 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<a href="<?php echo $this->licenseContent; ?>" target="_blank"><?php echo $this->escape($this->captions['doYouAcceptLicense']); ?></a>

View File

@@ -1,6 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<a href="<?php echo $this->baseUrl($this->link); ?>">
<?php echo $this->escape($this->title); ?>
</a>

View File

@@ -1,31 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<div class="apps-manager objects-management-box clearfix">
<?php echo $this->partial('app/_tabs.phtml', array('tabs' => $this->tabs, 'current' => $this->currentTab)); ?>
<div id="objects-details" class="objects-details">
<div id="objects-details-content" class="objects-details-content">
<div class="objects-details-content-area">
<?php if ($this->subTitle): ?>
<div class="objects-details-heading">
<div class="objects-details-heading-area">
<h3><span><?php echo $this->subTitle; ?></span></h3>
</div>
</div>
<?php endif; ?>
<?php echo $this->content; ?>
</div> <!-- /objects-content-area -->
</div>
</div> <!-- /objects-details -->
<script type='text/javascript'>
Plesk.require('app/app/apscatalog', function (FormApsCatalog) {
Jsw.onReady(function () {
FormApsCatalog.initLayout();
});
});
</script>
</div> <!-- /objects-management-box -->

View File

@@ -1,27 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<div id="objects-list" class="objects-list">
<div class="objects-content">
<div id="objects-list-content-area" class="objects-content-area">
<div class="objects-nav-container">
<?php $lastTab = end($this->tabs); ?>
<?php foreach ($this->tabs as $tab): ?>
<div class="objects-nav <?php if ($this->current == $tab['id']) echo 'objects-nav-active' ?>">
<ul class="objects-nav-list">
<li class="objects-nav-item objects-nav-indent aps-item-<?php echo $tab['cssClass']; ?> <?php if ($this->current == $tab['id']) echo 'objects-nav-item-active' ?>">
<a href="<?php echo $this->baseUrl($tab['link']); ?>" class="objects-nav-block">
<span class="objects-nav-icon"><img src="<?php echo $this->skinUrl($tab['icon']); ?>" alt=""></span>
<span class="objects-nav-name"><?php echo $tab['title']; ?></span>
<span class="objects-nav-info"><?php echo $tab['description']; ?></span>
</a>
</li>
</ul>
</div>
<?php if ($tab != $lastTab) echo '<hr>'; ?>
<?php endforeach; ?>
</div>
</div>
</div>
</div> <!-- /objects-list -->

View File

@@ -1,4 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<?php echo $this->form; ?>

View File

@@ -1,9 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<p><?php echo $this->lmsg('description'); ?></p>
<?= $this->requireJs('app/app/progress', [
'renderTo' => 'main',
'requestUrl' => '/smb/app/download-progress-data/catalogId/' . $this->catalogId . '/taskId/' . $this->taskId,
'redirectUrl' => '/smb/app/select/packageId/%packageId%' . $this->additionalInstallParams,
]) ?>

View File

@@ -1,4 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<?php echo $this->form ?>

View File

@@ -1,12 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<p><?php echo $this->lmsg('description'); ?></p>
<?= $this->requireJs('app/app/progress', [
'renderTo' => 'main',
'catalogId' => $this->catalogId,
'taskId' => $this->taskId,
'requestUrl' => '/smb/app/install-progress-data/taskId/' . $this->taskId,
'redirectUrl' => '/smb/service/index/resourceId/%resourceId%' . $this->additionalInstallParams,
'timeout' => 1000,
]) ?>

View File

@@ -1,4 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<?php echo $this->form ?>

View File

@@ -1,39 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<?php $instancesList = $this->instancesList->fetchData(); ?>
<div class="objects-details-heading">
<div class="objects-details-heading-area">
<div class="toolbar" id="installed-apps-toolbar">
</div>
<h3>
<span><?php echo $this->lmsg('tabTitle') ?></span>
</h3>
</div>
</div>
<div class="object-details-hint"><?php echo $this->lmsg('whereAreApps') ?></div>
<div class="objects-content">
<div class="list-box" id="installed-apps-list"></div>
</div>
<?= $this->requireJs('app/app/installed', [
'updates' => $this->updatesList,
'instancesList' => $instancesList,
'domainIdParam' => $this->domainIdParam,
]) ?>
<?php if (!count($instancesList['data'])): ?>
<hr>
<?php if (isset($this->catalogLinks['marketplace']) && isset($this->catalogLinks['apscatalog'])): ?>
<div class="object-details-hint">
<?php
foreach ($this->catalogLinks as &$link) {
$link = $this->baseUrl($link);
}
$this->catalogLinks['_escape'] = false;
echo $this->lmsg('installAppHint', $this->catalogLinks);
?>
</div>
<?php endif; ?>
<?php echo $this->form; ?>
<?php endif; ?>

View File

@@ -1,4 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<?php echo $this->form; ?>

View File

@@ -1,4 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<?php echo $this->form ?>

View File

@@ -1,41 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<script type="text/javascript">
//<![CDATA[
Jsw.onReady(function () {
var databaseControlsState = function () {
if (0 == document.getElementById('database').value) {
document.getElementById('default').closest('.form-row').style.display = 'none';
} else {
document.getElementById('default').closest('.form-row').style.display = '';
}
};
var dbServerControlState = function (event) {
var dbServerElement = document.getElementById('dbServer');
var dbElement = document.getElementById('database');
var dbList = JSON.parse(document.getElementById('dbList').value);
dbElement.innerHTML = (
Object.keys(dbList[dbServerElement.value]).map(function (value) {
return '<option value="' + value + '">' + dbList[dbServerElement.value][value] + '</option>';
}).join('')
);
var dbWebAdmins = JSON.parse(document.getElementById('dbWebAdmins').value);
var dbDefaultLabel = <?php echo $this->jsLmsg('smb.components.forms.database.user.default') ?>;
document.querySelectorAll('label[for="default"]').forEach(function (el) {
el.innerHTML = dbDefaultLabel.replace('%%webadmin%%', dbWebAdmins[dbServerElement.value]);
});
databaseControlsState();
Jsw.Observer.notify(event, 'dbServer');
};
document.getElementById('database').addEventListener('change', databaseControlsState);
document.getElementById('dbServer').addEventListener('change', dbServerControlState);
databaseControlsState();
});
//]]>
</script>

View File

@@ -1,88 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<div class='form-row'>
<div class='field-name'>
<label for="<?php echo $this->element->getId(); ?>">
<?php echo $this->element->getLabel(); ?>
</label>
</div>
<div class='field-value'>
<?php echo $this->elementPart($this->element)->content(); ?>
<span class="field-errors" style="display: none;"></span>
<?php echo $this->element->getView()->elementPart($this->element)->description()?>
</div>
</div>
<script type="text/javascript">
//<![CDATA[
Jsw.onReady(function () {
var dbUserRoles = <?php echo Zend_Json::encode($this->dbUserRoles); ?>;
var dbPrivilegesSections = ['dataAccess', 'structureAccess1', 'structureAccess2'];
var sectionsToObserve = ['dbPrivileges-dataAccess-form-row', 'dbPrivileges-structureAccess-form-row'];
function onDbRoleChange() {
var element = document.getElementById('<?php echo $this->element->getId(); ?>');
if (!dbUserRoles[element.value]) {
return;
}
for (var index = 0; index < dbPrivilegesSections.length; index++) {
document.querySelectorAll('[name="dbPrivileges[' + dbPrivilegesSections[index] + '][]"]').forEach(function (el) {
el.checked = false;
});
}
var rolePrivileges = dbUserRoles[element.value];
for (var index = 0; index < rolePrivileges.length; index++) {
var roleName = rolePrivileges[index].replace(/\s+/g, '');
for(var sectionIndex in dbPrivilegesSections) {
var privilegeElement = document.getElementById('dbPrivileges-' + dbPrivilegesSections[sectionIndex] + '-' + roleName);
if (!privilegeElement) {
continue;
}
privilegeElement.checked = true;
}
}
}
function onDbPrivilegeChange() {
var currentPrivileges = [];
for (var dbSectionIndex = 0; dbSectionIndex < sectionsToObserve.length; dbSectionIndex++) {
document.getElementById(sectionsToObserve[dbSectionIndex]).querySelectorAll('input[type="checkbox"]').forEach(function (element) {
if (element.checked) {
currentPrivileges.push(element.value);
}
});
}
var dbRoleValue = 'custom';
var currentPrivilegesCount = currentPrivileges.length;
for (var dbRoleIndex in dbUserRoles) {
var rolePrivilegesCount = dbUserRoles[dbRoleIndex].length;
if (currentPrivilegesCount != rolePrivilegesCount) {
continue;
}
var comparedPrivilegesCount = 0;
for (var priviligeIndex = 0; priviligeIndex < rolePrivilegesCount; priviligeIndex++) {
if (-1 != currentPrivileges.indexOf(dbUserRoles[dbRoleIndex][priviligeIndex])) {
comparedPrivilegesCount++;
}
}
if (comparedPrivilegesCount === rolePrivilegesCount) {
dbRoleValue = dbRoleIndex;
}
}
document.getElementById('<?php echo $this->element->getId(); ?>').value = dbRoleValue;
}
document.getElementById('<?php echo $this->element->getId(); ?>').addEventListener('change', onDbRoleChange);
onDbRoleChange();
for (var dbSectionIndex = 0; dbSectionIndex < sectionsToObserve.length; dbSectionIndex++) {
document.getElementById(sectionsToObserve[dbSectionIndex]).querySelectorAll('input[type="checkbox"]').forEach(function (element) {
element.addEventListener('change', onDbPrivilegeChange);
});
}
});
//]]>
</script>

View File

@@ -1,61 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<div id="issue-list">
</div>
<script type="text/javascript">
//<![CDATA[
Jsw.onReady(function() {
new Jsw.Panel({
cls: 'list-box',
renderTo: 'issue-list',
items: [
new Jsw.List({
id: 'database-issue-list',
pageable: false,
sortable: false,
data: <?php echo Zend_Json::encode($this->issuesList->fetchData()); ?>,
columns: [
{
header: <?php echo $this->issuesList->jsLmsg('type'); ?>,
headerCls: 'icon',
sortable: false,
dataIndex: 'iconName',
cls: 'min',
renderer: function(item) {
var icon = item.iconName == 'warning'
? '<?php echo $this->skinUrl('/icons/16/plesk/warning.png') ?>'
: '<?php echo $this->skinUrl('/icons/16/plesk/att.png') ?>';
return '<img width="16" height="16"' + ' title="' + item.iconTitle + '"' + ' src="' + icon + '"/>';
}
}, {
<?php if ($this->type == 'mssql') : ?>
header: <?php echo $this->issuesList->jsLmsg('code'); ?>,
sortable: false,
dataIndex: 'code'
}, {
<?php else: ?>
header: <?php echo $this->issuesList->jsLmsg('table'); ?>,
sortable: false,
dataIndex: 'table'
}, {
<?php endif; ?>
header: <?php echo $this->issuesList->jsLmsg('problem'); ?>,
sortable: false,
dataIndex: 'problem'
}
<?php if ($this->type == 'mysql' && $this->hasFurtherActions) : ?>
,
Jsw.list.COLUMN_SELECTION
<?php endif; ?>
]
})
]
});
});
//]]>
</script>

View File

@@ -1,5 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<?php echo $this->form ?>
<?php echo $this->partial('database/_form/db-server.phtml', null, $this); ?>

View File

@@ -1,52 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<?php echo $this->form ?>
<?php echo $this->partial('database/_form/db-server.phtml', null, $this); ?>
<script type="text/javascript">
//<![CDATA[
Jsw.namespace('Smb.Views.Database');
Smb.Views.Database.dbUserPresubmitHandler = function(form) {
if (
document.getElementById('dbPrivileges-globalAccessStateChanged') &&
'true' === document.getElementById('dbPrivileges-globalAccessStateChanged').value &&
document.querySelectorAll('input[id^="dbPrivileges-globalAccess-"]:checked').length > 0
) {
Jsw.messageBox.show({
type: Jsw.messageBox.TYPE_YESNO,
buttonTitles: {
yes: <?php echo $this->jsLmsg('confirmationYes'); ?>,
no: <?php echo $this->jsLmsg('confirmationNo'); ?>,
wait: <?php echo $this->jsLmsg('confirmationWait'); ?>
},
text: <?php echo $this->jsLmsg('confirmText'); ?>,
subtype: 'toggle',
onYesClick: function () {
document.getElementById('dbPrivileges-globalAccessStateChanged').value = 'false';
Jsw.submit(document.getElementById(form._applyTargetId));
}
});
return false;
}
return true;
};
Jsw.onReady(function () {
document.querySelectorAll('input[id^="dbPrivileges-globalAccess-"]').forEach(function (checkbox) {
checkbox.addEventListener('change', function () {
document.getElementById('dbPrivileges-globalAccessStateChanged').value = 'true';
});
});
if (document.getElementById('dbPrivileges')) {
document.getElementById('dbPrivileges').classList.add('b-collapsible');
new Jsw.Panel({
title: <?php echo $this->jsLmsg('showPrivileges'); ?>,
hideContentTitle: <?php echo $this->jsLmsg('hidePrivileges'); ?>,
applyTo: 'dbPrivileges'
});
}
});
//]]>
</script>

View File

@@ -1,4 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<?php echo $this->form ?>

View File

@@ -1,11 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<?php echo $this->form ?>
<script type="text/javascript">
//<![CDATA[
Jsw.onReady(function () {
document.getElementById('btn-cancel').firstElementChild.focus();
});
//]]>
</script>

View File

@@ -1,42 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<?php echo $this->form ?>
<script type="text/javascript">
//<![CDATA[
Jsw.onReady(function () {
document.querySelectorAll('.checkbox').forEach(function (checkboxElement) {
checkboxElement.checked = true;
checkboxElement.addEventListener('change', function () {
var list = Jsw.getComponent('database-issue-list');
var selected = list.getSelectedItemsIds();
var button = document.getElementById('btn-send');
if (selected.length) {
button.disabled = false;
button.classList.remove('disabled');
} else {
button.disabled = true;
button.classList.add('disabled');
}
});
});
document.getElementById('btn-send').addEventListener('click', function (event) {
event.preventDefault();
var list = Jsw.getComponent('database-issue-list');
var beginOffset = Element.cumulativeOffset(event.target);
var progressBar = Jsw.getComponent('asyncProgressBarWrapper');
progressBar.fly(beginOffset,
<?php echo $this->jsLmsg('smb.components.lists.databases.taskRepairDatabase'); ?>,
function () {
Jsw.redirectPost('/database/repair-tables/id/' + document.getElementById('databaseId').value, {
tables: list.getSelectedItemsIds(),
taskId: document.getElementById('taskId').value
});
}
);
});
});
//]]>
</script>

View File

@@ -1,4 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<?= $this->form; ?>

View File

@@ -1,4 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<?php echo $this->form ?>

View File

@@ -1,4 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<?php echo $this->form ?>

View File

@@ -1,4 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<?php echo $this->form; ?>

View File

@@ -1,4 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<?php echo $this->whoisText ?>

View File

@@ -1,13 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<div id="<?php echo $this->element->getId();?>">
<?php echo $this->content; ?>
</div>
<?= $this->requireJs('app/email-address/aliases-dynamic', [
'applyTo' => $this->element->getId(),
'addButtonId' => 'aliases-aliasesSection-aliasesForm-buttonAddAlias',
'removeButtonId' => 'remove-alias-button-wrapper',
'domainName' => $this->domainName,
'allowRemoveFirstElement' => true,
]) ?>

View File

@@ -1,4 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<?php echo $this->partial('partials/forms/radio-controls.phtml', null, $this); ?>

View File

@@ -1,8 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<div id="av-promo"></div>
<?= $this->requireJs('app/server-mail-antivirus-promo', [
'renderTo' => 'av-promo',
'isOnDomainEmailPage' => true,
]) ?>

View File

@@ -1,69 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<div class='form-row'>
<div class='field-name'>
<?php echo $this->elementPart($this->element->getElement($this->emailElementName))->label(); ?>
</div>
<div class='field-value'>
<span>
<?php
echo $this->element->getElement($this->emailElementName)->readonly
? $this->escape($this->element->getElement($this->emailElementName)->getValue())
: $this->elementPart($this->element->getElement($this->emailElementName))->content();
if($this->domainName) {
$domainElementId = str_replace('-name', '-domainName', $this->element->getElement($this->emailElementName)->getId());
$domainName = "<span id=\"{$domainElementId}\">{$this->domainName}</span>";
} else {
$domainName = $this->elementPart($this->element->getElement($this->domainElementName))->content();
}
if ($this->isNewMail) {
$domainName = '<b> @ ' . $domainName . '</b>';
} else {
$domainName = '@' . $domainName;
}
echo $domainName;
?>
</span>
<span class="field-errors" style="display: none;"></span>
</div>
</div>
<?php if (isset($this->loginAsUserElementName)):?>
<?php $element = $this->element->getElement($this->loginAsUserElementName); ?>
<div class='form-row'>
<div class="field-name" style="width: 100%;">
<?php echo $this->elementPart($element)->content()?>
<?php echo $this->elementPart($element)->label()?>
<?php echo $this->elementPart($element)->inlineDescription()?>
</div>
</div>
<?php if ($this->usernameIsChangeable):?>
<script type="text/javascript">
//<![CDATA[
document.getElementById('general-generalSection-name').addEventListener('change', function () {
<?php if (1 < $this->domainsCount):?>
var domainName = Jsw.escapeHtml(this.value) + '@' + document.getElementById('general-generalSection-domain')[document.getElementById('general-generalSection-domain').selectedIndex].text;
<?php else: ?>
var domainName = Jsw.escapeHtml(this.value) + '@' + '<?php echo $this->domainName;?>';
<?php endif; ?>
var username = <?php echo $this->jsLmsg('smb.components.forms.email-address.loginAsUserDescription')?>.replace('%%username%%', domainName);
if (!this.value.length) {
username = '';
}
document.getElementById('<?php echo $element->getId() ?>').parentNode.querySelector('.hint-inline').innerHTML = username;
});
<?php if (1 < $this->domainsCount):?>
document.getElementById('general-generalSection-domain').addEventListener('change', function () {
var domainName = document.getElementById('general-generalSection-name').value + '@' + this.options[this.selectedIndex].text;
var username = <?php echo $this->jsLmsg('smb.components.forms.email-address.loginAsUserDescription')?>.replace('%%username%%', domainName);
if (!document.getElementById('general-generalSection-name').value) {
username = '';
}
document.getElementById('<?php echo $element->getId() ?>').parentNode.querySelector('.hint-inline').innerHTML = username;
});
<?php endif; ?>
//]]>
</script>
<?php endif; ?>
<?php endif; ?>

View File

@@ -1,8 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<p>
<?php echo $this->escape($this->element->getDescription()); ?>
<a href="<?php echo $this->baseUrl('/help/redirect/controller-name/email-address/action-name/learn-more');?>" target="_blank">
<?php echo $this->lmsg('smb.components.forms.email-address.antispamLearnMore'); ?></a>
</p>

View File

@@ -1,4 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<?php echo $this->element->getElement('mboxOutgoingMessages')->render($this); ?>

View File

@@ -1,18 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<div class="form-row">
<div class="field-name">
<?php echo $this->element->getLabel();?>
</div>
<div class="field-value">
<div class="text-value">
<div class="progress-box f-middle-size">
<div class="progress progress-sm">
<div class="progress-bar" style="width: <?php echo $this->usagePercent;?>%;"></div>
</div>
<div class="progress-label"><?php echo $this->element->getValue();?></div>
</div>
</div>
</div>
</div>

View File

@@ -1,67 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
$mailboxQuotaElement = $this->element->getElement('mboxQuotaValue');
?>
<div class="form-row">
<div class="field-name">
<?php echo $this->elementPart($this->element->getElement('postbox'))->content()?>
<?php echo $this->elementPart($this->element->getElement('postbox'))->label()?>
</div>
<div class="field-value">
<div class="text-value">
<?php echo $this->elementPart($mailboxQuotaElement)->content(); ?>
<span><label>
<input type="radio" class="radio" value="default"
id="<?php echo $mailboxQuotaElement->getId(); ?>-default"
name="<?php echo $mailboxQuotaElement->getId(); ?>-selector"
<?php echo $this->isDefault ? 'checked="checked"' : ''; ?>
/>
<span id="general-generalSection-text-default">
<?php echo $this->lmsg('smb.components.forms.email-address.mailBoxQuotaDomainDefaultNew'); ?>
</span>
</label>
</span><br />
<span><label>
<input type="radio" class="radio" value="specific"
id="<?php echo $mailboxQuotaElement->getId(); ?>-specific"
name="<?php echo $mailboxQuotaElement->getId(); ?>-selector"
<?php echo $this->isDefault ? '' : 'checked="checked"'; ?>
/>
<?php echo $this->lmsg('smb.components.forms.email-address.mailBoxQuotaDomainSpecific'); ?>
</label>
<input type="text" class="input-text" size="10"
id="<?php echo $mailboxQuotaElement->getId()?>-specific-input"
aria-label="<?php echo $this->lmsg('smb.components.forms.email-address.mailBoxQuotaDomainSpecificValue'); ?>"
>
<select id="<?php echo $mailboxQuotaElement->getId() ?>-specific-multiplier" aria-label="<?php echo $this->lmsg('smb.components.forms.email-address.mailBoxQuotaDomainSpecificMultiplier'); ?>">
<?php foreach($this->quotaValueUnits as $multiplier => $multiplierDescription): ?>
<option value="<?php echo $multiplier?>">
<?php echo $this->escape($multiplierDescription)?>
</option>
<?php endforeach;?>
</select>
</span><br />
<span class="hint"><?php echo $this->lmsg('smb.components.forms.email-address.maxCustomSizeDesc');?></span>
<span style="display: none;" class="field-errors"></span>
</div>
</div>
</div>
<div class="form-row" style="display:none;">
<div class="field-name">
<?php echo $this->elementPart($this->element->getElement('reason'))->label() ?>
</div>
<div class="field-value">
<div class='text-value'>
<?php echo $this->elementPart($this->element->getElement('reason'))->content() ?>
<?php echo $this->elementPart($this->element->getElement('reason'))->description() ?>
</div>
</div>
</div>
<?= $this->requireJs('app/email-address/postbox', [
'domainLimits' => $this->domainLimits,
'units' => array_keys($this->quotaValueUnits),
'quotaValue' => $this->quotaValue,
'isDefault' => $this->isDefault,
]) ?>

View File

@@ -1,11 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<div id="attachments">
<?php echo $this->content; ?>
</div>
<?= $this->requireJs('app/email-address/responder-attachments-dynamic', [
'applyTo' => 'attachments',
'addButtonId' => 'autoResponder-autoResponderSection-attachments-buttonAddAttachment',
'removeButtonId' => 'remove-responder-attachment-button-wrapper',
]) ?>

View File

@@ -1,18 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<?php
$enabledElement = $this->element->getElement('endDateEnabled');
$dateElement = $this->element->getElement('endDate');
?>
<div id="<?php echo $dateElement->getId(); ?>-form-row" class='form-row'>
<div class='field-name'>
<?php echo $this->elementPart($enabledElement)->content(); ?>
<?php echo $this->elementPart($enabledElement)->label(); ?>
</div>
<div class='field-value'>
<?php echo $this->elementPart($dateElement)->content(); ?>
<span class="field-errors" style="display: none;"></span>
<span class="hint"><?php echo $this->elementPart($dateElement)->description(); ?></span>
</div>
</div>

View File

@@ -1,4 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<?php echo $this->form; ?>

View File

@@ -1,21 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<?php echo $this->partial('outgoing-mail/_warning-messages.phtml', null, $this); ?>
<?php echo $this->form; ?>
<?php if ($this->isUnix): ?>
<script type="text/javascript">
//<![CDATA[
(function() {
const forwardingNoDelivery = document.getElementById('redirect-redirectSection-remove') &&
document.getElementById('redirect-redirectSection-remove').checked &&
document.getElementById('redirect-redirectSection-enabled').checked;
if (forwardingNoDelivery) {
Jsw.addStatusMessage('warning', "<?= $this->lmsg('smb.components.forms.email-address.antispamSettingsMoveWarning') ?>", {
renderTo: 'antispam-mainSection-content-area',
});
}
})();
//]]>
</script>
<?php endif; ?>

View File

@@ -1,53 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<div id="<?php echo $this->element->getId(); ?>-form-row" class="form-row">
<div class='field-name'>
<?php echo $this->element->getLabel() ?>
<?= $this->requiredMark($this->element->isRequired()) ?>
</div>
<div class='field-value'>
<div class="text-value">
<?php foreach ($this->element->getMultiOptions() as $provider => $areas): ?>
<?php echo $this->formMultiCheckbox($this->element->getName(), $this->element->getValue(), null, [$provider => $provider]) ?>
<?php if (is_array($areas) && !empty($areas)): ?>
<?php
$options = [];
foreach ($areas as $area) {
$options[$provider . '-' . $area] = $area;
}
?>
<div class="checkbox-group">
<?php
echo $this->formMultiCheckbox(
$this->element->getName(),
$this->element->getValue(),
['data-parent' => $provider],
$options,
''
) ?>
</div>
<?php endif; ?>
<?php endforeach; ?>
</div>
<span class="field-errors"></span>
<?php if ($this->element->getDescription()): ?>
<span class="hint"><?php echo $this->element->getDescription(); ?></span>
<?php endif; ?>
</div>
</div>
<script type="text/javascript">
//<![CDATA[
Jsw.onReady(function() {
document.getElementById('provider-form-row').querySelectorAll('input[type="checkbox"]').forEach(function (checkbox) {
checkbox.addEventListener('click', function () {
document.querySelectorAll(`[data-parent="${checkbox.value}"]`).forEach(i => {
i.checked = checkbox.checked;
});
});
});
});
//]]>
</script>

View File

@@ -1,4 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<?php echo $this->form ?>

View File

@@ -1,128 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<script type="text/javascript">
//<![CDATA[
Jsw.onReady(function() {
new Jsw.Hint({
renderTo: 'main',
hint: <?php echo $this->jsLmsg('hint'); ?>
});
new Jsw.Panel({
cls: 'list-box',
renderTo: 'main',
items: [
new Jsw.List({
id: 'failed-request-files-list',
searchOveral: 'name',
data: <?php echo Zend_Json::encode($this->failedRequestFilesList->fetchData()); ?>,
dataUrl: '/failed-request/list-data/id/<?php echo $this->domainId ?>',
isDisabledItem: function(item) {
return item.readOnly;
},
columns: [
Jsw.list.COLUMN_SELECTION,
{
header: <?php echo $this->failedRequestFilesList->jsLmsg('modificationDate'); ?>,
sortable: true,
dataIndex: 'modificationDate',
cls: 't-r number'
},
{
header: <?php echo $this->failedRequestFilesList->jsLmsg('name'); ?>,
sortable: true,
dataIndex: 'name',
renderer: function(item) {
return '<span class="tooltipData">' + <?php echo $this->failedRequestFilesList->jsLmsg('viewHint');?> + '</span>' +
'<a href="' +
Jsw.prepareUrl('/failed-request/view/id/<?php echo $this->domainId ?>/filename/' + encodeURIComponent(item.id)) +
'" class="failed-request-file-name ext" target="_blank">' + Jsw.escapeHtml(item.name) + '</a>';
}
}
],
operations: [{
<?php if ($this->tracingEnabled): ?>
componentType: 'Jsw.SmallButton',
id: 'buttonDisableTracing',
title: <?php echo $this->failedRequestFilesList->jsLmsg('buttonDisableTracing');?>,
description: <?php echo $this->failedRequestFilesList->jsLmsg('buttonDisableTracingHint'); ?>,
addCls: 'sb-service-stop',
handler: function(event) {
Jsw.redirectPost('/failed-request/disable-tracing/id/<?php echo $this->domainId ?>');
}
}, {
componentType: 'Jsw.SmallButton',
id: 'buttonChangeTracing',
title: <?php echo $this->failedRequestFilesList->jsLmsg('buttonChangeTracing');?>,
description: <?php echo $this->failedRequestFilesList->jsLmsg('buttonChangeTracingHint'); ?>,
addCls: 'sb-settings',
handler: function(event) {
Jsw.redirect('/failed-request/enable-tracing/id/<?php echo $this->domainId ?>');
}
}, {
componentType: 'Jsw.SmallButton',
id: 'buttonRefresh',
title: <?php echo $this->failedRequestFilesList->jsLmsg('buttonRefresh') ?>,
description: <?php echo $this->failedRequestFilesList->jsLmsg('buttonRefreshHint') ?>,
addCls: 'sb-refresh',
handler: function () {
Jsw.getComponent('failed-request-files-list').reload();
}
}, {
<?php else: ?>
componentType: 'Jsw.SmallButton',
id: 'buttonEnableTracing',
title: <?php echo $this->failedRequestFilesList->jsLmsg('buttonEnableTracing');?>,
description: <?php echo $this->failedRequestFilesList->jsLmsg('buttonEnableTracingHint'); ?>,
addCls: 'sb-service-start',
handler: function(event) {
new Jsw.AjaxPopupForm({
cls: 'popup-panel',
title: <?php echo $this->jsLmsg('smb.controllers.failed-request.enable-tracing.title') ?>,
url: '/failed-request/enable-tracing/id/<?php echo $this->domainId ?>',
locale: {
waitMsg: <?php echo $this->jsLmsg('components.list.loadingTitle') ?>
}
});
}
}, {
<?php endif; ?>
componentType: 'Jsw.bar.Separator'
}, {
componentType: 'Jsw.SmallButton',
id: 'buttonDownloadZip',
title: <?php echo $this->failedRequestFilesList->jsLmsg('downloadZip');?>,
description: <?php echo $this->failedRequestFilesList->jsLmsg('downloadZipHint'); ?>,
addCls: 'sb-download',
handler: function(event) {
Jsw.getComponent('failed-request-files-list').execGroupOperation({
submitHandler: Jsw.redirectPost,
url: '/failed-request/download/id/<?php echo $this->domainId ?>',
skipConfirmation: true
});
}
}, {
componentType: 'Jsw.SmallButton',
id: 'buttonRemoveFailedRequestFiles',
title: <?php echo $this->failedRequestFilesList->jsLmsg('remove');?>,
description: <?php echo $this->failedRequestFilesList->jsLmsg('hintRemove'); ?>,
addCls: 'sb-remove-selected',
handler: function(event) {
Jsw.getComponent('failed-request-files-list').execGroupOperation({
url: '/failed-request/delete/id/<?php echo $this->domainId ?>',
subtype: 'delete',
mouseEvent: event,
locale: {
confirmOnGroupOperation: <?php echo $this->failedRequestFilesList->jsLmsg('confirmOnDelete'); ?>
}
});
}
}]
})
]
});
});
//]]>
</script>

View File

@@ -1,11 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<html>
<head>
<title>Untitled</title>
</head>
<body>
</body>
</html>

View File

@@ -1,37 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<?php
$homeElement = $this->element->getElement('home');
?>
<script type="text/javascript">
//<![CDATA[
Jsw.namespace('Smb.Ftp');
Smb.Ftp.showHomePathPopup = function (event) {
event.preventDefault();
new Jsw.DirectoryBrowser({
cls: 'popup-panel',
locale: {
title: <?php echo $this->jsLmsg('smb.components.forms.ftp-user.popupTitle') ?>,
buttonOk: <?php echo $this->jsLmsg('components.buttons.ok') ?>,
buttonCancel: <?php echo $this->jsLmsg('components.buttons.cancel') ?>
},
pathElementId: '<?php echo $homeElement->getId() ?>',
subscriptionId: '<?php echo $this->subscriptionId ?>'
});
};
//]]>
</script>
<div class='form-row' id="<?php echo $homeElement->getId(); ?>-form-row">
<div class='field-name'>
<?php echo $this->elementPart($homeElement)->label(); ?>
</div>
<div class='field-value'>
<?php echo $this->elementPart($homeElement)->content(); ?>
<a href="#" class="btn btn-icon-only input-btn" aria-label="<?php echo $this->jsLmsg('smb.components.forms.ftp-user.selectButtonLabel') ?>" onClick="Smb.Ftp.showHomePathPopup(event);"><i class="icon-folder"></i></a>
<span class="field-errors" style="display: none;"></span>
<span class="hint"><?php echo $this->elementPart($homeElement)->description(); ?></span>
</div>
</div>

View File

@@ -1,74 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<script type="text/javascript">
//<![CDATA[
Jsw.onReady(function () {
new Jsw.Panel({
renderTo: '<?php echo $this->form->getId() ?>',
renderMode: 'top',
cls: 'tools-list-box',
items: [{
componentType: 'Jsw.ListContainer',
cls: 'tools-list',
itemClass: 'tools-item',
items: [{
id: '<?php echo $this->anonFtpEnabled ? 'turnOff' : 'turnOn'; ?>',
componentType: 'Smb.ToolButton',
icon: '<?php echo $this->skinUrl('/icons/32/plesk/' . ($this->anonFtpEnabled ? 'disable' : 'enable') . '.png') ?>',
title: '<?php echo $this->lmsg($this->anonFtpEnabled ? 'turnOff' : 'turnOn') ?>',
comment: '<?php echo $this->lmsg($this->anonFtpEnabled ? 'turnOffHint' : 'turnOnHint') ?>',
handler: function () {
var statusElement = document.getElementById('<?php echo $this->form->getElement('status')->getId() ?>');
statusElement.value = '<?php echo $this->anonFtpEnabled ? 'false' : 'true' ?>';
Jsw.submit(statusElement);
},
}],
}],
});
});
//]]>
</script>
<?php echo $this->partial('partials/tabs.phtml', array('tabs' => $this->tabs, 'renderTo' => 'main', 'renderMode' => 'top')); ?>
<?php if (isset($this->notAllowedWarning)): ?>
<script type="text/javascript">
//<![CDATA[
Jsw.onReady(function () {
Jsw.addStatusMessage('warning', <?php echo $this->jsEscape($this->notAllowedWarning) ?>, { renderTo: 'main' });
});
//]]>
</script>
<?php endif ?>
<?php echo $this->masterCheckbox($this->form->getElement('displayLogin'), [$this->form->getElement('loginText')], true, false) ?>
<?php echo $this->form ?>
<?php if ($this->form->getSubForm('quota')): ?>
<script type="text/javascript">
//<![CDATA[
Jsw.onReady(function () {
var updateState = function () {
var noLimitElement = document.getElementById('<?php echo $this->form->getSubForm('quota')->getElement('noLimit')->getId() ?>');
var quotaElement = document.getElementById('<?php echo $this->form->getSubForm('quota')->getElement('quota')->getId() ?>');
if (document.getElementById('<?php echo $this->form->getElement('incomingDir')->getId() ?>').checked) {
noLimitElement.disabled = false;
if (noLimitElement.checked) {
quotaElement.disabled = true;
} else {
quotaElement.disabled = false;
}
} else {
noLimitElement.disabled = true;
quotaElement.disabled = true;
}
};
updateState();
document.getElementById('<?php echo $this->form->getElement('incomingDir')->getId() ?>').addEventListener('click', updateState);
});
//]]>
</script>
<?php endif ?>

View File

@@ -1,4 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<?php echo $this->form ?>

View File

@@ -1,4 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<?php echo $this->form ?>

View File

@@ -1,114 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<?php echo $this->partial('partials/tabs.phtml', array('tabs' => $this->tabs, 'renderTo' => 'main')); ?>
<script type="text/javascript">
//<![CDATA[
Jsw.onReady(function() {
new Jsw.Hint({
renderTo: 'main',
hint: <?php echo $this->jsLmsg('hint'); ?>
});
new Jsw.Panel({
cls: 'list-box',
renderTo: 'main',
items: [
new Jsw.List({
id: 'ftp-users-list',
searchOveral: 'name',
searchFilters: <?php echo Zend_Json::encode($this->usersList->getSearchFilterConfig()); ?>,
data: <?php echo Zend_Json::encode($this->usersList->fetchData()); ?>,
dataUrl: '/ftp/users-list-data',
columns: [
Jsw.list.COLUMN_SELECTION,
{
header: <?php echo $this->jsLmsg('headerType'); ?>,
headerCls: 'icon',
sortable: true,
dataIndex: 'type',
cls: 'min',
renderer: function(item) {
var typeIcon = '';
switch (item.type) {
case '<?php echo Smb_View_List_FtpUsers::USER_TYPE_HOSTING ?>':
typeIcon = '<?php echo $this->skinUrl('/icons/16/plesk/ftpsession-domain-user.png') ?>';
break;
case '<?php echo Smb_View_List_FtpUsers::USER_TYPE_WEB ?>':
typeIcon = '<?php echo $this->skinUrl('/icons/16/plesk/ftpsession-web-user.png') ?>';
break;
case '<?php echo Smb_View_List_FtpUsers::USER_TYPE_FTP ?>':
typeIcon = '<?php echo $this->skinUrl('/icons/16/plesk/ftpsession-sub-user.png') ?>';
break;
}
return '<span class="b-indent-icon">' +
'<span class="tooltipData">' + Jsw.escapeHtml(item.typeTitle) + '</span>' +
'<img width="16" height="16" title="' + Jsw.escapeAttribute(item.typeTitle) + '" src="' + typeIcon + '"/>' +
'</span>';
}
}, {
header: <?php echo $this->jsLmsg('headerName'); ?>,
sortable: true,
dataIndex: 'name',
renderer: function (item) {
return '<a href="' + Jsw.prepareUrl(item.link) + '">'
+ Jsw.escapeHtml(item.name) + '</a>';
}
}, {
header: <?php echo $this->jsLmsg('headerHome');?>,
sortable: true,
dataIndex: 'home',
renderer: function(item) {
var hint = '';
if (item.home_in_system_area) {
return '<b>' + Jsw.escapeHtml(item.home) + '</b>';
}
if (item.broken_dir) {
hint = ' <img src="<?php echo $this->skinUrl('/icons/16/plesk/att.png') ?>" alt=""> '
+ '(' + <?php echo $this->jsLmsg('brokenDir'); ?> + ')';
}
return Jsw.escapeHtml(item.home) + hint;
}
}
],
operations: [
<?php if ($this->allowCreateUser): ?>
{
componentType: 'Jsw.SmallButton',
title: <?php echo $this->jsLmsg('buttonAddUser');?>,
description: <?php echo $this->jsLmsg('buttonAddUserHint'); ?> + <?php echo $this->jsEscape(' ' . $this->resourceUsage('max_subftp_users')); ?>,
addCls: 'sb-add-user btn-primary',
href: '/ftp/create-user'
}, {
componentType: 'Jsw.bar.Separator'
},
<?php endif; ?>
{
componentType: 'Jsw.SmallButton',
id: 'buttonRemoveUser',
title: <?php echo $this->jsLmsg('buttonRemoveUser');?>,
description: <?php echo $this->jsLmsg('buttonRemoveUserHint'); ?>,
addCls: 'sb-remove-selected',
handler: function(event) {
Jsw.getComponent('ftp-users-list').execGroupOperation({
url: '/ftp/delete-users',
subtype: 'delete',
mouseEvent: event,
locale: {
confirmOnGroupOperation: <?php echo $this->jsLmsg('confirmOnDelete'); ?>
}
});
}
}],
isDisabledItem: function(item) {
return '<?php echo Smb_View_List_FtpUsers::USER_TYPE_FTP ?>' != item.type;
}
})
]
});
});
//]]>
</script>

View File

@@ -1,5 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<?php echo $this->buttons ?>
<?php echo $this->form ?>

View File

@@ -1,52 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<script type="text/javascript">
//<![CDATA[
Plesk.require('app/log-browser/browser', function ({ createLogsProblemPanel, LogBrowser }) {
new Jsw.Panel({
cls: 'list-box',
renderTo: 'main',
items: [
Jsw.createElement('div',
createLogsProblemPanel(<?php echo json_encode($this->checksResult) ?>),
),
new LogBrowser({
data: <?php echo json_encode($this->list->fetchData(), JSON_HEX_TAG) ?>,
dataUrl: '<?php echo $this->baseUrl("/log-file/browser-data/id/{$this->domId}") ?>',
logFile: <?php echo json_encode($this->list->getLogFile()) ?>,
isCustomLog: <?php echo $this->list->isCustomLog() ? 'true' : 'false' ?>,
sources: <?php echo ($logs = $this->list->getAvailableLogs()) ? json_encode($logs, JSON_FORCE_OBJECT) : '{}'; ?>,
sourcesSelected: <?php echo json_encode($this->list->getLogs()) ?>,
webspaceId: <?php echo $this->webspaceId ?>,
domainRootDir: '<?php echo $this->domRootDir ?>',
domainHomeDir: '<?php echo $this->domHome ?>',
serverDateTime: '<?php echo $this->serverDateTime ?>',
isColumnAvailable: {
'type': <?php echo $this->list->isColumnAvailable('type') ? 'true' : 'false' ?>,
'ip': <?php echo $this->list->isColumnAvailable('ip') ? 'true' : 'false' ?>,
'code': <?php echo $this->list->isColumnAvailable('code') ? 'true' : 'false' ?>,
'referer': <?php echo $this->list->isColumnAvailable('referer') ? 'true' : 'false' ?>,
'agent': <?php echo $this->list->isColumnAvailable('agent') ? 'true' : 'false' ?>,
'size': <?php echo $this->list->isColumnAvailable('size') ? 'true' : 'false' ?>
},
urls: {
iconUnknown: '<?php echo $this->skinUrl('/icons/16/plesk/log-browser-unknown.png'); ?>',
iconRobot: '<?php echo $this->skinUrl('/icons/16/plesk/log-browser-robot.png'); ?>',
iconClient: '<?php echo $this->skinUrl('/icons/16/plesk/log-browser-client.png'); ?>',
iconReferer: '<?php echo $this->skinUrl('/icons/16/plesk/log-browser-refer.png'); ?>',
manageLogs: '<?php echo $this->baseUrl("/log-file/list/id/{$this->domId}") ?>',
addCustomLog: '<?php echo $this->canManageCustomLog ? $this->baseUrl("/log-file/add-custom-log/id/{$this->domId}") : '' ?>',
unlinkCustomLog: '<?php echo $this->canManageCustomLog ? $this->baseUrl("/log-file/unlink-custom-log/id/{$this->domId}") : '' ?>',
codeEditor: '<?php echo $this->baseUrl('/file-manager/code-editor') ?>',
returnUrl: '<?php echo $this->baseUrl('/log-file/browser/id/' . $this->domId); ?>',
logRotation: '<?php echo $this->logRotation ? $this->baseUrl("/log-file/settings/id/{$this->domId}") : '' ?>',
websitesDiagnostic: '<?php echo $this->websitesDiagnostic ? '/cp/websites-diagnostic' : '' ?>',
}
})
]
});
});
//]]>
</script>

View File

@@ -1,29 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<script type="text/javascript">
//<![CDATA[
Plesk.require('app/log-browser/files', function (FilesList) {
new Jsw.Panel({
cls: 'list-box',
renderTo: 'main',
items: [
new FilesList({
webspaceId: <?php echo $this->webspaceId ?>,
data: <?php echo Zend_Json::encode($this->logFilesList->fetchData()) ?>,
dataUrl: '/log-file/list-data/id/<?php echo $this->domId ?>',
urls: {
browser: '<?php echo $this->baseUrl("/log-file/browser/id/{$this->domId}") ?>',
download: '<?php echo $this->baseUrl("/log-file/download/id/{$this->domId}") ?>',
view: '<?php echo $this->baseUrl("/log-file/view/id/{$this->domId}") ?>',
addCustom: '<?php echo $this->canManageCustomLog ? $this->baseUrl("/log-file/add-custom-log/id/{$this->domId}"): '' ?>',
unlink: '<?php echo $this->canManageCustomLog ? $this->baseUrl("/log-file/unlink-custom-log/id/{$this->domId}") : '' ?>',
logRotation: '<?php echo $this->logRotation ? $this->baseUrl("/log-file/settings/id/{$this->domId}") : '' ?>',
deleteFile: '<?php echo $this->baseUrl("/log-file/delete/id/{$this->domId}") ?>'
}
})
]
});
});
//]]>
</script>

View File

@@ -1,4 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<?php echo $this->form ?>

View File

@@ -1,33 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<div class='form-row'>
<div class='field-name'>
<?php
if ($this->isNewMail) {
$label = $this->elementPart($this->element->getElement($this->emailElementName))->label();
} else {
$label = $this->legend;
}
echo $label;
?>
</div>
<div class='field-value'>
<span>
<?php
if($this->isNewMail) {
$listName = $this->elementPart($this->element->getElement($this->emailElementName))->content();
if($this->domainName) {
$domainName = $this->domainName;
} else {
$domainName = $this->elementPart($this->element->getElement($this->domainElementName))->content();
}
echo $listName . '<b> @ ' . $domainName . '</b>';
} else {
echo '<div class="text-value"><span>' . $this->listName . '@' . $this->domainName . '</span></div>';
}
?>
</span>
<div class="field-errors" style="display: none;"></div>
</div>
</div>

View File

@@ -1,21 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<div id="<?php echo $this->element->getId();?>">
<?php echo $this->content; ?>
</div>
<script type="text/javascript">
//<![CDATA[
Jsw.onReady(function () {
new Jsw.AddRemoveDynamicSubForm({
applyTo: '<?php echo $this->element->getId();?>',
addButtonId: 'mailListSection-externalSubscribers-buttonAddSubscriber',
addButtonTitle: <?php echo $this->jsLmsg('smb.components.forms.mail-list.buttonAddSubscriber');?>,
removeButtonId: 'remove-subscriber-button-wrapper',
removeButtonTitle: <?php echo $this->jsLmsg('smb.components.forms.mail-list.buttonRemoveSubscriber');?>
});
});
document.getElementById('tab-mailListSection').classList.add('extended');
//]]>
</script>

View File

@@ -1,4 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<?php echo $this->form; ?>

View File

@@ -1,4 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<?php echo $this->form; ?>

View File

@@ -1,95 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<?php echo $this->partial('partials/tabs.phtml', array('tabs' => $this->tabs, 'renderTo' => 'main')); ?>
<script type="text/javascript">
//<![CDATA[
new Jsw.Hint({
renderTo: 'main',
hint: <?php echo $this->jsLmsg('hint'); ?>
});
new Jsw.List({
id: 'mail-lists-list',
renderTo: 'main',
data: <?php echo Zend_Json::encode($this->mailListsList->fetchData()); ?>,
dataUrl: '/mail-list/list-data<?php echo $this->domainIdParam; ?>',
searchFilters: <?php echo Zend_Json::encode($this->mailListsList->getSearchFilterConfig()); ?>,
searchOveral: 'name',
columns: [
Jsw.list.COLUMN_SELECTION,
{
header: <?php echo $this->mailListsList->jsLmsg('name');?>,
sortable: true,
cls: 'max',
dataIndex: 'name',
renderer: function(item) {
var link = '<a href="' + Jsw.prepareUrl('/mail-list/edit/id/' + item.id) + '<?php echo $this->domainIdParam; ?>">' +
Jsw.escapeHtml(item.name) + '@' + Jsw.escapeHtml(item.domainName) +
'</a>';
var status = '';
if (!item.statusEnabled) {
status = ' <span class="hint-failed">' + <?php echo $this->mailListsList->jsLmsg('statusNotEnabled'); ?> + '</span>';
} else if(!item.statusOperable) {
status = ' <span class="hint-attention">' + <?php echo $this->mailListsList->jsLmsg('statusNotOperable'); ?> + '</span>';
}
return link + status;
}
}, {
header: <?php echo $this->mailListsList->jsLmsg('subscribers');?>,
cls: 'minor text-right',
headerCls: 't-r',
renderer: function(item) {
return item.subscribersCount;
}
}<?php if ($this->mailListsWebPanelUrlTemplate): ?>, {
header: '',
renderer: function(item) {
if (!item.statusEnabled || !item.statusOperable) {
return '';
}
var urlTemplate = <?php echo $this->jsEscape($this->mailListsWebPanelUrlTemplate) ?>;
var url = urlTemplate
.replaceAll('%%domainName%%', item.domainName)
.replaceAll('%%name%%', item.name);
return '<a class="s-btn sb-manage-mail-list" href="' + url + '" target="_blank"><i><i><i><span>' +
<?php echo $this->mailListsList->jsLmsg('openWebPanel') ?> +
'</span></i></i></i></a>';
}
}<?php endif; ?>
],
operations: [
<?php if ($this->allowCreateMailList): ?>
{
componentType: 'Jsw.SmallButton',
title: <?php echo $this->jsLmsg('buttonAddNewMailList');?>,
description: <?php echo $this->jsLmsg('hintAddNewMailList'); ?> + <?php echo $this->jsEscape(' ' . $this->resourceUsage('max_maillists')); ?>,
addCls: 'sb-add-mail-list',
href: '/mail-list/create<?php echo $this->domainIdParam; ?>'
}, {
componentType: 'Jsw.bar.Separator'
},
<?php endif; ?>
{
componentType: 'Jsw.SmallButton',
title: <?php echo $this->mailListsList->jsLmsg('remove');?>,
description: <?php echo $this->mailListsList->jsLmsg('hintRemove'); ?>,
addCls: 'sb-remove-selected',
handler: function(event) {
Jsw.getComponent('mail-lists-list').execGroupOperation({
url: '/mail-list/delete<?php echo $this->domainIdParam; ?>',
subtype: 'delete',
mouseEvent: event,
locale: {
confirmOnGroupOperation: <?php echo $this->mailListsList->jsLmsg('confirmOnDelete'); ?>
}
});
}
}
]
});
//]]>
</script>

View File

@@ -1,5 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<?php echo $this->tabs ? $this->partial('partials/tabs.phtml', ['tabs' => $this->tabs, 'renderTo' => 'main', 'renderMode' => 'top']) : ''; ?>
<?php echo $this->form ?>

View File

@@ -1,12 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<?php echo $this->partial('partials/tabs.phtml', array('tabs' => $this->tabs, 'renderTo' => 'main')); ?>
<script type="text/javascript">
//<![CDATA[
new Jsw.Hint({
renderTo: 'main',
hint: <?php echo $this->jsLmsg('description', ['link' => $this->outgoingMailControlLink]); ?>
});
//]]>
</script>

View File

@@ -1,5 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<?php echo $this->partial('outgoing-mail/_warning-messages.phtml', null, $this); ?>
<?php echo $this->form ?>

View File

@@ -1,5 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<?php echo $this->form; ?>
<?= $this->plesk()->showNewsletterSubscription(); ?>

View File

@@ -1,59 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<li class="<?php echo $this->additionalRowClass; ?>">
<div id="as-package-<?php echo $this->id; ?>" class="package-block">
<div class="package-icon">
<a href="#" onclick='<?php echo $this->detailsOnClick; ?>'><?php echo $this->packageIcon;?></a>
</div>
<div class="package-actions">
<?php if ($this->buyNowButtonAvailable): ?>
<?php echo $this->partial('partials/button.phtml', [
'id' => 'as-buy-' . $this->id,
'title' => $this->lmsg('smb.components.forms.aps.catalog.buttonBuy'),
'description' => $this->lmsg('smb.components.forms.aps.catalog.buttonBuyTooltip'),
'onclick' => 'Smb.ApsLicense.buy("' . Plesk_Base_Utils_String::safeForJs($this->purchaseCommandAction) . '"); return false;',
]); ?>
<br>
<?php endif; ?>
<?php if ($this->showInstallButton): ?>
<?php
if ($this->hideQuickInstall) {
echo $this->partial('partials/button.phtml', [
'id' => 'ad-advanced-install-' . $this->id,
'title' => $this->lmsg('smb.components.forms.aps.catalog.buttonInstall'),
'description' => $this->lmsg('smb.components.forms.aps.catalog.buttonAdvancedInstallTooltip'),
'onclick' => $this->advancedInstallOnClick,
]);
} else {
echo $this->partial('partials/split-button.phtml', [
'id' => 'as-install-' . $this->id,
'renderTo' => new Zend_Json_Expr('document.querySelector("#as-package-' . $this->id . ' .package-actions")'),
'title' => $this->lmsg('smb.components.forms.aps.catalog.buttonInstall'),
'description' => $this->lmsg('smb.components.forms.aps.catalog.buttonInstallTooltip'),
'onclick' => $this->installOnClick,
'items' => [[
'id' => 'as-advanced-install-' . $this->id,
'title' => $this->lmsg('smb.components.forms.aps.catalog.buttonAdvancedInstall'),
'descriptions' => $this->lmsg('smb.components.forms.aps.catalog.buttonAdvancedInstallTooltip'),
'onclick' => $this->advancedInstallOnClick,
], [
'id' => 'as-install-old-version-' . $this->id,
'title' => $this->lmsg('smb.components.forms.aps.catalog.buttonInstallOldVersion'),
'descriptions' => $this->lmsg('smb.components.forms.aps.catalog.buttonInstallOldVersionTooltip'),
'submenu' => new Zend_Json_Expr('function(submenu) {apsCatalog.showAppVersions(' . $this->appData . ', submenu);}'),
]],
'isMenuFlip' => true,
]);
} ?>
<?php endif; ?>
<?php if ($this->downloadUrl): ?>
<button class="btn" value="" type="submit" onclick="Jsw.redirect('<?php echo $this->downloadUrl; ?>'); return false;">
<span><?php echo $this->lmsg('smb.components.forms.aps.catalog.buttonDownload'); ?></span>
</button><br/>
<?php endif; ?>
</div>
<h4><a href="#" onclick='<?php echo $this->detailsOnClick; ?>'><?php echo $this->name; ?> <span>v<?php echo $this->version; ?></span></a></h4>
<div class="package-description"><?php echo $this->summary; ?></div>
</div>
</li>

View File

@@ -1,13 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<li class="ac-<?php echo $this->categoryGroupClass; ?>">
<div class="aps-category-block">
<h4><a href="#" onclick='apsCatalog.showCategory("<?php echo $this->categoryGroupName; ?>");'><?php echo $this->categoryGroupTitle; ?></a>
<?php if (false !== $this->categoryGroupCount): ?> <span>(<?php echo $this->categoryGroupCount; ?>)</span> <?php endif; ?>
</h4>
<div class="aps-category-items">
<?php echo $this->subcontent; ?>
</div>
</div>
</li>

View File

@@ -1,25 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<a href="#" onclick="apsCatalog.returnToHome()"><?php echo $this->lmsg('smb.components.forms.aps.catalog.gotoHome'); ?></a>
<b>&gt;</b>
<a href="#" onclick='apsCatalog.showCategory("<?php echo $this->categoryGroupName; ?>");'><?php echo $this->categoryGroupTitle; ?></a>
<b>&gt;</b>
<select id='navigation-category'>
<option value="<?php echo $this->categoryGroupName; ?>"><?php echo $this->lmsg('smb.components.forms.aps.catalog.all'); ?></option>
<option value="">--------</option>
<?php foreach($this->groupCategories as $category => $categoryData) { ?>
<option value="<?php echo $this->escape($category);?>" <?php echo ($categoryData['selected'] ? 'selected' : ''); ?>><?php echo $categoryData['display']; ?></option>
<?php } ?>
</select>
<script type="text/javascript">
//<![CDATA[
document.getElementById('navigation-category').addEventListener('change', function (event) {
var category = event.target.value;
if (category) {
apsCatalog.showCategory(category);
}
});
//]]>
</script>

View File

@@ -1,7 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<a href="#" onclick='apsCatalog.showCategory("<?php echo $this->categoryName; ?>");' >
<?php echo $this->categoryTitle; ?>
</a>
<?php if (false !== $this->categoryGroupCount): ?> <span>(<?php echo $this->categoryGroupCount; ?>)</span> <?php endif; ?>

View File

@@ -1,56 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<li class="<?php echo $this->additionalRowClass; ?>">
<div id="mas-package-<?php echo $this->id; ?>" class="package-block">
<div class="package-content clearfix">
<div class="package-icon">
<a href="#" onclick='<?php echo $this->detailsOnClick; ?>'><?php echo $this->packageIcon;?></a>
</div>
<div class="package-info">
<h4><a href="#" onclick='<?php echo $this->detailsOnClick; ?>'><?php echo $this->name; ?></a></h4>
<div class="package-description"><?php echo $this->summary; ?></div>
</div>
</div>
<div class="package-actions">
<?php if ($this->buyNowButtonAvailable): ?>
<?php echo $this->partial('partials/button.phtml', [
'id' => 'mas-buy-' . $this->id,
'title' => $this->lmsg('smb.components.forms.aps.catalog.buttonBuy'),
'description' => $this->lmsg('smb.components.forms.aps.catalog.buttonBuyTooltip'),
'onclick' => 'Smb.ApsLicense.buy("' . Plesk_Base_Utils_String::safeForJs($this->purchaseCommandAction) . '"); return false;',
]); ?>
<?php elseif ($this->showInstallButton): ?>
<?php
if ($this->hideQuickInstall) {
echo $this->partial('partials/button.phtml', [
'id' => 'ad-advanced-install-' . $this->id,
'title' => $this->lmsg('smb.components.forms.aps.catalog.buttonInstall'),
'description' => $this->lmsg('smb.components.forms.aps.catalog.buttonAdvancedInstallTooltip'),
'onclick' => $this->advancedInstallOnClick,
]);
} else {
echo $this->partial('partials/split-button.phtml', [
'id' => 'mas-install-' . $this->id,
'renderTo' => new Zend_Json_Expr('document.querySelector("#mas-package-' . $this->id . ' .package-actions")'),
'title' => $this->lmsg('smb.components.forms.aps.catalog.buttonInstall'),
'description' => $this->lmsg('smb.components.forms.aps.catalog.buttonInstallTooltip'),
'onclick' => $this->installOnClick,
'items' => [[
'id' => 'mas-advanced-install-' . $this->id,
'title' => $this->lmsg('smb.components.forms.aps.catalog.buttonAdvancedInstall'),
'description' => $this->lmsg('smb.components.forms.aps.catalog.buttonAdvancedInstallTooltip'),
'onclick' => $this->advancedInstallOnClick,
], [
'id' => 'mas-install-old-version-' . $this->id,
'title' => $this->lmsg('smb.components.forms.aps.catalog.buttonInstallOldVersion'),
'description' => $this->lmsg('smb.components.forms.aps.catalog.buttonInstallOldVersionTooltip'),
'submenu' => new Zend_Json_Expr('function(submenu) {apsCatalog.showAppVersions(' . $this->appData . ', submenu);}'),
]],
'isMenuFlip' => $this->evenItem,
]);
} ?>
<?php endif; ?>
</div>
</div>
</li>

View File

@@ -1,23 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<div id='<?php echo $this->element->getId(); ?>-form-row' class='form-row'>
<label class='field-name' for='<?php echo $this->element->getId(); ?>'>
<?php echo $this->element->getLabel(); ?>
<?= $this->requiredMark($this->element->isRequired()) ?>
</label>
<div class='field-value'>
<span>
<?php
echo $this->elementPart($this->element)->content() . '&nbsp;.';
if ($this->zoneName) {
echo $this->escape($this->zoneName) . '.';
}
?>
</span>
<span class="field-errors" style="display: none;"></span>
<?php if ($this->element->getDescription()): ?>
<span class="hint"><?php echo $this->element->getDescription(); ?></span>
<?php endif; ?>
</div>
</div>

View File

@@ -1,52 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<?php
$selectElement = $this->element->getElement($this->select);
$customElement = $this->element->getElement($this->custom);
?>
<div id='<?php echo $selectElement->getId(); ?>-form-row' class='form-row'>
<label class='field-name' for='<?php echo $this->element->getId(); ?>'>
<?php echo $selectElement->getLabel(); ?>
<?= $this->requiredMark($selectElement->isRequired()) ?>
</label>
<div class='field-value'>
<span>
<?php
echo $this->elementPart($selectElement)->content() . '&nbsp;' .
$this->elementPart($customElement)->content();
?>
</span>
<span class="field-errors" style="display: none;"></span>
<?php if ($selectElement->getDescription()): ?>
<span class="hint"><?php echo $selectElement->getDescription(); ?></span>
<?php endif; ?>
<?php if ($customElement->getDescription()): ?>
<span id='<?php echo $customElement->getId(); ?>-hint' class="hint" style="display: none;"><?php echo $customElement->getDescription(); ?></span>
<?php endif; ?>
</div>
</div>
<script type="text/javascript">
//<![CDATA[
Jsw.onReady(function () {
var updateState = function () {
var customId = '<?php echo $customElement->getId(); ?>';
if ($F('<?php echo $selectElement->getId(); ?>') === 'custom') {
document.getElementById(customId).disabled = false;
} else {
document.getElementById(customId).disabled = true;
}
if ($F('<?php echo $selectElement->getId(); ?>') === document.getElementById('<?php echo $selectElement->getId(); ?>').querySelector('[selected]').value) {
document.getElementById(customId + '-hint').style.display = 'none';
} else {
document.getElementById(customId + '-hint').style.display = '';
}
}
updateState();
document.getElementById('<?php echo $selectElement->getId(); ?>').addEventListener('change', updateState);
});
//]]>
</script>

View File

@@ -1,24 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<?php
$ipElement = $this->element->getElement($this->ipElementName);
?>
<div id='<?php echo $ipElement->getId(); ?>-form-row' class='form-row'>
<label class='field-name' for='<?php echo $this->element->getId(); ?>'>
<?php echo $ipElement->getLabel(); ?>
<?= $this->requiredMark($ipElement->isRequired()) ?>
</label>
<div class='field-value'>
<span>
<?php
echo $this->elementPart($ipElement)->content() . '&nbsp;/&nbsp;' .
$this->elementPart($this->element->getElement($this->maskElementName))->content();
?>
</span>
<span class="field-errors" style="display: none;"></span>
<?php if ($ipElement->getDescription()): ?>
<span class="hint"><?php echo $ipElement->getDescription(); ?></span>
<?php endif; ?>
</div>
</div>

View File

@@ -1,34 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<div id='<?php echo $this->element->getId(); ?>-form-row' class='form-row'>
<label class='field-name' for='<?php echo $this->element->getId(); ?>'>
<?php echo $this->element->getLabel(); ?>
<?= $this->requiredMark($this->element->isRequired()) ?>
</label>
<div class='field-value'>
<span>
<?php echo $this->elementPart($this->element)->content(); ?>
</span>
<span class="field-errors" style="display: none;"></span>
<?php if ($this->element->getDescription()): ?>
<span class="hint"><?php echo $this->element->getDescription(); ?></span>
<?php endif; ?>
</div>
</div>
<script type="text/javascript">
//<![CDATA[
Jsw.onReady(function () {
var updateState = function () {
var elementToShow = 'typesForms-' + $F('<?php echo $this->element->getId(); ?>') + 'Type';
document.getElementById('typesForms-content-area').querySelectorAll('div.form-box').forEach(function (element) {
element.style.display = 'none';
});
document.getElementById(elementToShow).style.display = '';
}
updateState();
document.getElementById('<?php echo $this->element->getId(); ?>').addEventListener('change', updateState);
});
//]]>
</script>

View File

@@ -1,8 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<div class="login-info">
<h3><?php echo $this->descriptionHeader;?></h3>
<?php echo $this->descriptionContent;?>
</div>

View File

@@ -1,46 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<?php if (!$this->doNotRenderRow):?>
<div class="form-row">
<?php endif?>
<?php
$title = $this->element->getAttrib('title');
if($title) {
?>
<div class="field-name">
<?php echo $title; ?>
</div>
<?php
}
?>
<?php if (!$this->doNotRenderRow):?>
<div class="field-value">
<?php endif?>
<div class="choice-block">
<?php foreach ($this->element->getMultiOptions() as $optionName => $optionTitle):?>
<?php $value = $this->element->getValue(); ?>
<span
<?php echo ($optionName == $this->element->getValue())
? ('class="selected' . (('0' == $optionName) ? ' no' : '') . '"')
: '';
?>
>
<label>
<input type="radio" class="radio"
value="<?php echo $optionName; ?>"
id="<?php echo $this->element->getId() . "-$optionName"; ?>"
name="<?php echo $this->element->getBelongsTo() . '[' . $this->element->getName() . ']'; ?>"
<?php echo ($optionName == $this->element->getValue()) ? 'checked="checked"' : ''; ?>
/>
<?php echo $optionTitle; ?>
</label>
</span>
<?php endforeach;?>
<?php if (!$this->doNotRenderRow):?>
</div>
<?php endif?>
</div>
<?php if (!$this->doNotRenderRow):?>
</div>
<?php endif?>

View File

@@ -1,4 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<?php echo $this->render('index/custom-button.phtml'); ?>

View File

@@ -1,4 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<?php echo $this->partial('partials/post_redirect.phtml', array('formVariables' => $this->formVariables, 'url' => $this->url));?>

View File

@@ -1,17 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<script type="text/javascript">
window.addEventListener('load', function () {
document.getElementById('serviceRedirect').submit();
});
</script>
<form id="serviceRedirect" action="<?php echo $this->url ?>" method="POST">
<?php foreach($this->formVariables as $name => $value) {
echo "<input type='hidden' name='".$this->escape($name)."' value='".$this->escape($value)."' />";
}
?>
<input type="submit" value="Continue"/>
</form>

View File

@@ -1,29 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
$elements = $this->element->getElements();
$multiple = count($elements) > 1;
?>
<div class="form-row<?php echo $multiple ? ' group-row' : ''?>">
<div class="field-name">
<?php echo $this->escape($this->serviceName); ?>
</div>
<div class="field-value">
<div class="text-value">
<p><?php if ($this->serviceUrl): ?>
<?php echo $this->lmsg('smb.components.forms.role.installedAt'); ?>
<a href="<?php echo $this->escape($this->serviceUrl); ?>" target="_blank"><?php echo $this->escape($this->serviceUrl); ?></a>
<?php else: ?>
<?php echo $this->lmsg('smb.components.forms.role.noInstallationUrlAvailable'); ?>
<?php endif ?>
</p>
</div>
<?php
foreach ($elements as $element) {
if (!$multiple) {
$element->setAttrib('title', false);
}
echo $element->render();
}
?>
</div>
</div>

View File

@@ -1,4 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<?php echo $this->form ?>

View File

@@ -1,4 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<?php echo $this->form ?>

View File

@@ -1,75 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<?php echo $this->partial('partials/tabs.phtml', array('tabs' => $this->tabs, 'renderTo' => 'main')); ?>
<script type="text/javascript">
//<![CDATA[
new Jsw.Hint({
renderTo: 'main',
hint: <?php echo $this->jsLmsg('hint'); ?>,
expandable: true
});
new Jsw.Panel({
cls: 'list-box',
renderTo: 'main',
items: [
new Jsw.List({
id: 'roles-list',
data: <?php echo Zend_Json::encode($this->rolesList->fetchData()); ?>,
dataUrl: '/role/list-data',
disabledSelectHint: <?php echo $this->rolesList->jsLmsg('disabledSelectHint');?>,
columns: [
Jsw.list.COLUMN_SELECTION,
{
header: <?php echo $this->rolesList->jsLmsg('name'); ?>,
sortable: true,
dataIndex: 'name',
renderer: function(item) {
return '<a href="' + Jsw.prepareUrl('/role/edit/id/' + item.id) + '">' + Jsw.escapeHtml(item.name) + '</a>';
}
}, {
header: <?php echo $this->rolesList->jsLmsg('numberOfUsers'); ?>,
sortable: true,
cls: 'minor text-right',
headerCls: 't-r',
dataIndex: 'usersOnRole',
renderer: function(item) {
return '<a href="' + Jsw.prepareUrl('/user/list?force-show-search=true&searchFilter[role][searchText]='
+ item.id) + '">' + item.usersOnRole + '</a>';
}
}
],
operations: [{
componentType: 'Jsw.SmallButton',
title: <?php echo $this->jsLmsg('buttonAddNewRole'); ?>,
description: <?php echo $this->jsLmsg('hintAddNewRole'); ?>,
addCls: 'sb-add-role btn-primary',
href: '/role/create'
}, {
componentType: 'Jsw.bar.Separator'
}, {
componentType: 'Jsw.SmallButton',
title: <?php echo $this->rolesList->jsLmsg('remove'); ?>,
description: <?php echo $this->rolesList->jsLmsg('hintRemove'); ?>,
addCls: 'sb-remove-selected',
handler: function(event) {
Jsw.getComponent('roles-list').execGroupOperation({
url: '/role/delete',
subtype: 'delete',
mouseEvent: event,
locale: {
confirmOnGroupOperation: <?php echo $this->rolesList->jsLmsg('confirmOnDelete'); ?>
}
});
}
}],
isDisabledItem: function(item) {
return ((1 == item.isBuiltIn) || (item.usersOnRole > 0));
}
})
]
});
//]]>
</script>

View File

@@ -1,17 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<script type="text/javascript">
window.addEventListener('load', function () {
document.getElementById('serviceRedirect').submit();
});
</script>
<form id="serviceRedirect" action="<?php echo $this->url ?>" method="POST">
<?php foreach($this->formVariables as $name => $value) {
echo '<input type="hidden" name="' . $this->escape($name) .'" value="' . $this->escape($value). '" />';
}
?>
<input type="submit" value="Continue"/>
</form>

View File

@@ -1,4 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<?php echo $this->form ?>

View File

@@ -1,4 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<?php echo $this->form ?>

View File

@@ -1,295 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<form id="serviceRemovalForm" action="<?php echo $this->baseUrl('/service/delete' . $this->domainIdParam);?>" method="POST">
<input type="hidden" id="ids" name="ids[]" value="" />
<input type="hidden" id="service_removal_forgery_protection_token" name="forgery_protection_token" value="" />
</form>
<script type="text/javascript">
//<![CDATA[
Jsw.namespace('Smb.Views.Apps');
Smb.Views.Apps.startUpdate = function(packageId) {
Jsw.redirectPost(
'/app-update/update' +
'/resourceId/' + '<?php echo $this->service['resourceId'] . $this->domainIdParam ?>' +
(packageId ? '/packageId/' + packageId : '')
);
};
Smb.Views.Apps.removeService = function (resourceId, rootService) {
Jsw.messageBox.show({
type: Jsw.messageBox.TYPE_YESNO,
subtype: Jsw.messageBox.SUBTYPE_DELETE,
text: rootService
? <?php echo $this->jsLmsg('buttonUninstallApplicationConfirmationTitle')?>
: <?php echo $this->jsLmsg('buttonUninstallServiceConfirmationTitle')?>,
onYesClick: function () {
var form = document.getElementById('serviceRemovalForm');
form.querySelector('#service_removal_forgery_protection_token').value = document.getElementById('forgery_protection_token').content;
form.querySelector('#ids').value = resourceId;
form.submit();
},
});
};
Jsw.onReady(function() {
var getToolsPanel = function() {
var tools = [
<?php if ($this->service['rootService']): ?>
{
componentType: 'Jsw.SmallButton',
title: <?php echo $this->jsLmsg('buttonDetailedApplicationInfo') ?>,
addCls: 'sb-app-info',
href: '/service/info/resourceId/' + '<?php echo $this->service['resourceId']; ?>' + '<?php echo $this->domainIdParam?>'
},
<?php endif; ?>
{
componentType: 'Jsw.SmallButton',
title: <?php echo $this->jsLmsg('buttonChangeSettings') ?>,
addCls: 'sb-app-configure',
href: '/service/configure/resourceId/' + '<?php echo $this->service['resourceId']; ?>' + '<?php echo $this->domainIdParam?>'
},
{
componentType: 'Jsw.SmallButton',
title: <?php echo $this->jsLmsg('buttonUninstallApplication') ?>,
addCls: 'sb-app-delete',
handler: function(event) {
Smb.Views.Apps.removeService(
<?php echo $this->jsEscape($this->service['resourceId']); ?>,
<?php echo ($this->service['rootService'] ? 'true' : 'false') ?>
);
}
}
];
return tools;
};
var firstColumnItems = (function() {
var firstColumnItems = [];
<?php if ($this->generalInfo): ?>
var sectionGeneralFields = [];
<?php if (array_key_exists('installationUrl', $this->generalInfo)): ?>
sectionGeneralFields.push({
componentType: 'Jsw.form.DisplayField',
fieldLabel: <?php echo $this->jsLmsg('installedAt'); ?>,
value: <?php echo $this->jsEscape($this->generalInfo['installationUrl']); ?>
});
<?php endif; ?>
<?php if (array_key_exists('users', $this->generalInfo) && 0 < count($this->generalInfo['users'])): ?>
<?php if (1 === count($this->generalInfo['users'])): ?>
<?php $currentUser = current($this->generalInfo['users']); ?>
sectionGeneralFields.push({
componentType: 'Jsw.form.DisplayField',
fieldLabel: <?php echo $this->jsLmsg('userName'); ?>,
value: '<a href="' + Jsw.prepareUrl('/user/edit/id/' + <?php echo $this->jsEscape($currentUser->id); ?>)
+ '">'
+ <?php echo $this->jsEscape($currentUser->contactName); ?>
+ '</a>'
});
<?php else: ?>
sectionGeneralFields.push({
componentType: 'Jsw.form.DisplayField',
fieldLabel: <?php echo $this->jsLmsg('users'); ?>,
value: <?php echo $this->jsEscape(count($this->generalInfo['users'])); ?>
});
<?php endif; ?>
<?php endif; ?>
<?php if (array_key_exists('forceUpdates', $this->generalInfo)): ?>
sectionGeneralFields.push({
componentType: 'Jsw.form.DisplayField',
fieldLabel: <?php echo $this->jsLmsg('forceUpdates'); ?>,
value: '<img src="<?php echo $this->skinUrl('/icons/16/plesk/' . ($this->generalInfo['forceUpdates'] ? 'on.png' : 'subscription-status-suspended.png')) ?>"> '
+ <?php echo ($this->generalInfo['forceUpdates']) ? $this->jsLmsg('forceUpdatesOn') : $this->jsLmsg('forceUpdatesOff'); ?>
<?php if ($this->automaticUpdatesSettingChangeable): ?>
+ ' <a data-method="post" href="' + Jsw.prepareUrl('/service/updates'
+ <?php if ($this->generalInfo['forceUpdates']): ?> '/enable/0' <?php else: ?> '/enable/1' <?php endif; ?>
+ '/resourceId/' + <?php echo $this->jsEscape($this->service['resourceId']); ?>
+ <?php echo $this->jsEscape($this->domainIdParam); ?>)
+ '">' + <?php echo ($this->generalInfo['forceUpdates'])
? $this->jsLmsg('stopAutomaticUpdates') : $this->jsLmsg('allowAutomaticUpdates') ?>
+ '</a>'
<?php endif; ?>
});
<?php endif; ?>
firstColumnItems.push({
componentType: 'Jsw.Panel',
'title': <?php echo $this->jsLmsg('generalSectionTitle') ?>,
cls: 'form-box',
items: sectionGeneralFields
});
<?php endif; ?>
<?php if ($this->settingsInfo): ?>
var sectionSettingsFields = [];
<?php foreach ($this->settingsInfo as $setting): ?>
sectionSettingsFields.push({
componentType: 'Jsw.form.DisplayField',
fieldLabel: <?php echo $this->jsEscape($setting['label']); ?>,
value:
<?php if (is_array($setting['value'])): ?>
<?php
$value = '';
foreach ($setting['value'] as $val) {
if ('' !== $value) {
$value .= '<br>';
}
$value .= Plesk_Base_Utils_String::safeForJs($this->escape($val));
}
?>
'<?php echo $value; ?>'
<?php elseif ($setting['bool']): ?>
<?php echo $this->jsHtml($this->switchState('true' == $setting['value'])); ?>
<?php elseif (isset($setting['password']) && $setting['password']): ?>
'<span id="applicationAdminPasswordText__<?php echo $setting['id'] ?>" style="display:none;">' + <?php echo $this->jsEscape($setting['value']); ?> + '</span>'
+ ' <a href="#" id="applicationAdminPasswordToggle__<?php echo $setting['id'] ?>" class="toggler application-password-toggle">'
+ <?php echo $this->jsLmsg('showPassword') ?>
+ '</a>'
<?php else: ?>
<?php echo $this->jsEscape($setting['value']); ?>
<?php endif; ?>
});
<?php endforeach; ?>
firstColumnItems.push({
componentType: 'Jsw.Panel',
'title': <?php echo $this->jsLmsg('settingsSectionTitle') ?>,
cls: 'form-box',
items: sectionSettingsFields
});
<?php endif; ?>
return firstColumnItems;
}());
var secondColumnItems = (function() {
var secondColumnItems = [];
<?php if ($this->servicesInfo): ?>
var sectionServices = [];
<?php foreach ($this->servicesInfo as $service): ?>
<?php if ($service['singular']): ?>
sectionServices.push({
componentType: 'Jsw.Hint',
hint:
'<div class="form-row"><div class="field-name">' +
<?php echo $this->jsEscape($service['name']); ?> +
'</div><div class="field-value">' +
<?php echo $this->jsHtml($this->accessState(0 < $service['count'])); ?>
<?php if (0 < $service['count']): ?>
<?php if ($service['configurable']): ?>
+ ' <a href="' + Jsw.prepareUrl('/service/configure/resourceId/'
+ <?php echo $this->jsEscape($service['resourceId']); ?>)
+ '">[' + <?php echo $this->jsLmsg('serviceConfigure') ?> + ']</a>'
<?php endif; ?>
+ ' <a href="#" onClick="Smb.Views.Apps.removeService(\''
+ <?php echo $this->jsEscape($service['resourceId']); ?> + '\', false)">'
+ '[' + <?php echo $this->jsLmsg('serviceUninstall') ?> + ']</a>'
<?php else: ?>
+ ' <a href="' + Jsw.prepareUrl('/service/install/resourceId/'
+ <?php echo $this->jsEscape($this->service['resourceId']); ?> + '/metaId/'
+ <?php echo $this->jsEscape($service['metaId']); ?>)
+ '">[' + <?php echo $this->jsLmsg('serviceInstall') ?> + ']</a>'
<?php endif; ?>
+ '</div></div>'
});
<?php endif; ?>
<?php endforeach; ?>
if (sectionServices.length) {
secondColumnItems.push({
componentType: 'Jsw.Panel',
'title': <?php echo $this->jsLmsg('servicesSectionTitle') ?>,
cls: 'form-box',
items: sectionServices
});
}
<?php endif; ?>
<?php foreach ($this->entryPoints as $entryPoint): ?>
var sectionEntryPointUrls = [];
<?php foreach ($entryPoint['urls'] as $url): ?>
sectionEntryPointUrls.push({
componentType: 'Jsw.Hint',
hint: '<a href="' + Jsw.prepareUrl(<?php echo $this->jsEscape($url['href']); ?>) + '" target="_blank">'
+ <?php echo $this->jsEscape($url['description']); ?>
+ '</a>'
});
<?php endforeach; ?>
<?php if (0 == count($entryPoint['urls'])): ?>
sectionEntryPointUrls.push({
componentType: 'Jsw.Hint',
hint: <?php echo $this->jsLmsg('noEntryPointsHint'); ?>
});
<?php endif; ?>
secondColumnItems.push({
componentType: 'Jsw.Panel',
'title': <?php echo $this->jsEscape($entryPoint['label']) ?>,
cls: 'form-box',
items: sectionEntryPointUrls
});
<?php endforeach; ?>
return secondColumnItems;
}());
new Jsw.Container({
renderTo: 'main',
items: [
new Jsw.Hint({
hint: <?php echo $this->jsEscape($this->pageHint); ?>
}),
new Jsw.SmallTools({
operations: getToolsPanel()
}),
new Jsw.layout.TwoColumns({
items: [
new Jsw.Container({
items: firstColumnItems
}),
new Jsw.Container({
items: secondColumnItems
})
]
})
<?php foreach ($this->servicesInfo as $service):
if ($service['singular']) {
continue;
}
$getSubserviceInstancesList = $this->getSubserviceInstancesList;
echo ', ' . $this->partial('service/index/subservice.phtml', array(
'subserviceInstancesList' => $getSubserviceInstancesList($this->service['resourceId'], $service['metaId']),
'registryResourceId' => $this->service['resourceId'],
'apsMetaId' => $service['metaId'],
'serviceName' => $service['name'],
));
endforeach; ?>
]
});
document.querySelectorAll('.application-password-toggle').forEach(function (element) {
// use POST method for links with data-method="post"
element.addEventListener('click', function (event) {
event.stopPropagation();
event.preventDefault();
var elementId = event.target.id.split("__");
var txtElement = document.getElementById('applicationAdminPasswordText__' + elementId[1]);
if (txtElement.style.display !== 'none') {
txtElement.style.display = 'none';
event.target.innerHTML = <?php echo $this->jsLmsg('showPassword') ?>;
} else {
txtElement.style.display = ''
event.target.innerHTML = <?php echo $this->jsLmsg('hidePassword') ?>;
}
});
});
});
//]]>
</script>

View File

@@ -1,8 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<div class="form-row">
<div class="single-row">
<?php echo $this->escape($this->summary); ?>
</div>
</div>

View File

@@ -1,32 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
$cuctomizeSubForm = $this->element;
$customizeElements = $cuctomizeSubForm->getElements();
$customizeElementId = $cuctomizeSubForm->getElementsBelongTo();
if (strstr($customizeElementId, ']')) {
$customizeElementId = trim($customizeElementId, ']');
$customizeElementId = str_replace('][', '-', $customizeElementId);
$customizeElementId = str_replace('[', '-', $customizeElementId);
}
?>
<div id="<?php echo $customizeElementId; ?>">
<div id="<?php echo $customizeElementId; ?>-content-area" class="aps-customize-content">
<?php
foreach ($customizeElements as $element) {
echo $element->render();
}
?>
</div>
</div>
<script type="text/javascript">
//<![CDATA[
Jsw.onReady(function() {
new Jsw.CollapsibleBlock({
applyTo: '<?php echo Plesk_Base_Utils_String::safeForJs($customizeElementId); ?>',
title: '<?php echo Plesk_Base_Utils_String::safeForJs($cuctomizeSubForm->getLegend()); ?>',
cls: 'aps-customize'
});
});
////]]>
</script>

View File

@@ -1,81 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<?php $additionalColumns = $this->subserviceInstancesList->getAdditionalColumns(); ?>
new Jsw.Panel({
cls: 'list-box',
title: <?php echo $this->jsLmsg('subserviceTitle', array('service' => $this->serviceName)); ?>,
items: [
new Jsw.Hint({
hint: <?php echo $this->jsLmsg('subserviceHint'); ?>
}),
new Jsw.List({
id: 'subservice-instances-list-<?php echo $this->apsMetaId; ?>',
searchOveral: 'id',
data: <?php echo Zend_Json::encode($this->subserviceInstancesList->fetchData()); ?>,
dataUrl: '/subservice/instances-list-data/resourceId/<?php echo $this->registryResourceId; ?>/metaId/<?php echo $this->apsMetaId; ?>',
columns: [
Jsw.list.COLUMN_SELECTION,
{
header: <?php echo $this->subserviceInstancesList->jsLmsg('serviceName');?>,
renderer: function(item) {
return '<a href="' + Jsw.prepareUrl('/service/index/resourceId/' + item.registryResourceId) + '">'
+ <?php echo $this->jsEscape($this->serviceName); ?> + '</a>';
}
} <?php if (!isset($additionalColumns['_email'])): ?>, {
header: <?php echo $this->subserviceInstancesList->jsLmsg('userName');?>,
cls: 'minor',
sortable: true,
dataIndex: 'userName',
renderer: function(item, isDisabled) {
if (item.userId) {
return '<a href="' + Jsw.prepareUrl('/user/edit/id/' + item.userId) + '">'
+ Jsw.escapeHtml(item.userName) + '</a>';
} else {
return '';
}
}
} <?php endif; ?> <?php foreach ($additionalColumns as $column): ?>, {
header: <?php echo $this->jsEscape($column) ?>,
dataIndex: <?php echo $this->jsEscape($column) ?>
} <?php endforeach; ?>
],
operations: [
{
componentType: 'Jsw.SmallButton',
title: <?php echo $this->jsLmsg('buttonAddNewSubserviceInstance', array('name' => $this->serviceName));?>,
description: <?php echo $this->jsLmsg('hintAddNewSubserviceInstance', array('name' => $this->serviceName)); ?>,
addCls: 'sb-add-subservice-instance',
href: '/service/install/resourceId/<?php echo $this->registryResourceId; ?>/metaId/<?php echo $this->apsMetaId; ?>'
}, {
componentType: 'Jsw.bar.Separator'
}, {
componentType: 'Jsw.SmallButton',
title: <?php echo $this->jsLmsg('buttonCustomizeColumns');?>,
description: <?php echo $this->jsLmsg('hintCustomizeColumns'); ?>,
addCls: 'sb-customize-columns',
href: '/subservice/customize-list-columns/resourceId/<?php echo $this->registryResourceId; ?>/metaId/<?php echo $this->apsMetaId; ?>'
}, {
componentType: 'Jsw.bar.Separator'
}, {
componentType: 'Jsw.SmallButton',
id: 'buttonRemoveSubserviceInstance',
title: <?php echo $this->subserviceInstancesList->jsLmsg('remove');?>,
description: <?php echo $this->subserviceInstancesList->jsLmsg('hintRemove'); ?>,
addCls: 'sb-remove-selected',
handler: function(event) {
Jsw.getComponent('subservice-instances-list-<?php echo $this->apsMetaId; ?>').execGroupOperation({
url: '/subservice/delete-instance',
subtype: 'delete',
mouseEvent: event,
locale: {
confirmOnGroupOperation: <?php echo $this->subserviceInstancesList->jsLmsg('confirmOnDelete'); ?>
}
});
}
}
]
})
]
})

View File

@@ -1,11 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<div class="apps-box clearfix">
<div class="package-screenshot"><?php echo $this->screenshotsPartial; ?></div>
<div class="package-content">
<?php echo $this->logoPartial; ?>
<?php echo $this->detailsPartial; ?>
<?php echo $this->requirementsPartial; ?>
</div>
</div>

View File

@@ -1,4 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<?php echo $this->form ?>

View File

@@ -1,4 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<?php echo $this->form ?>

View File

@@ -1,36 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<script type="text/javascript">
//<![CDATA[
Jsw.onReady(function() {
new Jsw.Hint({
renderTo: 'main',
hint: <?php echo $this->jsLmsg('areaDescription'); ?>
});
new Jsw.List({
renderTo: 'main',
id: 'sites-list',
data: <?php echo Zend_Json::encode($this->sitesList->fetchData()); ?>,
<?php if ($this->sitesList->isSsl()): ?>
dataUrl: '/statistics/site-select-list-data/ssl/true',
<?php else: ?>
dataUrl: '/statistics/site-select-list-data',
<?php endif; ?>
columns: [{
header: <?php echo $this->sitesList->jsLmsg('domain'); ?>,
sortable: true,
dataIndex: 'displayName'
}, {
header: '',
renderer: function(item) {
return '<a href="#" onclick=\'' + item.statisticsUrl + '\'>[' + <?php echo $this->sitesList->jsLmsg('linkView'); ?> + ']</a>';
}
}]
});
});
//]]>
</script>

View File

@@ -1,32 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<script type="text/javascript">
//<![CDATA[
Jsw.onReady(function() {
new Jsw.Hint({
renderTo: 'main',
hint: <?php echo $this->jsLmsg('areaDescription'); ?>
});
new Jsw.List({
renderTo: 'main',
id: 'sites-list',
data: <?php echo Zend_Json::encode($this->sitesList->fetchData()); ?>,
dataUrl: '/statistics/traffic-site-select-list-data',
columns: [{
header: <?php echo $this->sitesList->jsLmsg('domain'); ?>,
sortable: true,
dataIndex: 'displayName'
}, {
header: '',
renderer: function(item) {
return '<a href="' + item.statisticsUrl + '">[' + <?php echo $this->sitesList->jsLmsg('linkView'); ?> + ']</a>';
}
}]
});
});
//]]>
</script>

View File

@@ -1,6 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<p><?php echo $this->lmsg('pageHint'); ?></p>
<?php echo $this->form; ?>

View File

@@ -1,95 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<div class="form-row">
<div class="field-name"><?php echo $this->lmsg('smb.components.forms.user.companyName'); ?></div>
<div class="field-value">
<div class="text-value">
<?php echo $this->escape($this->user->companyName); ?>
</div>
</div>
</div>
<div class="form-row">
<div class="field-name"><?php echo $this->lmsg('smb.components.forms.user.phone'); ?></div>
<div class="field-value">
<div class="text-value">
<?php echo $this->escape($this->user->phone); ?>
</div>
</div>
</div>
<div class="form-row">
<div class="field-name"><?php echo $this->lmsg('smb.components.forms.user.fax'); ?></div>
<div class="field-value">
<div class="text-value">
<?php echo $this->escape($this->user->fax); ?>
</div>
</div>
</div>
<div class="form-row">
<div class="field-name"><?php echo $this->lmsg('smb.components.forms.user.imNumber'); ?></div>
<div class="field-value">
<div class="text-value">
<?php if ($this->user->imNumber) : ?>
<?php echo $this->escape($this->user->imNumber); ?>
(<?php echo $this->escape($this->user->getImTypeName()); ?>)
<?php endif; ?>
</div>
</div>
</div>
<div class="form-row">
<div class="field-name"><?php echo $this->lmsg('smb.components.forms.user.address'); ?></div>
<div class="field-value">
<div class="text-value">
<?php echo str_replace("\n", "<br>", $this->escape($this->user->address)); ?>
</div>
</div>
</div>
<div class="form-row">
<div class="field-name"><?php echo $this->lmsg('smb.components.forms.user.city'); ?></div>
<div class="field-value">
<div class="text-value">
<?php echo $this->escape($this->user->city); ?>
</div>
</div>
</div>
<div class="form-row">
<div class="field-name"><?php echo $this->lmsg('smb.components.forms.user.state'); ?></div>
<div class="field-value">
<div class="text-value">
<?php echo $this->escape($this->user->state); ?>
</div>
</div>
</div>
<div class="form-row">
<div class="field-name"><?php echo $this->lmsg('smb.components.forms.user.zip'); ?></div>
<div class="field-value">
<div class="text-value">
<?php echo $this->escape($this->user->zip); ?>
</div>
</div>
</div>
<div class="form-row">
<div class="field-name"><?php echo $this->lmsg('smb.components.forms.user.country'); ?></div>
<div class="field-value">
<div class="text-value">
<?php echo $this->escape($this->user->country); ?>
</div>
</div>
</div>
<div class="form-row">
<div class="field-name"><?php echo $this->lmsg('smb.components.forms.user.additionalInfo'); ?></div>
<div class="field-value">
<div class="text-value">
<?php echo str_replace("\n", "<br>", $this->escape($this->user->additionalInfo)); ?>
</div>
</div>
</div>

Some files were not shown because too many files have changed in this diff Show More