wiki.php 4.6 KB

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