Advertisement
Guest User

Untitled

a guest
Dec 4th, 2016
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. <script >
  2. $(document).ready(function(){
  3. //nombre_inci es un select, en donde --Todas las Causas-- es un valor estatico
  4. //el resto de valores se trae de la BD
  5. //Buscar es un boton
  6.  
  7.  
  8. if ($("#Buscar").click && nombre_inci==="--Todas las Causas--"){
  9.  
  10. (function(){
  11.  
  12. var parametros = {
  13.  
  14. "fecha_rin" : $("#fecha_rin").val(),
  15. "fecha2_rin" : $("#fecha2_rin").val(),
  16. "operacion":"mostrar_informe"
  17.  
  18. };
  19.  
  20. $.ajax({
  21. data: parametros,
  22. url: 'controlador_incidentes.php',
  23. type: 'post',
  24. async:false,
  25.  
  26. beforeSend: function () {
  27. $("#resultado").html("Procesando, espere por favor...");
  28.  
  29.  
  30. },
  31. success: function (response) {
  32. //alert(response);
  33.  
  34.  
  35. $("#datos").html(response);
  36.  
  37.  
  38.  
  39. }
  40.  
  41. });
  42.  
  43. });}
  44.  
  45.  
  46. //--------------------------------------------------------
  47.  
  48.  
  49. $("#tabla tbody").on('click','.detalles',function(){
  50.  
  51. /* alert($(this).attr("id_rin"));
  52. var id_rin=$(this).attr("id_rin");
  53. location.href="detalle_incidentes.php?nro="+ id_rin +"";*/
  54.  
  55. });
  56.  
  57.  
  58. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement