index.php 4.9 KB

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