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,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>

View File

@@ -1,36 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
/** @var Zend_Form_Element $internalEmailElement */
$internalEmailElement = $this->form->getElement('internalEmail');
/** @var Zend_Form_Element $externalEmailElement */
$externalEmailElement = $this->form->getElement('externalEmail');
?>
<?php if ($internalEmailElement) { ?>
<?php
$domainElement = $this->form->getElement('domain');
if ($domainElement) {
$domainElementContent = ' @ ' . $this->elementPart($domainElement)->content();
} else {
$domainElementContent = " @<span id='{$internalEmailElement->getId()}-domain'>{$this->domainName}</span>";
}
?>
<div class="form-row">
<div class='field-name'>
<?= $this->elementPart($internalEmailElement)->label() ?>
</div>
<div class='field-value'>
<div class='form-row<?= $internalEmailElement->hasErrors() ? ' error' : '' ?>'>
<div><?= $this->elementPart($internalEmailElement)->content() . $domainElementContent ?></div>
<span class='field-errors'<?= $internalEmailElement->hasErrors() ? '' : ' style="display:none;"' ?>>
<?= $this->elementPart($internalEmailElement)->errors() ?>
</span>
<?= $this->elementPart($internalEmailElement)->description() ?>
</div>
</div>
</div>
<?php } ?>
<?= $externalEmailElement->render() ?>

View File

@@ -1,15 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<div class='form-row'>
<span class='field-name'>
<?php echo $this->elementPart($this->element->getElement($this->phonePropertyName))->label(); ?>
</span>
<span class='field-value'>
<?php echo $this->elementPart($this->element->getElement($this->phonePropertyName))->content(); ?>
<span style="padding-left: 10px;">
<?php echo $this->elementPart($this->element->getElement($this->phoneTypePropertyName))->content(); ?>
</span>
<span class="field-errors" style="display: none;"></span>
</span>
</div>

View File

@@ -1,5 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<?php echo $this->form ?>
<?= $this->requireJs('app/user/login-string', ['activationData' => $this->activationData, 'isNew' => true]) ?>

View File

@@ -1,5 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<?php echo $this->form ?>
<?= $this->requireJs('app/user/login-string', ['activationData' => $this->activationData, 'isNew' => false]) ?>

View File

@@ -1,207 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<script type="text/javascript">
//<![CDATA[
Jsw.onReady(function() {
var getToolsPanel = function() {
var tools = [
<?php if ($this->userEditAllowed): ?>
{
componentType: 'Jsw.SmallButton',
title: <?php echo $this->jsLmsg('buttonEditUserProperties') ?>,
description: <?php echo $this->jsLmsg('hintEditUserProperties') ?>,
addCls: 'sb-my-profile',
href: '/user/edit/id/' + '<?php echo $this->userInfo['id']; ?>'
}
<?php endif; ?>
<?php if ($this->userEditAllowed && $this->userDeleteAllowed): ?>
, {
componentType: 'Jsw.bar.Separator'
}
<?php endif; ?>
<?php if ($this->userDeleteAllowed): ?>
, {
componentType: 'Jsw.SmallButton',
title: <?php echo $this->jsLmsg('buttonDeleteUser') ?>,
description: <?php echo $this->jsLmsg('hintDeleteUser') ?>,
addCls: 'sb-remove-selected',
handler: function() {
Jsw.messageBox.show({
'type': Jsw.messageBox.TYPE_YESNO,
'subtype': 'delete',
'text': <?php echo $this->jsLmsg('removeUserConfirmationTitle') ?>,
'onYesClick': function() {
Jsw.redirectPost('/user/delete-current/', {
id: <?php echo $this->jsEscape($this->userInfo['id']) ?>
});
},
'buttonTitles': {
'yes': <?php echo $this->jsLmsg('removeUserConfirmationYes') ?>,
'no': <?php echo $this->jsLmsg('removeUserConfirmationNo') ?>
}
});
}
}
<?php endif; ?>
];
return tools;
};
var rolePermissions = (function() {
var fields = [{
componentType: 'Jsw.form.DisplayField',
fieldLabel: <?php echo $this->jsLmsg('roleTitle') ?>,
value: <?php echo $this->jsEscape($this->roleTitle) ?> + ' <a aria-label="' + <?php echo $this->jsLmsg('editRoleHint') ?> + '" href="' + Jsw.prepareUrl(
'/role/edit/id/<?php echo $this->roleId; ?>?returnUrl=/user/overview/id/<?php echo $this->userInfo['id']; ?>') + '">[' +
<?php echo $this->jsLmsg('editRole') ?> + ']</a>'
}];
<?php if (isset($this->restrictedSubscriptionDomainName)): ?>
fields.push({
componentType: 'Jsw.form.DisplayField',
fieldLabel: <?php echo $this->jsLmsg('limitSubscription') ?>,
value: <?php echo $this->jsEscape($this->restrictedSubscriptionDomainName) ?>
});
<?php endif ?>
<?php foreach ($this->rolePermissions as $permission): ?>
fields.push({
componentType: 'Jsw.form.DisplayField',
fieldLabel: <?php echo $this->jsEscape($permission['label']) ?>,
value: <?php echo $this->jsHtml($this->accessState($permission['value'])); ?>
});
<?php endforeach; ?>
return {
componentType: 'Jsw.Container',
items: fields
};
}());
var servicesPermissions = (function() {
var fields = [];
<?php foreach ($this->servicesPermissions as $permission): ?>
fields.push({
componentType: 'Jsw.form.DisplayField',
fieldLabel: <?php echo $this->jsEscape($permission['label']) ?>,
value: [
<?php if ($permission['serviceUrl']): ?>
<?php echo $this->jsLmsg('installedAt'); ?> +
' <a href="<?php echo $this->escape($permission['serviceUrl']); ?>" target="_blank"><?php
echo $this->escape($permission['serviceUrl'])
?></a>',
<?php endif; ?>
<?php echo $this->jsHtml($this->accessState($permission['value'], $permission['isConfigured'])) ?>
<?php if ($permission['value'] && $this->canManageApplications): ?>
<?php if ($permission['newAccountUrl']): ?>
+ ' <a href="' + Jsw.prepareUrl(<?php echo $this->jsEscape($permission['newAccountUrl']) ?>)
+ '">[' + <?php echo $this->jsLmsg('createNewService') ?> + ']</a>'
<?php elseif ($permission['configureAccountUrl']): ?>
+ ' <a href="' + Jsw.prepareUrl(<?php echo $this->jsEscape($permission['configureAccountUrl']) ?>)
+ '">[' + <?php echo $this->jsLmsg('configureService') ?> + ']</a>'
<?php endif; ?>
<?php endif; ?>
]
});
<?php endforeach; ?>
return {
componentType: 'Jsw.Container',
items: fields
};
}());
var firstColumnGeneralInfo = (function () {
var fields = [{
componentType: 'Jsw.form.DisplayField',
fieldLabel: <?= $this->jsLmsg('contactName') ?>,
value: <?= $this->jsEscape($this->userInfo['contactName']) ?>
} , {
componentType: 'Jsw.form.DisplayField',
fieldLabel: <?= $this->jsLmsg('email') ?>,
value: '<a href="mailto:' + <?= $this->jsEscape($this->userInfo['email']) ?> +'">'
+ <?= $this->jsEscape($this->userInfo['email']) ?> +'</a>',
}];
<?php if (!empty($this->userInfo['externalEmail']) && $this->userInfo['externalEmail'] !== $this->userInfo['email']) { ?>
fields.push({
componentType: 'Jsw.form.DisplayField',
fieldLabel: <?= $this->jsLmsg('externalEmail') ?>,
value: '<a href="mailto:' + <?= $this->jsEscape($this->userInfo['externalEmail']) ?> +'">'
+ <?= $this->jsEscape($this->userInfo['externalEmail']) ?> +'</a>',
});
<?php } ?>
return {
componentType: 'Jsw.Container',
items: fields
};
}());
var secondColumnGeneralInfo = (function () {
var fields = [];
<?php if (!empty($this->userInfo['phone'])) { ?>
fields.push({
componentType: 'Jsw.form.DisplayField',
fieldLabel: <?= $this->jsLmsg('phone') ?>,
value: <?= $this->jsEscape($this->userInfo['phone']) ?>
});
<?php } ?>
<?php if (!empty($this->userInfo['imNumber'])) { ?>
fields.push({
componentType: 'Jsw.form.DisplayField',
fieldLabel: <?= $this->jsLmsg('imNumber') ?>,
value: <?= $this->jsEscape($this->userInfo['imNumber'] ? $this->userInfo['imNumber'] . ' (' . $this->userInfo['imType'] . ')' : '') ?>
});
<?php } ?>
return {
componentType: 'Jsw.Container',
items: fields
};
}());
new Jsw.Container({
renderTo: 'main',
items: [
new Jsw.Hint({
hint: <?php echo $this->jsLmsg('userInfoHint') ?>
}),
new Jsw.SmallTools({
operations: getToolsPanel()
}),
new Jsw.Panel({
title: <?php echo $this->jsLmsg('generalSectionTitle') ?>,
cls: 'form-box',
items: [{
componentType: 'Jsw.layout.TwoColumns',
cls: 'two-cols-block',
items: [firstColumnGeneralInfo, secondColumnGeneralInfo]
}]
}),
new Jsw.Panel({
title: <?php echo $this->jsLmsg('permissionsSectionTitle') ?>,
cls: 'form-box',
boxItems: [
new Jsw.Hint({
hint: <?php echo $this->jsLmsg('permissionsSectionHint') ?>
})
],
items: [{
componentType: 'Jsw.layout.TwoColumns',
cls: 'two-cols-block',
items: [rolePermissions, servicesPermissions]
}]
})
]
});
});
//]]>
</script>