[php] indexmultitienda

Viewer

copydownloadembedprintName: indexmultitienda
  1. <?php 
  2. echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head>
  5.         <meta http-equiv="content-type" content="text/html;charset=UTF-8" />  
  6.         <link rel="STYLESHEET" type="text/css" href="intro/intro.css">
  7.                
  8.     <script type="text/javascript">
  9.  
  10.                 function setCookie(cname, cvalue, exdays) {
  11.                         var d = new Date();
  12.                         d.setTime(d.getTime() + (exdays*24*60*60*1000));
  13.                         var expires = "expires="+d.toGMTString();
  14.                         document.cookie = cname + "=" + cvalue + "; " + expires+"; path=/";
  15.                 } 
  16.                
  17.                 function getCookie(cname) {
  18.                         var name = cname + "="; 
  19.                         var ca = document.cookie.split(\';\');
  20.                         for(var i=0; i<ca.length; i++) {
  21.                                 var c = ca[i];
  22.                                 while (c.charAt(0)==\' \') c = c.substring(1);
  23.                                 if (c.indexOf(name) != -1) return c.substring(name.length,c.length);
  24.                         }
  25.                         return "";
  26.                 } 
  27.                
  28.                 function setStore(cual)
  29.                 {
  30.                         if(cual == "canarias")
  31.                         {
  32.                                 setCookie("tiendauf", "canarias", 365);
  33.                                 document.location = "index.php/?___store=default"
  34.                         }
  35.                         if(cual == "peninsula")
  36.                         {
  37.                                 setCookie("tiendauf", "peninsula", 365);                             
  38.                                 document.location = "index.php/?___store=peninsula"
  39.                         }
  40.                 }
  41.  
  42.                 var store = getCookie("tiendauf");
  43.                 if(store == "canarias")
  44.                         document.location = "index.php/?___store=default";
  45.                 if(store == "peninsula")
  46.                         document.location = "index.php/?___store=peninsula";                                 
  47.  
  48.     </script>      
  49. </head>
  50.  
  51. <body>
  52.  
  53.         <div id="panel">
  54.                 <div id="cabecera"><img src="intro/rotulo.png" alt="Elige tu tienda UNIFORMAS" /></div>
  55.                 <div id="botones">
  56.                         <div id="boton_canarias"  class="botones_interiores"><a onclick="setStore(\'canarias\'); return false;" href="index.php/?___store=default"><img src="intro/canarias.png" alt="Islas Canarias" /></a></div>
  57.                         <div id="boton_peninsula" class="botones_interiores"><a onclick="setStore(\'peninsula\'); return false;" href="index.php/?___store=peninsula"><img src="intro/peninsula.png" alt="PenÌnsula" /></a></div>
  58.                 </div>
  59.         </div>
  60.  
  61. </body>';

Editor

You can edit this paste and save as new:


File Description
  • indexmultitienda
  • Paste Code
  • 21 Sep-2021
  • 2.04 Kb
You can Share it: