This file contains hidden or 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
LOGIN : | |
Por default el User y el Password son los mismos : Admin | |
----------------------------------------------------------------------------------------------------------------------------------------- | |
CONFIGURACION INICIAL : | |
Icono del Proyecto : | |
This file contains hidden or 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
?> | |
<script> | |
//Não mexer em mais nada além dos dois itens abaixo, jogar esse código no onScriptInit da consulta com um botão run criado. | |
//classe do campo que vai totalizar, troque o nome priceorder pelo nome do seu campo | |
var campo_soma = '.css_priceorder_grid_line'; | |
//id do local onde vai ser jogado o total | |
var campo_total = '#swTotal'; | |
This file contains hidden or 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
Seguem os eventos e seus respectivos códigos: | |
-> onScriptInit: | |
-------------------------------------------------------------------- | |
sc_include_lib("Jquery"); | |
?> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" /> | |
<style> |
This file contains hidden or 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 NO BLANK ############### | |
$x = array(); | |
if(isset($_POST['id'])) { | |
$sql = "SELECT region, customer_name, sales, product FROM sales WHERE id = ".$_POST['id']; | |
sc_select(rs, $sql); | |
$x['region'] = $rs->fields[0]; | |
$x['customer'] = $rs->fields[1]; | |
$x['sales'] = $rs->fields[2]; | |
$x['product'] = $rs->fields[3]; | |
echo json_encode($x); |
This file contains hidden or 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
-> GRID - onRecord | |
-------------------------------------------------------------------- | |
{wpp} = "<img class='cm_wpp' data-phone='".{telefone}."' data-nome='".{nome}."' data-id='".{id}."' src='/scriptcase9/app/BootstrapTour/_lib/img/grp__NM__ico__NM__if_WhatsApp_1298775.png' border='0'>"; | |
-------------------------------------------------------------------- | |
-> GRID - onScriptInit |
This file contains hidden or 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. | |
*/ |
This file contains hidden or 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 hidden or 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 hidden or 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 | |
function setAttributes(el, attrs) { | |
for (var key in attrs) { | |
el.setAttribute(key, attrs[key]); | |
} | |
} | |
//chamada da função | |
setAttributes(inputFile, { "id": idName, "class": "scFormObjectOdd", "type": "text", "value": idName }); |
This file contains hidden or 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
1° - Coloquei na query pra pegar somente o dia atual. | |
SELECT * FROM calendar WHERE STR_TO_DATE(CONCAT(start_date, " ", start_time), "%Y-%m-%d %H:%i:%s") >= NOW() AND STR_TO_DATE(CONCAT(start_date, " ", start_time), "%Y-%m-%d %H:%i:%s") <= NOW() + INTERVAL 24 HOUR; | |
2° - Coloquei esses links no evento onScriptInit para poder importar o link do fontawesome e da biblioteca animate pra animar o sino. | |
echo <link href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous"> | |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.7.2/animate.min.css">'; | |
3° - Coloquei esse código no evento onRecord para habilitar o sino de acordo com o tempo de proximidade. |
NewerOlder