Módulo dashboard para Novo SGA
- 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
DROP PROCEDURE IF EXISTS update_atendimentos_auto_increment; | |
DROP PROCEDURE IF EXISTS fix_atendimentos_id; | |
DELIMITER $$ | |
CREATE PROCEDURE update_atendimentos_auto_increment() | |
BEGIN | |
SET @next_historico_id = (SELECT COALESCE(MAX(id), 0) + 1 FROM historico_atendimentos); | |
SET @next_atendimentos_id = (SELECT COALESCE(MAX(id), 0) + 1 FROM atendimentos); | |
SET @sql = CONCAT('ALTER TABLE atendimentos AUTO_INCREMENT = ', GREATEST(@next_historico_id, @next_atendimentos_id)); |
#!/bin/sh | |
cat zebra-label.txt|lp -d <printername> -o raw |
<?php | |
$url = isset($_GET['url']) ? $_GET['url'] : ''; | |
if (filter_var($url, FILTER_VALIDATE_URL) === false || strtolower(substr($url, 0, 4)) !== 'http') { | |
echo("URL inválida: $url"); | |
exit(); | |
} | |
$proxy = null; // "http://192.168.0.10:3128" |
version: '2' | |
services: | |
novosga: | |
image: novosga/novosga:latest | |
restart: always | |
depends_on: | |
- mysqldb | |
ports: | |
- "80:80" |
# | |
# Video Scaler | |
# https://gist.github.com/rogeriolino/b2abcbbc0f7bd8ebc18b4cd0975f5a3b | |
# | |
# Place the MP4 files in the same video-scaler.sh script directory. | |
# Finished (done) files will placed in $FINISHED_DIR directory. | |
# New resized files will placed in $OUTPUT_DIR directory. | |
# | |
SCALE=320 | |
OUTPUT_DIR=output |
/* | |
Workaround to fix error on arcgis4.4 view click | |
*/ | |
// XXX: TypeError: Cannot read property 'position' of undefined | |
view.originalHitTest = view.hitTest; | |
view.hitTest = function (evt) { | |
try { | |
return view.originalHitTest(evt); |
<?php | |
$url = isset($_GET['url']) ? $_GET['url'] : ''; | |
if (filter_var($url, FILTER_VALIDATE_URL) === false || strtolower(substr($url, 0, 4)) !== 'http') { | |
echo("URL inválida: $url"); | |
exit(); | |
} | |
$proxy = null; // "http://192.168.0.10:3128" |
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; |
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: