All pastes #178151 Raw Edit

Miscellany

public html v1 · immutable
#178151 ·published 2006-09-21 01:06 UTC
rendered paste body
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head>  <input />  <meta content="text/html; charset=ISO-8859-1" http-equiv="content-type" />  <title>index.html</title>  <script type="text/javascript">var arrInput = new Array(0);var arrInputValue = new Array(0);function addInput() {arrInput.push(arrInput.length);arrInputValue.push("");display();}function display() {document.getElementById('form').innerHTML="<br /><br />Ingrese los datos de los productos <br /><br />";for (intI=0;intI<arrInput.length;intI++) {document.getElementById('form').innerHTML+=createInput(arrInput[intI], arrInputValue[intI]);}if(intI<=0){document.getElementById('form').innerHTML="Se han eliminado todos los productos<br>";}}function saveValue(intId,strValue) {arrInputValue[intId]=strValue;}function createInput(id,value) {num=id+1;return "<div style='text-align: center;'><strong>Producto Nro"+num+"</strong><br /> Codigo <input type='text' name='codproducto"+ id +"''> &nbsp; &nbsp; Descripcion <input type='text' id='descripcion"+ id +"''> &nbsp; &nbsp; Cantidad <input type='text' id='cantidad"+ id +"''> &nbsp; &nbsp; Precio <input type='text' id='precio"+ id +"''></div><br />";} function deleteInput() {if (arrInput.length > 0) {arrInput.pop();arrInputValue.pop();}display();}  </script>  <script language="javascript"><!--function show_textbox(){document.getElementById('devol').innerHTML = "<input type=\"button\" onclick=\"javascript:hide_textbox()\" value=\"Sin devoluciones\" /><br /><textarea name=\"devolucion\" cols=\"40\" rows=\"5\"></textarea>";}function hide_textbox(){document.getElementById('devol').innerHTML = "<input type=\"button\" onclick=\"javascript:show_textbox()\" value=\"Con devoluciones\" />";}-->  </script></head><body><div style="text-align: center;"><big><big>Facturade compra recibida</big></big></div>Fecha<br /><div style="text-align: center;"><form name="compra" method="post" action="index.php"><br />Nro Orden <input name="nroorden" />C&oacute;digo <input name="codigo" />Nro Factura<input name="nrofactura" />  <p id="form">No se ha agregadoning&uacute;n producto</p>  <p><a href="javascript:addInput()">Agregar nuevoproducto</a><br />  <a href="javascript:deleteInput()">Remover&uacute;ltimo producto</a> </p>  <div id="devol"><input onclick="javascript:show_textbox()" value="Con devoluci&oacute;n" type="button" />  </div>  <input value="Enviar" type="button" /></form></div></body></html>