Guest User

Untitled

a guest
Jun 24th, 2020
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.20 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="pl">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1">
  6. <title>Formularz do zgłoszeń awarii - SPKSO</title>
  7. <link href="https://fonts.googleapis.com/css?family=Inconsolata|Rubik:300,400,700,900" rel="stylesheet">
  8. <link rel="stylesheet" href="style.css">
  9.  
  10.  
  11. <!--[if lt IE 9]>
  12. <script src="js/vendor/html5shiv.min.js"></script>
  13. <script src="js/vendor/respond.min.js"></script>
  14. <![endif]-->
  15.  
  16.  
  17. <script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
  18. <script>
  19. $(document).ready(function() {
  20. $("html").on("submit","#contact_form",function(e){
  21. e.preventDefault();
  22. $("#send_form_status").html('').hide();
  23. var data=$("#contact_form").serialize();
  24. $.post("send_form.php",data,function(res){
  25. $("#send_form_status").html(res.msg).show();
  26. if(res.status==1){
  27. $("#contact_form")[0].reset();
  28. }
  29. });
  30. });
  31. });
  32. </script>
  33. </head>
  34. <body>
  35.  
  36. <h1>Formularz zgłoszeniowy - awarie</h1>
  37.  
  38. <div id="form">
  39.  
  40. <div id="send_form_status"></div>
  41. <form method="post" action="/send_form.php" id="contact_form">
  42. <div><label for="dzial">Do działu:</label></div>
  43. <select name="dzial">
  44. <option>Biuro ds. Informatyki</option>
  45. <option>Dział Techniczny</option></select></div> <br />
  46. <div><label for="name">Lokalizacja (np. Gabinet 30)</label></div>
  47. <div><input type="text" name="name" id="name" class="formField" /></div>
  48. <div><label for="phone">Temat zgłoszenia (Np. wymiana tonera)</label></div>
  49. <div><input type="text" name="phone" id="phone" class="formField" /></div>
  50. <div><label for="email">Adres email</label></div>
  51. <div><input type="text" name="email" id="email" class="formField" /></div>
  52. <div><label for="message">Opis zgłoszenia</label></div>
  53. <div><textarea name="message" id="message" class="formField"></textarea></div>
  54. <div><button id="sendBtn">Wyślij</button></div> <br />
  55.  
  56. <div><img src="Logo.png" alt="Logo" width="30%" height="10%">
  57. </form>
  58.  
  59.  
  60. </body>
  61. </html>
Advertisement
Add Comment
Please, Sign In to add comment