Guest User

Untitled

a guest
Apr 19th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.26 KB | None | 0 0
  1. <a href='prueba.php?id=".$id."'> Realizar </a>
  2.  
  3. $id = $_GET['id'];//variable con el id pasado
  4.  
  5. <section id="form">
  6. <form class="contact_form" ACTION="prueba.php" METHOD="POST" id="formulario">
  7. <input type="hidden" name="auditoria" />
  8. <input type="hidden" name="oculto" />
  9. <ul>
  10. <li>
  11. <h2>Calendario de Tareas</h2>
  12. </li>
  13.  
  14. <?php
  15. /*Y ahora todos los registros */
  16. while($row=mysqli_fetch_array($result))
  17. {
  18. $id = $row["ID"];
  19. $Auditor = $row["Auditor"];
  20. $auditoria = $row["Auditoria"];
  21. $Fdeseada = $row["Fdeseada"];
  22. $Flimite = $row["Flimite"];
  23. echo "<tr onclick="enviarRegistro('".$auditoria."', '".$id."')">
  24. <td align='right' class='estilo1'> $id </td>
  25. <td class='estilo1'> $Auditor </td>
  26. <td class='estilo1'> $auditoria </td>
  27. <td class='estilo1'> $Fdeseada </td>
  28. <td class='estilo1'> $Flimite </td>
  29. <td class='estilo1'> $row[Estado] </td>
  30. <td class='estilo1'><A HREF='prueba.php'> Realizar </A></td>
  31. </tr>";
  32. }
  33. ?>
  34.  
  35. function enviarRegistro(auditoria, id)
  36. {
  37. document.getElementById("auditoria").value = auditoria;
  38. document.getElementById("id").value = id;
  39. document.getElementById("formulario").submit();
  40. }
Add Comment
Please, Sign In to add comment