Taton 12 年 前
コミット
46cc0683bd
5 ファイル変更203 行追加11 行削除
  1. 1 2
      Especificos.css
  2. 36 9
      Especificos.html
  3. 142 0
      Productos.php
  4. 7 0
      db.php
  5. 17 0
      test1.php

+ 1 - 2
Especificos.css

@@ -9,7 +9,7 @@
 }
 
 @font-face {
-	font-family: 'Raleway';
+    font-family: 'Raleway';
 	src: url('/Fonts/Raleway-Regular.ttf');
 }
 html, body
@@ -90,7 +90,6 @@ html, body
     width: 70%;
     font-family: 'Champagne and Limousine';
     font-size: 12px;
-    /*font: normal 12px/12px Georgia, "Times New Roman", Times, serif;*/
 }
 
 .basic-grey textarea{

+ 36 - 9
Especificos.html

@@ -1,15 +1,30 @@
 <html>
 <head>
+<<<<<<< HEAD
+=======
+    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js">
+    </script>
+    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js">
+    </script>
+>>>>>>> 9bd72fa719c0d07f4a3ac6b151f321328a7681ad
     <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js">
     </script>
 	<script type="text/javascript">
 	    $(document).ready(function () {
 
+<<<<<<< HEAD
             $('.basic-grey, #overlay-contact').hide();
             $('#contact').click(function(){
                 $('.basic-grey, #overlay-contact').toggle();
                 $('#exit').click(function(){
                     $('.basic-grey, #overlay-contact').hide();
+=======
+            $('#overlay-contact, #model').hide();
+            $('#contact').click(function(){
+                $('#overlay-contact, #model').toggle();
+                $('#exit').click(function(){
+                    $('#overlay-contact, #model').hide();
+>>>>>>> 9bd72fa719c0d07f4a3ac6b151f321328a7681ad
                 });
             });
 
@@ -53,17 +68,29 @@
     <form action="" method="post" class="STYLE-NAME">
     <h5>Contacto</h5>
     <label>
+<<<<<<< HEAD
         <span>Nombre :</span>
+=======
+        <span>Your Name :</span>
+>>>>>>> 9bd72fa719c0d07f4a3ac6b151f321328a7681ad
         <input id="name" type="text" name="name" />
     </label>
     <br>
     <label>
+<<<<<<< HEAD
         <span>Email :</span>
+=======
+        <span>Your Email :</span>
+>>>>>>> 9bd72fa719c0d07f4a3ac6b151f321328a7681ad
         <input id="email" type="email" name="email" />
     </label>
     <br>
     <label>
+<<<<<<< HEAD
         <span>Mensaje :</span>
+=======
+        <span>Message :</span>
+>>>>>>> 9bd72fa719c0d07f4a3ac6b151f321328a7681ad
         <textarea id="message" name="message" ></textarea>
     </label>
     <br> 
@@ -146,20 +173,20 @@
                     <th>Localidad</th>
                     <th>Distribuidor</th>
                     <th>Domicilio</th>
-                    <th>Teléfono</th>
+                    <th>Teléfono</th>
                 </tr>
             </thead>
             <tbody>
                 <tr>
                     <td>Buenos Aires</td>
                     <td>Ciudadela</td>
-                    <td>Alta Cosmética</td>
+                    <td>Alta Cosmética</td>
                     <td>Santa Juana de Arco 3792</td>
                     <td>011.4653.1659</td>
                 </tr>
                 <tr>
                     <td>Buenos Aires</td>
-                    <td>Lanús</td>
+                    <td>Lanús</td>
                     <td>Dicosur</td>
                     <td>25 de Mayo 30</td>
                     <td>011.4249.1923</td>
@@ -168,12 +195,12 @@
                     <td>Buenos Aires</td>
                     <td>Lomas de Zamora</td>
                     <td>Dicosur</td>
-                    <td>Laprida 432 2°</td>
+                    <td>Laprida 432 2°</td>
                     <td>011.4292.8887</td>
                 </tr>
                 <tr>
                     <td>Buenos Aires</td>
-                    <td>Morón</td>
+                    <td>Morón</td>
                     <td>Quimey</td>
                     <td>Valle 295</td>
                     <td>011.4629.0869</td>
@@ -196,7 +223,7 @@
                     <td>Capital Federal</td>
                     <td>Capital Federal</td>
                     <td>Martha Ferrer</td>
-                    <td>La Pampa 1007 1°</td>
+                    <td>La Pampa 1007 1°</td>
                     <td>011.4523.2658</td>
                 </tr>
                 <tr>
@@ -225,15 +252,15 @@
                     <th>Localidad</th>
                     <th>Distribuidor</th>
                     <th>Domicilio</th>
-                    <th>Teléfono</th>
+                    <th>Teléfono</th>
                 </tr>
             </thead>
             <tbody>
                  <tr>
                     <td>Buenos Aires</td>
-                    <td>Bahía Blanca</td>
+                    <td>Bahía Blanca</td>
                     <td>Celia Aguilera</td>
-                    <td>E. González 1327</td>
+                    <td>E. González 1327</td>
                     <td>0291.4883.089</td>
                 </tr>
                 <tr>

+ 142 - 0
Productos.php

@@ -0,0 +1,142 @@
+<?php
+include('db.php');
+
+$statement = $db->prepare("SELECT `nombre`, `desc_corta` FROM `productos` WHERE `categoria` = ?");
+$cat = 'FACIALES';
+$statement->bind_param('s', $cat);
+$statement->execute();
+$statement->store_result();
+$statement->bind_result($nombre,$desc);
+$count=$statement->num_rows;
+?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html>
+
+<head>
+    <title>ESPECIFICOS Buenos Aires</title>
+    <link type="text/css" rel="Stylesheet" href="Productos.css" />
+    <link type="text/css" rel="Stylesheet" href="Especificos.css" />
+     <link rel="stylesheet" href="//code.jquery.com/ui/1.10.4/themes/smoothness/jquery-ui.css">
+<script src="//code.jquery.com/jquery-1.9.1.js"></script>
+<script src="//code.jquery.com/ui/1.10.4/jquery-ui.js"></script>
+<script>
+$(document).ready(function() {
+	curpag=1;
+	$(".next").click(function() {
+		if ( ! $(".pagina[num='"+(curpag+1)+"']").length )
+			return;
+		$(".pagina").hide();
+		curpag++;
+		$(".pagina[num='"+curpag+"']").show();
+		$("#paginas_list li").css("opacity",0.5);
+		$("#paginas_list li[num='"+curpag+"']").css("opacity",1);
+
+	});
+	$(".prev").click(function() {
+		$(".pagina[num='"+curpag+"']").hide();
+		curpag--;
+		if ( curpag < 1 )
+			curpag=1;
+		$(".pagina[num='"+curpag+"']").show();
+		$("#paginas_list li").css("opacity",0.5);
+		$("#paginas_list li[num='"+curpag+"']").css("opacity",1);
+	});
+	$("#paginas_list li").click(function() {
+		$("#paginas_list li").css("opacity",0.5);
+		$(this).css("opacity",1);
+		$(".pagina").hide();
+		$(".pagina[num='"+$(this).attr('num')+"']").show();
+		curpag=$(this).attr('num');
+		alert(curpag);
+	});
+});
+</script>
+</head>
+
+<body>
+
+    <div id="top_wrapper">
+        <div id="navbar" font-family="champagne">
+            <ul id="navlist">
+                <li><a href="Especificos.html#nosotros">nosotros</a></li>
+                <li><a href="#productos">productos</a></li>
+                <li><a href="#actividades">actividades</a></li>
+                <li><a href="#top_wrapper"><img src="Images/LOGO.png" /></a></li>
+                <li><a href="#cursos">cursos</a></li>
+                <li><a href="#distribuidoras">donde comprar</a></li>
+                <li>contacto</li>
+            </ul>
+        </div>
+    </div>
+    
+    <div id="productos_wrapper">
+       
+        <br />
+        <div id="productosbar">
+            <ul id ="categorias">
+                <a href=""><li><h3>LIMPIEZA</h3></li></a>
+
+                <li><h3>MÁSCARAS</h3></li>
+
+                <li><h3>ÁCIDO<br />HIALURÓNICO</h3></li>
+                <li><h3>PEELING</h3></li>
+                <li><h3>CORPORALES</h3></li>
+                <li><h3>HOMBRES</h3></li>
+                <li><h3>PROTECCIÓN<br />INTENSIVA</h3></li>
+                <li><h3>MONODOSIS</h3></li>
+                <li><h3>ACTIVOS<br />CONCENTRADOS</h3></li>
+            </ul>
+        </div>
+        
+        <div id ="paginas_wrapper">
+			<?php
+				$i=0;
+				$j=0;
+				while($j< (floor($count/3) + ($count % 3 != 0 ? 1 : 0) )){
+				$j++;
+			?>
+            <div num="<?php echo $j; ?>" class="pagina" <?php if ($j > 1) { echo 'style="display:none"'; } ?> >
+                <div class="nav" style="display: inline; float: left; height: 30px; margin-top: 170px;">
+                    <label for="img-1" class="prev">&#x2039;</label>
+                </div>
+                <div id="lista_productos">
+					<?php while ($i<3 && $statement->fetch()) {
+						$i++;
+					?>
+                    <div id="producto" style="float:left;">
+                        <div style="float : left;  width:15%;">
+                            <img src="Images/producto.jpg">
+                        </div>
+                        <div style="float : left; width: 74%;">
+                            <h4> <?php echo $nombre; ?> </h4>
+                            <br> <?php echo $desc; ?> <br><br>
+                             <u>Ver más</u> 
+                        </div>
+                    </div>
+					<?php
+					} //while $i %3 && st-fetch
+					$i=0;
+					?>
+                </div>
+                <div class="nav" style="float: right; height: 30px; margin-top: 170px;">
+                    <label for="img-3" class="next">&#x203a;</label>
+                </div> 
+                
+            </div>
+			<?php } ?>
+			<ul id="paginas_list">
+				<?php 
+				for ($i=1; $i<= $j; $i++) {
+					echo "<li num=$i style='opacity: " . ($i==1? "1.0" : "0.5") ."'> &#149; </li>";
+				}
+				?>
+			</ul>
+        </div>
+        
+    </div>
+
+</body>
+</html>
+<?php
+$statement->close();
+?>

+ 7 - 0
db.php

@@ -0,0 +1,7 @@
+<?php
+$db = new mysqli('localhost', 'root', 'howdoiturnthison', 'EBA');
+
+if($db->connect_errno > 0){
+    die('Unable to connect to database [' . $db->connect_error . ']');
+}
+?>

+ 17 - 0
test1.php

@@ -0,0 +1,17 @@
+Esto es un div
+<?
+include('db.php');
+
+$statement = $db->prepare("SELECT `nombre` FROM `productos` WHERE `categoria` = ?");
+$cat = 'FACIALES';
+$statement->bind_param('s', $cat);
+$statement->execute();
+$statement->bind_result($nombre);
+
+while($statement->fetch()){
+  echo "<b>hola que tal</b>";
+    echo "$nombre <br />";
+}
+?>
+
+aca termina mi div