Warning: include(../.php): failed to open stream: No such file or directory in /usr/home/mercatdelacultura.cat/web/javascripts/home.js.php on line 3

Warning: include(../.php): failed to open stream: No such file or directory in /usr/home/mercatdelacultura.cat/web/javascripts/home.js.php on line 3

Warning: include(): Failed opening '../.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /usr/home/mercatdelacultura.cat/web/javascripts/home.js.php on line 3
$(document).ready(function() { $('#rec_tens').click(function() { document.location.href = "/"; }); $('#rec_col').click(function() { //document.location.href = "/"; document.location.href = "/"; }); $('#rec_env').click(function() { //document.location.href = "/"; }); $('#rec_artistes').click(function() { document.location.href = "/"; }); $('#rec_parades').click(function() { document.location.href = "/"; }); //$('#rec_nostra').click(function() { //document.location.href = "///"; // document.location.href = "/"; //}); $('#rec_news').click(function() { document.location.href = "/"; }); $(function() { $('#rec_parades').hover( function(){ $("#rec_parades_int").css('background-color', '#EFE4EA'); }, function(){ $("#rec_parades_int").css('background-color', '#fff'); }); }); $(function() { $('#rec_artistes').hover( function(){ $("#rec_artistes_int").css('background-color', '#EBE9F7'); }, function(){ $("#rec_artistes_int").css('background-color', '#fff'); }); }); $(function() { $('#rec_nostra').hover( function(){ $("#rec_nostra_int").css('background-color', '#EFF0E0'); }, function(){ $("#rec_nostra_int").css('background-color', '#fff'); }); }); $(function() { $('#rec_col').hover( function(){ $("#rec_col_int").css('background-color', '#E5EEEB'); }, function(){ $("#rec_col_int").css('background-color', '#fff'); }); }); $(function() { $('#rec_tens').hover( function(){ $("#rec_tens_int").css('background-color', '#E4EEF0'); }, function(){ $("#rec_tens_int").css('background-color', '#fff'); }); }); $(function() { $('#rec_news').hover( function(){ $("#rec_news_int").css('background-color', '#F3E8EC'); }, function(){ $("#rec_news_int").css('background-color', '#fff'); }); }); $(function() { $('#rec_env').hover( function(){ $("#rec_env_int").css('background-color', '#EFECE5'); }, function(){ $("#rec_env_int").css('background-color', '#fff'); }); }); tematica=""; tipus=""; artista=""; price=""; offer=""; $('#home_bus').click(function(){ var parametros = { "tematica" : tematica, "tipus" : tipus, "artista" : artista, "price" : price, "offer" : offer }; $.ajax({ data: parametros, url: '/buscar_home.php', type: 'get', success: function (response) { document.location.href = "/"; } }); //document.location.href = "productes.php?tematica="+tematica+"&tipus="+tipus+"&artista="+artista+"&price="+price+"&offer="+offer; }); if ($.cookie('_mercat_cookie')!="fet") { //$('#cookies').css('display', 'block'); $("#cookies").slideToggle(400).css('display', 'block'); } $('#tanca_cook').click(function() { $.cookie('_mercat_cookie', 'fet', { path: '/', expires: 180 }); $("#cookies").slideToggle(400); //$('#footer').css('display', 'none'); }); $('input[type=checkbox]').change(function() { cont_tematica=1; cont_tipus=1; cont_artista=1; cont_price=1; cont_offer=1; tematica=""; tipus=""; artista=""; price=""; offer=""; $('input[type=checkbox]').each(function(index, item){ if(item.checked == true) { if (item.name=="tematica") { if (cont_tematica > 1) tematica=tematica + ','; tematica=tematica + ($(this).val()); cont_tematica=cont_tematica+1; //tot_tematica=tot_tematica+1; } if (item.name=="tipus") { if (cont_tipus > 1) tipus=tipus + ','; tipus=tipus + ($(this).val()); cont_tipus=cont_tipus+1; //tot_tipus=tot_tipus+1; } if (item.name=="artista") { if (cont_artista > 1) artista=artista + ','; artista=artista + ($(this).val()); cont_artista=cont_artista+1; } if (item.name=="price") { if (cont_price > 1) price=price + ','; price=price + ($(this).val()); cont_price=cont_price+1; } if (item.name=="offer") { if (cont_offer > 1) offer=offer + ','; offer=offer + ($(this).val()); cont_offer=cont_offer+1; } } }); var parametros = { "tematica" : tematica, "tipus" : tipus, "artista" : artista, "price" : price, "offer" : offer }; $.ajax({ data: parametros, url: '/buscar_home.php', type: 'get', success: function (response) { document.location.href = "/"; } }); /*$.get("jproductes.php", { tematica: tematica, tipus: tipus, artista: artista, price: price, offer: offer }, function(data){ $("#items").html(data); });*/ //alert(tematica); }); });