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 RemoveAccents(strAccents) { | |
var strAccents = strAccents.split(''); | |
var strAccentsOut = new Array(); | |
var strAccentsLen = strAccents.length; | |
var accents = 'ÀÁÂÃÄÅàáâãäåÒÓÔÕÕÖØòóôõöøÈÉÊËèéêëðÇçÐÌÍÎÏìíîïÙÚÛÜùúûüÑñŠšŸÿýŽž'; | |
var accentsOut = "AAAAAAaaaaaaOOOOOOOooooooEEEEeeeeeCcDIIIIiiiiUUUUuuuuNnSsYyyZz"; | |
for (var y = 0; y < strAccentsLen; y++) { | |
if (accents.indexOf(strAccents[y]) != -1) { | |
strAccentsOut[y] = accentsOut.substr(accents.indexOf(strAccents[y]), 1); | |
} else |
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
<script src="https://code.jquery.com/jquery-1.12.4.js" integrity="sha256-Qw82+bXyGq6MydymqBxNPYTaUXXq7c8v3CwiYwLLNXU=" crossorigin="anonymous"></script> | |
<input type="text" name="filtrofinal" id="filtrofinal" value="http://www.exampel.com/filters/filter?pagina=1" style="width:90%"> | |
<br> | |
<a href="javascript:updateFiltroFinal('cor', 17)">cor 17</a> | |
<a href="javascript:updateFiltroFinal('cor', 18)">cor 18</a> | |
<a href="javascript:updateFiltroFinal('cor', 19)">cor 19</a> | |
<a href="javascript:updateFiltroFinal('tamanho', 12)">tamanho 12</a> | |
<a href="javascript:updateFiltroFinal('amor', 1)">amor 1</a> |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"> | |
<xs:element name="versao_arquivo"> | |
<xs:simpleType> | |
<xs:restriction base="xs:decimal"> | |
<xs:enumeration value="2.3"/> | |
</xs:restriction> | |
</xs:simpleType> | |
</xs:element> | |
<xs:element name="valor_nota_fiscal" type="xs:string"/> |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<style> | |
* { | |
box-sizing: border-box; | |
} | |
body { |
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 ($) { | |
$.postJSON = function (url, data) { | |
var o = { | |
url: url, | |
type: "POST", | |
dataType: "json", | |
contentType: 'application/json; charset=utf-8' | |
}; | |
if (data !== undefined) { | |
o.data = JSON.stringify(data); |
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
items.forEach(function(item){ | |
console.log(item.id); | |
}); | |
//ou | |
response.data.forEach(function(item){ | |
console.log(item.id); | |
}); |
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
/* | |
Mesmo colocando no config do ckeditor a toolbar nunca aparecia, pois aqui dentro eu | |
tive que forçar para ser anexada ao toolbar insert por exemplo. | |
*/ | |
CKEDITOR.plugins.add('strinsert', | |
{ | |
requires : ['richcombo'], | |
init : function( editor ) | |
{ | |
//tag, texto, tooltip |
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 | |
// <img src="image.php?size=400x150&bg=eee&fg=999&text=Imagem+de+exemplo"/> | |
header ("Content-type: image/jng"); | |
// Dimensions | |
$getsize = isset($_GET['size']) ? $_GET['size'] : '100x100'; | |
$dimensions = explode('x', $getsize); | |
$image = imagecreate($dimensions[0], $dimensions[1]); | |
$bg = isset($_GET['bg']) ? $_GET['bg'] : 'ccc'; | |
$bg = hex2rgb($bg); | |
$setbg = imagecolorallocate($image, $bg['r'], $bg['g'], $bg['b']); |
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
<select id="anexos"> | |
<option data-id="1">one</option> | |
<option data-id="2">two</option> | |
<option data-id="3">three</option> | |
</select> | |
$('#anexos').click(function(){ | |
$(this).find(':selected').data('id') | |
}); |
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
do | |
$$ | |
declare | |
registro record; | |
begin | |
for registro in select id_aparelho, atualizado_assistencia from tbl_assistencia where tipo_assistencia = 1 and status_assistencia = 2 | |
loop | |
update tbl_aparelho set data_remanufaturado_aparelho = registro.atualizado_assistencia where id_aparelho = registro.id_aparelho; | |
end loop; | |
end; |
OlderNewer