video-list.php 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <?php
  2. include($_SERVER['DOCUMENT_ROOT'] . "/Authorization/script/php/permission/check_right.php");
  3. $folder = "";
  4. if (isset($_POST["folder"])) {
  5. $folder = $_POST["folder"];
  6. }
  7. ?>
  8. <!doctype html>
  9. <html class="fixed">
  10. <head>
  11. <?php include("bim-support-header.html"); ?>
  12. <script src="./script/js/jquery.redirect.js"></script>
  13. <script src="./script/js/global.js"></script>
  14. <script>
  15. var userName = '<?php echo $_SESSION['name']; ?>';
  16. var folderFromVideoPlay = '<?php echo ($folder); ?>';;
  17. pageHeader = "亞新教育訓練平台";
  18. </script>
  19. </head>
  20. <body>
  21. <section class="body">
  22. <!-- start: header -->
  23. <header-menu></header-menu>
  24. <!-- end: header -->
  25. <div class="inner-wrapper">
  26. <!-- start: sidebar -->
  27. <side-bar></side-bar>
  28. <!-- end: sidebar -->
  29. <section role="main" class="content-body">
  30. <header class="page-header">
  31. <h2>{{pageHeader}}</h2>
  32. </header>
  33. <div class="inner-body mg-main" style="margin-left: 0px;">
  34. <div class="inner-toolbar">
  35. <ul>
  36. <search-bar></search-bar>
  37. <li id="reset" style="padding-top: 10px;">
  38. <div class="input-group input-search" style="table-layout: auto;">
  39. <a class="btn btn-primary" href="video-list.php" id="resetbtn" data-toggle="tooltip" data-original-title="" title="">
  40. <i class="fa fa-undo"></i>
  41. </a>
  42. </div>
  43. </li>
  44. <button class="mb-xs mt-xs mr-xs btn btn-default right" type="button" style="float: right;" onclick="initList(parent)">回上層</button>
  45. </ul>
  46. </div>
  47. <div class="row" id="video-list"></div>
  48. </div>
  49. </section>
  50. </div>
  51. </section>
  52. </div>
  53. <script>
  54. vm.mount('.body');
  55. </script>
  56. <script src="./script/js/video-list.js"></script>
  57. <?php include("bim-support-body.html"); ?>
  58. <script>
  59. $(".input-search .btn").on("click", function() {
  60. // alert($("#quicksearch").val());
  61. $("#video-list").empty();
  62. search_video($("#quicksearch").val());
  63. });
  64. $('.input-search input').on('keyup', function(e) {
  65. if (e.key === 'Enter' || e.keyCode === 13) {
  66. $('#video-list').empty();
  67. search_video($("#quicksearch").val());
  68. }
  69. });
  70. </script>
  71. </section>
  72. </body>
  73. </html>