course.php 3.7 KB

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