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,77 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
$typeElement = $this->element->getElement('type');
$indentControls = $this->indentControls;
?>
<div class="form-row">
<div class="field-name">
<label for="<?php echo $typeElement->getId(); ?>">
<?php echo $typeElement->getLabel(); ?>
</label>
</div>
<div class="field-value">
<div class="text-value">
<?php foreach ($typeElement->getMultiOptions() as $optionName => $optionTitle): ?>
<div class="indent-box">
<input type="radio"
value="<?php echo $optionName; ?>"
id="<?php echo $typeElement->getId() . "-$optionName"; ?>"
class="radio"
name="<?php
echo $typeElement->getBelongsTo()
? $typeElement->getBelongsTo() . '[' . $typeElement->getName() . ']'
: $typeElement->getName();
?>"
<?php echo ($optionName == $typeElement->getValue()) ? 'checked="checked"' : ''; ?>
/>
<div class="indent-box-content">
<label for="<?php echo $typeElement->getId() . "-$optionName"; ?>">
<?php echo $optionTitle; ?>
</label>
<?php if ('' != $typeElement->getDescriptionValue($optionName)): ?>
<p class="hint"><?php echo $typeElement->getDescriptionValue($optionName); ?></p>
<?php endif; ?>
<?php if(isset($indentControls[$optionName])):?>
<?php
$controls = $indentControls[$optionName];
foreach((array)$controls as $ctrl) {
echo $this->element->getElement($ctrl)->render($this);
}
?>
<?php endif;?>
</div>
</div>
<?php endforeach;?>
</div>
</div>
</div>
<script type="text/javascript">
//<![CDATA[
Jsw.onReady(function () {
var updateDestinationProperties = function () {
<?php foreach ($typeElement->getMultiOptions() as $optionName => $optionTitle): ?>
<?php if (!isset($indentControls[$optionName])) continue;?>
var checked = document.getElementById('<?php echo $typeElement->getId() . "-$optionName"; ?>').checked;
document.getElementById('<?php echo $typeElement->getId() . "-$optionName"; ?>').closest('.indent-box').querySelector('.indent-box-content').querySelectorAll('select', 'input').forEach(function (element) {
if (checked) {
element.disabled = false;
} else {
element.disabled = true;
}
});
<?php endforeach;?>
}
if (0 === document.getElementById('destination-site').querySelectorAll('option').length) {
document.getElementById('destination-type-ftp').checked=true;
document.getElementById('destination-type-site').disabled=true;
}
updateDestinationProperties();
<?php foreach ($typeElement->getMultiOptions() as $optionName => $optionTitle): ?>
document.getElementById('destination-type-<?php echo $optionName ?>').addEventListener('click', updateDestinationProperties);
<?php endforeach;?>
});
//]]>
</script>

View File

@@ -1,38 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<table cellspacing="0" width="100%" class="form-table form-limits">
<tbody>
<tr class="form-row">
<td class="field-name">
<?php echo $this->elementPart($this->element->getElement('quota'))->label(); ?>
</td>
<td class="field-value nowrap">
<?php echo $this->elementPart($this->element->getElement('quota'))->content(); ?>
<?php echo isset($this->units) ? $this->units : $this->lmsg('smb.components.forms.web._shared.limitMbUnits'); ?>
<span class="field-errors" style="display: none;"></span>
</td>
<td class="nowrap">
<?php echo $this->elementPart($this->element->getElement('noLimit'))->content(); ?>
<?php echo $this->elementPart($this->element->getElement('noLimit'))->label(); ?>
</td>
</tr>
</tbody>
</table>
<script type="text/javascript">
//<![CDATA[
Jsw.onReady(function () {
var updateState = function () {
if (document.getElementById('<?php echo $this->element->getElement('noLimit')->getId() ?>').checked) {
document.getElementById('<?php echo $this->element->getElement('quota')->getId() ?>').disabled = true;
} else {
document.getElementById('<?php echo $this->element->getElement('quota')->getId() ?>').disabled = false;
}
};
updateState();
document.getElementById('<?php echo $this->element->getElement('noLimit')->getId() ?>').addEventListener('click', updateState);
});
//]]>
</script>

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -1,84 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<script type="text/javascript">
//<![CDATA[
Jsw.namespace('Smb.Views.Web');
Smb.Views.Web.deleteMobileSiteConfirmation = function(deleteUrl) {
Jsw.messageBox.show({
'type': Jsw.messageBox.TYPE_YESNO,
'subtype': 'delete',
'text': <?php echo $this->mobileSitesList->jsLmsg('confirmDeleteTitle') ?>,
'description': <?php echo $this->mobileSitesList->jsLmsg('confirmDeleteDescription') ?>,
'onYesClick': function() { Jsw.redirectPost(deleteUrl); },
'buttonTitles': {
'yes': <?php echo $this->jsLmsg('components.buttons.yes') ?>,
'no': <?php echo $this->jsLmsg('components.buttons.no') ?>
}
});
};
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->mobileSitesList->fetchData()); ?>,
dataUrl: '/smb/web/mobile-sites-list-data',
columns: [{
header: <?php echo $this->mobileSitesList->jsLmsg('website'); ?>,
sortable: true,
dataIndex: 'displayName'
}, {
header: <?php echo $this->mobileSitesList->jsLmsg('mobileSite'); ?>,
sortable: true,
dataIndex: 'mobileSiteName',
renderer: function (item) {
return item.mobileSiteName != '' ? Jsw.escapeHtml(item.mobileSiteName) : '-';
},
}, {
header: '',
cls: 'nowrap action-btns-set',
renderer: function (item) {
var actions = [];
if (item.mobileSiteName != '') {
actions.push(
'<a class="s-btn" href="' + Jsw.prepareUrl(item.launchUrl) + '" target="_blank">' +
'<i class="icon-manage"></i> ' +
<?php echo $this->mobileSitesList->jsLmsg('launchEditor'); ?> +
'</a>'
);
actions.push(
'<a class="s-btn" href="javascript:Smb.Views.Web.deleteMobileSiteConfirmation(\'' + item.deleteUrl + '\');">' +
'<i class="icon-delete"></i> ' +
<?php echo $this->mobileSitesList->jsLmsg('delete'); ?> +
'</a>'
);
<?php if ($this->allowCreateMobileSite): ?>
} else {
actions.push(
'<a class="s-btn" href="' + Jsw.prepareUrl(item.createUrl) + '">' +
'<i class="icon-mobile"></i> ' +
<?php echo $this->mobileSitesList->jsLmsg('createSite'); ?> +
'</a>'
);
<?php endif; ?>
}
return actions.join(' ');
}
}]
});
});
//]]>
</script>

View File

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

View File

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

View File

@@ -1,13 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<?php if ($this->frameset): ?>
<frameset rows="40,*" framespacing="0" frameborder="no" border="0">
<frame src='<?php echo $this->listUrl;?>' name='listFrame' scrolling="No" noresize="noresize"/>
<frame src='<?php echo $this->contentUrl;?>' name='contentFrame'/>
</frameset>
<?php else: ?>
<body>
<?php echo $this->form; ?>
</body>
<?php endif; ?>

View File

@@ -1,117 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<script type="text/javascript">
//<![CDATA[
Jsw.onReady(function() {
var operations = [];
operations.push({
componentType: 'Jsw.SmallButton',
cls: 's-btn sb-add-new-subscription btn-primary',
title: <?php echo $this->jsLmsg('buttonAddNew'); ?>,
description: <?php echo $this->jsLmsg('buttonAddNewDescription'); ?>,
href: '/web/add-domain/create-webspace/true'
});
<?php if ($this->showMyResources): ?>
operations.push({
componentType: 'Jsw.SmallButton',
cls: 's-btn sb-resources',
title: <?php echo $this->jsLmsg('buttonMyResources'); ?>,
description: <?php echo $this->jsLmsg('buttonMyResourcesDescription'); ?>,
href: '/account/my-resources'
});
<?php endif; ?>
operations.push({
componentType: 'Jsw.SmallButton',
cls: 's-btn sb-remove-selected',
title: <?php echo $this->jsLmsg('buttonRemove'); ?>,
description: <?php echo $this->jsLmsg('buttonRemoveDescription'); ?>,
handler: function(event) {
Jsw.getComponent('subscriptions-list').execGroupOperation({
url: '/web/subscription-delete/?redirect=/web/subscriptions',
subtype: 'delete',
mouseEvent: event,
locale: {
confirmOnGroupOperation: <?php echo $this->subscriptionsList->jsLmsg('confirmOnDelete'); ?>
},
isAjax: <?php echo $this->isHomonymSearchEnabled ? 'true' : 'false' ?>,
requestUrl: '/account/search-homonym-data/',
loadingTitle: <?php echo $this->jsLmsg('components.homonyms.loading'); ?>,
toJsonPayload: true,
submitHandler: async (url, payload) => {
url = Jsw.prepareUrl('/web/subscription-delete-async/');
const { task } = await Jsw.api.post(url, { ids: payload.ids, redirectUrl: '/web/subscriptions/' });
if (task && task.componentType === 'Jsw.Task.ProgressBar.Item') {
Jsw.getComponent('asyncProgressBarWrapper').progressDialog(task);
}
},
});
}
});
new Jsw.Panel({
cls: 'list-box',
renderTo: 'main',
items: [{
componentType: 'Jsw.List',
id: 'subscriptions-list',
data: <?php echo Zend_Json::encode($this->subscriptionsList->fetchData()); ?>,
dataUrl: '/web/subscriptions-list-data',
columns: [
Jsw.list.COLUMN_SELECTION,
{
header: <?php echo $this->subscriptionsList->jsLmsg('subscriptionPowerUser');?>,
sortable: true,
dataIndex: 'domain',
renderer: function(item) {
var subscriptionName = item.domain;
if (item.systemUser) {
var url = '/smb/web/view/' + item.id + '/hosting-settings#webspace';
subscriptionName = '<a href="' + url + '">' + item.domain + '</a>';
}
return subscriptionName;
}
}, {
header: <?php echo $this->subscriptionsList->jsLmsg('systemUser'); ?>,
sortable: true,
dataIndex: 'systemUser'
}, {
header: <?php echo $this->subscriptionsList->jsLmsg('ipAddress'); ?>,
sortable: true,
dataIndex: 'ipAddress'
}, {
header: <?php echo $this->subscriptionsList->jsLmsg('addonDomains'); ?>,
dataIndex: 'addonDomains',
renderer: function(item) {
var list = '';
(item.addonDomains || []).forEach(function(name) {
list += name + '<br/>';
});
return list;
}
}, {
header: <?php echo $this->subscriptionsList->jsLmsg('diskSpace'); ?>,
dataIndex: 'diskSpaceUsed'
}
],
operations: operations,
isDisabledItem: function(item) {
return (item.id == 0);
}
}]
});
});
//]]>
</script>

View File

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