paliword.php 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  1. <?PHP
  2. include "../pcdl/html_head.php";
  3. ?>
  4. <body>
  5. <link type="text/css" rel="stylesheet" href="../search/search.css"/>
  6. <?php
  7. require_once("../pcdl/head_bar.php");
  8. require_once("../search/toobar.php");
  9. ?>
  10. <style>
  11. #dt_pali , #dt_pali_1{
  12. border-bottom: 2px solid var(--link-hover-color);
  13. }
  14. #index_list{
  15. display:flex;
  16. }
  17. .main_view{
  18. padding: 0 1em;
  19. max-width: 1280px;
  20. margin-left: auto;
  21. margin-right: auto;
  22. }
  23. .fun_frame {
  24. border-bottom: 1px solid gray;
  25. margin-right: 10px;
  26. margin-bottom: 10px;
  27. }
  28. .fun_frame .title{
  29. padding:6px;
  30. font-weight: 700;
  31. }
  32. .fun_frame>.content{
  33. padding:6px;
  34. overflow-y: scroll;
  35. }
  36. .fixed{
  37. position:fixed;
  38. right: 0;
  39. top: 0;
  40. }
  41. .when_right_fixed{
  42. padding-right:20em;
  43. }
  44. #contents_view{
  45. display:flex;
  46. }
  47. #contents_div{
  48. flex:7;
  49. }
  50. #contents{
  51. }
  52. #contents li{
  53. white-space: normal;
  54. }
  55. #right_pannal{
  56. flex:3;
  57. max-width:20em;
  58. }
  59. #head_bar{
  60. height:unset;
  61. }
  62. #contents_foot{
  63. margin-bottom: 70vh;
  64. }
  65. #pre_search_word_content{
  66. display:block;
  67. }
  68. </style>
  69. <style media="screen and (max-width:767px)">
  70. #index_list{
  71. display:block;
  72. }
  73. </style>
  74. <script language="javascript" src="paliword.js"></script>
  75. <script>
  76. <?php
  77. if(isset($_GET["key"])){
  78. echo " _key_word = '{$_GET["key"]}';";
  79. }
  80. ?>
  81. </script>
  82. <div id="main_view" class="main_view">
  83. <div id="contents_view">
  84. <div id="contents_div" style="padding: 0 1em 0 30px;">
  85. <div id="contents">
  86. <?php echo $_local->gui->loading; ?>...
  87. </div>
  88. <div id="contents_foot">
  89. <div id="contents_nav" style="">
  90. </div>
  91. </div>
  92. </div>
  93. <div id="right_pannal">
  94. <div class="fun_frame">
  95. <div style="display:flex;justify-content: space-between;">
  96. <div class="title">Declension</div>
  97. <div id="case_tools">
  98. <div class="select_button" onclick="onWordFilterStart()"><?php echo "Select"; ?></div>
  99. <div class="filter">
  100. <button onclick='word_search_filter()'>Filtrate</button>
  101. <button onclick='filter_cancel()'>取消</button>
  102. </div>
  103. </div>
  104. </div>
  105. <div id = "case_content" class="content" style="max-height:20em;">
  106. </div>
  107. </div>
  108. <div class="fun_frame">
  109. <div style="display:flex;justify-content: space-between;">
  110. <div class="title"><?php echo "Books"; ?></div>
  111. <div id="book_tools">
  112. <div class="select_button" onclick="onBookFilterStart()"><?php echo "Select"; ?></div>
  113. <div class="filter">
  114. <button onclick='book_search_filter()'>Filtrate</button>
  115. <button onclick='book_filter_cancel()'>取消</button>
  116. </div>
  117. </div>
  118. </div>
  119. <div id="book_list" class="content" >
  120. </div>
  121. </div>
  122. </div>
  123. </div>
  124. </div>
  125. <div id="dict_ref_search_result" style="background-color:white;color:black;">
  126. </div>
  127. <div id="index_list">
  128. <div style="flex:3;margin:12px;">
  129. <div class="card" style="padding:10px;">
  130. <div>最近搜索</div>
  131. <div id="search_histray"></div>
  132. </div>
  133. </div>
  134. <div style="flex:3;margin:12px;">
  135. <div class="card" style="padding:10px;">
  136. <div>热搜</div>
  137. <div id="title_hot"></div>
  138. </div>
  139. </div>
  140. <div style="flex:3;margin:12px;">
  141. <div class="card" style="padding:10px;">
  142. <div id="guide_pali_search_index"></div>
  143. </div>
  144. </div>
  145. </div>
  146. <script>
  147. search_show_history();
  148. guide_get("pali_search_index");
  149. </script>
  150. <?php
  151. if(!empty($_GET["key"])){
  152. echo "<script>";
  153. echo "dict_pre_word_click(\"{$_GET["key"]}\")";
  154. echo "</script>";
  155. }
  156. ?>
  157. <?php
  158. include "../pcdl/html_foot.php";
  159. ?>