|
|
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
|
|
|
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
|
|
|
|
<html>
|
|
|
|
|
<head>
|
|
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
|
|
|
|
<link rel="stylesheet" href="admin/css/validationEngine.jquery.css" type="text/css" media="screen" title="no title" charset="ISO-8859-1" />
|
|
|
|
|
<script type="text/javascript" src="admin/js/jquery-1.4.js"></script>
|
|
|
|
|
<script type="text/javascript" src="admin/js/jquery.blockUI.js?v2.29"></script>
|
|
|
|
|
<script src="admin/js/jquery.min.js" type="text/javascript"></script>
|
|
|
|
|
<script src="admin/js/jquery.validationEngine.js" type="text/javascript"></script>
|
|
|
|
|
<script src="admin/js/jquery.validationEngine-en.js" type="text/javascript"></script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
$(document).ready(function () {
|
|
|
|
|
$("#form1").validationEngine({
|
|
|
|
|
sucess: function () {
|
|
|
|
|
document.form1.submit();
|
|
|
|
|
},
|
|
|
|
|
failure: function () {}
|
|
|
|
|
})
|
|
|
|
|
});
|
|
|
|
|
</script>
|
|
|
|
|
<link href="admin/css/forms.css" rel="stylesheet" type="text/css">
|
|
|
|
|
<style type="text/css">
|
|
|
|
|
<!--
|
|
|
|
|
body {
|
|
|
|
|
background-color: #EAEAEA;
|
|
|
|
|
}
|
|
|
|
|
-->
|
|
|
|
|
</style></head>
|
|
|
|
|
<body>
|
|
|
|
|
<?php
|
|
|
|
|
//include da biblioteca padr<EFBFBD>o do sistema
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$acao = $_GET["acao"];
|
|
|
|
|
|
|
|
|
|
if ($acao == 'salva') {
|
|
|
|
|
$blindxfer = trim($_POST["blindxfer"]);
|
|
|
|
|
$disconnect = trim($_POST["disconnect"]);
|
|
|
|
|
$automon = trim($_POST["automon"]);
|
|
|
|
|
$atxfer = trim($_POST["atxfer"]);
|
|
|
|
|
$parkcall = trim($_POST["parkcall"]);
|
|
|
|
|
|
|
|
|
|
//REALIZA BACKUP BO BANCO
|
|
|
|
|
//($dbcon,'pbx_features_featuremap','U','','update','FEATURES_FEATUREMAP');
|
|
|
|
|
|
|
|
|
|
$query = "UPDATE pbx_features_featuremap
|
|
|
|
|
SET
|
|
|
|
|
blindxfer = '$blindxfer',disconnect='$disconnect',automon='$automon',atxfer='$atxfer',parkcall='$parkcall'";
|
|
|
|
|
|
|
|
|
|
pg_query($dbcon, $query); //gera arquivos e executa o reload dos dados no asterisk
|
|
|
|
|
gera_arquivos($dbcon, 'FEATURE_FEATUREMAP');
|
|
|
|
|
?>
|
|
|
|
|
<script>//fecha a janela presa no meio do sistema
|
|
|
|
|
fecha_popup();</script>
|
|
|
|
|
|
|
|
|
|
<?php
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$query = "SELECT * FROM pbx_features_featuremap";
|
|
|
|
|
$result = pg_query($dbcon, $query);
|
|
|
|
|
while ($dados = pg_fetch_array($result)) {
|
|
|
|
|
?>
|
|
|
|
|
<form action="index.php?idProg=10005&pbxRequest=1&acao=salva" method="post" name="form1" id="form1">
|
|
|
|
|
<br />
|
|
|
|
|
<table width="384" border="1" align="center" cellpadding="0" cellspacing="0" class="tabela">
|
|
|
|
|
<tr bordercolor="#EAEAEA" bgcolor="#EAEAEA" class="cabecalho" background="img/button03.gif">
|
|
|
|
|
<td background="img/button03.gif" ><div align="center">CONFIGURAÇÃO DE MAPA</div></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr bordercolor="#EAEAEA" bgcolor="#EAEAEA" class="labels">
|
|
|
|
|
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
|
|
|
|
|
<tr>
|
|
|
|
|
<td><fieldset>
|
|
|
|
|
<legend class="labels"><span class="style9">blindxfer :</span></legend>
|
|
|
|
|
<input name="blindxfer" type="text" class="validate[optional,custom[onlyNumber],length[0,100]] caixas" id="blindxfer" value="<?php echo $dados['blindxfer']; ?>" size="20" maxlength="10" />
|
|
|
|
|
</fieldset></td>
|
|
|
|
|
<td><fieldset>
|
|
|
|
|
<legend class="labels"><span class="style9">disconnect :</span></legend>
|
|
|
|
|
<input name="disconnect" type="text" class="validate[optional,custom[onlyNumber],length[0,100]] caixas" id="disconnect" value="<?php echo $dados['disconnect']; ?>" size="20" maxlength="10" />
|
|
|
|
|
</fieldset></td>
|
|
|
|
|
<td><fieldset>
|
|
|
|
|
<legend class="labels"><span class="style9">automon:</span></legend>
|
|
|
|
|
<input name="automon" type="text" class="validate[optional,custom[onlyNumber],length[0,100]] caixas" id="automon" value="<?php echo $dados['automon']; ?>" size="20" maxlength="10" />
|
|
|
|
|
</fieldset></td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr bordercolor="#EAEAEA" bgcolor="#EAEAEA" class="labels">
|
|
|
|
|
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
|
|
|
|
|
<tr>
|
|
|
|
|
<td width="33%"><fieldset>
|
|
|
|
|
<legend class="labels"><span class="style9">atxfer:</span></legend>
|
|
|
|
|
<input name="atxfer" type="text" class="validate[optional,custom[onlyNumber],length[0,100]] caixas" id="atxfer" value="<?php echo $dados['atxfer']; ?>" size="20" maxlength="10" />
|
|
|
|
|
</fieldset></td>
|
|
|
|
|
<td width="67%"><fieldset>
|
|
|
|
|
<legend class="labels"><span class="style9">parkcall :</span></legend>
|
|
|
|
|
<input name="parkcall" type="text"class="validate[optional,custom[onlyNumber],length[0,100]] caixas" id="parkcall" value="<?php echo $dados['parkcall']; ?>" size="20" maxlength="10" />
|
|
|
|
|
</fieldset></td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr bordercolor="#EAEAEA" bgcolor="#EAEAEA">
|
|
|
|
|
<td>
|
|
|
|
|
<div align="center"> <span class="style1">
|
|
|
|
|
<input name="Submit2" type="button" class="labels" onclick="fecha_popup();" value="Fechar" />
|
|
|
|
|
</span>
|
|
|
|
|
<input name="Submit" type="submit" class="labels" value="Salvar" />
|
|
|
|
|
</div></td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
</form>
|
|
|
|
|
<?php } ?>
|