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
//I need to walk through a json array recursively in Javascript. To do so I am using | |
//the command $.each from jQuery. | |
//Basically I ask for the node type in each node I am walking through. | |
//If it is an object I call the same function recursively. If not, I just do what I need to do. | |
function recorrer(json) { | |
$.each(json, function(index, value) { | |
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
<style> | |
#panelCestaContienePacks { | |
width: 95%; | |
margin: 0 auto; | |
overflow: hidden; | |
} | |
#panelCestaContienePacks input[type=radio]{ | |
display: none; | |
} |
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
var alturaTop; | |
Modal.muestraModal = function(html,ancho){ | |
alturaTop = $(window).scrollTop(); | |
$("#mensajeModal").css("top", alturaTop); //pongo la ventana arriba | |
$(window).scroll(function() { | |
if ($("#mensajeModal").height() > $(window).height()) //si el modal es más grande que la ventana del navegagor |
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 SQL_CALC_FOUND_ROWS *,unidades*precio as subtotal FROM (cesta_detalle,producto) | |
left join diccionario | |
on diccionario.iddiccionario=producto.iddiccionario_nombre | |
left join cesta_detalle_dominio cd | |
on cd.idcesta_detalle_dominio=cesta_detalle.idcesta_detalle | |
where producto.idproducto=cesta_detalle.idproducto | |
and cesta_detalle.idcesta='".$idcesta."' |
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 clase_eximStatsAnalisis { | |
private $eximstatsStr; | |
public function __construct() { | |
$this->setEximStats(); | |
} |
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
DELETE cesta_detalle,cdd | |
FROM cesta_detalle,cesta_detalle_dominio AS cdd | |
WHERE idcesta_detalle_parent=' loquesea ' | |
AND cdd.idcesta_detalle_dominio=cesta_detalle.idcesta_detalle |
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 getTldPorId() | |
{ | |
var IDs = []; | |
$("#widgetBusqueda").find("[tld]").each(function() { | |
IDs.push($(this).attr("tld")); //IDs.push(this.id); | |
}); | |
return IDs; | |
} |
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
{if $subcategorias neq '0'} | |
{foreach from=$subcategorias key=idcategoria item=v} | |
{assign var=var value=1} // Asignación variable | |
{foreach from=$v.fotos key=k item=it } | |
{assign var=var value=$var+1} // Modificación variable | |
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
<? // http://docs.cpanel.net/twiki/bin/view/SoftwareDevelopmentKit/XmlApi | |
$acctconf = array( | |
"username" =>$username, | |
"domain" =>$dominio, | |
//"plan" =>"default", | |
"password" =>$pin, | |
"contactemail"=>$email, | |
"language"=>"es_es", | |
"mxcheck"=>"remote" | |
); |
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 * from cesta_detalle cd | |
where idproducto = 'dominio_registro' | |
and | |
( | |
idcesta_detalle= | |
(select idcesta_detalle_parent | |
from cesta_detalle cdd | |
where cd.idcesta_detalle=cdd.idcesta_detalle_parent | |
) | |
or |
OlderNewer