Advertisement
Guest User

Untitled

a guest
Jan 18th, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.81 KB | None | 0 0
  1. <?php
  2. include "conexion.php";
  3. global $cone;
  4. ?>
  5. <!doctype html>
  6. <html>
  7. <head>
  8. <meta charset="utf-8">
  9. <link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
  10. <link rel="stylesheet" href="/resources/demos/style.css">
  11. <script src="https://code.jquery.com/jquery-1.12.4.js"></script>
  12. <script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
  13. <script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
  14.  
  15. <title> </title>
  16. </head>
  17. <body>
  18. <h1 align ="center">Bienvenido</h1>
  19. <a href ="index.html"><ol>Pagina Principal</ol></a>
  20. <a href ="registrar.php"><ol>Registrar</ol></a>
  21. <a href ="listado.php"><ol>Listado</ol></a>
  22. <a href ="Sancion.php"><ol>Sancion</ol></a>
  23. <form method="POST" action ="procesar4.php">
  24. <label> Ingrese cedula del sancionado</label>
  25. <input type="text" id="cedula" name="cedula1"><br/>
  26.  
  27. <label> Ingrese cedula del sancionador</label>
  28. <input type="text" id="cedula" name="cedula2"><br/>
  29.  
  30. <label> Ingrese tipo de sancion </label>
  31. <div><select name="sancion">
  32. <?php
  33. $registros=mysqli_query($cone,"select * from sanciones");
  34. while ($reg = mysqli_fetch_array($registros)){
  35. echo "<option value='$reg[id_sancion]'>"."$reg[sancion]"."<br/>"."</option>";
  36. }
  37. ?>
  38. </select></div>
  39. <label> Ingrese articulo inflingido </label>
  40. <div><select name="articulo" id="articulo">
  41. <script type="text/javascript">
  42. jQuery(document).ready(function($) {
  43. // Change es un evento que se ejecuta cada vez que se cambia el valor de un elemento (input, select, etc).
  44. $('#articulo').change(function(e) {
  45.  
  46. $('#descripcion').val($(this).val());
  47. });
  48. });
  49. </script>
  50. <?php
  51. $registros=mysqli_query($cone,"select * from articulos");
  52. while ($reg = mysqli_fetch_array($registros)){
  53. echo "<option value='$reg[id_articulo]'>"."$reg[articulo]"."</option>";
  54. }
  55. $sql =mysqli_query($cone,"SELECT des_articulo
  56. FROM articulos where id_articulo=id_articulo");
  57. $sql2 = mysqli_fetch_array($sql);
  58. echo "<br/>"."<input type='text' id='descripcion' readonly value='$sql2[des_articulo]'>";
  59.  
  60. ?>
  61. </select></div>
  62.  
  63.  
  64. <label> Ingrese estado de sancion </label>
  65. <div>
  66. <?php
  67. global $cone;
  68. $registros=mysqli_query($cone,"select * from estado_sanciones");
  69. while ($reg = mysqli_fetch_array($registros)){
  70. echo "<input type='checkbox' value='$reg[estado_id]'>"."$reg[estado]";
  71. }
  72. ?>
  73. <br/></div>
  74.  
  75. <label> Ingrese Fecha inicial de la sancion</label>
  76. <div>
  77. <script>
  78. $( function() {
  79. $( "#fecha1" ).datepicker();
  80. } );
  81. </script>
  82. <input type="text" name="fecha1" id="fecha1"></p>
  83. </div>
  84. <label> Ingrese Fecha Final de la sancion</label>
  85.  
  86. <div>
  87. <script>
  88. $( function() {
  89. $( "#fecha2" ).datepicker();
  90. } );
  91. </script>
  92. <input type="text" name="fecha2" id="fecha2"></p>
  93. </div>
  94. <input type="submit" value="enviar">
  95. </form>
  96. </body>
  97. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement