@ -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 ; ?> />
Intern o
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 ; ?> />
Extern o
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 = "8 0%" border = "0" align = "center" cellpadding = "0" cellspacing = "0" class = "tabela" style = "border:0; padding:10px;" >
< table width = "10 0%" 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() {