SHARE
TWEET

Untitled

a guest Jul 17th, 2017 49 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2.  
  3. <script type="text/javascript">
  4.  
  5. $(document).ready(function() {
  6.    
  7.     $(".Payed").live("click", function() {
  8.             if(confirm("Are you sure?  Page will refresh automatically")){
  9.             var id = $(this).attr("id");
  10.     $.post("db/Betaling.php", { value: id } );
  11.     window.setTimeout('location.reload()',1000);
  12.             }else{
  13.                         return false;
  14.             }
  15. });
  16. </script>
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23. while($row = mysqli_fetch_array($result))
  24. {
  25. echo "<tr>";
  26. echo "<td>" . $row['Team_ContactPerson'] . "</td>";
  27. echo "<td>" . $row['Team_Name'] . "</td>";
  28. echo "<td>" . $row['Team_Email'] . "</td>";
  29. echo "<td>" . $row['Team_Phone'] . "</td>";
  30. echo "<td>" . $row['Betaling'] . "</td>";
  31. echo "<td><img src='images/Money.png' class='payed' title='Payed' id='" . $row['Team_Id'] . "'/> </td>";
  32. //if($row['Betaling'] = 0)
  33.   //      echo "<td>" . Niet betaald . "</td>";
  34.     //    echo "<td>" . betaald . "</td>";
  35.    
  36.  
  37. echo "</tr>";
  38. }
RAW Paste Data
Top