Ver Mensaje Individual
  #2 (permalink)  
Antiguo 03/02/2005, 17:57
haven
 
Fecha de Ingreso: febrero-2002
Ubicación: Navarra
Mensajes: 701
Antigüedad: 22 años, 3 meses
Puntos: 2
Código HTML:
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><title>Norpa</title>



<script language="JavaScript">
<!--

function SymError()
{
  return true;
}

window.onerror = SymError;

var SymRealWinOpen = window.open;

function SymWinOpen(url, name, attributes)
{
  return (new Object());
}

window.open = SymWinOpen;

//-->
</script>

<script> 

var total=0; 
var totalneto=0; 
function sumar(valor) { 
total += valor; 
document.accesorios.total.value=Math.round(total *10)/10; 
} 

function recoger(valor) { 
total2 = valor; 
document.accesorios.productos.value=Math.round(total2*10)/10; 
} 

function restar(valor) { 
total-=valor; 
document.accesorios.total.value=Math.round(total*10)/10; 
} 

function sumarneto(valor) { 
totalneto += valor; 
document.accesorios.neto.value=Math.round(totalneto *10)/10; 
} 

function restarneto(valor) { 
totalneto -=valor; 
document.accesorios.neto.value=Math.round(totalneto*10)/10; 
} 

function copianeto(valor)
{
  if (document.accesorios.productosneto.value=="") document.accesorios.productosneto.value=','+valor
  else document.accesorios.productosneto.value=document.accesorios.productosneto.value+','+valor;
  seleccion=0
}

function descopianeto(valor)
{
var quitaneto = "," + valor
document.accesorios.productosneto.value = document.accesorios.productosneto.value.replace(quitaneto,  "")
}

function copia(valor,n)
{
if (n == "0") n= ""
else n='('+n+')'

  if (document.accesorios.productos.value=="") document.accesorios.productos.value=','+valor
  else document.accesorios.productos.value=document.accesorios.productos.value+','+valor;
  
  if (document.accesorios.naccesorios.value=="") document.accesorios.naccesorios.value=','+valor+n
  else document.accesorios.naccesorios.value=document.accesorios.naccesorios.value+','+valor+n
  
  seleccion=0
}

function descopia(valor,n)
{
if (n == "0") n= ""
else n='('+n+')'

var quita = "," + valor
var quita2 = "," + valor + n
document.accesorios.productos.value = document.accesorios.productos.value.replace(quita,  "")

document.accesorios.naccesorios.value = document.accesorios.naccesorios.value.replace(quita2,  "")
} 


</script> 
<script>
//function marcar(obj) {
//    if (obj.checked)
 //       document.getElementById('fila1').style.backgroundColor='FFFF00'
  //  else
//        document.getElementById('fila1').style.backgroundColor=''
//}
</script>
<style type="text/css">
<!--
.px {
	height: 1px;
	width: 1px;
	border: 1px solid #002063;
	color: #002063;
	background-color: #002063;
}
.px2 {
	height: 1px;
	width: 1px;
	border: 1px solid #D6CFD6;
	color: #D6CFD6;
	background-color: #D6CFD6;
}
.Estilo2 {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 11px;
	color: #000000;
}
.Estilo4 {font-size: 12px}
.Estilo5 {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; color: #000000; font-weight: bold; }
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
.Estilo6 {
	color: #D6CFD6;
	font-weight: bold;
}
-->
</style></head>

<body>
<form name="accesorios" method="post" action="javascript:self.close();" onsubmit="javascript:opener.document.forms[0].accesorios.value=document.forms[0].total.value;opener.document.forms[0].naccess.value=document.forms[0].productos.value;opener.document.forms[0].neto.value=document.forms[0].neto.value;opener.document.forms[0].productosneto.value=document.forms[0].productosneto.value;opener.document.forms[0].naccesorios.value=document.forms[0].naccesorios.value">

<table bgcolor="#d6cfd6" border="0" cellpadding="0" cellspacing="0" width="705">
  <tbody><tr>
    <td><table border="0" cellpadding="0" cellspacing="0" width="705">
            <tbody>
              <tr id="fila" bgcolor="#022065"> 
                <td colspan="4" valign="top">
<div align="right"></div></td>
              </tr>
              <tr id="fila" bgcolor="#ede9ed"> 
                <td colspan="4" valign="top"><img src="accesorios.asp_files/acc-seccional.jpg" height="13" width="272"></td>
              </tr>
              <tr id="fila"> 
                <td bgcolor="#d2cfd2" valign="top"><img src="accesorios.asp_files/px.gif" height="12" width="20"></td>
                <td bgcolor="#d2cfd2" valign="top" width="384"><img src="accesorios.asp_files/px.gif" height="12" width="20"></td>
                <td bgcolor="#d2cfd2" valign="top"><img src="accesorios.asp_files/px.gif" height="12" width="20"></td>
                <td bgcolor="#b7b5b7" valign="top"><img src="accesorios.asp_files/px.gif" height="12" width="20"></td>
              </tr>
              <tr> 
                <td colspan="3" bgcolor="#d2cfd2" valign="top"> 
                  <table border="0" cellpadding="0" cellspacing="0" width="100%">
                    <tbody>
                      <tr> 
                        <td rowspan="2" bgcolor="#e9e4e9" valign="top" width="25"> 
                          <input name="precio" id="precio" value="2" onclick="if (this.checked) sumar(67*document.forms[0].numero2.value); else restar(67*document.forms[0].numero2.value);if(this.checked) copia(2,document.forms[0].numero2.value); else descopia(2,document.forms[0].numero2.value)" type="checkbox"> 
                        </td>
                        <td bgcolor="#e9e4e9" width="371"><font color="#000000" face="Verdana" size="1"><strong>Ventana 
                          Sandwich</strong>restangular 638*333 mm</font></td>
                        <td bgcolor="#e9e4e9" width="35"> <font color="#000000" face="Verdana" size="1"><strong></strong></font> 
                        </td>
                        <td bgcolor="#e9e4e9" width="60"><font color="#000000" face="Verdana" size="1">&nbsp; 
                          <input name="euros2" class="px2" id="euros2" style="border: 1px solid ; color: rgb(0, 0, 0); background-color: rgb(238, 238, 238); font-family: Verdana,tahoma,Arial; font-size: 10px;" value="67" size="5" type="text">
                          </font></td>
                      </tr>
                      <tr> 
                        <td bgcolor="#e9e4e9" width="371"> </td>
                        <td bgcolor="#e9e4e9" width="35"> <font color="#000000" face="Verdana" size="1"><strong> 
                          <input name="numero2" id="numero2" style="border: 1px solid ; color: rgb(0, 0, 0); background-color: rgb(238, 238, 238); font-family: Verdana,tahoma,Arial; font-size: 10px;" value="1" size="2" maxlength="3" type="text">
                          </strong></font> </td>
                        <td bgcolor="#e9e4e9"><font color="#000000" face="Verdana" size="1"><strong>67 
                          Euros</strong>&nbsp;</font></td>
                      </tr>
                    </tbody>
                  </table>
                  <table border="0" cellpadding="0" cellspacing="0" width="100%">
                    <tbody>
                      <tr> 
                        <td rowspan="2" bgcolor="#d6cfd6" valign="top" width="25"> 
                          <input name="precio" id="precio" value="11" onclick="if (this.checked) sumar(864*document.forms[0].numero11.value); else restar(864*document.forms[0].numero11.value);if(this.checked) copia(11,document.forms[0].numero11.value); else descopia(11,document.forms[0].numero11.value)" type="checkbox"> 
                        </td>
                        <td bgcolor="#d6cfd6" width="371"><font color="#000000" face="Verdana" size="1"><strong>Puerta 
                          peatonal incorporada en seccional</strong>Factible hasta 
                          anchura máxina de 5m. De puerta seccional</font></td>
                        <td bgcolor="#d6cfd6" width="35"> </td>
                        <td bgcolor="#d6cfd6" width="60"><font color="#000000" face="Verdana" size="1">&nbsp; 
                          <input name="euros11" class="px2" id="euros11" style="border: 1px solid ; color: rgb(0, 0, 0); background-color: rgb(238, 238, 238); font-family: Verdana,tahoma,Arial; font-size: 10px;" value="864" size="5" type="text">
                          </font></td>
                      </tr>
                      <tr> 
                        <td bgcolor="#d6cfd6" width="371"> </td>
                        
__________________
asp, php, .net, adaptandose a las necesidades