course.php 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. <?PHP
  2. include "../pcdl/html_head.php";
  3. ?>
  4. <body>
  5. <script language="javascript" src="../course/course.js"></script>
  6. <?php
  7. require_once("../pcdl/head_bar.php");
  8. ?>
  9. <link type="text/css" rel="stylesheet" href="./style.css" />
  10. <style>
  11. .disable {
  12. cursor: not-allowed;
  13. opacity: 0.5;
  14. }
  15. .padding_2_1rem {
  16. padding: 2rem 1rem;
  17. }
  18. #main_video_win iframe {
  19. width: 100%;
  20. height: 100%;
  21. }
  22. #course_frame {
  23. display: flex;
  24. }
  25. #course_content {
  26. margin: 0;
  27. padding: 0;
  28. }
  29. #course_info_head_1 {
  30. display: grid;
  31. grid-template-columns: 200px 1fr;
  32. grid-gap: 20px;
  33. }
  34. #course_info_head_face img {
  35. width: 200px;
  36. height: 200px;
  37. border-radius: 12px;
  38. object-fit: cover;
  39. }
  40. .section_inner {
  41. max-width: 960px;
  42. margin: 0 auto;
  43. }
  44. #course_info_head_title {
  45. display: flex;
  46. flex-direction: column;
  47. word-wrap: break-word;
  48. }
  49. #course_title {
  50. font-size: 22px;
  51. font-weight: 700;
  52. }
  53. #course_subtitle {
  54. font-size: 13px;
  55. padding: 10px 0;
  56. word-wrap: break-word;
  57. }
  58. #course_button {
  59. margin-top: auto;
  60. }
  61. #lesson_list_shell {
  62. padding: 2rem 1rem;
  63. background-color: #f5f5f5;
  64. }
  65. .course_info_block {
  66. padding: 1rem 0;
  67. }
  68. #course_info_summary {
  69. border-top: 1px solid var(--border-line-color);
  70. border-bottom: 1px solid var(--border-line-color);
  71. }
  72. .course_info_block h2 {
  73. font-size: 16px;
  74. }
  75. #lesson_list {
  76. column-count: 2;
  77. position: relative;
  78. }
  79. #lesson_list .lesson_card {
  80. padding: 10px 10px 10px 0;
  81. -webkit-column-break-inside: avoid;
  82. page-break-inside: avoid;
  83. break-inside: avoid;
  84. }
  85. .datatime {
  86. display: inline;
  87. }
  88. .not_started {
  89. background-color: orangered;
  90. color: var(--bg-color);
  91. }
  92. .in_progress,
  93. .already_over {
  94. color: var(--btn-hover-bg-color);
  95. }
  96. .lesson_card .title {
  97. margin-top: 5px;
  98. font-size: 17px;
  99. font-weight: 600;
  100. display: -webkit-box;
  101. -webkit-box-orient: vertical;
  102. overflow: hidden;
  103. text-overflow: ellipsis;
  104. width: 100%;
  105. -webkit-line-clamp: 2;
  106. }
  107. #course_info_head_2 {
  108. margin: 1rem 0;
  109. }
  110. @media screen and (max-width:800px) {
  111. #lesson_list {
  112. column-count: 1;
  113. }
  114. #course_info_head_1 {
  115. grid-template-columns: 100px 1fr;
  116. grid-gap: 10px;
  117. }
  118. #course_info_head_face,
  119. #course_info_head_face img {
  120. width: 100px;
  121. height: 100px;
  122. border-radius: 6px;
  123. }
  124. }
  125. </style>
  126. <div id='course_content'>
  127. <div id='course_info_shell' class='padding_2_1rem'>
  128. <div id='course_info' class="section_inner"></div>
  129. </div>
  130. <div id='lesson_list_shell'>
  131. <div id='lesson_list' class="section_inner"></div>
  132. </div>
  133. </div>
  134. <script>
  135. course_load("<?php echo $_GET["id"]; ?>");
  136. </script>
  137. <?php
  138. include "../pcdl/html_foot.php";
  139. ?>