Móulo de administração do layout Vetor Panel
- Novo SGA v1.3 até v1.5 (NÃO É COMPATÍVEL COM A v2.0)
- Permisão de escrita no diretório modules
- Extensão php-zip instalada
- Extensão php-xml instalada
| -- drop views | |
| DROP VIEW view_historico_atend_codif; | |
| DROP VIEW view_historico_atendimentos; | |
| -- atend_codif | |
| ALTER TABLE atend_codif RENAME id_atend TO atendimento_id; | |
| ALTER TABLE atend_codif RENAME id_serv TO servico_id; | |
| DROP TABLE atend_status CASCADE; |
| (function($) { | |
| $.winscroll = function(fn, restrictions) { | |
| restrictions = $.extend({ minY: 0, minX: 0, maxY: Infinity, maxX: Infinity }, restrictions); | |
| $(window).on('scroll', function() { | |
| var y = $(document).scrollTop(), | |
| x = $(document).scrollLeft(); | |
| if (y >= restrictions.minY && y <= restrictions.maxY && x >= restrictions.minX && x <= restrictions.maxX) |
| -- procedures | |
| DROP PROCEDURE sp_acumular_atendimentos; | |
| DROP PROCEDURE sp_acumular_atendimentos_unidade; | |
| -- drop views | |
| DROP VIEW view_historico_atend_codif; | |
| DROP VIEW view_historico_atendimentos; | |
| -- atend_codif |
Tema descontinuado, utilize o construtor de painel online: https://painel.mangati.com/
Vetor Panel é um tema do Painel-Web com suporte a mídias. Para poder funcionar é necessário possuir o módulo Vetor Panel Admin instalado no Novo SGA.
| CREATE FUNCTION fixUtf8(str VARCHAR(255)) RETURNS VARCHAR(255) | |
| RETURN CONVERT(CAST(CONVERT(str USING latin1) AS BINARY) USING utf8); |
| -- fixUtf8 function required https://gist.github.com/rogeriolino/22d911fbe25538838bb3 | |
| -- IMPORTANT: don't run more than 1 time! | |
| UPDATE unidades SET nome = fixUtf8(nome); | |
| UPDATE prioridades SET nome = fixUtf8(nome), descricao = fixUtf8(descricao); | |
| UPDATE grupos SET nome = fixUtf8(nome), descricao = fixUtf8(descricao); | |
| UPDATE cargos SET nome = fixUtf8(nome), descricao = fixUtf8(descricao); | |
| UPDATE locais SET nome = fixUtf8(nome); | |
| UPDATE atendimentos SET nm_cli = fixUtf8(nm_cli), ident_cli = fixUtf8(ident_cli); | |
| UPDATE historico_atendimentos SET nm_cli = fixUtf8(nm_cli), ident_cli = fixUtf8(ident_cli); |
Antes de começar é necessário que tenha o Painel-Web instalado e funcionando corretamente.
Extrair os arquivos do tema dentro da pasta "themes" do Painel-Web. Depois abra as Configurações do Painel e no campo "Tema" preencha com o nome da pasta do tema dentro da pasta themes (a pasta que acabou de criar).
Ex:
| server { | |
| listen 80; | |
| root /var/www/novosga/; | |
| index index.php index.html index.htm; | |
| server_name localhost; | |
| location / { | |
| try_files $uri $uri/ /public/index.php?$query_string; |