wiki.php 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209
  1. <?php
  2. require_once "../public/_pdo.php";
  3. require_once "../path.php";
  4. /*
  5. if(isset($_GET["word"])){
  6. if(empty($_GET["word"])){
  7. return;
  8. }
  9. $word=mb_strtolower($_GET["word"],'UTF-8');
  10. }
  11. */
  12. if(isset($_GET["id"])){
  13. $_get_id=$_GET["id"];
  14. }
  15. if(isset($_GET["word"])){
  16. $_get_word=$_GET["word"];
  17. }
  18. if(isset($_GET["author"])){
  19. $_get_author=$_GET["author"];
  20. }
  21. else{
  22. $_get_author="";
  23. }
  24. ?>
  25. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
  26. <html>
  27. <head>
  28. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  29. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  30. <link type="text/css" rel="stylesheet" href="../studio/css/style.css"/>
  31. <link type="text/css" rel="stylesheet" href="../pcdl/css/color_day.css" id="colorchange" />
  32. <link type="text/css" rel="stylesheet" href="../pcdl/css/style_mobile.css" media="screen and (max-width:767px)">
  33. <title id="doc_title">圣典百科</title>
  34. <style>
  35. </style>
  36. <script src="../public/js/jquery.js"></script>
  37. <script src="../public/js/comm.js"></script>
  38. <script src="../term/term.js"></script>
  39. <script src="../term/note.js"></script>
  40. <script src="wiki.js"></script>
  41. <style>
  42. .term_link,.term_link_new{
  43. color: blue;
  44. padding-left: 2px;
  45. padding-right: 2px;
  46. }
  47. .term_link_new{
  48. color:red;
  49. }
  50. #search_result{
  51. position: absolute;
  52. background: wheat;
  53. max-width: 95%;
  54. width: 24em;
  55. }
  56. chapter{
  57. color: blue;
  58. text-decoration: none;
  59. cursor: pointer;
  60. }
  61. chapter:hover{
  62. color: blue;
  63. text-decoration: underline;
  64. }
  65. .icon{
  66. width: 15px;
  67. height: 15px;
  68. }
  69. .submenu_title{
  70. font-size: 120%;
  71. font-weight: 700;
  72. }
  73. .term_word_head_pali {
  74. text-transform: capitalize;
  75. font-size: 200%;
  76. margin: 0.5em 0;
  77. }
  78. .term_word_head{
  79. border-bottom: 1px solid #cecece;
  80. padding: 5px 0;
  81. }
  82. .term_block{
  83. border-bottom: 1px solid #cecece;
  84. padding: 5px 0;
  85. }
  86. .term_word_head_authors a{
  87. color: blue;
  88. margin: 0 3px;
  89. }
  90. .term_word_head_authors a:hover{
  91. text-decoration: underline;
  92. cursor: pointer;
  93. }
  94. note{
  95. display: block;
  96. background-color: #80808029;
  97. padding: 0.5em;
  98. }
  99. note .ref{
  100. text-align: right;
  101. padding: 5px;
  102. font-size: 80%;
  103. }
  104. .term_block_bar {
  105. display: flex;
  106. justify-content: space-between;
  107. }
  108. #head_bar{
  109. display: flex;
  110. justify-content: space-between;
  111. height: 5em;
  112. background-color: var(--bookx);
  113. border-bottom: 1px solid var(--tool-line-color);
  114. }
  115. .term_block_bar_left{
  116. display: flex;
  117. }
  118. .term_block_bar_left_icon{
  119. display: inline-block;
  120. width: 1.5em;
  121. text-align: center;
  122. height: 1.5em;
  123. background-color: gray;
  124. font-size: 180%;
  125. color: white;
  126. border-radius: 99px;
  127. }
  128. .term_block_bar_left_info{
  129. padding-left: 8px;
  130. }
  131. .term_meaning{
  132. font-weight: 700;
  133. }
  134. .term_author{
  135. font-size: 80%;
  136. color: gray;
  137. }
  138. .term_tag{
  139. font-size: 80%;
  140. font-weight: 500;
  141. margin: 0 8px;
  142. }
  143. .term_link {
  144. cursor: pointer;
  145. }
  146. }
  147. </style>
  148. <body style="margin: 0;padding: 0;" class="reader_body" onload="<?php
  149. if(isset($_get_id)){
  150. echo "wiki_load_id('{$_get_id}')";
  151. }
  152. else if(isset($_get_word)){
  153. echo "wiki_load_word('{$_get_word}')";
  154. }
  155. ?>">
  156. <script>
  157. term_word_link_fun("wiki_goto_word");
  158. </script>
  159. <style>
  160. .index_toolbar{
  161. position:unset;
  162. }
  163. #pali_pedia{
  164. font-size: 200%;
  165. margin-top: auto;
  166. margin-bottom: auto;
  167. padding-left: 0.5em;
  168. }
  169. </style>
  170. <?php
  171. require_once("../pcdl/head_bar.php");
  172. ?>
  173. <div id="head_bar" >
  174. <div id="pali_pedia">圣典百科</div>
  175. <div>
  176. <span id="wiki_search" style="width:20em;">
  177. <span>
  178. <input id="wiki_search_input" type="input" placeholder="search" style="width:30em;" onkeyup="wiki_search_keyup(event,this)"/>
  179. </span>
  180. <span id="search_result">
  181. </span>
  182. </span>
  183. <span>
  184. <a href="#">[设置]</a>
  185. <a href="#">[建立词条]</a>
  186. <a href="#">[帮助]</a>
  187. <a href="#">[当前用户]</a>
  188. </span>
  189. </div>
  190. </div>
  191. <div id="wiki_contents">
  192. loading...
  193. </div>
  194. <button onclick="run()">run</button>
  195. <button onclick="run2()">run2</button>
  196. </body>
  197. </html>