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.
114 lines
4.5 KiB
114 lines
4.5 KiB
{capture name="subDisplay"} |
|
{if !$perm} |
|
<table align="center" width="70%" class="formCad" style="margin-top: 10px"> |
|
<tr> |
|
<th colspan="2"> |
|
Insira o arquivo de Licença |
|
</th> |
|
</tr> |
|
<tr> |
|
<th> |
|
Arquivo de Licença |
|
</th> |
|
<td> |
|
<input name="conf" type="file" value="conflicence" > |
|
</td> |
|
</tr> |
|
<tr> |
|
<td colspan="2"> |
|
<b>* Informe o arquivo .lca para registrar as configurações da Central!</b> |
|
</td> |
|
</tr> |
|
<tr> |
|
<td> |
|
<table width="100%" class="formCad" border="0" cellspacing="0" cellpadding="2"> |
|
<tbody> |
|
<tr> |
|
<td> |
|
<input name="btValidar" type="submit" id="btValidar" value="Validar"> |
|
</td> |
|
</tr> |
|
</tbody> |
|
</table> |
|
</td> |
|
</tr> |
|
</table> |
|
{else} |
|
<table width="100%" class="formCad" id="configlicence" border="0" cellspacing="0" cellpadding="2"> |
|
<tr> |
|
<td> |
|
<table width="80%" class="formCad" border="0" cellspacing="0" cellpadding="2" id="tablelca"> |
|
<tbody> |
|
<tr> |
|
<th align="left">Documento CNPJ:</th> |
|
<td> |
|
<input name="document" type="text" id="lca_document" value="{$document}" size="50" maxlength="255"> |
|
</td> |
|
</tr> |
|
|
|
<tr> |
|
<th align="left">Perfil Central:</th> |
|
<td> |
|
<select name="lcnca_perfil" style="width:400px;"> |
|
{$select_perfil} |
|
</select> |
|
</td> |
|
</tr> |
|
<tr> |
|
<th align="left">Nº Contrato 1:</th> |
|
<td> |
|
<input name="lcnca_contato1" type="text" id="contrato1" value="{$lcnca_contato1}" size="50" maxlength="255" title=""> |
|
<a id="addcontract" href="#" title="Adicionar mais um campo para informar o contrato"> |
|
<img src="images/novo.gif" width="20" height="20" border="0" align="absmiddle" title=""> |
|
</a> |
|
</td> |
|
</tr> |
|
</tbody> |
|
</table> |
|
</td> |
|
</tr> |
|
|
|
<tr> |
|
<td> |
|
<table width="100%" class="formCad" border="0" cellspacing="0" cellpadding="2"> |
|
<tbody> |
|
<tr> |
|
<td> |
|
<input name="btGerar" type="submit" id="btGerar" value="Gerar"> |
|
</td> |
|
</tr> |
|
</tbody> |
|
</table> |
|
</td> |
|
</tr> |
|
</table> |
|
{/if} |
|
|
|
{if $mensagem} |
|
<table align="center" width="70%" class="formCad" style="margin-top: 10px"> |
|
<tr> |
|
<td colspan="2"> |
|
<div class="alert alert-{$mensagem.type}">{$mensagem.msg}</div> |
|
</td> |
|
</tr> |
|
</table> |
|
{/if} |
|
|
|
{literal} |
|
<script> |
|
$(function () { |
|
let cont = 2; |
|
$("#addcontract").on('click', function () { |
|
$("#tablelca").append(` |
|
<tr> |
|
<th align="left">Nº Contrato ${cont}:</th> |
|
<td> |
|
<input name="lcnca_contato${cont}" type="text" id="lcnca_contato${cont}" size="50" maxlength="255" title=""> |
|
</td> |
|
</tr>`); |
|
cont++; |
|
}) |
|
}) |
|
</script> |
|
{/literal} |
|
{/capture} |