MailConfigChecker/views/smarty/admin/smtpCheck.tpl

99 lines
4.7 KiB
Smarty
Raw Normal View History

2023-12-09 13:32:01 +01:00
[{include file="headitem.tpl" title="GENERAL_ADMIN_TITLE"|oxmultilangassign}]
2024-06-04 14:20:20 +02:00
[{include file="@d3mailconfigchecker/admin/inc_bootstrap.tpl"}]
2023-12-12 11:28:18 +01:00
<style>
.communicationoutput,
.communicationoutput dl dt,
.communicationoutput dl dd {
background-color: black;
color: white;
2023-12-09 13:32:01 +01:00
}
</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>
2023-12-12 11:28:18 +01:00
[{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>
2024-08-22 10:00:58 +02:00
[{block name="smtp_credentials"}]
<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>
[{/block}]
2023-12-12 11:28:18 +01:00
<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>
2023-12-09 13:32:01 +01:00
[{/foreach}]
2023-12-12 11:28:18 +01:00
</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>
2023-12-09 13:32:01 +01:00
</div>
[{include file="bottomnaviitem.tpl"}]
[{include file="bottomitem.tpl"}]