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.
226 lines
10 KiB
226 lines
10 KiB
2 years ago
|
{capture name="display"}
|
||
|
|
||
|
<table align="center" width="100%" border="0" cellspacing="0" cellpadding="2" class="formCad">
|
||
|
<tr align="center" valign="middle" >
|
||
|
<td height="50" colspan="6" class="formHed">
|
||
|
<img src="imgSite/usuarios.gif" width="32" height="32" align="absmiddle"> <span class="formHed">{$tituloCadastro}</span> </td>
|
||
|
</tr>
|
||
|
<tr style="padding:0; margin:0;">
|
||
|
<th colspan="6" align="left">
|
||
|
<table width="100%" border="0" cellspacing="0" cellpadding="2" class="formCad" style="border:0">
|
||
|
<tr >
|
||
|
<th width="120" style="border:0">Contrato</th>
|
||
|
<td width="35%" style="border:0">{$contr_id}-{$contr_descricao} </td>
|
||
|
<th width="120" style="border:0">Operadora</th>
|
||
|
<td style="border:0">{$oper_id}-{$oper_nome}</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</th>
|
||
|
</tr>
|
||
|
|
||
|
<tr>
|
||
|
<th width="120" align="left">Vigência</th>
|
||
|
<td colspan="5">
|
||
|
<input name="prc_vigencia" type="text" id="dataIni" value="{$prc_vigencia}" size="20" maxlength="11" style="width: 170px;" />
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<th align="left">Tipo Tarifação</th>
|
||
|
<td colspan="5">
|
||
|
<select name="prc_tipo" id="prc_tipo" style="width: 170px;">
|
||
|
|
||
|
{$tipoCobranca}
|
||
|
|
||
|
|
||
|
</select>
|
||
|
</td>
|
||
|
</tr>
|
||
|
{if $contr_tipo_franquia != 0}
|
||
|
{if ($contr_tipo_franquia == 1) || ($contr_tipo_franquia == 2) || ($contr_tipo_franquia == 4)}
|
||
|
<tr>
|
||
|
<th align="left">Franquia</th>
|
||
|
<td colspan="5">
|
||
|
<input name="prc_franquia" type="text" id="prc_franquia" value="{$prc_franquia}" style="width: 170px;" size="20" maxlength="12" />
|
||
|
</td>
|
||
|
</tr>
|
||
|
{/if}
|
||
|
{if ($contr_tipo_franquia == 3) || ($contr_tipo_franquia == 4)}
|
||
|
<tr>
|
||
|
<th align="left">Franquia Móvel</th>
|
||
|
<td colspan="5">
|
||
|
<input name="prc_franquia_movel" type="text" id="prc_franquia_movel" value="{$prc_franquia_movel}" style="width: 170px;" size="20" maxlength="12" />
|
||
|
</td>
|
||
|
</tr>
|
||
|
{/if}
|
||
|
<tr>
|
||
|
<th align="left">Preço Franquia</th>
|
||
|
<td colspan="5">
|
||
|
<input name="prc_franquia_preco" type="text" id="prc_franquia_preco" value="{$prc_franquia_preco}" style="width: 170px;" size="20" maxlength="12" />
|
||
|
</td>
|
||
|
</tr>
|
||
|
{/if}
|
||
|
<tr>
|
||
|
<th align="left">Fixo Local</th>
|
||
|
<td width="170">
|
||
|
<input name="prc_preco_vc1" type="text" id="prc_preco_vc1" value="{$prc_preco_vc1}" style="width: 170px;" size="20" maxlength="12" />
|
||
|
</td>
|
||
|
<th width="120">Cadência</th>
|
||
|
<td width="20">
|
||
|
<input name="prc_preco_vc1_cad" type="text" id="prc_preco_vc1_cad" value="{$prc_preco_vc1_cad}" size="5" maxlength="2" />
|
||
|
</td>
|
||
|
<th width="10" align="center"><strong>+</strong></th>
|
||
|
<td align="left">
|
||
|
<input name="prc_preco_vc1_ext" type="text" id="prc_preco_vc1_ext" value="{$prc_preco_vc1_ext}" size="3" maxlength="2" />
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<th align="left">Fixo DDD</th>
|
||
|
<td>
|
||
|
<input name="prc_preco_vc2" type="text" id="prc_preco_vc2" value="{$prc_preco_vc2}" style="width: 170px;" size="20" maxlength="12" />
|
||
|
</td>
|
||
|
<th width="120">Cadência</th>
|
||
|
<td>
|
||
|
<input name="prc_preco_vc2_cad" type="text" id="prc_preco_vc2_cad" value="{$prc_preco_vc2_cad}" size="5" maxlength="2" />
|
||
|
</td>
|
||
|
<th width="10" align="center"><strong>+</strong></th>
|
||
|
<td align="left">
|
||
|
<input name="prc_preco_vc2_ext" type="text" id="prc_preco_vc2_ext" value="{$prc_preco_vc2_ext}" size="3" maxlength="2" />
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<th align="left">Móvel Local</th>
|
||
|
<td>
|
||
|
<input name="prc_preco_vc3" type="text" id="prc_preco_vc3" value="{$prc_preco_vc3}" style="width: 170px;" size="20" maxlength="12" />
|
||
|
</td>
|
||
|
<th width="120">Cadência</th>
|
||
|
<td>
|
||
|
<input name="prc_preco_vc3_cad" type="text" id="prc_preco_vc3_cad" value="{$prc_preco_vc3_cad}" size="5" maxlength="2" />
|
||
|
</td>
|
||
|
<th width="10" align="center"><strong>+</strong></th>
|
||
|
<td align="left">
|
||
|
<input name="prc_preco_vc3_ext" type="text" id="prc_preco_vc3_ext" value="{$prc_preco_vc3_ext}" size="3" maxlength="2" />
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<th align="left">Móvel DDD</th>
|
||
|
<td>
|
||
|
<input name="prc_preco_vc4" type="text" id="prc_preco_vc4" value="{$prc_preco_vc4}" style="width: 170px;" size="20" maxlength="12" />
|
||
|
</td>
|
||
|
<th width="120">Cadência</th>
|
||
|
<td>
|
||
|
<input name="prc_preco_vc4_cad" type="text" id="prc_preco_vc4_cad" value="{$prc_preco_vc4_cad}" size="5" maxlength="2" />
|
||
|
</td>
|
||
|
<th width="10" align="center"><strong>+</strong></th>
|
||
|
<td align="left">
|
||
|
<input name="prc_preco_vc4_ext" type="text" id="prc_preco_vc4_ext" value="{$prc_preco_vc4_ext}" size="3" maxlength="2" />
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<th align="left">DDI</th>
|
||
|
<td>
|
||
|
<input name="prc_preco_vc5" type="text" id="prc_preco_vc5" value="{$prc_preco_vc5}" style="width: 170px;" size="20" maxlength="12" />
|
||
|
</td>
|
||
|
<th>Cadência</th>
|
||
|
<td>
|
||
|
<input name="prc_preco_vc5_cad" type="text" id="prc_preco_vc5_cad" value="{$prc_preco_vc5_cad}" size="5" maxlength="2" />
|
||
|
</td>
|
||
|
<th align="center"><strong>+</strong></th>
|
||
|
<td align="left">
|
||
|
<input name="prc_preco_vc5_ext" type="text" id="prc_preco_vc5_ext" value="{$prc_preco_vc5_ext}" size="3" maxlength="2" />
|
||
|
</td>
|
||
|
</tr>
|
||
|
<input name="prc_preco_vc6" type="hidden" value="0" />
|
||
|
<input name="prc_preco_vc6_cad" type="hidden" value="0" />
|
||
|
<input name="prc_preco_vc6_ext" type="hidden" value="0" />
|
||
|
<!-- <tr>
|
||
|
<th align="left">Móvel DDI</th>
|
||
|
<td>
|
||
|
<input name="prc_preco_vc6" type="text" id="prc_preco_vc6" value="0" style="width: 170px;" size="20" maxlength="12" />
|
||
|
</td>
|
||
|
<th>Cadência</th>
|
||
|
<td>
|
||
|
<input name="prc_preco_vc6_cad" type="text" id="prc_preco_vc6_cad" value="0" size="5" maxlength="2" />
|
||
|
</td>
|
||
|
<th align="center"><strong>+</strong></th>
|
||
|
<td align="left">
|
||
|
<input name="prc_preco_vc6_ext" type="text" id="prc_preco_vc6_ext" value="0" size="3" maxlength="2" />
|
||
|
</td>
|
||
|
</tr> -->
|
||
|
<tr>
|
||
|
<th align="left"> </th>
|
||
|
<td>
|
||
|
<input name="btGravar" type="submit" id="btGravar" value="{$acaoForm}">
|
||
|
<input name="btClose" type="submit" id="btClose" value="Fechar" onClick="window.close();">
|
||
|
</td>
|
||
|
<td> </td>
|
||
|
<td> </td>
|
||
|
<td> </td>
|
||
|
<td> </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<th colspan="6" align="center">Registros</th>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td colspan="6" align="center">
|
||
|
<div id="dados" style="width:100%;height:280px; overflow:scroll;">
|
||
|
<table width="100%" border="0" cellspacing="0" cellpadding="2" class="grid">
|
||
|
<tr>
|
||
|
<th rowspan="2" align="center">Vigência</th>
|
||
|
<th rowspan="2" align="center">Tipo</th>
|
||
|
<th rowspan="2" align="center">Franquia</th>
|
||
|
<th rowspan="2" align="center">Franquia Móvel</th>
|
||
|
<th rowspan="2" align="center">Preço Franquia</th>
|
||
|
<th colspan="3" align="center">Preço Fixo </th>
|
||
|
<th colspan="3" align="center">Preço Móvel </th>
|
||
|
<th rowspan="2" align="center">Operadora</th>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<th align="center">Local</th>
|
||
|
<th align="center">DDD</th>
|
||
|
<th align="center">DDI</th>
|
||
|
<th align="center">Local</th>
|
||
|
<th align="center">DDD</th>
|
||
|
<th align="center">DDI</th>
|
||
|
</tr>
|
||
|
{$linhas}
|
||
|
</table>
|
||
|
</div>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td>
|
||
|
<input name="contr_id" type="hidden" id="contr_id" value="{$contr_id}">
|
||
|
<input name="acao" type="hidden" id="acao" value="{$acao}">
|
||
|
<input name="contr_descricao" type="hidden" id="contr_descricao" value="{$contr_descricao}">
|
||
|
<input name="prec_id" type="hidden" id="prec_id" value="{$contr_id}">
|
||
|
<input name="oper_id" type="hidden" id="oper_id" value="{$oper_id}">
|
||
|
<input name="oper_nome" type="hidden" id="oper_nome" value="{$oper_nome}">
|
||
|
<input name="prc_tipo_opera" type="hidden" id="prc_tipo_opera" value="0">
|
||
|
<input name="contr_tipo_franquia" type="hidden" id="contr_tipo_franquia" value="{$contr_tipo_franquia}">
|
||
|
<input name="contr_dia_fechamento" type="hidden" id="contr_dia_fechamento" value="{$contr_dia_fechamento}">
|
||
|
|
||
|
{if $contr_tipo_franquia == 0}
|
||
|
<input name="prc_franquia" type="hidden" value="0" />
|
||
|
<input name="prc_franquia_movel" type="hidden" value="0" />
|
||
|
<input name="prc_franquia_preco" type="hidden" value="0" />
|
||
|
{/if}
|
||
|
{if ($contr_tipo_franquia == 1) || (($contr_tipo_franquia == 2))}
|
||
|
<input name="prc_franquia_movel" type="hidden" value="0" />
|
||
|
{/if}
|
||
|
{if $contr_tipo_franquia == 3}
|
||
|
<input name="prc_franquia" type="hidden" value="0" />
|
||
|
{/if}
|
||
|
{$tipo_opera}
|
||
|
</td>
|
||
|
<td> </td>
|
||
|
<td> </td>
|
||
|
<td> </td>
|
||
|
<td> </td>
|
||
|
<td> </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td colspan="6">{if $msgErro}Erro: {$msgErro} {else} {/if}</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
{/capture}
|