forked from bruno/pabx-app
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
1.2 KiB
29 lines
1.2 KiB
2 years ago
|
<?php
|
||
|
|
||
|
/*
|
||
|
* To change this template, choose Tools | Templates
|
||
|
* and open the template in the editor.
|
||
|
*/
|
||
|
$nomeTpl = "callcenter/agente/agenteIni.tpl";
|
||
|
$smarty->assign('idDac', $_SESSION[AGT_DAC_CONECT_DESC]);
|
||
|
if (!IsSuper()) {
|
||
|
//$jsStartup[] = "NovaJanela('index.php?idProg=14', 'AgenteCallcenter', '630', '270', 'resizable=YES,scrollbars=NO');";
|
||
|
$query = "select prm_agente_nova_janela, prm_use_discador from pbx_parametros";
|
||
|
$result = pg_query($query);
|
||
|
$dados = pg_fetch_array($result, null, PGSQL_ASSOC);
|
||
|
|
||
|
$novaJanela = $dados['prm_agente_nova_janela'];
|
||
|
$useDiscador = $dados['prm_use_discador'];
|
||
|
$alturaJanAgt = 540;
|
||
|
if ($novaJanela) {
|
||
|
SetDimensoes(840, ($useDiscador ? $alturaJanAgt : $alturaTabelaAgente));
|
||
|
$jsStartup[] = "NovaJanela('index.php?idProg=14&janH=$janH', 'AgenteCallcenter','$janW','$janH', 'resizable=YES,scrollbars=YES');";
|
||
|
} else {
|
||
|
@header("Location: index.php?idProg=14");
|
||
|
exit;
|
||
|
}
|
||
|
}
|
||
|
//if(!IsSuper() && Perfil("mnAgente")) $jsStartup[] = "NovaJanela('index.php?idProg=14', 'AgenteCallcenter', '630', '270', 'resizable=YES,scrollbars=NO');";
|
||
|
GetTemplate($smarty, $nomeTpl);
|
||
|
?>
|