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 TOP 100 | |
acao, | |
dados.value('(/*/*/@bimestre)[1]' , 'int') bimestre, | |
dados.value('(/*/*/@cargaHoraria)[1]', 'int') cargaHoraria, | |
dados.value('(/*/*/@conteudo)[1]' , 'varchar(550)') conteudo, | |
dados.value('(/*/*/@material)[1]' , 'varchar(550)') material, | |
dados.value('(/*/*/@orientacao)[1]' , 'varchar(550)') orientacao, | |
dados.value('(/*/*/@dataCriacao)[1]' , 'date') dataCriacao | |
FROM Log_Data..LD_Xml | |
WHERE TABELA = 'Aux_temp.dbo.PE_CONTEUDO' |
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
<div class='tableGrid'> | |
<?php if ($query != null){ | |
$cols = mysql_num_fields($query); ?> | |
<table class='table-striped table-hover table-ellipsis'> | |
<thead> | |
<tr> | |
<?php for($i=0;$i<$cols;$i++){ ?> | |
<th title='<?=mysql_field_name($query,$i)?>'><?=mysql_field_name($query,$i)?></th> | |
} | |
</tr> |
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
#http://httpd.apache.org/docs/2.2/mod/mod_deflate.html | |
# Insert filter | |
SetOutputFilter DEFLATE | |
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript application/x-javascript | |
# Netscape 4.x has some problems... | |
BrowserMatch ^Mozilla/4 gzip-only-text/html | |
# Netscape 4.06-4.08 have some more problems | |
BrowserMatch ^Mozilla/4\.0[678] no-gzip | |
# MSIE masquerades as Netscape, but it is fine | |
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html |
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
<noscript>JavaScript Desativado!</noscript> | |
<style type="text/css">plaintext{display:none}</style> | |
<script> | |
(function(){ | |
try{ | |
var win=this; | |
while("<plaintext/>"){ | |
if(win.parent==win) | |
break; | |
win.frameElement.src.substr(0,1); |
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 | |
$aux = substr( $_SERVER['REQUEST_URI'], strlen('/')); | |
if( substr( $aux, -1) == '/'){ | |
$aux=substr( $aux, 0, -1); | |
} | |
$url = explode( '/', $aux); |
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
RewriteEngine on | |
RewriteCond $1 !^(index\.php|images|robots\.txt) | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule ^(.*)$ index.php/$1 [L] |
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 JsonEncoder{ | |
//basta chamar este método! | |
public function json_encode($object){ | |
return json_encode($this->getFields($object)); | |
} | |
private function getFields($classObj){ | |
$fields = array(); | |
$reflect = new ReflectionClass($classObj); |
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 | |
function geraSenha($tamanho = 6, $maiusculas = true, $numeros = true, $simbolos = false) | |
{ | |
$lmin = 'abcdefghjkmnpqrstuvwxyz'; | |
$lmai = 'ABCDEFGHJKMNPQRSTUVWXYZ'; | |
$num = '23456789'; | |
$simb = '!@#$%*-'; | |
$retorno = ''; | |
$caracteres = ''; | |
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
<snippet> | |
<content><![CDATA[public function get${1/(.*)/\u$1/}() | |
{ | |
return \$this->${1:$SELECTION}; | |
} | |
public function set${1/(.*)/\u$1/}(\$$1) | |
{ | |
return \$this->$1 = \$$1; | |
} |
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 | |
/** | |
* Essa classe é responsável por renderizar os arquivos HTML | |
* | |
* @package Exemplo simples com MVC | |
* @author DigitalDev | |
* @version 0.1.1 | |
* | |
* Diretório Pai - lib | |
* Arquivo - View.php |