Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1. <select name="conductor" id="conductor" class="form-control">
  2. <option value="">Seleccione...</option>
  3. <?php
  4. $query1="SELECT * FROM conductor";
  5. $result1=mysqli_query($con, $query1) or die (mysqli_error());
  6. while ($row=mysqli_fetch_array($result1)){
  7. echo '<option value="'.$row['id_conductor'].'">'.$row['nombre'].'</option>';
  8. }
  9. ?>
  10. </select>
  11.  
  12. function pdf(){
  13. conductor =$("conductor").val();
  14. $.ajax({
  15. url:"cartaresponsiva.php",
  16. type: "POST",
  17. data: {condutor: conductor},
  18. success: function(respuesta){
  19. }
  20. });
  21. }
  22.  
  23. <table border='0' cellspacing='0' cellpadding='0'>
  24. <thead>
  25. <tr>
  26. <th class="no">#</th>
  27. <th class="desc">Nombre</th>
  28. <th class="unit">Vehículo</th>
  29. <th class="qty">Fecha de Reasignación</th>
  30. </tr>
  31. </thead>
  32.  
  33. <tbody>
  34. <tr>
  35. <td class="no"></td>
  36. <td class="desc"></td>
  37. <td class="unit"></td>
  38. <td class="qty"></td>
  39. </tr>
  40. </tbody>
  41.  
  42. <tfoot>
  43. <tr>
  44. <td colspan="2"></td>
  45. <td colspan="2">Control de Flotilla</td>
  46. </tr>
  47. </tfoot>
  48. </table>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement