index.php 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234
  1. <?php
  2. require_once "../public/load_lang.php";
  3. require_once "../path.php";
  4. require_once "../pcdl/html_head.php";
  5. ?>
  6. <body style="margin: 0;padding: 0;" class="reader_body" >
  7. <script src="../channal/channal.js"></script>
  8. <script src="./reader.js"></script>
  9. <script src="../widget/click_dropdown.js"></script>
  10. <link type="text/css" rel="stylesheet" href="../widget/click_dropdown.css"/>
  11. <link type="text/css" rel="stylesheet" href="style.css" />
  12. <link type="text/css" rel="stylesheet" href="mobile.css" media="screen and (max-width:800px)" />
  13. <link type="text/css" rel="stylesheet" href="print.css" media="print" />
  14. <script>
  15. <?php
  16. $_view = "";
  17. $_display = "";
  18. $_channal = "";
  19. $_collect = "";
  20. if(isset($_GET["view"])){
  21. echo "_reader_view='".$_GET["view"]."';";
  22. }
  23. if(isset($_GET["book"])){
  24. echo "_reader_book='".$_GET["book"]."';";
  25. }
  26. if(isset($_GET["para"])){
  27. echo "_reader_para='".$_GET["para"]."';";
  28. }
  29. if(isset($_GET["begin"])){
  30. echo "_reader_begin='".$_GET["begin"]."';";
  31. }
  32. if(isset($_GET["end"])){
  33. echo "_reader_end='".$_GET["end"]."';";
  34. }
  35. if(isset($_GET["channal"])){
  36. echo "_channal='".$_GET["channal"]."';";
  37. }
  38. if(isset($_GET["lang"])){
  39. echo "_lang='".$_GET["lang"]."';";
  40. }
  41. if(isset($_GET["author"])){
  42. echo "_author='".$_GET["author"]."';";
  43. }
  44. if(isset($_GET["mode"]) && $_GET["mode"]=="edit"){
  45. $_mode = "edit";
  46. echo "_mode='edit';";
  47. }
  48. else{
  49. $_mode = "read";
  50. echo "_mode='read';";
  51. }
  52. if(isset($_GET["display"])){
  53. $_display = $_GET["display"];
  54. echo "_display='".$_GET["display"]."';";
  55. }
  56. else{
  57. if($_mode=="read"){
  58. $_display = "para";
  59. echo "_display='para';";
  60. }
  61. else{
  62. $_display = "sent";
  63. echo "_display='sent';";
  64. }
  65. }
  66. if(isset($_GET["direction"])){
  67. $_direction = $_GET["direction"];
  68. echo "_direction='".$_GET["direction"]."';";
  69. }
  70. else{
  71. if($_mode=="read"){
  72. $_direction = "row";
  73. echo "_direction='row';";
  74. }
  75. else{
  76. $_direction = "col";
  77. echo "_direction='col';";
  78. }
  79. }
  80. ?>
  81. </script>
  82. <?php
  83. require_once("../pcdl/head_bar.php");
  84. ?>
  85. <div id="head_bar" >
  86. <div id="pali_pedia" style="display:flex;">
  87. <span><?php echo $_local->gui->anthology; ?></span>
  88. </div>
  89. <div>
  90. <span>
  91. <input type="checkbox" onchange="setVisibility('palitext_div',this)" checked><?php echo $_local->gui->script; ?>
  92. <span>
  93. <?php include "../reader/right_tool_bar.php";?>
  94. </span>
  95. </span>
  96. </div>
  97. </div>
  98. <div id="main_view" class="main_view">
  99. <div id="article_head" style="border-bottom: 1px solid gray;">
  100. <div id="article_title" class="term_word_head_pali"><?php echo $_local->gui->title; ?></div>
  101. <div id='path_div' style="display:flex;justify-content: space-between;">
  102. <div id="article_path">
  103. <span id="para_path"></span>
  104. <span class="case_dropdown" id="para_path_next_level">
  105. ……
  106. <div id="toc_next_menu" class="case_dropdown-content">
  107. </div>
  108. </span>
  109. </div>
  110. <div id="article_lang">
  111. <div class="click_dropdown_div">
  112. <div class="click_dropdown_button">语言</div>
  113. <div class="click_dropdown_content">
  114. <div class="click_dropdown_content_inner">
  115. <a>简体中文</a>
  116. </div>
  117. </div>
  118. </div>
  119. </div>
  120. </div>
  121. </div>
  122. <div id="contents_view">
  123. <div id="contents_div" >
  124. <div id="contents" class="
  125. <?php
  126. if($_direction=="row"){
  127. echo ' horizontal ';
  128. }
  129. else{
  130. echo ' vertical ';
  131. }
  132. if($_display=="para"){
  133. echo ' para_mode ';
  134. }
  135. else{
  136. echo ' sent_mode ';
  137. }
  138. ?>
  139. ">
  140. <?php echo $_local->gui->loading; ?>...</div>
  141. <div id="contents_toc"></div>
  142. <div id="contents_foot">
  143. <div id="contents_nav" style="display:flex;justify-content: space-between;">
  144. <div id="contents_nav_left"></div>
  145. <div id="contents_nav_right"></div>
  146. </div>
  147. <div id="contents_dicuse"></div>
  148. </div>
  149. </div>
  150. <div id="right_pannal">
  151. <div class="fun_frame">
  152. <div id = "collect_title" class="title"><?php echo $_local->gui->contents; ?></div>
  153. <div id = "toc_content" class="content" style="max-height:25vw;">
  154. </div>
  155. </div>
  156. <div class="fun_frame">
  157. <div style="display:flex;justify-content: space-between;">
  158. <div class="title"><?php echo $_local->gui->contributor; ?></div>
  159. <div class="click_dropdown_div">
  160. <div class="channel_select_button" onclick="onChannelMultiSelectStart()"><?php echo $_local->gui->select; ?></div>
  161. </div>
  162. </div>
  163. <div class='channel_select'>
  164. <button onclick='onChannelChange()'><?php echo $_local->gui->confirm; ?></button>
  165. <button onclick='onChannelMultiSelectCancel()'><?php echo $_local->gui->cancel; ?></button>
  166. </div>
  167. <div id="channal_list" class="content" style="max-height:25vw;">
  168. </div>
  169. </div>
  170. </div>
  171. </div>
  172. </div>
  173. <script>
  174. $(document).ready(function(){
  175. ntf_init();
  176. click_dropdown_init();
  177. note_create();
  178. reader_load();
  179. historay_init();
  180. });
  181. window.addEventListener('scroll',winScroll);
  182. function winScroll(e){
  183. if(GetPageScroll().y>220){
  184. }
  185. else{
  186. }
  187. }
  188. //滚动条位置
  189. function GetPageScroll()
  190. {
  191. var pos=new Object();
  192. var x, y;
  193. if(window.pageYOffset)
  194. { // all except IE
  195. y = window.pageYOffset;
  196. x = window.pageXOffset;
  197. } else if(document.documentElement && document.documentElement.scrollTop)
  198. { // IE 6 Strict
  199. y = document.documentElement.scrollTop;
  200. x = document.documentElement.scrollLeft;
  201. } else if(document.body) { // all other IE
  202. y = document.body.scrollTop;
  203. x = document.body.scrollLeft;
  204. }
  205. pos.x=x;
  206. pos.y=y;
  207. return(pos);
  208. }
  209. </script>
  210. </body>
  211. </html>