forked from SimplesIP/pabx-app
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
90 lines
2.9 KiB
90 lines
2.9 KiB
2 years ago
|
{capture name="display"}
|
||
|
<table width="99%" align="center" border="0" cellspacing="0" cellpadding="2" >
|
||
|
<tr align="center" valign="middle" >
|
||
|
<td height="50" colspan="3" class="formHed">
|
||
|
<img src="imgSite/E-mail.png" width="16" align="absmiddle">
|
||
|
{if $cmp} CAMPANHA {else}ENVIAR{/if} E-MAIL
|
||
|
</td>
|
||
|
</tr>
|
||
|
|
||
|
<tr>
|
||
|
<td><hr style="border: 1px solid #f2f2f2"></td>
|
||
|
</tr>
|
||
|
|
||
|
<tr>
|
||
|
<td>
|
||
|
<table width="100%" class="grid" border="0" cellspacing="0" cellpadding="2">
|
||
|
<tr>
|
||
|
<th align="left" nowrap>Selecione Template: {$templates}</th>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</td>
|
||
|
</tr>
|
||
|
|
||
|
<tr>
|
||
|
<td>
|
||
|
<table width="100%" class="grid" border="0" cellspacing="0" cellpadding="2" align="center">
|
||
|
<tr>
|
||
|
<th align="left" nowrap><input type="checkbox" id="previewTempl" {if !$cmp} checked {/if} E-MAIL> Preview Template</th>
|
||
|
</tr>
|
||
|
|
||
|
<tr>
|
||
|
<td>
|
||
|
<iframe src="{$templ}" id="viewtemplate" title="View Template" width="100%" height="500px"></iframe>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</td>
|
||
|
</tr>
|
||
|
|
||
|
<tr>
|
||
|
<td>
|
||
|
<table align="center" width="100%">
|
||
|
<!-- TABELA DE STATUS -->
|
||
|
<tr>
|
||
|
<td>
|
||
|
<input name="btnEnviar" type="submit" id="formAcaoDesc" value="{if $cmp}Criar{else}Enviar{/if}">
|
||
|
<input name="client_id" type="input" id="client_id" value="{$client_id}" hidden>
|
||
|
<input name="cmp" type="input" id="client_id" value="{$cmp}" hidden>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
|
||
|
|
||
|
|
||
|
{if $flash}
|
||
|
<tr align="center">
|
||
|
<td style="height:40px;" colspan="2"><span id="msgErro" style="height:60px; width:100%; font-size:14px; font-weight:bold; color: {$flash[1]}">{$flash[0]}</span></td>
|
||
|
</tr>
|
||
|
<tr align="center">
|
||
|
<td>
|
||
|
<br><br>
|
||
|
</td>
|
||
|
</tr>
|
||
|
{/if}
|
||
|
|
||
|
{$listcamp}
|
||
|
|
||
|
{literal}
|
||
|
<script>
|
||
|
if ($('#previewTempl').prop('checked') == false) {
|
||
|
$('#viewtemplate').hide()
|
||
|
}
|
||
|
|
||
|
$("#previewTempl").on('change', function () {
|
||
|
if ($("#previewTempl").prop('checked')) {
|
||
|
$('#viewtemplate').show();
|
||
|
$('#tblResult').hide();
|
||
|
} else {
|
||
|
$('#viewtemplate').hide();
|
||
|
$('#tblResult').show();
|
||
|
}
|
||
|
})
|
||
|
</script>
|
||
|
{/literal}
|
||
|
{/capture}
|
||
|
|