Guest User

Untitled

a guest
Nov 18th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.38 KB | None | 0 0
  1. $('#table tbody').on( 'click', 'td', function () {
  2. name = $(this).parent().find('td').html().trim();
  3. stat = $('#table thead tr th').eq($(this).index()).html().trim();
  4. });
  5.  
  6. <div class="modal fade" id="add_new_record_modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
  7. <div class="modal-dialog" role="document">
  8. <div class="modal-content">
  9. <div class="modal-header">
  10. <h4 class="modal-title" id="myModalLabel">Tickets</h4>
  11. </div>
  12. <div class="modal-body">
  13.  
  14. <?php
  15. include("conn.php");
  16.  
  17. if(isset($_GET['name'])) {
  18. $name = $_GET['name'];
  19. } else {
  20. $name = "user1";
  21. }
  22.  
  23. if(isset($_GET['stat'])) {
  24. $stat = $_GET['stat'];
  25. } else {
  26. $stat = "open";
  27. }
  28. $result = mysql_query("SELECT `id`, `city`, `desc` from `entorno` where `name` = '$name' and stat = '$stat'");
  29.  
  30. while($test = mysql_fetch_array($result))
  31. {
  32. $id = $test['id'];
  33. echo"<div class='form-group'>";
  34. echo"<label>".$test['city']." ".$test['desc']."</label>";
  35. echo"</div>";
  36. }
  37. mysql_close($conn);
  38. ?>
  39.  
  40. </div>
  41. </div>
  42. </div>
  43. </div>
Add Comment
Please, Sign In to add comment