wiki.php 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212
  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. }
  107. note>.tran{
  108. color: #5c5c5c;
  109. padding-left: 1em;
  110. }
  111. note>.palitext{
  112. font-family: Noto serif;
  113. line-height: 1.5em;
  114. color: #9f3a01;
  115. font-weight: 500;
  116. }
  117. .term_block_bar {
  118. display: flex;
  119. justify-content: space-between;
  120. }
  121. #head_bar{
  122. display: flex;
  123. justify-content: space-between;
  124. height: 5em;
  125. background-color: var(--bookx);
  126. border-bottom: 1px solid var(--tool-line-color);
  127. }
  128. .term_block_bar_left{
  129. display: flex;
  130. }
  131. .term_block_bar_left_icon{
  132. display: inline-block;
  133. width: 1.5em;
  134. text-align: center;
  135. height: 1.5em;
  136. background-color: gray;
  137. font-size: 180%;
  138. color: white;
  139. border-radius: 99px;
  140. }
  141. .term_block_bar_left_info{
  142. padding-left: 8px;
  143. }
  144. .term_meaning{
  145. font-weight: 700;
  146. }
  147. .term_author{
  148. font-size: 80%;
  149. color: gray;
  150. }
  151. .term_tag{
  152. font-size: 80%;
  153. font-weight: 500;
  154. margin: 0 8px;
  155. }
  156. .term_link {
  157. cursor: pointer;
  158. }
  159. }
  160. </style>
  161. <script>
  162. term_word_link_fun("wiki_goto_word");
  163. </script>
  164. <style>
  165. .index_toolbar{
  166. position:unset;
  167. }
  168. #pali_pedia{
  169. font-size: 200%;
  170. margin-top: auto;
  171. margin-bottom: auto;
  172. padding-left: 0.5em;
  173. }
  174. </style>
  175. <?php
  176. require_once("../pcdl/head_bar.php");
  177. ?>
  178. <div id="head_bar" >
  179. <div id="pali_pedia" style="display:flex;">
  180. <span>圣典百科</span>
  181. <span id="wiki_search" style="width:25em;">
  182. <span style="display:block;">
  183. <input id="wiki_search_input" type="input" placeholder="search" style="width:30em;background-color: var(--btn-color);" onkeyup="wiki_search_keyup(event,this)"/>
  184. </span>
  185. <span id="search_result">
  186. </span>
  187. </span>
  188. </div>
  189. <div>
  190. <span>
  191. <a href="#">[设置]</a>
  192. <a href="#">[建立词条]</a>
  193. <a href="#">[帮助]</a>
  194. </span>
  195. </div>
  196. </div>
  197. <div id="wiki_contents" style="padding: 0 1em;">
  198. loading...
  199. </div>
  200. </body>
  201. </html>