Browse Source

fix cadRotasSaida, agora nao ha mais plano de numeracao interna no cadastro de rotas

1.9
Matheo Bonucia 3 months ago
parent
commit
a91c059ce7
  1. 69
      admin/CadRotasSaida.php
  2. 6
      admin/cadQgrupos.php

69
admin/CadRotasSaida.php

@ -432,57 +432,41 @@
<td bgcolor="#EAEAEA" class="labels"> <td bgcolor="#EAEAEA" class="labels">
<table width="100%" border="0" cellspacing="0" cellpadding="0"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr> <tr>
<td> <td width="50%">
<fieldset> <fieldset>
<legend class="labels">Nome:</legend> <legend class="labels">Nome:</legend>
<input name="nome" type="text" class="validate[required,length[0,100]] caixas" id="nome3" value="<?= ($acao == 'edita') ? $nome : null; ?>" size="80" maxlength="50" /> <input name="nome" type="text" class="validate[required,length[0,100]] caixas" id="nome3" value="<?= ($acao == 'edita') ? $nome : null; ?>" size="80" maxlength="50" />
</fieldset> </fieldset>
</td> </td>
</tr> <td width="50%">
</table> <div align="center">
</td>
</tr>
<tr bordercolor="#EAEAEA" bgcolor="#EAEAEA">
<td bgcolor="#EAEAEA" class="labels">
<div align="right">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="33%">
<div align="left">
<fieldset> <fieldset>
<legend class="labels">Tipo:</legend> <legend class="labels">Tipo:</legend>
<input name="tipo" type="radio" value="I" <?= ($acao == 'edita') && ($tipo == 'I') ? "checked" : null; ?> /> <input id="optionNoRestricted" name="tipo" type="radio" value="I" <?= ($acao == 'edita') && ($tipo == 'I') ? "checked" : null; ?> />
Interno Sem Restrição
<input name="tipo" type="radio" value="E" <?= ($acao == 'edita') && ($tipo == 'E') ? "checked" : null; ?> <?= ($acao != 'edita') ? "checked" : null; ?> /> <input id="optionRestricted" name="tipo" type="radio" value="E" <?= ($acao == 'edita') && ($tipo == 'E') ? "checked" : null; ?> <?= ($acao != 'edita') ? "checked" : null; ?> />
Externo Restrito
</fieldset> </fieldset>
</div> </div>
</td> </td>
</tr> </tr>
</table> </table>
</div>
</td> </td>
</tr> </tr>
<tr bordercolor="#EAEAEA" bgcolor="#EAEAEA"> <tr bordercolor="#EAEAEA" bgcolor="#EAEAEA">
<td class="labels"> <td class="labels">
<table width="100%" border="0" cellspacing="0" cellpadding="0"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr> <tr>
<td width="33%"> <td width="50%">
<fieldset> <fieldset>
<legend class="labels">Recortar:</legend> <legend class="labels">Recortar:</legend>
<input name="recorte" type="text" class="validate[optional,custom[onlyNumber]] caixas" id="recorte_prefixo" value="<?= ($acao == 'edita') ? $recorte : "0"; ?>" size="10" maxlength="10" /> <input style="width: 100%" name="recorte" type="text" class="validate[optional,custom[onlyNumber]] caixas" id="recorte_prefixo" value="<?= ($acao == 'edita') ? $recorte : "0"; ?>" size="10" maxlength="10" />
</fieldset> </fieldset>
</td> </td>
<td width="33%"> <td width="50%">
<fieldset> <fieldset>
<legend class="labels">Acrescentar:</legend> <legend class="labels">Acrescentar:</legend>
<input name="acrescenta" type="text" class="validate[optional] caixas" id="acrescenta" value="<?= ($acao == 'edita') ? $acrescenta : ""; ?>" size="10" maxlength="64" /> <input style="width: 100%" name="acrescenta" type="text" class="validate[optional] caixas" id="acrescenta" value="<?= ($acao == 'edita') ? $acrescenta : ""; ?>" size="10" maxlength="64" />
</fieldset>
</td>
<td width="34%" valign="middle">
<fieldset>
<legend class="labels">Plano de Numeração Interna:</legend>
<input name="portabilidade" type="checkbox" id="portabilidade" value="1" <?= ($acao == 'edita') ? ($portabilidade ? "checked=\"checked\"" : "") : null; ?> onchange="DesabilitaRotas();" />Marque para habilitar.
</fieldset> </fieldset>
</td> </td>
</tr> </tr>
@ -492,7 +476,7 @@
<tr bordercolor="#EAEAEA" bgcolor="#EAEAEA"> <tr bordercolor="#EAEAEA" bgcolor="#EAEAEA">
<td class="labels"> <td class="labels">
<fieldset> <fieldset>
<table width="80%" border="0" align="center" cellpadding="0" cellspacing="0" class="tabela" style="border:0; padding:10px;"> <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="tabela" style="border:0; padding:10px;">
<tr> <tr>
<td colspan="3"> <td colspan="3">
<div align="center">MODELOS DE DISCAGEM: </div> <div align="center">MODELOS DE DISCAGEM: </div>
@ -622,7 +606,7 @@
</fieldset> </fieldset>
</td> </td>
</tr> </tr>
<tr class="labels"> <tr class="labels" id="table-rotas">
<td style="border:0;"> <td style="border:0;">
<fieldset> <fieldset>
<legend class="labels"> <legend class="labels">
@ -735,6 +719,33 @@
</table> </table>
</form> </form>
<script type="text/javascript"> <script type="text/javascript">
//Tratamento de dados conforme a opcao de Restrito ou Sem Restricao
$(document).ready(function() {
if ($('#optionNoRestricted').is(':checked')) {
$('#naoCheck').click();
$('#table-rotas').css({
visibility: 'hidden',
});
} else if ($('#optionRestricted').is(':checked')) {
$('#table-rotas').css({
visibility: 'visible',
});
}
$('#optionNoRestricted').click(function() {
$('#naoCheck').click();
$('#table-rotas').css({
visibility: 'hidden',
});
});
$('#optionRestricted').click(function() {
$('#table-rotas').css({
visibility: 'visible',
});
});
});
$(document).ready(function() { $(document).ready(function() {
window.resizeTo($('#form1').width() + 100, $('#form1').height() - 250); window.resizeTo($('#form1').width() + 100, $('#form1').height() - 250);
$('#btfechar').click(function() { $('#btfechar').click(function() {

6
admin/cadQgrupos.php

@ -239,7 +239,7 @@
} }
} else { } else {
$filaExiste = 1; $filaExiste = 1;
$msgValida = $row[0] ? "Fila ou Campanha j� existe!" : 'N�mero j� cadastrado para outra Fila ou Ramal!'; $msgValida = $row[0] ? "Fila ou Campanha já existe!" : 'Número já cadastrado para outra Fila ou Ramal!';
} }
} else { } else {
$filaExiste = 1; $filaExiste = 1;
@ -270,7 +270,7 @@
} else { } else {
$filaExiste = 1; $filaExiste = 1;
$closeWin = 1; $closeWin = 1;
$msgValida = 'N�mero j� cadastrado para outra Fila ou Ramal!'; $msgValida = 'Número já cadastrado para outra Fila ou Ramal!';
} }
} }
@ -302,7 +302,7 @@
if ($log) { if ($log) {
$filaExiste = 1; $filaExiste = 1;
$closeWin = 1; $closeWin = 1;
$msgValida = ($a > 1) ? "Os ramais \"$log\" j� est�o sendo utilizados por um agente logado!" : "O ramal \"$log\" j� está sendo utilizado por um agente logado!"; $msgValida = ($a > 1) ? "Os ramais \"$log\" já estão sendo utilizados por um agente logado!" : "O ramal \"$log\" já está sendo utilizado por um agente logado!";
} }
//gera arquivos e executa o reload dos dados no asterisk //gera arquivos e executa o reload dos dados no asterisk
gera_arquivos($dbcon, 'QUEUES_GRUPOS'); gera_arquivos($dbcon, 'QUEUES_GRUPOS');

Loading…
Cancel
Save