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 | |
if(isset($_POST['referencia'])){ | |
foreach($_POST['referencia'] as $n => $referencia){ | |
$cliente = $_POST['cliente'][$n]; | |
$tamanho13 = $_POST['size_13'][$n]; | |
$tamanho14 = $_POST['size_14'][$n]; | |
$tamanho15 = $_POST['size_15'][$n]; | |
$tamanho16 = $_POST['size_16'][$n]; |
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 Artistas { | |
private $id; | |
public function __construct($id) { | |
$this->id = $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
$(function(){ | |
var pagina = 0; | |
function loading(){ | |
$.ajax({ | |
type: 'POST', | |
url: 'http://getmyidol.com/webservice/PDO/searchArtistDemand.php', | |
data: 'page='+pagina, | |
cache: false, | |
dataType: '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
$('body').on('click', '#confirmarComp', function(e){ | |
e.preventDefault(); | |
//var listener = 'http://getmyidol.com/webservice/PDO/listener/listener.php'; | |
var ticketsEscolhidos = []; | |
var valor = 0; | |
var title = $(this).attr('data-event')+': '; | |
$('.qtd').each(function(){ | |
var qtd = $(this).val(); |
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 adicionaExcluir(){ | |
var arrayManager = localStorage.manager.split(','); | |
$('.notific-botoes').each(function(){ | |
var artista = $(this).attr('data-artist'); | |
var notification_id = $(this).attr('data-notific'); | |
if(findItemArray(artista, arrayManager) == 1){ | |
//faz tua parada aqui | |
$(this).append('<span style="margin-top: 5px; margin-left: 5px;" class="delNotification" data-id="'+notification_id+'"><i style="font-size:20px; color: #666;" class="fa fa-trash" aria-hidden="true"></i></span>'); |
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
$manager = $pdo->prepare("SELECT * FROM `manager` WHERE `id_user` = :id"); | |
$manager->bindValue(":id", $ln->user_id, PDO::PARAM_INT); | |
$manager->execute(); | |
$retorno['manager'] = ''; | |
if($manager->rowCount() > 0){ | |
$x = 0; | |
while($rs = $manager->fetchObject()){ | |
$retorno['manager'] .= $rs->id_artist; | |
$x++; | |
if($x < $manager->rowCount()){ |
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
var validaMail = /^[\w\d+\_\.]+@[\w\d]+\.+[\w]{2,4}/i; | |
if(validaMail.test($('form[name=cont-dados] input[name=email]'))){ | |
// Aqui vai meu codigo se o email estiver certo | |
}else{ | |
alert('Digite um email valido'); | |
} |
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 | |
$dia_hora_atual = strtotime(date("Y-m-d H:i:s")); | |
$dia_hora_evento = strtotime(date("2016-12-15 08:00:00")); | |
$diferenca = $dia_hora_evento - $dia_hora_atual; | |
$dias = intval($diferenca / 86400); | |
$marcador = $diferenca % 86400; | |
$hora = intval($marcador / 3600); | |
$marcador = $marcador % 3600; |
OlderNewer