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
# Exporta os dados para um arquivo txt | |
public function exportar_clientes_para_txt() | |
{ | |
$data_files = 'public/data_files/clientes_files.txt'; | |
# Abre o arquivo | |
$file = fopen($data_files, 'w'); | |
# Pega os dados da tabela | |
$data_from_db = $this->radacct->select()->get_all(); |
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
public function pesquisa() | |
{ | |
$encontrado = true; | |
$lista_visitantes = false; | |
$parametro = Input::in_post('parametro'); | |
if ($parametro != 'periodo') { | |
$parametro = Input::in_post('parametro'); | |
$palavra_chave = Input::in_post('palavra_chave'); |
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
function aplicaFiltro(filtro, slider, valor, unidade) { | |
var imagem = document.getElementById("meumapa"); | |
var y = document.getElementById(slider); | |
var x = document.getElementById(valor); | |
x.value = y.value+unidade; | |
if('-webkit-filter' in document.body.style) { | |
imagem.style.webkitFilter = filtro+'('+y.value+unidade+')'; | |
} else if ('filter' in document.body.style) { | |
imagem.style.filter = filtro+'('+y.value+unidade+')'; |
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
$(document).ready(function() { | |
window.onload = function() { | |
var boxs = document.querySelectorAll(".all_check_boxs"), | |
form = document.querySelector("#the_form"), | |
button_comparar = document.querySelector("#sim_comparar"), | |
button_cancelar = document.querySelector("#cancelar_comparacao"), | |
id_array = []; | |
check_box(boxs); |
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 | |
# Using this class you will record the excel archive to the table in your database | |
class RecordExcelLine | |
{ | |
private $archive; | |
private $model; | |
public function __construct(Usuario $model) | |
{ | |
$this->model = $model; |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>Wifiaqui</title> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width"> | |
<meta name="apple-mobile-web-app-capable" content="yes"> | |
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"> |
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 | |
class Publicidade_Controller extends Controller | |
{ | |
protected $view; | |
protected $publicidade; | |
protected $upload; | |
protected $validator; | |
public function __construct(Array $models, Array $services) | |
{ |
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
SELECT radcheck.id, radcheck.id, | |
radcheck.username, | |
xvisitante.idvisitante | |
FROM radcheck | |
INNER JOIN xvisitante ON xvisitante.idradcheck = radcheck.id AND xvisitante.idvisitante | |
INNER JOIN xvisitante_equipamento ON xvisitante_equipamento.idvisitante = xvisitante.idvisitante | |
WHERE mac = '$(mac)' |
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> | |
window.onload = function() { | |
var boxs = document.querySelectorAll('.all_check_boxs'), | |
form = document.querySelector("#the_form"); | |
check_box(boxs); | |
function check_box(boxs) { | |
var id_array = []; |
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 require_once dirname(__DIR__).'../../start/app_start.php'; Session::start(); | |
$mapas_model = Container::Mapas(); | |
$upload_model = Container::Upload(); | |
$resaze_imagem_model = Container::Image(); | |
# Realiza o Cadastro da Imagem dos Mapas | |
if (Context::get_context('cadastrar_imagem')) | |
{ | |
$data['cadastrado_por'] = Session::get_session('id_usuario'); |