Xom9ik

Table Specialty

May 10th, 2018
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.49 KB | None | 0 0
  1. <?php
  2. if (!($_COOKIE["identifierUser"])) {
  3.     header('Location: error.php');
  4. }
  5. ?>
  6.  
  7. <!doctype html>
  8. <html lang="en">
  9. <head>
  10.     <meta charset="UTF-8">
  11.     <meta name="viewport"
  12.           content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
  13.     <meta http-equiv="X-UA-Compatible" content="ie=edge">
  14.     <link rel="stylesheet" type="text/css"
  15.           href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.99.0/css/materialize.min.css">
  16.  
  17.     <title>Table</title>
  18. </head>
  19. <body>
  20.  
  21. <div class="container" id="table-specialty" name="table-specialty">
  22.     <div class="center-align">
  23.  
  24.     </div>
  25. </div>
  26.  
  27. </body>
  28.  
  29. <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.1/jquery.min.js"></script>
  30. <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-validate/1.17.0/jquery.validate.min.js"></script>
  31. <script type="text/javascript"
  32.         src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.99.0/js/materialize.min.js"></script>
  33.  
  34. <script>"use strict";
  35.  
  36.     getTable();
  37.     function getTable() {
  38.         $.ajax({
  39.             url: "getTableSpecialty.php",
  40.             method: "POST",
  41.             data: {
  42.                 specialty: "Информатика" // Change
  43.             },
  44.             dataType: "text",
  45.             success: function (data) {
  46.                 $("#table-specialty").html(data);
  47.             }
  48.         });
  49.     }
  50.  
  51.     $('select').material_select();
  52. </script>
  53. </html>
Advertisement
Add Comment
Please, Sign In to add comment