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
# Asegúrate de tener sólo una vez esta línea en su configuración | |
NameVirtualHost *:80 | |
<VirtualHost *:80> | |
ServerName s2.localhost | |
DocumentRoot "c:\xampp\htdocs\Symfony\web" | |
DirectoryIndex index.php | |
<Directory "c:\xampp\htdocs\Symfony\web"> |
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
<script type="text/javascript"> | |
$(document).ready(function () { | |
$('td input').each(function(index, el) { | |
if(!$(this).parent('td').hasClass('findesemana')) { | |
$(this).focus(); | |
return false; | |
} | |
}); |
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 getParameterByName(name) { | |
return decodeURIComponent((new | |
RegExp('[?|&]' + name + '=' + | |
'([^&;]+?)(&|#|;|$)').exec | |
(location.search)||[,""]) | |
[1].replace(/\+/g, '%20'))|| | |
null; | |
} |
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
<script type="text/javascript"> | |
(function () { | |
var onload = window.onload; | |
window.onload = function () { | |
if (typeof onload == "function") { | |
onload.apply(this, arguments); | |
} |
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
$("span.recortar_fecha").each(function(index, el) { | |
var nueva_fecha = $(this).text(); | |
var nueva_fecha_recortada = nueva_fecha.slice(0, - 9); | |
var trozos_fecha = nueva_fecha_recortada.split("-"); | |
var fecha_final = trozos_fecha[2]+"-"+trozos_fecha[1]+"-"+trozos_fecha[0]; | |
$(this).text(fecha_final); | |
}); |
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 jutf8_decode (str_data) { | |
// http://kevin.vanzonneveld.net | |
// + original by: Webtoolkit.info (http://www.webtoolkit.info/) | |
// + input by: Aman Gupta | |
// + improved by: Kevin van Zonneveld (http://kevin.vanzonneveld.net) | |
// + improved by: Norman "zEh" Fuchs | |
// + bugfixed by: hitwork | |
// + bugfixed by: Onno Marsman | |
// + input by: Brett Zamir (http://brett-zamir.me) | |
// + bugfixed by: Kevin van Zonneveld (http://kevin.vanzonneveld.net) |
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
$(document).ready(function() { | |
formmodified=0; | |
$('form *').change(function(){ | |
formmodified=1; | |
}); | |
window.onbeforeunload = confirmExit; | |
function confirmExit() { | |
if (formmodified == 1) { | |
return "No has guardado la información. ¿Estás seguro de que quieres salir?"; | |
} |
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
{assign var=shop_name_to_trim value=" - $shop_name"} | |
<title>{$meta_title|replace:$shop_name_to_trim:''|escape:'htmlall':'UTF-8'}</title> |
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
{if $page_name == 'cms' or $page_name == 'category'} | |
<meta name="robots" content="noindex,nofollow,noarchive,nocache"> | |
{else} | |
<meta name="robots" content="{if isset($nobots)}no{/if}index,{if isset($nofollow) && $nofollow}no{/if}follow" /> | |
{/if} |
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
<script> | |
function getval(sel) { | |
$('#stars').val(sel.value); | |
} | |
$(document).ready(function() { | |
var valorestrella = $('#stars').val()-1; | |
$('#starsrating option:eq('+valorestrella+')').prop('selected', true); | |
$(".center_box_content").css("background-color","#47494c"); |