Ver Mensaje Individual
  #1 (permalink)  
Antiguo 17/11/2010, 16:19
Avatar de RucarMaN
RucarMaN
 
Fecha de Ingreso: julio-2003
Ubicación: Caripito Edo Monagas
Mensajes: 169
Antigüedad: 21 años, 7 meses
Puntos: 1
Realizar en bucle

Código HTML:
Ver original
  1.  
  2. <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
  3. <title>Dias Trabajados Total a Pagar</title>
  4. <script type="text/javascript">
  5. /* This script and many more are available free online at
  6. The JavaScript Source!! http://javascript.internet.com
  7. Created by: Jim Stiles | www.jdstiles.com */
  8. function startCalc(){
  9.   interval = setInterval("calc()",1);
  10. }
  11. function calc(){
  12.   one = document.autoSumForm.firstBox.value;
  13.   two = document.autoSumForm.secondBox.value;
  14.   document.autoSumForm.thirdBox.value = (one * 1) * (two * 1 + 2);
  15. }
  16. function stopCalc(){
  17.   clearInterval(interval);
  18. }
  19. input.right {
  20.   text-align: right;
  21.   width: 75px;
  22. }
  23. </head>
  24.  
  25. <form name="autoSumForm">
  26. *
  27. <input class="right" type=hidden name="firstBox" value="45.71" onFocus="startCalc();" onBlur="stopCalc();">Dias Trabajados <input class="right" type=text name="secondBox" value="" onFocus="startCalc();" onBlur="stopCalc();">Total a Pagar <input class="right" type=text name="thirdBox">
  28. <br>
  29.  
  30. </form>
  31.  
  32. </body>
  33.  
  34. </html>
Hola, consegui este codigo para realizar una nomina de pago donde se calcula el monto a pagar por dias trabajados pero me gustaria que me ayudaran a convertirlo para varios empleados.
Código ASP:
Ver original
  1. <%while (not rs.oef) %>
  2. <input class="right" type=hidden name="firstBox" value="45.71" onFocus="startCalc();" onBlur="stopCalc();">Dias Trabajados <input class="right" type=text name="secondBox" value="" onFocus="startCalc();" onBlur="stopCalc();">Total a Pagar <input class="right" type=text name="thirdBox">
  3. <% rs.MoveNext
  4. Wend %>:silbar:
__________________
Con la ayuda de todos seremos mejores...

http://www.pemoweb.com