video-list.php 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <?php
  2. session_start();
  3. if (!isset($_SESSION['loggedin'])) {
  4. header('Location: pages-signin.html');
  5. exit;
  6. }
  7. $folder = "";
  8. if (isset($_POST["folder"])) {
  9. $folder = $_POST["folder"];
  10. }
  11. ?>
  12. <!doctype html>
  13. <html class="fixed">
  14. <head>
  15. <?php include("bim-support-header.html"); ?>
  16. <script src="./script/js/jquery.redirect.js"></script>
  17. <script src="./script/js/global.js"></script>
  18. <script>
  19. var userName = '<?php echo $_SESSION['name']; ?>';
  20. var folderFromVideoPlay = '<?php echo ($folder); ?>';;
  21. pageHeader = "亞新教育訓練平台";
  22. </script>
  23. </head>
  24. <body>
  25. <section class="body">
  26. <!-- start: header -->
  27. <header-menu></header-menu>
  28. <!-- end: header -->
  29. <div class="inner-wrapper">
  30. <!-- start: sidebar -->
  31. <side-bar></side-bar>
  32. <!-- end: sidebar -->
  33. <section role="main" class="content-body">
  34. <header class="page-header">
  35. <h2>{{pageHeader}}</h2>
  36. <button class="mb-xs mt-xs mr-xs btn btn-default right" type="button" style="float: right;" onclick="initList(parent)">回上層</button>
  37. </header>
  38. <div class="row" id="video-list">
  39. </div>
  40. </section>
  41. </div>
  42. </section>
  43. </div>
  44. <script>
  45. vm.mount('.body');
  46. </script>
  47. <script src="./script/js/video-list.js"></script>
  48. <?php include("bim-support-body.html"); ?>
  49. </section>
  50. </body>
  51. </html>