Submit Search
Upload
Index.php
•
Download as DOCX, PDF
•
0 likes
•
259 views
T
titanica1906
Follow
presentacion index
Read less
Read more
Environment
Report
Share
Report
Share
1 of 15
Download now
Recommended
CSS Components
CSS Components
拓樹 谷
Code
Code
Hanggie Defloeiner
WordPressのテンプレートをカスタマイズするために必要なphpを初歩から解説
WordPressのテンプレートをカスタマイズするために必要なphpを初歩から解説
Takashi Uemura
How to Win the Heart of CSS Boys
How to Win the Heart of CSS Boys
拓樹 谷
Johny see book update
Johny see book update
Ahmad Syaifudin
CSS設計の理想と現実
CSS設計の理想と現実
拓樹 谷
Práctica
Práctica
RICHARDTIMANA2015
Why Sass?
Why Sass?
拓樹 谷
Recommended
CSS Components
CSS Components
拓樹 谷
Code
Code
Hanggie Defloeiner
WordPressのテンプレートをカスタマイズするために必要なphpを初歩から解説
WordPressのテンプレートをカスタマイズするために必要なphpを初歩から解説
Takashi Uemura
How to Win the Heart of CSS Boys
How to Win the Heart of CSS Boys
拓樹 谷
Johny see book update
Johny see book update
Ahmad Syaifudin
CSS設計の理想と現実
CSS設計の理想と現実
拓樹 谷
Práctica
Práctica
RICHARDTIMANA2015
Why Sass?
Why Sass?
拓樹 谷
2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
Marius Sescu
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Expeed Software
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
Pixeldarts
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
Skeleton Culture Code
Skeleton Culture Code
Skeleton Technologies
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
How to have difficult conversations
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
Introduction to Data Science
Introduction to Data Science
Christy Abraham Joy
Time Management & Productivity - Best Practices
Time Management & Productivity - Best Practices
Vit Horky
The six step guide to practical project management
The six step guide to practical project management
MindGenius
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
RachelPearson36
More Related Content
Featured
2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
Marius Sescu
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Expeed Software
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
Pixeldarts
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
Skeleton Culture Code
Skeleton Culture Code
Skeleton Technologies
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
How to have difficult conversations
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
Introduction to Data Science
Introduction to Data Science
Christy Abraham Joy
Time Management & Productivity - Best Practices
Time Management & Productivity - Best Practices
Vit Horky
The six step guide to practical project management
The six step guide to practical project management
MindGenius
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
RachelPearson36
Featured
(20)
2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
Skeleton Culture Code
Skeleton Culture Code
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Getting into the tech field. what next
Getting into the tech field. what next
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
How to have difficult conversations
How to have difficult conversations
Introduction to Data Science
Introduction to Data Science
Time Management & Productivity - Best Practices
Time Management & Productivity - Best Practices
The six step guide to practical project management
The six step guide to practical project management
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Index.php
1.
<?php include("conexion.php"); ?> <html lang="es"> <head> <meta charset="utf-8"/> <title>Carritode
Compras</title> <script src="js/jquery-1.10.2.min.js"></script> <scriptsrc="js/jquery-ui.min.js"></script> <scriptsrc="js/jquery.ui.touch-punch.js"></script> <scripttype="text/javascript"src="js/jquery.js"></script> <metahttp-equiv="Content-Type"content="text/html;charset=utf-8"/> <style> h1 { padding:.2em; margin:0; font-size:12px; text-align:center; } #products{float:left;width:200px;margin-right:2em;} #cart {width:300px;float:left;margin-left:20px;} #cart ol {margin:0;padding:1em0 1em 3em;} h3{background-color:#2075CA;color:#F8F8F8;height:20px;padding:10px;} img{
2.
background-color:#D8D8D8; color:#393939; margin-bottom:10px; padding:10px; list-style:none; text-align:center; } li{background-color:#D8D8D8; color:#393939; margin-bottom:10px;padding:10px;list- style:none;} .carrito{width:100px;height:auto;background-color:#FFFAFA;border:solid1px
#FF6366; border-radius:5px;} ol{width:200px;height:auto;} .zona{background-color:#A1ECB5;} .activo{background-color:#29B34C;} .articulonew{width:100px;} #productdivul table tr td { font-family:Verdana,Geneva,sans-serif; } #productdivul table { font-size:10px; text-align:center; } #apDiv1{ position:absolute; left:694px; top: 176px; width:328px; height:164px;
3.
z-index:1; } </style> <script> $(function() { var cedula= document.getElementById("txtcedula").value; var
factura= document.getElementById('txtfactura').value; var nombre=document.getElementById('txtcoger').value; var cantidad=document.getElementById('txtcant').value; var precio=document.getElementById('txtprecio').value; $("#catalogimg").draggable({ appendTo:"body", helper:"clone" }); $("#cart ol").droppable({ activeClass:"zona", hoverClass:"activo", drop:function(event,ui){ $( this).find( ".placeholder").remove(); var id=ui.draggable.attr('id'); //var cedula=ui.draggable.attr('cedula'); var ruta = "insertar.php";
4.
$.ajax({ type:"POST", url:"insertar.php", data: ('cedula='+cedula+'&factura='+factura+'&nombre='+nombre+'&cantidad='+cantidad+'&precio ='+precio), success:function(datos) { $("#respuesta").html(datos); } }) .done(function( msg) { alert
("Guardado:" + msg ); window.location.reload(); }); $('<li></li>').text(ui.draggable.text()).appendTo( this); } }).sortable({ items:"img:not(.placeholder)", sort:function(){ } }); });
5.
</script> <?php $re=mysql_query("select*from compras_productos")ordie(mysql_error()); while ($f=mysql_fetch_array($re))
{ ?> <?php } ?> </head> <body> <form name="form1"method="post"action="insertar.php"> <divid="apDiv1"> <div id="cart"> <h1><img src="img/Shopping-Cart.png"width="105"height="96">Compras</h1> <ol> <li class="placeholder">AñadirCompra</li> <?php $res = mysql_query("SELECT*FROMcompras_productos"); while($r= mysql_fetch_array($res)) { //echo'<li id="fila'.$r['id'].'">'.$productos[$r['id']].' <spanclass="quitar" onclick="quitarprod('.$r['id'].')">quitar</span>'; } ?> <?php
6.
// $cedulaC=$_POST['usuario']; //$cedulaC=123; ?> </ol> </div> </div> <divid="catalog"> <divid="product"><h3> <label for="textfield3"></label> Usuario <inputtype="text"name="txtcedula"id="txtcedula"> Nº.
Factura <inputtype="text"name="txtfactura"id="txtfactura"> Detalles (Artículo) <label for="txtcoger"></label> <inputname="txtcoger"type="text"id="txtcoger"style="background:transparent;" size="13"maxlength="13"readonly> Cantidad <inputname="txtcant"type="text"id="txtcant"size="3"maxlength="3"readonly style="background:transparent;"> Valor <inputname="txtprecio"type="text"id="txtprecio"size="3"maxlength="3"readonly style="background:transparent;"> </h3> </div> </p>
7.
<divid="product"> <h3>Ropa y Pelucas</h3> <div> <ul> <table
width="267" height="204"border="1"> <tr> <td><div align="center"><imgborder="0"src="img/vestido.png" alt=""width="87" height="117" onMouseOver="document.getElementById('txtcoger').value=document.getElementById('ropa 1').value" onMouseOut="document.getElementById('txtcant').value=document.getElementById('txtcant 1').value" onMouseDown="document.getElementById('txtprecio').value=document.getElementById('txtp recio1').value"><?phpecho$f['nombre'];?></div></td> <td><div align="center"><ahref="#"><imgborder="0"src="img/pac_005.png"alt="" width="87"height="117" onMouseOver="document.getElementById('txtcoger').value=document.getElementById('ropa 2').value" onMouseOut="document.getElementById('txtcant').value=document.getElementById('txtcant 2').value" onMouseDown="document.getElementById('txtprecio').value=document.getElementById('txtp recio2').value"></a><?phpecho$f['nombre'];?></div></td> <td><div align="center"><ahref="#"><imgborder="0"src="img/pac_002.png"alt="" width="87"height="117" onMouseOver="document.getElementById('txtcoger').value=document.getElementById('ropa 3').value" onMouseOut="document.getElementById('txtcant').value=document.getElementById('txtcant 3').value" onMouseDown="document.getElementById('txtprecio').value=document.getElementById('txtp recio3').value"></a><?phpecho$f['nombre'];?></div></td> <td><div align="center"><ahref="#"><imgborder="0"src="img/images.jpg"alt="" width="87"height="117" onMouseOver="document.getElementById('txtcoger').value=document.getElementById('ropa 4').value" onMouseOut="document.getElementById('txtcant').value=document.getElementById('txtcant 4').value" onMouseDown="document.getElementById('txtprecio').value=document.getElementById('txtp recio4').value"></a><?phpecho$f['nombre'];?></div></td>
8.
<td><div align="center"><ahref="#"><imgborder="0"src="img/sombrero.jpg"alt="" width="87"height="117" onMouseOver="document.getElementById('txtcoger').value=document.getElementById('ropa 5').value" onMouseOut="document.getElementById('txtcant').value=document.getElementById('txtcant 5').value" onMouseDown="document.getElementById('txtprecio').value=document.getElementById('txtp recio5').value"></a><?phpecho$f['nombre'];?></div></td> </tr> <tr> <td width="104"><div
align="center"> <label for="ropa1"></label> <inputname="ropa1"type="text"id="ropa1"value="Vestido"size="10" maxlength="10"readonly> </div></td> <td width="76"><divalign="center"> <inputname="ropa2"type="text"id="ropa2"value="Pantaloneta"size="13" maxlength="13"readonly> </div></td> <td width="84"><divalign="center"> <inputname="ropa3"type="text" id="ropa3"value="Pantalón"size="13" maxlength="13"readonly> </div></td> <td width="61"><divalign="center"> <inputname="ropa4"type="text"id="ropa4"value="Pelucas"size="10" maxlength="10"readonly> </div></td> <td width="108"><div align="center"> <inputname="ropa5"type="text"id="ropa5"value="Sombreros"size="13" maxlength="13"readonly> </div></td> </tr>
9.
<tr> <td><div align="center">Precio: $. <label for="textfield"></label> <inputtype="text"name="txtprecio1"id="txtprecio1"value="45"size="4" maxlength="2"readonly> </div></td> <td><div
align="center">Precio: $. <label for="textfield"></label> <inputtype="text"name="txtprecio2"id="txtprecio2"value="35"size="4" maxlength="2"readonly> </div></td> <td><div align="center">Precio: $. <label for="textfield"></label> <inputtype="text"name="txtprecio3"id="txtprecio3"value="65"size="4" maxlength="2"readonly> </div></td> <td><div align="center">Precio: $. <label for="textfield"></label> <inputtype="text"name="txtprecio4"id="txtprecio4"value="28"size="4" maxlength="2"readonly> </div></td> <td><div align="center">Precio: $. <label for="textfield"></label>
10.
<inputtype="text"name="txtprecio5"id="txtprecio5"value="15"size="4" maxlength="2"readonly> </div></td> </tr> <tr> <td height="26">Cant: <label for="v3"></label> <inputname="txtcant1"type="text"id="txtcant1"value="1"size="2" maxlength="2"></td> <td>Cant: <label
for="v4"></label> <inputname="txtcant2"type="text"id="txtcant2"value="1"size="2" maxlength="2"></td> <td>Cant: <label for="v5"></label> <inputname="txtcant3"type="text"id="txtcant3"value="1"size="2" maxlength="2"></td> <td>Cant: <label for="textfield7"></label> <inputname="txtcant4"type="text"id="txtcant4"value="1"size="2" maxlength="2"></td> <td>Cant: <label for="textfield8"></label> <inputname="txtcant5"type="text"id="txtcant5"value="1"size="2" maxlength="2"></td> </tr> </table> </ul> </div> </div>
11.
<divid="catalog"> <h3>Calzado</h3> <div> <ul> <table width="559" border="1"> <tr> <td><div
align="center"><ahref="#"><imgborder="0"src="img/pac_006.png" alt="" width="87"height="117" onMouseOver="document.getElementById('txtcoger').value=document.getElementById('ropa 6').value" onMouseOut="document.getElementById('txtcant').value=document.getElementById('txtcant 6').value" onMouseDown="document.getElementById('txtprecio').value=document.getElementById('txtp recio6').value"></a><?phpecho$f['nombre'];?></div></td> <td><div align="center"><ahref="#"><imgborder="0"src="img/pac_007.png" alt="" width="87"height="117" onMouseOver="document.getElementById('txtcoger').value=document.getElementById('ropa 7').value" onMouseOut="document.getElementById('txtcant').value=document.getElementById('txtcant 7').value" onMouseDown="document.getElementById('txtprecio').value=document.getElementById('txtp recio7').value"></a><?phpecho$f['nombre'];?></div></td> <td><div align="center"><ahref="#"><imgborder="0"src="img/sandalias1.png" alt="" width="87"height="117" onMouseOver="document.getElementById('txtcoger').value=document.getElementById('ropa 8').value" onMouseOut="document.getElementById('txtcant').value=document.getElementById('txtcant 8').value" onMouseDown="document.getElementById('txtprecio').value=document.getElementById('txtp recio8').value"></a><?phpecho$f['nombre'];?></div></td> <td><div align="center"><ahref="#"><imgborder="0"src="img/zapato.png" alt="" width="87"height="117" onMouseOver="document.getElementById('txtcoger').value=document.getElementById('ropa 9').value" onMouseOut="document.getElementById('txtcant').value=document.getElementById('txtcant 9').value" onMouseDown="document.getElementById('txtprecio').value=document.getElementById('txtp recio9').value"></a><?phpecho$f['nombre'];?></div></td>
12.
<td><div align="center"><ahref="#"><imgborder="0"src="img/camara.jpg" alt="" width="87"height="117" onMouseOver="document.getElementById('txtcoger').value=document.getElementById('ropa 10').value" onMouseOut="document.getElementById('txtcant').value=document.getElementById('txtcant 10').value" onMouseDown="document.getElementById('txtprecio').value=document.getElementById('txtp recio10').value"></a><?phpecho$f['nombre'];?></div></td> </tr> <tr> <td><div
align="center"> <label for="ropa1"></label> <inputname="ropa6"type="text"id="ropa6"value="Botas"size="10"maxlength="10" readonly> </div></td> <td><div align="center"> <inputname="ropa7"type="text"id="ropa7"value="Zapatillas"size="13" maxlength="13"readonly> </div></td> <td><div align="center"> <inputname="ropa8"type="text"id="ropa8"value="Zandallas"size="13" maxlength="13"readonly> </div></td> <td><div align="center"> <inputname="ropa9"type="text"id="ropa9"value="Ballet"size="10"maxlength="10" readonly> </div></td> <td><div align="center"> <inputname="ropa10"type="text"id="ropa10"value="Cámaras"size="13" maxlength="13"readonly> </div></td> </tr>
13.
<tr> <td><div align="center">Precio: $. <label for="textfield"></label> <inputtype="text"name="txtprecio6"id="txtprecio6"value="75"size="4" maxlength="2"readonly> </div></td> <td><div
align="center">Precio: $. <label for="textfield"></label> <inputtype="text"name="txtprecio7"id="txtprecio7"value="95"size="4" maxlength="2"readonly> </div></td> <td><div align="center">Precio: $. <label for="textfield"></label> <inputtype="text"name="txtprecio8"id="txtprecio8"value="18"size="4" maxlength="2"readonly> </div></td> <td><div align="center">Precio: $. <label for="textfield"></label> <inputtype="text"name="txtprecio9"id="txtprecio9"value="36"size="4" maxlength="2"readonly> </div></td> <td><div align="center">Precio: $. <label for="textfield"></label>
14.
<inputtype="text"name="txtprecio10"id="txtprecio10"value="150"size="5" maxlength="3"readonly> </div></td> </tr> <tr> <td height="26">Cant: <label for="v8"></label> <inputname="txtcant6"type="text"id="txtcant6"value="1"size="2" maxlength="2"></td> <td>Cant: <label
for="v9"></label> <inputname="txtcant7"type="text"id="txtcant7"value="1"size="2" maxlength="2"></td> <td>Cant: <label for="v10"></label> <inputname="txtcant8"type="text"id="txtcant8"value="1"size="2" maxlength="2"></td> <td>Cant: <label for="textfield5"></label> <inputname="txtcant9"type="text"id="txtcant9"value="1" size="2" maxlength="2"></td> <td>Cant: <label for="textfield6"></label> <inputname="txtcant10"type="text"id="txtcant10"value="1"size="2" maxlength="2"></td> </tr> </table> </ul> </div> </div>
15.
</form> </body> </html>
Download now