This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function openFullscreen() { | |
var elem = document.documentElement; | |
if (elem.requestFullscreen) { | |
elem.requestFullscreen(); | |
} else if (elem.mozRequestFullScreen) { /* Firefox */ | |
elem.mozRequestFullScreen(); | |
} else if (elem.webkitRequestFullscreen) { /* Chrome, Safari and Opera */ | |
elem.webkitRequestFullscreen(); | |
} else if (elem.msRequestFullscreen) { /* IE/Edge */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class EmptyClass {} | |
echo <<<HTML | |
<style> | |
.cm_loader { | |
position: fixed; | |
left: 0px; | |
top: 0px; | |
width: 100%; | |
height: 100%; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$cnpj = {cnpj}; | |
$webservice = "https://www.receitaws.com.br/v1/cnpj/".$cnpj; | |
$consulta = file_get_contents($webservice); | |
$retorno = json_decode($consulta,true); | |
if($retorno["status"] == "OK") { | |
if($retorno["situacao"] == "ATIVA") { | |
{razao_social} = $retorno["nome"]; | |
{nome_fantasia} = $retorno["fantasia"]; | |
{cep} = str_replace(".", "", str_replace("-", "", $retorno["cep"])); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
?> | |
<style> | |
.loader { | |
position: fixed; | |
left: 0px; | |
top: 0px; | |
width: 100%; | |
height: 100%; | |
z-index: 9999; | |
background: url('http://i.imgur.com/zAD2y29.gif') 50% 50% no-repeat white; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//CHAVE RANDÔMICA | |
$keyRandomic = array_keys($_SESSION["sc_session"])[0]; | |
//VERIFICAR QUAL É O CLIENTE | |
if([glo_idcliente] == 1) { | |
$_SESSION["sc_session"][$keyRandomic][$this->Ini->nm_cod_apl]["field_order"] = array("fichapaciente", "cpf", "nome", "dt_aniversario", "cidade", "estado", "complemento"); | |
} else { | |
$_SESSION["sc_session"][$keyRandomic][$this->Ini->nm_cod_apl]["field_order"] = array("fichapaciente", "nome", "cpf", "dt_aniversario", "cidade", "estado", "complemento"); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Função que calcula a distância | |
function calcDistancia( $lat1 = '', $lon1 = '' , $lat2 = '' , $lon2 = '' , $unidade = '' ) { | |
if( $lat1 && $lon1 && $lat2 && lon2 ) { | |
$distancia = sin(deg2rad($lat1)) * sin(deg2rad($lat2)) + cos(deg2rad($lat1)) * cos(deg2rad($lat2)) * cos(deg2rad( $lon1 - $lon2 )); | |
$distancia = acos($distancia); | |
$distancia = rad2deg($distancia); | |
$milhas = $distancia* 60 * 1.1515; | |
$unidade = strtoupper($unidade); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//COLOCAR ESSE CÓDIGO NA GRID QUE IRÁ REALIZAR A ATUALIZAÇÃO DO SEGUNDO WIDGET - ONSCRIPTINIT | |
?> | |
<style> | |
.css_id_label, .css_id_grid_line { | |
display: none; | |
} | |
</style> | |
<script> | |
$(document).ready(function(){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// LABEL AO LADO | |
?> | |
<style> | |
span.scFormRequiredOdd { display: none; } | |
</style> | |
<script> | |
window.onload = function() { | |
$("span.scFormRequiredOdd").empty().after('<div style="height: 32px;width: 5px;background-color: orange;float: right;position: relative;right: -15px;"></div>'); | |
} | |
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
?> | |
<style> | |
/*CSS PARA OCULTAR DOIS CAMPOS E DOIS LABELS*/ | |
.css_qtd_min__label, .css_qtd_max__label, .css_qtd_min__line, .css_qtd_max__line { | |
display: none !important; | |
} | |
</style> | |
<script> | |
/*FUNÇÃO DO SCRIPTCASE ALTERADA*/ | |
function cm_atualiza_line(x, y) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Título: Algoritmo para envio de e-mail parabenizando usuários aniversariantes. | |
Descrição: Neste algoritmo iremos selecionar os aniversariantes do dia e enviar um e-mail com uma mensagem. | |
Este envio de e-mail será feito pelo crontab, a leitura será feita todos os dias as 8 horas da manhã. | |
Tags: php, myqsl, html, scriptcase, camilamoreira | |
Criado por Camila Moreira, 14 de fevereiro de 2019. | |
*/ |