91 lines
2.6 KiB
Smarty
91 lines
2.6 KiB
Smarty
<style>
|
|
{literal}
|
|
.text-left {
|
|
text-align: left;
|
|
}
|
|
.text-right {
|
|
text-align: right !important;
|
|
}
|
|
.account_name {
|
|
background:rgba(0,0,0,0);
|
|
border:none;
|
|
text-color: black;
|
|
}
|
|
{/literal}
|
|
</style>
|
|
<h3>Lista mailingowa</h3>
|
|
|
|
<table class="list view" width="100%" cellspacing="0" cellpadding="0" border="0" id="transactions_table">
|
|
<thead>
|
|
<tr>
|
|
<th scope="col" nowrap="nowrap" width="40%">
|
|
<div style="white-space: nowrap;" width="100%" align="left">Kontrahent</div></th>
|
|
<th scope="col" nowrap="nowrap" width="70%"><div style="white-space: nowrap;" width="100%" align="left">
|
|
Email</div></th>
|
|
</tr>
|
|
<thead>
|
|
<tbody>
|
|
{foreach from=$account_list item=row key=k}
|
|
<tr class="evenListRowS1" row-number="">
|
|
|
|
<td class="text-left">{$row.name}</td>
|
|
<td class="text-left">
|
|
{if $row.emails|count>0}
|
|
{foreach from=$row.emails item=row2 key=k}
|
|
{$row2}
|
|
{/foreach}
|
|
|
|
{else}
|
|
brak adresu lub nie jest oznaczony jako do wysyłki
|
|
{/if}
|
|
</td>
|
|
|
|
|
|
</tr>
|
|
{/foreach}
|
|
|
|
</tbody>
|
|
</table>
|
|
|
|
<br>
|
|
<br>
|
|
<h3>Ustawienia wiadomości</h3>
|
|
<form action="index.php" method="POST" name="SendEmail" id="SendEmail" enctype="multipart/form-data">
|
|
<input type="hidden" name="action" value="SendEmail">
|
|
<input type="hidden" name="module" value="Accounts">
|
|
<input type="hidden" name="uid" value="{$uid}">
|
|
|
|
<table width="100%" border="0" cellspacing="1" cellpadding="0" class="tabForm">
|
|
{if $error==1}
|
|
<tr><th class="dataLabel" align="left">
|
|
<span style="color: red;">Proszę wypełnić wszystkie pola!</span>
|
|
</th>
|
|
</tr>
|
|
{/if}
|
|
{if $success==1}
|
|
<tr><th class="dataLabel" align="left">
|
|
<span style="color: green;">Wiadomość została pozytywnie wysłana.</span>
|
|
</th>
|
|
</tr>
|
|
{else}
|
|
{if $success===0}
|
|
<tr><th class="dataLabel" align="left">
|
|
<span style="color: red;">Wystąpił błąd przy wysyłce wiadomości!</span>
|
|
</th>
|
|
</tr>
|
|
{/if}
|
|
{/if}
|
|
<tbody><tr>
|
|
<td valign="top" width="12.5%" class="dataLabel" nowrap="">Temat:
|
|
</td>
|
|
<td valign="top" width="37.5%" class="tabEditViewDF" colspan="3" nowrap=""><input type="text" name="title" value="{$title}" placeholder="Podaj temat wiadomości" style="width:450px;" required="required">
|
|
</td></tr>
|
|
<tr>
|
|
<td valign="top" width="12.5%" class="dataLabel" nowrap="">Treść wiadomości:
|
|
</td>
|
|
<td valign="top" width="37.5%" class="tabEditViewDF" colspan="3" nowrap=""><textarea required="required" id="body" name="body" rows="30" style="width:450px;" placeholder="Wpisz treść wiadomości">{$body}</textarea>
|
|
</td></tr>
|
|
</tbody>
|
|
</table>
|
|
<input class="button primary" type="submit" value="Wyślij" name="submit" accesskey="S" title="Zapisz [Alt+S]">
|
|
</form> |