|
|
|
|
<!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
|
|
|
|
|
$acao = $_GET["acao"];
|
|
|
|
|
|
|
|
|
|
if ($acao == 'salva') {
|
|
|
|
|
$persistentmembers = trim($_POST["persistentmembers"]);
|
|
|
|
|
$autofill = trim($_POST["autofill"]);
|
|
|
|
|
$setinterfacevar = trim($_POST["setinterfacevar"]);
|
|
|
|
|
$monitor_type = trim($_POST["monitor_type"]);
|
|
|
|
|
|
|
|
|
|
//REALIZA BACKUP BO BANCO
|
|
|
|
|
//($dbcon,'pbx_queues_general','U','','update','QUEUES_GENERAL');
|
|
|
|
|
|
|
|
|
|
$query = "UPDATE pbx_queues_general SET persistentmembers='$persistentmembers', autofill='$autofill',setinterfacevar='$setinterfacevar',\"monitor-type\"='$monitor_type'";
|
|
|
|
|
$result = pg_query($dbcon, $query); //gera arquivos e executa o reload dos dados no asterisk
|
|
|
|
|
gera_arquivos($dbcon, 'QUEUES_GENERAL');
|
|
|
|
|
?>
|
|
|
|
|
<script>//fecha a janela presa no meio do sistema
|
|
|
|
|
fecha_popup();</script>
|
|
|
|
|
<?php
|
|
|
|
|
}
|
|
|
|
|
$query2 = "SELECT * FROM pbx_queues_general";
|
|
|
|
|
$result2 = pg_query($dbcon, $query2);
|
|
|
|
|
while ($dados2 = pg_fetch_array($result2)) {
|
|
|
|
|
?>
|
|
|
|
|
<form name="form1" method="post" action="index.php?idProg=10005&pbxRequest=1&acao=salva" id="form1">
|
|
|
|
|
<table width="395" border="1" align="center" cellpadding="0" cellspacing="0" class="tabela">
|
|
|
|
|
<tr bgcolor="#EAEAEA" class="cabecalho">
|
|
|
|
|
<td class="cabecalho"><div align="center">CONFIGURAÇÃO GLOBAL DE FILAS </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">Permitir agentes logados em caso de falha:</legend>
|
|
|
|
|
<input name="persistentmembers" type="radio" value="yes" <?php
|
|
|
|
|
if (trim($dados2["persistentmembers"]) == 'yes') {
|
|
|
|
|
echo "checked";
|
|
|
|
|
}
|
|
|
|
|
?> />
|
|
|
|
|
Sim
|
|
|
|
|
<input name="persistentmembers" type="radio" value="no" <?php
|
|
|
|
|
if (trim($dados2["persistentmembers"]) == 'no') {
|
|
|
|
|
echo "checked";
|
|
|
|
|
}
|
|
|
|
|
?> />
|
|
|
|
|
Não
|
|
|
|
|
</fieldset></td>
|
|
|
|
|
<td><fieldset>
|
|
|
|
|
<legend class="labels">Atendimento em Paralelo:</legend>
|
|
|
|
|
<input name="autofill" type="radio" value="yes" <?php
|
|
|
|
|
if (trim($dados2["autofill"]) == 'yes') {
|
|
|
|
|
echo "checked";
|
|
|
|
|
}
|
|
|
|
|
?> />
|
|
|
|
|
Sim
|
|
|
|
|
<input name="autofill" type="radio" value="no" <?php
|
|
|
|
|
if (trim($dados2["autofill"]) == 'no') {
|
|
|
|
|
echo "checked";
|
|
|
|
|
}
|
|
|
|
|
?> />
|
|
|
|
|
Não
|
|
|
|
|
</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><fieldset>
|
|
|
|
|
<legend class="labels">Declarar Variav<EFBFBD>is:</legend>
|
|
|
|
|
<input name="setinterfacevar" type="radio" value="yes" <?php
|
|
|
|
|
if (trim($dados2["setinterfacevar"]) == 'yes') {
|
|
|
|
|
echo "checked";
|
|
|
|
|
}
|
|
|
|
|
?> />
|
|
|
|
|
Sim
|
|
|
|
|
<input name="setinterfacevar" type="radio" value="no" <?php
|
|
|
|
|
if (trim($dados2["setinterfacevar"]) == 'no') {
|
|
|
|
|
echo "checked";
|
|
|
|
|
}
|
|
|
|
|
?> />
|
|
|
|
|
Não
|
|
|
|
|
</fieldset></td>
|
|
|
|
|
<td><fieldset>
|
|
|
|
|
<legend class="labels">Tipo de Monitor:</legend>
|
|
|
|
|
<select name="monitor_type" class="caixas">
|
|
|
|
|
<option value="" <?php
|
|
|
|
|
if (trim($dados2['monitor-type']) == '') {
|
|
|
|
|
echo "selected";
|
|
|
|
|
}
|
|
|
|
|
?>>---------</option>
|
|
|
|
|
<option value="mixmonitor" <?php
|
|
|
|
|
if (trim($dados2['monitor-type']) == 'mixmonitor') {
|
|
|
|
|
echo "selected";
|
|
|
|
|
}
|
|
|
|
|
?>>MixMonitor</option>
|
|
|
|
|
<option value="monitor" <?php
|
|
|
|
|
if (trim($dados2['monitor-type']) == 'monitor') {
|
|
|
|
|
echo "selected";
|
|
|
|
|
}
|
|
|
|
|
?>>Monitor</option>
|
|
|
|
|
</select>
|
|
|
|
|
</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 } ?>
|
|
|
|
|
</body>
|