Browse Source

Ajustes relacionado a tela de cadastro de usuarios, alterações no layout e ao acesso as configurações de licença de painel de atendimento fixo

registration_of_licenses
douglas.strappasson 1 year ago
parent
commit
5815dac9b1
  1. 4
      seguranca/licencaUsuarioFixo.php
  2. 6
      seguranca/usuario.php
  3. 35
      templates/seguranca/licencaUsuarioFixo.tpl
  4. 8
      templates/seguranca/usuarioConsulta.tpl

4
seguranca/licencaUsuarioFixo.php

@ -60,7 +60,7 @@ function AtualizaLicenca($dbcon, $field, $status) {
$currentTime = strtotime($result['current_time']);
if ($currentTime > $limitUpdate && $currentTime < $freeUpadate) {
throw new Exception('O tempo limite para edição se esgotou, tente novamente mais tarde!');
throw new Exception('Não é possível realizar a alteração neste momento, tente novamente mais tarde!');
}
}
@ -79,8 +79,6 @@ function AtualizaLicenca($dbcon, $field, $status) {
$status == 1 ? $query .= "WHERE id = (SELECT id FROM pbx_licenca_pa_fixo WHERE id_user IS NULL ORDER BY id LIMIT 1)" :
$query .= sprintf("WHERE id_user = '%s' ", $idUser);
//print_r($query);
if (!pg_query($dbcon, $query)) {
throw new Exception('A operação não pode ser realizada!');
}

6
seguranca/usuario.php

@ -16,8 +16,10 @@ $statusAtivo = isset($_REQUEST["status"]) ? trim($_REQUEST["status"]) : 'A';
$imgNovo = "<img src=\"images/novo.gif\" width=\"16\" height=\"16\" align=\"absmiddle\" border=\"0\" title=\"Inclui novo usuário\">";
$imgNovo = "<a href=\"javaScript:NovaJanela('index.php?idProg=22&idUser=0$filtroNovo', 'usuarioCad', '$janW', '$janH', 'resizable=NO,scrollbars=NO');\">$imgNovo Novo Usuário</a>";
$imgLcFixo = "<img src=\"images/global.gif\" width=\"16\" height=\"16\" align=\"absmiddle\" border=\"0\" title=\"Licença fixo usuário\">";
$imgLcFixo = "<a href=\"javaScript:NovaJanela('index.php?idProg=362', 'usuarioCad', '$janW', '$janH', 'resizable=NO,scrollbars=NO');\">$imgLcFixo Licença Usuário</a>";
if (IsAdmin()){
$imgLcFixo = "<img src=\"images/global.gif\" width=\"16\" height=\"16\" align=\"absmiddle\" border=\"0\" title=\"Licença Painel Atendimento Fixo\">";
$imgLcFixo = "<a href=\"javaScript:NovaJanela('index.php?idProg=362', 'usuarioCad', '$janW', '$janH', 'resizable=NO,scrollbars=NO');\">$imgLcFixo Licença Usuário</a>";
}
if (IsPostBack() || (isset($_GET["idDelete"])) || (isset($_GET["idReset"]))) {
if (isset($_GET["idDelete"])) {

35
templates/seguranca/licencaUsuarioFixo.tpl

@ -1,7 +1,7 @@
{capture name="display"}
<input name="gp_id" value="{$gp_id}" type="hidden">
<input name="gp_nome" value="{$gp_nome}" type="hidden">
<table class="filtro" border="0" cellpadding="2" cellspacing="0" width="100%">
<input name="gp_id" value="{$gp_id}" type="hidden">
<input name="gp_nome" value="{$gp_nome}" type="hidden">
<table class="filtro" border="0" cellpadding="2" cellspacing="0" width="100%">
<tbody>
<tr>
<td>
@ -20,14 +20,14 @@
<table class="grid" border="0" cellpadding="2" cellspacing="0" width="100%">
<tbody>
<tr style="border: 0pt none ;" align="center">
<th width="45%">Status Disponíveis</th>
<th width="45%">Usuários Disponíveis</th>
<td width="8%" rowspan="2" align="center" valign="middle">
<input name="btInclui" value="&gt;" type="submit">
<br>
<br>
<input name="btRemove" value="&lt;" type="submit">
</td>
<th>Status Permitidos</th>
<th>Usuários Permitidos</th>
</tr>
<tr>
<td align="center">{$listagrupos}</td>
@ -42,17 +42,32 @@
</table>
</td>
</tr>
<tr style="border: 0pt none ;" align="center">
<th style="font-size: medium;" align="center">REGRAS PARA EDIÇÃO DE LICENÇAS</th>
</tr>
<tr style="border: 0pt none ;" align="center">
<td>
<p style="font-size: small; font-weight: normal; text-align: justify;">
Durante os primeiros 5 minutos após a inserção, os administradores do sistema têm a flexibilidade de revisar e ajustar a lista de permissões, se necessário.
Após esse período, a remoção de um usuário da lista requer uma espera de 24 horas para garantir a estabilidade do sistema.
</p>
</td>
</tr>
</tbody>
</table>
</table>
{if $erro}
<table>
{if $erro}
<table>
<tbody>
<tr>
<td>{$erro}</td>
</tr>
</tbody>
</table>
</table>
{/if}
{/if}
{/capture}

8
templates/seguranca/usuarioConsulta.tpl

@ -24,12 +24,12 @@
<td>
<input name="btConsulta" type="submit" id="btConsulta" value="Consultar">
</td>
<td align="right" nowrap="nowrap" width="91%">
{$imgNovo}
</td>
<td align="right" nowrap="nowrap" width="80%">
<td align="right" nowrap="nowrap" width="90%">
{$imgLcFixo}
</td>
<td align="right" nowrap="nowrap" width="90%">
{$imgNovo}
</td>
</tr>
</table>
</td>

Loading…
Cancel
Save