|
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="cs" lang="cs">
|
|
|
|
<head>
|
|
|
|
<title>Simples IP</title>
|
|
|
|
<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.validationEngine.js" type="text/javascript"></script>
|
|
|
|
<script src="admin/js/jquery.validationEngine-en.js" type="text/javascript"></script>
|
|
|
|
<script src="admin/js/pbxAjax.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
|
|
|
|
$acao = $_GET["acao"];
|
|
|
|
|
|
|
|
if (isset($_POST["allow_slinear"])) {
|
|
|
|
$allow_slinear = trim($_POST["allow_slinear"]);
|
|
|
|
$allow_ulaw = trim($_POST["allow_ulaw"]);
|
|
|
|
$allow_alaw = trim($_POST["allow_alaw"]);
|
|
|
|
$allow_gsm = trim($_POST["allow_gsm"]);
|
|
|
|
$consolelanguage = trim($_POST["consolelanguage"]);
|
|
|
|
|
|
|
|
//REALIZA BACKUP BO BANCO
|
|
|
|
//($dbcon,'pbx_digivoice_general','U','','update','DIGIVOICE GENERAL');
|
|
|
|
|
|
|
|
$query = "UPDATE pbx_digivoice_general
|
|
|
|
SET allow_slinear=$allow_slinear, allow_ulaw=$allow_ulaw, allow_alaw=$allow_alaw, allow_gsm=$allow_gsm, consolelanguage='$consolelanguage'";
|
|
|
|
// $result = pg_query($dbcon, $query);
|
|
|
|
|
|
|
|
pg_query($dbcon, $query); //gera arquivos e executa o reload dos dados no asterisk
|
|
|
|
gera_arquivos($dbcon, 'DIGIVOICE');
|
|
|
|
?>
|
|
|
|
<script>//fecha a janela presa no meio do sistema
|
|
|
|
fecha_popup();</script>
|
|
|
|
<?php
|
|
|
|
}
|
|
|
|
|
|
|
|
$query = "SELECT * FROM pbx_digivoice_general";
|
|
|
|
$result = pg_query($dbcon, $query);
|
|
|
|
if ($dados = pg_fetch_array($result)) {
|
|
|
|
?>
|
|
|
|
|
|
|
|
|
|
|
|
<form name="form1" method="post" action="index.php?idProg=11441&pbxRequest=1">
|
|
|
|
<table border="1" align="center" cellpadding="0" cellspacing="0" class="tabela">
|
|
|
|
<tr bordercolor="#EAEAEA">
|
|
|
|
<td class="cabecalho"><div align="center">CONFIGURAÇÃO GLOBAL DIGIVOICE </div></td>
|
|
|
|
</tr>
|
|
|
|
<tr bordercolor="#EAEAEA">
|
|
|
|
<td class="labels"><table width="100%" border="0" cellspacing="0" cellpadding="0">
|
|
|
|
<tr>
|
|
|
|
<td><fieldset>
|
|
|
|
<legend class="labels">allow_slinear:</legend>
|
|
|
|
<?php
|
|
|
|
switch (trim($dados["allow_slinear"])) {
|
|
|
|
case '1': $allow_slinear1 = 'checked';
|
|
|
|
break;
|
|
|
|
case '0': $allow_slinear2 = 'checked';
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
<input name="allow_slinear" type="radio" value="1" <?php echo $allow_slinear1; ?> />
|
|
|
|
Sim
|
|
|
|
<input name="allow_slinear" type="radio" value="0" <?php echo $allow_slinear2; ?> />
|
|
|
|
Não
|
|
|
|
</fieldset></td>
|
|
|
|
<td><fieldset>
|
|
|
|
<legend class="labels">allow_ulaw:</legend>
|
|
|
|
<?php
|
|
|
|
switch (trim($dados["allow_ulaw"])) {
|
|
|
|
case '1': $allow_ulaw1 = 'checked';
|
|
|
|
break;
|
|
|
|
case '0': $allow_ulaw2 = 'checked';
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
<input name="allow_ulaw" type="radio" value="1" <?php echo $allow_ulaw1; ?> />
|
|
|
|
Sim
|
|
|
|
<input name="allow_ulaw" type="radio" value="0" <?php echo $allow_ulaw2; ?> />
|
|
|
|
Não
|
|
|
|
</fieldset></td>
|
|
|
|
<td><fieldset>
|
|
|
|
<legend class="labels">allow_alaw:</legend>
|
|
|
|
<?php
|
|
|
|
switch (trim($dados["allow_alaw"])) {
|
|
|
|
case '1': $allow_alaw1 = 'checked';
|
|
|
|
break;
|
|
|
|
case '0': $allow_alaw2 = 'checked';
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
<input name="allow_alaw" type="radio" value="1" <?php echo $allow_alaw1; ?> />
|
|
|
|
Sim
|
|
|
|
<input name="allow_alaw" type="radio" value="0" <?php echo $allow_alaw2; ?> />
|
|
|
|
Não
|
|
|
|
</fieldset></td>
|
|
|
|
</tr>
|
|
|
|
</table></td>
|
|
|
|
</tr>
|
|
|
|
<tr bordercolor="#EAEAEA">
|
|
|
|
<td class="labels"><table width="100%" border="0" cellspacing="0" cellpadding="0">
|
|
|
|
<tr>
|
|
|
|
<td><fieldset>
|
|
|
|
<legend class="labels">allow_gsm:</legend>
|
|
|
|
<?php
|
|
|
|
switch (trim($dados["allow_gsm"])) {
|
|
|
|
case '1': $allow_gsm1 = 'checked';
|
|
|
|
break;
|
|
|
|
case '0': $allow_gsm2 = 'checked';
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
<input name="allow_gsm" type="radio" value="1" <?php echo $allow_gsm1; ?> />
|
|
|
|
Sim
|
|
|
|
<input name="allow_gsm" type="radio" value="0" <?php echo $allow_gsm2; ?> />
|
|
|
|
Não
|
|
|
|
</fieldset></td>
|
|
|
|
<td><fieldset>
|
|
|
|
<legend class="labels">consolelanguage:</legend>
|
|
|
|
<select name="consolelanguage" class="caixas" id="consolelanguage">
|
|
|
|
<option value="br" <?php
|
|
|
|
if (trim($dados["consolelanguage"]) == 'br') {
|
|
|
|
echo "selected";
|
|
|
|
}
|
|
|
|
?>>br</option>
|
|
|
|
<option value="en" <?php
|
|
|
|
if (trim($dados["consolelanguage"]) == 'en') {
|
|
|
|
echo "selected";
|
|
|
|
}
|
|
|
|
?>>en</option>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
</fieldset></td>
|
|
|
|
</tr>
|
|
|
|
</table></td>
|
|
|
|
</tr>
|
|
|
|
<tr bordercolor="#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">
|
|
|
|
<br>
|
|
|
|
</div></td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</form>
|
|
|
|
<?php } ?>
|