index.php 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202
  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["display"])){
  36. echo "_display='".$_GET["display"]."';";
  37. }
  38. if(isset($_GET["channal"])){
  39. echo "_channal='".$_GET["channal"]."';";
  40. }
  41. if(isset($_GET["lang"])){
  42. echo "_lang='".$_GET["lang"]."';";
  43. }
  44. if(isset($_GET["author"])){
  45. echo "_author='".$_GET["author"]."';";
  46. }
  47. if(isset($_GET["mode"]) && $_GET["mode"]=="edit"){
  48. $_mode = "edit";
  49. echo "_mode='edit';";
  50. }
  51. else{
  52. $_mode = "read";
  53. echo "_mode='read';";
  54. }
  55. ?>
  56. </script>
  57. <?php
  58. require_once("../pcdl/head_bar.php");
  59. ?>
  60. <div id="head_bar" >
  61. <div id="pali_pedia" style="display:flex;">
  62. <span><?php echo $_local->gui->anthology; ?></span>
  63. </div>
  64. <div>
  65. <span>
  66. <input type="checkbox" onchange="setVisibility('palitext_div',this)" checked><?php echo $_local->gui->script; ?>
  67. <span>
  68. <?php include "../reader/right_tool_bar.php";?>
  69. </span>
  70. </span>
  71. </div>
  72. </div>
  73. <div id="main_view" class="main_view">
  74. <div id="article_head" style="border-bottom: 1px solid gray;">
  75. <div id="article_title" class="term_word_head_pali"><?php echo $_local->gui->title; ?></div>
  76. <div id='path_div' style="display:flex;justify-content: space-between;">
  77. <div id="article_path">
  78. <span id="para_path"></span>
  79. <span class="case_dropdown" id="para_path_next_level">
  80. ……
  81. <div id="toc_next_menu" class="case_dropdown-content">
  82. </div>
  83. </span>
  84. </div>
  85. <div id="article_lang">
  86. <div class="click_dropdown_div">
  87. <div class="click_dropdown_button">语言</div>
  88. <div class="click_dropdown_content">
  89. <div class="click_dropdown_content_inner">
  90. <a>简体中文</a>
  91. </div>
  92. </div>
  93. </div>
  94. </div>
  95. </div>
  96. </div>
  97. <div id="contents_view">
  98. <div id="contents_div" >
  99. <div id="contents"
  100. <?php
  101. if($_mode=="read"){
  102. echo 'class="para_mode horizontal"';
  103. }
  104. else{
  105. echo 'class="sent_mode vertical"';
  106. }
  107. ?>
  108. ><?php echo $_local->gui->loading; ?>...</div>
  109. <div id="contents_toc"></div>
  110. <div id="contents_foot">
  111. <div id="contents_nav" style="display:flex;justify-content: space-between;">
  112. <div id="contents_nav_left"></div>
  113. <div id="contents_nav_right"></div>
  114. </div>
  115. <div id="contents_dicuse"></div>
  116. </div>
  117. </div>
  118. <div id="right_pannal">
  119. <div class="fun_frame">
  120. <div id = "collect_title" class="title"><?php echo $_local->gui->contents; ?></div>
  121. <div id = "toc_content" class="content" style="max-height:25vw;">
  122. </div>
  123. </div>
  124. <div class="fun_frame">
  125. <div style="display:flex;justify-content: space-between;">
  126. <div class="title"><?php echo $_local->gui->contributor; ?></div>
  127. <div class="click_dropdown_div">
  128. <div class="channel_select_button" onclick="onChannelMultiSelectStart()"><?php echo $_local->gui->select; ?></div>
  129. </div>
  130. </div>
  131. <div class='channel_select'>
  132. <button onclick='onChannelChange()'><?php echo $_local->gui->confirm; ?></button>
  133. <button onclick='onChannelMultiSelectCancel()'><?php echo $_local->gui->cancel; ?></button>
  134. </div>
  135. <div id="channal_list" class="content" style="max-height:25vw;">
  136. </div>
  137. </div>
  138. </div>
  139. </div>
  140. </div>
  141. <script>
  142. $(document).ready(function(){
  143. ntf_init();
  144. click_dropdown_init();
  145. note_create();
  146. reader_load();
  147. historay_init();
  148. });
  149. window.addEventListener('scroll',winScroll);
  150. function winScroll(e){
  151. if(GetPageScroll().y>220){
  152. }
  153. else{
  154. }
  155. }
  156. //滚动条位置
  157. function GetPageScroll()
  158. {
  159. var pos=new Object();
  160. var x, y;
  161. if(window.pageYOffset)
  162. { // all except IE
  163. y = window.pageYOffset;
  164. x = window.pageXOffset;
  165. } else if(document.documentElement && document.documentElement.scrollTop)
  166. { // IE 6 Strict
  167. y = document.documentElement.scrollTop;
  168. x = document.documentElement.scrollLeft;
  169. } else if(document.body) { // all other IE
  170. y = document.body.scrollTop;
  171. x = document.body.scrollLeft;
  172. }
  173. pos.x=x;
  174. pos.y=y;
  175. return(pos);
  176. }
  177. </script>
  178. </body>
  179. </html>