index.php 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213
  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="./article.js"></script>
  8. <script src="../widget/click_dropdown.js"></script>
  9. <link type="text/css" rel="stylesheet" href="../widget/click_dropdown.css"/>
  10. <script>
  11. <?php
  12. $_id = "";
  13. $_display = "";
  14. $_channal = "";
  15. $_collect = "";
  16. if(isset($_GET["id"])){
  17. echo "_articel_id='".$_GET["id"]."';";
  18. }
  19. if(isset($_GET["collect"])){
  20. echo "_collect_id='".$_GET["collect"]."';";
  21. }
  22. if(isset($_GET["collection"])){
  23. echo "_collection_id='".$_GET["collection"]."';";
  24. }
  25. if(isset($_GET["display"])){
  26. echo "_display='".$_GET["display"]."';";
  27. }
  28. if(isset($_GET["channal"])){
  29. echo "_channal='".$_GET["channal"]."';";
  30. }
  31. if(isset($_GET["lang"])){
  32. echo "_lang='".$_GET["lang"]."';";
  33. }
  34. if(isset($_GET["author"])){
  35. echo "_author='".$_GET["author"]."';";
  36. }
  37. ?>
  38. </script>
  39. <link type="text/css" rel="stylesheet" href="style.css" />
  40. <link type="text/css" rel="stylesheet" href="mobile.css" media="screen and (max-width:800px)" />
  41. <link type="text/css" rel="stylesheet" href="print.css" media="print" />
  42. <?php
  43. require_once("../pcdl/head_bar.php");
  44. ?>
  45. <div id="head_bar" >
  46. <div id="pali_pedia" style="display:flex;">
  47. <span><?php echo $_local->gui->anthology; ?></span>
  48. </div>
  49. <div style="margin: auto 0;">
  50. <span id="head_span">
  51. <?php
  52. if(isset($_GET["id"])){
  53. echo "<button class='icon_btn' title='{$_local->gui->modify} {$_local->gui->composition_structure}'>";
  54. echo "<a href='../article/my_article_edit.php?id=".$_GET["id"];
  55. echo "' target='_blank'>{$_local->gui->modify}</a></button>";
  56. echo "<button class='icon_btn' title='{$_local->gui->add}{$_local->gui->subfield}'>";
  57. echo "<a href='../article/frame.php?id=".$_GET["id"];
  58. echo "'>{$_local->gui->add}{$_local->gui->subfield}</a></button>";
  59. if(isset($_GET["display"]) && $_GET["display"]=="para"){
  60. echo "<button class='icon_btn active' title='{$_local->gui->show} {$_local->gui->each_paragraph}'>";
  61. echo $_local->gui->each_paragraph;
  62. echo "</button>";
  63. }
  64. else{
  65. echo "<button class='icon_btn'>";
  66. echo "<a href='../article/?id=".$_GET["id"];
  67. if(isset($_GET["channal"])){
  68. echo "&channal=".$_GET["channal"];
  69. }
  70. echo "&display=para' title='{$_local->gui->show} {$_local->gui->each_paragraph}'>";
  71. echo $_local->gui->each_paragraph;
  72. echo "</a>";
  73. echo "</button>";
  74. }
  75. if(isset($_GET["display"]) && $_GET["display"]=="sent"){
  76. echo "<button class='icon_btn active' title='{$_local->gui->show} {$_local->gui->each_sentence}'>";
  77. echo $_local->gui->each_sentence;
  78. echo "</button>";
  79. }
  80. else{
  81. echo "<button class='icon_btn'><a href='../article/?id=".$_GET["id"];
  82. if(isset($_GET["channal"])){
  83. echo "&channal=".$_GET["channal"];
  84. }
  85. echo "&display=sent";
  86. echo "' title='{$_local->gui->show} {$_local->gui->each_sentence}'>{$_local->gui->each_sentence}</a></button>";
  87. }
  88. }
  89. ?>
  90. <span>
  91. <?php include "../reader/right_tool_bar.php";?>
  92. </span>
  93. </span>
  94. </div>
  95. </div>
  96. <div id="main_view" class="main_view">
  97. <div id="article_head" style="border-bottom: 1px solid gray;">
  98. <div id="article_title" class="term_word_head_pali"><?php echo $_local->gui->title; ?></div>
  99. <div id="article_subtitle"><?php echo $_local->gui->sub_title; ?></div>
  100. <div id="article_author"><?php echo $_local->gui->author; ?></div>
  101. </div>
  102. <div id="contents_view">
  103. <div id="contents_div">
  104. <div id="contents">
  105. <?php echo $_local->gui->loading; ?>...
  106. </div>
  107. <div id="contents_foot">
  108. <div id="contents_nav" style="display:flex;justify-content: space-between;">
  109. <div id="contents_nav_left"></div>
  110. <div id="contents_nav_right"></div>
  111. </div>
  112. <div id="contents_dicuse">
  113. </div>
  114. </div>
  115. </div>
  116. <div id="right_pannal">
  117. <div class="fun_frame">
  118. <div id = "collect_title" class="title"><?php echo $_local->gui->contents; ?></div>
  119. <div id = "toc_content" class="content" style="max-height:25vw;">
  120. </div>
  121. </div>
  122. <div class="fun_frame">
  123. <div style="display:flex;justify-content: space-between;">
  124. <div class="title"><?php echo $_local->gui->contributor; ?></div>
  125. <div class="click_dropdown_div">
  126. <div class="channel_select_button" onclick="onChannelMultiSelectStart()"><?php echo $_local->gui->select; ?></div>
  127. </div>
  128. </div>
  129. <div class='channel_select'>
  130. <button onclick='onChannelChange()'><?php echo $_local->gui->confirm; ?></button>
  131. <button onclick='onChannelMultiSelectCancel()'><?php echo $_local->gui->cancel; ?></button>
  132. </div>
  133. <div id="channal_list" class="content" style="max-height:25vw;">
  134. </div>
  135. </div>
  136. </div>
  137. </div>
  138. </div>
  139. <script>
  140. $(document).ready(function(){
  141. ntf_init();
  142. click_dropdown_init();
  143. note_create();
  144. historay_init();
  145. if(_collect_id==""){
  146. articel_load(_articel_id,_collection_id);
  147. articel_load_collect(_articel_id);
  148. }
  149. else{
  150. collect_load(_collect_id);
  151. }
  152. });
  153. window.addEventListener('scroll',winScroll);
  154. function winScroll(e){
  155. if(GetPageScroll().y>220){
  156. }
  157. else{
  158. }
  159. }
  160. //滚动条位置
  161. function GetPageScroll()
  162. {
  163. var pos=new Object();
  164. var x, y;
  165. if(window.pageYOffset)
  166. { // all except IE
  167. y = window.pageYOffset;
  168. x = window.pageXOffset;
  169. } else if(document.documentElement && document.documentElement.scrollTop)
  170. { // IE 6 Strict
  171. y = document.documentElement.scrollTop;
  172. x = document.documentElement.scrollLeft;
  173. } else if(document.body) { // all other IE
  174. y = document.body.scrollTop;
  175. x = document.body.scrollLeft;
  176. }
  177. pos.x=x;
  178. pos.y=y;
  179. return(pos);
  180. }
  181. </script>
  182. <div class="modal_win_bg">
  183. </div>
  184. <div id="model_win" class="model_win_container"></div>
  185. </body>
  186. </html>