MailConfigChecker/views/smarty/admin/smtpCheck.tpl
2024-06-04 14:20:20 +02:00

97 lines
4.6 KiB
Smarty

[{include file="headitem.tpl" title="GENERAL_ADMIN_TITLE"|oxmultilangassign}]
[{include file="@d3mailconfigchecker/admin/inc_bootstrap.tpl"}]
<style>
.communicationoutput,
.communicationoutput dl dt,
.communicationoutput dl dd {
background-color: black;
color: white;
}
</style>
<form name="transfer" id="transfer" action="[{$oViewConf->getSelfLink()}]" method="post">
[{$oViewConf->getHiddenSid()}]
<input type="hidden" name="oxid" value="[{$oxid}]">
<input type="hidden" name="oxidCopy" value="[{$oxid}]">
<input type="hidden" name="cl" value="[{$oViewConf->getActiveClassName()}]">
<input type="hidden" name="editlanguage" value="[{$editlanguage}]">
</form>
[{if $success}]
<div class="alert alert-success">[{oxmultilang ident="D3_MAILCHECKER_SMTPCHECK_SUCCESS"}]</div>
[{/if}]
<div class="row">
<div class="col-12 col-md-6 col-lg-4 mb-4">
<p>
[{oxmultilang ident="D3_MAILCHECKER_SMTPCHECK_DESC1"}]
</p>
<p>
[{oxmultilang ident="D3_MAILCHECKER_SMTPCHECK_DESC2"}]
</p>
<p>
[{oxmultilang ident="D3_MAILCHECKER_SMTPCHECK_DESC3"}]
</p>
<form name="myedit" id="myedit" action="[{$oViewConf->getSelfLink()}]" method="post">
[{$oViewConf->getHiddenSid()}]
<input type="hidden" name="cl" value="[{$oViewConf->getActiveClassName()}]">
<input type="hidden" name="fnc" value="sendMail">
<div>
<label class="col-4 form-label" for="oxshops__oxsmtp">[{oxmultilang ident="SHOP_MAIN_SMTPSERVER"}]</label>
<input type="text" class="col-7 editinput" size="35" maxlength="[{$shop->oxshops__oxsmtp->fldmax_length}]" id="oxshops__oxsmtp" name="smtpHost" value="[{if $smtpHost}][{$smtpHost}][{else}][{$shop->getFieldData('oxsmtp')}][{/if}]">
</div>
<div>
<label class="col-4 form-label" for="oxshops__oxsmtpuser">[{oxmultilang ident="SHOP_MAIN_SMTPUSER"}]</label>
<input type="text" class="col-7 editinput" size="35" maxlength="[{$shop->oxshops__oxsmtpuser->fldmax_length}]" id="oxshops__oxsmtpuser" name="smtpUser" value="[{if $smtpUser}][{$smtpUser}][{else}][{$shop->getFieldData('oxsmtpuser')}][{/if}]">
</div>
<div>
<label class="col-4 form-label" for="oxshops__oxsmtppwd">[{oxmultilang ident="SHOP_MAIN_SMTPPASSWORD"}]</label>
<input type="password" class="col-7 editinput" size="35" maxlength="[{$shop->oxshops__oxsmtppwd->fldmax_length}]" id="oxshops__oxsmtppwd" name="smtpPwd" value="[{if $smtpPwd}][{$smtpPwd}][{else}][{$shop->getFieldData('oxsmtppwd')}][{/if}]">
</div>
<div>
<label class="col-4 form-label" for="sender">[{oxmultilang ident="D3_MAILCHECKER_SMTPCHECK_SENDER"}]</label>
<select name="from" class="col-7 editinput" id="sender">
[{foreach from=$oView->getMailAddressList() item="address"}]
<option value="[{$address}]">[{$address}]</option>
[{/foreach}]
</select>
</div>
<div>
<label class="col-4 form-label" for="recipient">[{oxmultilang ident="D3_MAILCHECKER_SMTPCHECK_RECIPIENT"}]</label>
<input name="to" type="text" class="col-7 editinput" size="35" maxlength="255" id="recipient" value="[{$recipient}]">
</div>
<div>
<label class="col-4 form-label" for="sendmail">[{oxmultilang ident="D3_MAILCHECKER_SMTPCHECK_TESTSENDMAIL"}]</label>
<input type="checkbox" class="col-7 editinput" id="sendmail" name="sendmail" value="1" [{if $sendMail}]checked[{/if}]>
</div>
<div>
<button type="submit" class="btn btn-primary offset-4">[{oxmultilang ident="D3_MAILCHECKER_SMTPCHECK_STARTTEST"}]</button>
</div>
</form>
</div>
<div class="col-12 col-md-6 col-lg-4 mb-4 [{if $smtpLog}]communicationoutput[{/if}]">
[{foreach from=$smtpLog key="action" item="logItems" name="actionList"}]
<dl>
<dt>[{$smarty.foreach.actionList.iteration}] - [{$action}]</dt>
<dd>
<ul>
[{foreach from=$logItems item="logItem"}]
<li>
[{$logItem}]
</li>
[{/foreach}]
</ul>
</dd>
</dl>
[{/foreach}]
</div>
</div>
[{include file="bottomnaviitem.tpl"}]
[{include file="bottomitem.tpl"}]