Browse Source

correções de realtorios

master
Lucas Awade 1 year ago
parent
commit
b7f943f1a0
  1. 13
      cadastros/motivosPausa/motivosPausaDelete.php
  2. 5
      cadastros/motivosPausa/motivosPausaSelect.php
  3. 2
      cadastros/pesquisa/pesquisaFuncoes.php
  4. 2
      relatorios/callcenter/geral/rechamadas.php
  5. 305
      relatorios/callcenter/geral/relMsgWhatsapp.php
  6. 294
      relatorios/callcenter/geral/relMsgWhatsappDetalhado.php
  7. 2
      scriptApl/functions15.js
  8. 2
      templates/seguranca/trocaSenha.tpl

13
cadastros/motivosPausa/motivosPausaDelete.php

@ -13,6 +13,17 @@ $query = "select count(*) from pbx_eventos_agentes where id_motivo_pausa = $id";
$result = pg_query($dbcon, $query); $result = pg_query($dbcon, $query);
$query1 = "SELECT * FROM pbx_motivos_pausas WHERE id = $id;";
$result1 = pg_query($dbcon, $query1);
$res = pg_fetch_assoc($result1);
if($id && $res['flag'] == 0){
$query = "update pbx_motivos_pausas set flag = '1' where id = $id";
$result = pg_query($dbcon, $query);
echo "OK; Registro foi ativado.";
return;
}
if ($result) { if ($result) {
// Verifica se existem usuário incluidos neste grupo // Verifica se existem usuário incluidos neste grupo
$row = @pg_fetch_row($result); $row = @pg_fetch_row($result);
@ -36,7 +47,7 @@ if ($result) {
echo "ERRO; Não é possível excluir este registro! Erro: " . pg_last_error(); echo "ERRO; Não é possível excluir este registro! Erro: " . pg_last_error();
} }
} else { } else {
echo "ERRO; Não é possível excluir o registro, o mesmo está sendo utilizado para auditorias! O registro será desativado."; echo "OK; Não é possível excluir o registro, o mesmo está sendo utilizado para auditorias! O registro será desativado.";
$query = "update pbx_motivos_pausas set flag = '0' where id = $id"; $query = "update pbx_motivos_pausas set flag = '0' where id = $id";
$result = pg_query($dbcon, $query); $result = pg_query($dbcon, $query);
} }

5
cadastros/motivosPausa/motivosPausaSelect.php

@ -57,7 +57,12 @@ while (($result) && ($dados = @pg_fetch_array($result))) {
$imgEdit = GetLinkFormUpdate("&id=$id", "updMotivosPausa"); $imgEdit = GetLinkFormUpdate("&id=$id", "updMotivosPausa");
$status = $dados["flag"] ? $imgYes : $imgNo; $status = $dados["flag"] ? $imgYes : $imgNo;
if($dados["flag"] == 0){
$delete = "<a href=\"javaScript:DeltetaMotivoPausa('$id', '&paramPesquisa=&pgn=0&bloco=0&pg=0');\"><img src='imgSite/Sync.png' width='16' height='16' border='0' title='Ative este registro!'></a>";
} else {
$delete = GetLinkFormDelete($id . '|' . $params, 'DeltetaMotivoPausa'); $delete = GetLinkFormDelete($id . '|' . $params, 'DeltetaMotivoPausa');
}
SetDimensoes(610, 275); SetDimensoes(610, 275);
$pausaGrupo = "<a style=\"color: #000;\" href=\"javaScript:NovaJanela('index.php?idProg=130&id=$id', 'pausasGrupos', '$janW', '$janH', 'resizable=NO,scrollbars=NO');\"> $imgPausaGrupo</a>"; $pausaGrupo = "<a style=\"color: #000;\" href=\"javaScript:NovaJanela('index.php?idProg=130&id=$id', 'pausasGrupos', '$janW', '$janH', 'resizable=NO,scrollbars=NO');\"> $imgPausaGrupo</a>";
$pausaGrupo = UsePausaGrupo() ? "<td width=\"20\" align=\"center\">$pausaGrupo</td>" : ""; $pausaGrupo = UsePausaGrupo() ? "<td width=\"20\" align=\"center\">$pausaGrupo</td>" : "";

2
cadastros/pesquisa/pesquisaFuncoes.php

@ -66,7 +66,7 @@ function GetPesquisaDac($db, $idDac) {
return $ret; return $ret;
} }
function GetPesquisaAgente($db, $plId, $matricula, $idDac, $dtIni, $dtFim, $incTodos) { function GetPesquisaAgente($db, $plId, $matricula, $idDac, $dtIni, $dtFim, $incTodos = 0) {
$ret = ""; $ret = "";
$sel = ""; $sel = "";
$dataIni = soNumero($dtIni) == "" ? "null" : "'$dtIni'"; $dataIni = soNumero($dtIni) == "" ? "null" : "'$dtIni'";

2
relatorios/callcenter/geral/rechamadas.php

@ -101,7 +101,7 @@ class RelRechamadas extends Relatorios {
protected function ___GetDadosDb() { protected function ___GetDadosDb() {
$dataIni = FormatDtMssql($this->___dataIni); $dataIni = FormatDtMssql($this->___dataIni);
$dataFim = FormatDtHoraBD($this->___dataFim); $dataFim = FormatDtMssql($this->___dataFim);
$dac = $this->___dac; $dac = $this->___dac;
$srv = $this->___servico; $srv = $this->___servico;
$origem = soNumero($this->___origem); $origem = soNumero($this->___origem);

305
relatorios/callcenter/geral/relMsgWhatsapp.php

@ -1,305 +0,0 @@
<?php
include_once 'util/relatoriosBase.php';
class RelMsgWhatsapp extends Relatorios {
private $___agente;
private $___fila;
public function __construct($idProg, $dbcon, $incDac) {
parent::__construct($idProg, $dbcon, $incDac);
$this->___agente = isset($_POST['agente']) ? $_POST['agente'] : '';
$this->___fila = isset($_POST['fila']) ? $_POST['fila'] : '';
}
function ___FiltrosRelatorio() {
$agente = $this->getAgente($this->___agente);
if ($this->___media != MEDIA_PRINT_GRID) {
/*
* Recupera os filtros da sessão do usuário.
*/
list($this->___dataIni, $this->___dataFim, $this->___tipoRelatorio) = $_SESSION["SSstorageFiltros"];
if ($this->___media == MEDIA_PRINT_HTML) {
$fila = $this->GetIncDac() ? 'Fila: ' . GetDacDesc($this->GetDbCon(), $this->GetIdProg() . ' ') : '';
return sprintf("%sData Inicial: %s Data Final: %s Tipo: %s", $fila, $this->___dataIni, $this->___dataFim, ($this->___tipoRelatorio ? 'Analítico' : 'Sintético'));
}
$fltCsv = array();
if ($this->GetIncDac()) {
$fltCsv[] = 'Fila:' . GetDacDesc($this->GetDbCon(), $this->___dac);
}
$fltCsv[] = "Data Inicial:" . $this->___dataIni;
$fltCsv[] = "Data Final:" . $this->___dataFim;
$fltCsv[] = "Data Emissao:" . date('d/m/Y H:i:s');
$fltCsv[] = "Emitido Por:" . GetLogin();
return $fltCsv;
}
if ($this->GetIncDac()) {
$dacs = GetDac($this->GetDbCon(), $this->___dac, "", 0, 1, 0, 0, 1);
}
$lkPrint = "";
if ($this->___dataCount) {
$prt = '<a href="index.php?idProg=%s&media=%s&tipoRelatorio=%s"><img src="imgSite/%s" alt="Clique aqui para imprimir!" width="24" height="24" border="0"></a>';
//$prtHtml = "<a href=\"javaScript:NovaJanela('index.php?idProg=%s&media=%s&tipoRelatorio=%s', '%s', '720', '700', 'scrollbars=YES');\"><img src=\"imgSite/%s\" alt=\"Clique aqui para imprimir!\" width=\"24\" height=\"24\" border=\"0\"></a>";
$lkPrint .= sprintf($prtHtml, $this->GetidProg(), MEDIA_PRINT_HTML, $this->___tipoRelatorio, substr(LimpaString(GetDispProgSel($this->GetIdProg())), 0, 20), 'print.gif');
//$lkPrint .= sprintf($prt, $this->GetidProg(), MEDIA_PRINT_EXCEL, $this->___tipoRelatorio, 'prt-xls.png');
// $lkPrint .= sprintf($prt, $this->GetidProg(), MEDIA_PRINT_PDF, $this->___tipoRelatorio, 'prt-pdf.png');
//$lkPrint .= sprintf($prt, $this->GetidProg(), MEDIA_PRINT_CSV, $this->___tipoRelatorio, 'prt-csv.png');
}
// $tipoRel = !$this->___tipoRelatorio ? '' : 'checked="checked"';
/*
* Personalise esta função se necessitar de outras op��es de filtro.
*/
$filtro = '<table border="0" cellspacing="1" cellpadding="1">';
/*
* Rotulos.
*/
$filtro .= '<tr>';
$filtro .= '<td>Fila</td>';
$filtro .= '<td>Data Inicial</td>';
$filtro .= '<td>Data Final </td>';
$filtro .= '<td>Agente</td>';
$filtro .= '<td align="center" valign="middle">&nbsp;</td>';
$filtro .= '</tr>';
/*
* Valores.
*/
$filtro .= '<tr>';
$filtro .= sprintf('<td>%s</td>', $this->getDac($this->___fila));
$filtro .= '<td><input name="dataIni" id="dataIni" type="text" size="15" maxlength="10" value="%s" onkeyup="formataData(this)" title="dd/mm/aaaa"></td>';
$filtro .= '<td><input name="dataFim" id="dataFim" type="text" size="15" maxlength="10" value="%s" onkeyup="formataData(this)" title="dd/mm/aaaa"></td>';
$filtro .= sprintf('<td>%s</td>', $agente);
$filtro .= '<td><input type="submit" name="btConsulta" id="btConsulta" value="Consultar"></td>';
$filtro .= '<td>%s</td>';
$filtro .= '</tr>';
$filtro .= '</table>';
/*
* Guarda os filtros passados para recuperar na emissão dos relatóios para impressão.
*/
$_SESSION["SSstorageFiltros"] = array($this->___dataIni, $this->___dataFim, $this->___tipoRelatorio);
return sprintf($filtro, $this->___dataIni, $this->___dataFim, $lkPrint);
}
protected function ___GetDadosDb() {
$dataIni = FormatDtMssql($this->___dataIni);
$dataFim = FormatDtMssql($this->___dataFim);
$agente = $this->___agente;
$fila = $this->___fila;
$query = "SELECT DISTINCT a.uniqueid, cliente_id, fila, a.nome, a.matricula, evento, a.data_reg, a.context
FROM md_atendimento a
INNER JOIN md_evento b ON a.uniqueid = b.uniqueid
INNER JOIN pbx_usuarios c ON c.matricula = b.matricula
INNER JOIN pbx_queues_grupos d ON d.nome = b.fila
WHERE a.data_reg::DATE >= '$dataIni' AND a.data_reg::DATE <= '$dataFim'
AND evento = 'START' ";
if ($agente) {
$query .= " AND a.nome = '$agente' ";
}
if ($fila) {
$query .= " AND b.fila = '$fila' ";
}
$query .= " ORDER BY a.data_reg";
$result = $this->___GetQuery($query);
$row = pg_fetch_all($result);
if (!$agente && !$fila) {
$_SESSION['SSDataWPP'] = $row;
}
$this->SetData($row ? $row : array());
$queryDac = "SELECT * FROM pbx_queues_grupos WHERE midiafila = 'S';";
$resultDac = $this->___GetQuery($queryDac);
$rowDac = pg_fetch_all($resultDac);
$this->SetData($rowDac ? $rowDac : array());
}
protected function ___PreparaCsv() {
}
protected function ___PreparaExcel() {
}
protected function ___PreparaGrid() {
$dataRel = array();
$dadosCabecalio = array(
'Data/Hora' => 'align="center"',
'Origem' => 'align="center"',
'Matricula' => 'align="center"',
'Fila' => 'align=center',
'Perfil' => 'align=center',
'Plataforma' => 'align=center',
'Status' => 'align=center',
'Visualizar' => 'align=center'
);
$dadosField = array(
'data_reg' => 'align="center"',
'cliente_id' => 'align="center"',
'matricula' => 'align="center"',
'fila' => 'align="center"',
'nome' => 'align="center"',
'context' => 'align=center',
'evento' => 'align="center"',
'detalhes' => 'align=center'
);
/*
* Inicia o relatório.
*/
$dataRel[] = '<table width="70%" cellpadding="2" class="grid">';
/*
* Monta a linha de cabecalio.
*/
$linha = '<tr>';
$linha .= "<th align=\"center\" colspan=\"9\">Atendimento WhatsApp</th>";
$linha .= "</tr>";
$dataRel[] = $linha;
/*
* Verifica se retornou dados
*/
if (!IsPostBack() || !count($this->GetData()[0])) {
$dataRel[] = sprintf("<tr><td align=\"center\" colspan=\"%s\">%s</td></tr></table>", count($dadosCabecalio), (!IsPostBack() ? 'Informe os parametros e clique em consultar!' : 'Nenhum registro encontado!'));
$this->___dataRel[] = $dataRel;
return;
}
$linhaC = "<tr>";
foreach ($dadosCabecalio as $key => $value) {
$linhaC .= sprintf("<th %s>%s</th>", $value, $key);
}
$linhaC .= "</tr>";
$dataRel[] = $linhaC;
/*
* Linhas de dados.
*/
$count = 0;
$imgrel = "<img src=\"imgSite/detalhado.png\" width=\"12\" height=\"16\" alt=\"Detalhes WhatsApp\" title=\"Detalhes WhatsApp\" />";
foreach ($this->GetData()[0] as $row) {
$count++;
$linkRel = sprintf("<a href=\"javaScript:NovaJanela('index.php?idProg=354&uid=%s', 'MensagensWhatsApp', '850', '600', 'resizable=YES,scrollbars=YES')\"style=\"color:#000;\" >%s</a>", base64_encode($row['uniqueid']), $imgrel);
$row['data_reg'] = date('d/m/Y H:i:s', strtotime($row['data_reg']));
$row['detalhes'] = $linkRel;
$row['nome'] = utf8_decode($row['nome']);
$row['context'] = strtoupper($row['context']);
// Formata linha de dados.
$linha = "<tr>";
foreach ($dadosField as $key => $value) {
$linha .= sprintf("<td %s>%s</td>", $value, $row["$key"]);
}
$linha .= "</tr>";
$dataRel[] = $linha;
}
$dataRel[] = "<tr><th align='left' colspan='8' >Total: {$count}</th></tr>";
$dataRel[] = '</table>';
$this->___dataRel[] = $dataRel;
}
protected function ___PreparaHtml() {
}
protected function ___PreparaPdf() {
}
private function getAgente($select = null) {
$agentes = array();
foreach ($_SESSION['SSDataWPP'] as $agente) {
if (!in_array($agente['nome'], $agentes)) {
array_push($agentes, $agente['nome']);
}
}
$opt = "<select name=\"agente\" id=\"agente\" size=\"1\">";
$opt .= "<option value='0'>Todos</option>";
if ($agentes) {
foreach ($agentes as $val) {
$selected = $select == $val ? 'selected' : '';
$opt .= "<option value='{$val}' $selected>{$val}</option>";
}
}
$opt .= "</select>";
return $opt;
}
private function getDac($select = null) {
$filas = array();
foreach ($this->GetData()[1] as $fila) {
if (!in_array($fila['nome'], $filas)) {
array_push($filas, $fila['nome']);
}
}
$opt = "<select name=\"fila\" id=\"fila\" size=\"1\">";
$opt .= "<option value=''>Todas</option>";
if ($filas) {
foreach ($filas as $val) {
$selected = $select == $val ? 'selected' : '';
$opt .= "<option value='{$val}' $selected>{$val}</option>";
}
}
$opt .= "</select>";
return $filas ? $opt : null;
}
public function ExecutaRelatorio() {
global $jsStartup, $jsJQuery, $smarty;
try {
/*
* Use esta função para validar dados do formulário.
*/
$this->___ValidaForm();
/*
* Recupera os dados do banco.
*/
$this->___ConteudoRelatorio();
/*
* Imprime relatório de acordo com a media passada.
*/
$conteudoRelatorio = $this->___ImprimeRelatorio();
} catch (Exception $exc) {
$this->SetMsg($exc->getMessage());
$jsStartup[] = sprintf("alert('%s');", $this->GetMsg());
$this->___GravaLog();
}
$jsJQuery[] = "\$('#dataIni').keypress(function(){formataDataHora(this);}) ";
$jsJQuery[] = "\$('#dataFim').keypress(function(){formataDataHora(this);}) ";
$smarty->assign('filtros', $this->___FiltrosRelatorio());
$smarty->assign('conteudo', $conteudoRelatorio);
$smarty->assign('msg', $this->GetMsg());
GetTemplate($smarty, 'relatoriosGrid.tpl');
}
}
$relMsgWhatsapp = new RelMsgWhatsapp($idProg, $dbcon, 0);
$relMsgWhatsapp->ExecutaRelatorio();
?>

294
relatorios/callcenter/geral/relMsgWhatsappDetalhado.php

@ -1,294 +0,0 @@
<?php
include_once 'util/relatoriosBase.php';
$tpLayout = 1;
class RelMsgWhatsappDetalhado extends Relatorios {
private $___uid;
public function __construct($idProg, $dbcon, $incDac) {
parent::__construct($idProg, $dbcon, $incDac);
$this->___uid = isset($_GET['uid']) ? base64_decode($_GET['uid']) : '';
}
function ___FiltrosRelatorio() {
if ($this->___media != MEDIA_PRINT_GRID) {
/*
* Recupera os filtros da sessão do usuário.
*/
list($this->___dataIni, $this->___dataFim, $this->___tipoRelatorio) = $_SESSION["SSstorageFiltros"];
if ($this->___media == MEDIA_PRINT_HTML) {
$fila = $this->GetIncDac() ? 'Fila: ' . GetDacDesc($this->GetDbCon(), $this->GetIdProg() . ' ') : '';
return sprintf("%sData Inicial: %s Data Final: %s Tipo: %s", $fila, $this->___dataIni, $this->___dataFim, ($this->___tipoRelatorio ? 'Analítico' : 'Sintético'));
}
$fltCsv = array();
if ($this->GetIncDac()) {
$fltCsv[] = 'Fila:' . GetDacDesc($this->GetDbCon(), $this->___dac);
}
$fltCsv[] = "Data Inicial:" . $this->___dataIni;
$fltCsv[] = "Data Final:" . $this->___dataFim;
$fltCsv[] = "Data Emissao:" . date('d/m/Y H:i:s');
$fltCsv[] = "Emitido Por:" . GetLogin();
return $fltCsv;
}
if ($this->GetIncDac()) {
$dacs = GetDac($this->GetDbCon(), $this->___dac, "", 0, 1, 0, 0, 1);
}
$lkPrint = "";
if ($this->___dataCount) {
$prt = '<a href="index.php?idProg=%s&media=%s&tipoRelatorio=%s"><img src="imgSite/%s" alt="Clique aqui para imprimir!" width="24" height="24" border="0"></a>';
//$prtHtml = "<a href=\"javaScript:NovaJanela('index.php?idProg=%s&media=%s&tipoRelatorio=%s', '%s', '720', '700', 'scrollbars=YES');\"><img src=\"imgSite/%s\" alt=\"Clique aqui para imprimir!\" width=\"24\" height=\"24\" border=\"0\"></a>";
$lkPrint .= sprintf($prtHtml, $this->GetidProg(), MEDIA_PRINT_HTML, $this->___tipoRelatorio, substr(LimpaString(GetDispProgSel($this->GetIdProg())), 0, 20), 'print.gif');
$lkPrint .= sprintf($prt, $this->GetidProg(), MEDIA_PRINT_EXCEL, $this->___tipoRelatorio, 'prt-xls.png');
// $lkPrint .= sprintf($prt, $this->GetidProg(), MEDIA_PRINT_PDF, $this->___tipoRelatorio, 'prt-pdf.png');
//$lkPrint .= sprintf($prt, $this->GetidProg(), MEDIA_PRINT_CSV, $this->___tipoRelatorio, 'prt-csv.png');
}
// $tipoRel = !$this->___tipoRelatorio ? '' : 'checked="checked"';
/*
* Personalise esta função se necessitar de outras op��es de filtro.
*/
$filtro = '<table border="0" cellspacing="1" cellpadding="1" class="grid">';
/*
* Rotulos.
*/
$filtro .= '<tr>';
$filtro .= '<th align="center">Data Inicial </th>';
$filtro .= '<th align="center">Data Final </th>';
$filtro .= '<th align="center">&nbsp;</th>';
$filtro .= '</tr>';
/*
* Valores.
*/
$filtro .= '<tr>';
$filtro .= '<td align="center"><h2>%s</h2></th>';
$filtro .= '<td align="center"><h2>%s</h2></td>';
$filtro .= '<td align="center">%s</td>';
$filtro .= '</tr>';
$filtro .= '</table>';
/*
* Guarda os filtros passados para recuperar na emissão dos relatóios para impressão.
*/
$_SESSION["SSstorageFiltros"] = array($this->___dataIni, $this->___dataFim, $this->___tipoRelatorio);
return sprintf($filtro, $this->___dataIni, $this->___dataFim, $lkPrint);
}
protected function ___GetDadosDb() {
$uid = $this->___uid;
$query = "SELECT * FROM md_message WHERE uniqueid = '$uid' ORDER BY id";
$result = $this->___GetQuery($query);
$row = pg_fetch_all($result);
$this->SetData($row ? $row : array());
}
protected function ___PreparaCsv() {
}
protected function ___PreparaExcel() {
$dataRel = array();
$filtro = $this->___FiltrosRelatorio();
/*
* Inicia o relatório.
*/
/*
* Cria os filtros
*/
$linha = array('LABEL');
foreach ($filtro as $values) {
list($label, $value) = explode(":", $values);
$linha[] = $label;
}
$dataRel[] = $linha;
$linha = array('DADOS');
foreach ($filtro as $values) {
list($label, $value) = explode(":", $values);
$linha[] = $value;
}
$dataRel[] = $linha;
$dadosCabecalio = array(
'Data/Hora',
'Autor',
'Origem',
'Destino',
'Tipo',
'Mensagem'
);
$dadosField = array(
'msg_date',
'profile_name',
'src',
'dst',
'type',
'content'
);
/*
* Monta a linha de cabecalio.
*/
$linha = array('LABEL');
foreach ($dadosCabecalio as $value) {
$linha[] = $value;
}
$dataRel[] = $linha;
/*
* Linhas de dados.
*/
$count = 0;
foreach ($this->GetData()[0] as $row) {
$count++;
$row['msg_date'] = date('d/m/Y H:i:s', strtotime($row['msg_date']));
//$row['content'] = $this->decrypt($row['content']);
// Formata linha de dados.
$linha = array('DADOS');
foreach ($dadosField as $key) {
$linha[] = $row["$key"];
}
$dataRel[] = $linha;
}
$dataRel[] = array('LABEL', 'Total Mensagens: ' . $count, '', '','');
$this->___dataRel[] = $dataRel;
}
protected function ___PreparaGrid() {
$dataRel = array();
$dadosCabecalio = array(
'Data/Hora' => 'align="center"',
'Autor' => 'align="center"',
'Origem' => 'align="center"',
'Destino' => 'align="center"',
'Tipo' => 'align="center"',
'Mensagem' => 'align=center'
);
$dadosField = array(
'msg_date' => 'align="center"',
'profile_name' => 'align="center"',
'src' => 'align="center"',
'dst' => 'align="center"',
'type' => 'align="center"',
'content' => 'align="center"'
);
/*
* Inicia o relatório.
*/
$dataRel[] = '<table width="99%" cellpadding="2" class="grid">';
/*
* Monta a linha de cabecalio.
*/
$linha = '<tr>';
$linha .= "<th align=\"center\" colspan=\"7\">Mensagem WhatsApp</th>";
$linha .= "</tr>";
$dataRel[] = $linha;
$linhaC = "<tr>";
foreach ($dadosCabecalio as $key => $value) {
$linhaC .= sprintf("<th %s>%s</th>", $value, $key);
}
$linhaC .= "</tr>";
$dataRel[] = $linhaC;
/*
* Linhas de dados.
*/
$count = 0;
foreach ($this->GetData()[0] as $row) {
$count++;
$row['msg_date'] = date('d/m/Y H:i:s', strtotime($row['msg_date']));
//$row['content'] = $this->decrypt($row['content']);
// Formata linha de dados.
$linha = "<tr>";
foreach ($dadosField as $key => $value) {
$linha .= sprintf("<td %s>%s</td>", $value, $row["$key"]);
}
$linha .= "</tr>";
$dataRel[] = $linha;
}
$dataRel[] = "<tr><th align='left' colspan='7' >Total: {$count}</th></tr>";
$dataRel[] = '</table>';
$this->___dataRel[] = $dataRel;
}
protected function ___PreparaHtml() {
}
protected function ___PreparaPdf() {
}
private function decrypt($plaintext, $key = null) {
$c = base64_decode($plaintext);
$ivlen = openssl_cipher_iv_length($cipher = "aes-256-cbc");
$iv = substr($c, 0, $ivlen);
$hmac = substr($c, $ivlen, $sha2len = 32);
$ciphertext_raw = substr($c, $ivlen + $sha2len);
$original_plaintext = openssl_decrypt($ciphertext_raw, $cipher, $key, $options = OPENSSL_RAW_DATA, $iv);
$calcmac = hash_hmac('sha256', $ciphertext_raw, $key, $as_binary = true);
if (hash_equals($hmac, $calcmac)) {
return utf8_decode($original_plaintext);
}
}
public function ExecutaRelatorio() {
global $jsStartup, $jsJQuery, $smarty;
try {
/*
* Use esta função para validar dados do formulário.
*/
$this->___ValidaForm();
/*
* Recupera os dados do banco.
*/
$this->___ConteudoRelatorio();
/*
* Imprime relatório de acordo com a media passada.
*/
$conteudoRelatorio = $this->___ImprimeRelatorio();
} catch (Exception $exc) {
$this->SetMsg($exc->getMessage());
$jsStartup[] = sprintf("alert('%s');", $this->GetMsg());
$this->___GravaLog();
}
$jsJQuery[] = "\$('#dataIni').keypress(function(){formataDataHora(this);}) ";
$jsJQuery[] = "\$('#dataFim').keypress(function(){formataDataHora(this);}) ";
$smarty->assign('filtros', $this->___FiltrosRelatorio());
$smarty->assign('conteudo', $conteudoRelatorio);
$smarty->assign('msg', $this->GetMsg());
GetTemplate($smarty, 'relatoriosGrid.tpl');
}
}
$relMsgWhatsappDetalhado = new RelMsgWhatsappDetalhado($idProg, $dbcon, 1);
$relMsgWhatsappDetalhado->ExecutaRelatorio();
?>

2
scriptApl/functions15.js

@ -2035,7 +2035,7 @@ function DeletaClassificacaoItem(id)
function DeltetaMotivoPausa(id, params) function DeltetaMotivoPausa(id, params)
{ {
if (confirm('Esta ação irá excluir item selecionado! Deseja continuar?')) if (confirm('Esta operação pode trazer modificações no seu sistema. Tem certeza que deseja continuar?'))
{ {
try try
{ {

2
templates/seguranca/trocaSenha.tpl

@ -19,7 +19,7 @@
<tr> <tr>
<td><h3>Especificações da senha</h3></td> <td><h3>Especificações da senha</h3></td>
</tr> </tr>
<tr><td><label style="color: red;">*</label> <span style="font-size: 12px">Sua senha deve possuir um conjunto total de 8 caracteres.</span></td></tr> <tr><td><label style="color: red;">*</label> <span style="font-size: 12px">Sua senha deve possuir no mínimo de 8 caracteres.</span></td></tr>
<tr><td><label style="color: red;">*</label> <span style="font-size: 12px">1 caracteres especial ($*&@#_!.%?).</span></td></tr> <tr><td><label style="color: red;">*</label> <span style="font-size: 12px">1 caracteres especial ($*&@#_!.%?).</span></td></tr>
<tr><td><label style="color: red;">*</label> <span style="font-size: 12px">1 numeral (0 a 9).</span></td></tr> <tr><td><label style="color: red;">*</label> <span style="font-size: 12px">1 numeral (0 a 9).</span></td></tr>
<tr><td><label style="color: red;">*</label> <span style="font-size: 12px">1 letra maiúscula.</span></td></tr> <tr><td><label style="color: red;">*</label> <span style="font-size: 12px">1 letra maiúscula.</span></td></tr>

Loading…
Cancel
Save