wiki.php 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244
  1. <?php
  2. require_once "../public/_pdo.php";
  3. require_once "../path.php";
  4. if(isset($_GET["id"])){
  5. $_get_id=$_GET["id"];
  6. }
  7. if(isset($_GET["word"])){
  8. $_get_word=$_GET["word"];
  9. }
  10. if(isset($_GET["author"])){
  11. $_get_author=$_GET["author"];
  12. }
  13. else{
  14. $_get_author="";
  15. }
  16. ?>
  17. <?PHP
  18. include "../pcdl/html_head.php";
  19. ?>
  20. <body style="margin: 0;padding: 0;" class="reader_body" onload="<?php
  21. if(isset($_get_id)){
  22. echo "wiki_load_id('{$_get_id}')";
  23. }
  24. else if(isset($_get_word)){
  25. echo "wiki_load_word('{$_get_word}')";
  26. }
  27. ?>">
  28. <script src="../term/term.js"></script>
  29. <script src="../term/note.js"></script>
  30. <script src="wiki.js"></script>
  31. <style>
  32. .term_link,.term_link_new{
  33. color: blue;
  34. padding-left: 2px;
  35. padding-right: 2px;
  36. }
  37. .term_link_new{
  38. color:red;
  39. }
  40. #search_result{
  41. position: absolute;
  42. background: wheat;
  43. max-width: 95%;
  44. width: 24em;
  45. }
  46. chapter{
  47. color: blue;
  48. text-decoration: none;
  49. cursor: pointer;
  50. }
  51. chapter:hover{
  52. color: blue;
  53. text-decoration: underline;
  54. }
  55. para{
  56. background-color: #959595;
  57. padding: 2px 8px;
  58. text-decoration: none;
  59. cursor: pointer;
  60. color: white;
  61. border-radius: 5px;
  62. }
  63. para:hover{
  64. text-decoration: underline;
  65. }
  66. .icon{
  67. width: 15px;
  68. height: 15px;
  69. }
  70. .submenu_title{
  71. font-size: 120%;
  72. font-weight: 700;
  73. }
  74. .term_word_head_pali {
  75. text-transform: capitalize;
  76. font-size: 200%;
  77. margin: 0.5em 0;
  78. }
  79. .term_word_head{
  80. border-bottom: 1px solid #cecece;
  81. padding: 5px 0;
  82. }
  83. .term_block{
  84. border-bottom: 1px solid #cecece;
  85. padding: 5px 0;
  86. }
  87. .term_word_head_authors a{
  88. color: blue;
  89. margin: 0 3px;
  90. }
  91. .term_word_head_authors a:hover{
  92. text-decoration: underline;
  93. cursor: pointer;
  94. }
  95. note .ref{
  96. text-align: right;
  97. padding: 5px;
  98. font-size: 75%;
  99. margin-top: 8px;
  100. }
  101. note{
  102. background-color: #80808014;
  103. padding: 0.5em 0.8em;
  104. margin-bottom: 0.4em;
  105. border-radius: 5px;
  106. display:block;
  107. }
  108. note>.tran{
  109. color: #5c5c5c;
  110. padding-left: 1em;
  111. }
  112. note>.palitext{
  113. font-family: Noto serif;
  114. line-height: 1.5em;
  115. color: #9f3a01;
  116. font-weight: 500;
  117. }
  118. .term_block_bar {
  119. display: flex;
  120. justify-content: space-between;
  121. }
  122. #head_bar{
  123. display: flex;
  124. justify-content: space-between;
  125. height: 5em;
  126. background-color: var(--bookx);
  127. border-bottom: 1px solid var(--tool-line-color);
  128. }
  129. .term_block_bar_left{
  130. display: flex;
  131. }
  132. .term_block_bar_left_icon{
  133. display: inline-block;
  134. width: 1.5em;
  135. text-align: center;
  136. height: 1.5em;
  137. background-color: gray;
  138. font-size: 180%;
  139. color: white;
  140. border-radius: 99px;
  141. }
  142. .term_block_bar_left_info{
  143. padding-left: 8px;
  144. }
  145. .term_meaning{
  146. font-weight: 700;
  147. }
  148. .term_author{
  149. font-size: 80%;
  150. color: gray;
  151. }
  152. .term_tag{
  153. font-size: 80%;
  154. font-weight: 500;
  155. margin: 0 8px;
  156. }
  157. .term_link {
  158. cursor: pointer;
  159. }
  160. #wiki_contents{
  161. padding: 0 1em;
  162. max-width: 1280px;
  163. margin-left: auto;
  164. margin-right: auto;
  165. }
  166. #term_list_right{
  167. width: 25em;
  168. }
  169. #term_list{
  170. width: 100%;
  171. padding: 0.5em;
  172. }
  173. #term_list_div{
  174. display: flex;
  175. justify-content: space-between;
  176. }
  177. .fun_frame {
  178. border-bottom: 1px solid gray;
  179. margin-right: 10px;
  180. margin-bottom: 10px;
  181. }
  182. .fun_frame>.title{
  183. padding:6px;
  184. font-weight: 700;
  185. }
  186. .fun_frame>.content{
  187. padding:6px;
  188. max-height:6em;
  189. overflow-y: scroll;
  190. }
  191. }
  192. </style>
  193. <script>
  194. term_word_link_fun("wiki_goto_word");
  195. </script>
  196. <style>
  197. .index_toolbar{
  198. position:unset;
  199. }
  200. #pali_pedia{
  201. font-size: 200%;
  202. margin-top: auto;
  203. margin-bottom: auto;
  204. padding-left: 0.5em;
  205. }
  206. </style>
  207. <?php
  208. require_once("../pcdl/head_bar.php");
  209. ?>
  210. <div id="head_bar" >
  211. <div id="pali_pedia" style="display:flex;">
  212. <span>圣典百科</span>
  213. <span id="wiki_search" style="width:25em;">
  214. <span style="display:block;">
  215. <input id="wiki_search_input" type="input" placeholder="search" style="width:30em;background-color: var(--btn-color);" onkeyup="wiki_search_keyup(event,this)"/>
  216. </span>
  217. <span id="search_result">
  218. </span>
  219. </span>
  220. </div>
  221. <div>
  222. <span>
  223. <a href="#">[设置]</a>
  224. <a href="#">[建立词条]</a>
  225. <a href="#">[帮助]</a>
  226. </span>
  227. </div>
  228. </div>
  229. <div id="wiki_contents" style="padding: 0 1em;">
  230. loading...
  231. </div>
  232. </body>
  233. </html>