index.php 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416
  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. <script>
  12. <?php
  13. $_view = "";
  14. $_display = "";
  15. $_channal = "";
  16. $_collect = "";
  17. if(isset($_GET["view"])){
  18. echo "_reader_view='".$_GET["view"]."';";
  19. }
  20. if(isset($_GET["book"])){
  21. echo "_reader_book='".$_GET["book"]."';";
  22. }
  23. if(isset($_GET["para"])){
  24. echo "_reader_para='".$_GET["para"]."';";
  25. }
  26. if(isset($_GET["begin"])){
  27. echo "_reader_begin='".$_GET["begin"]."';";
  28. }
  29. if(isset($_GET["end"])){
  30. echo "_reader_end='".$_GET["end"]."';";
  31. }
  32. if(isset($_GET["display"])){
  33. echo "_display='".$_GET["display"]."';";
  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. ?>
  45. </script>
  46. <style>
  47. #search_result{
  48. position: absolute;
  49. background: wheat;
  50. max-width: 95%;
  51. width: 24em;
  52. }
  53. .icon{
  54. width: 15px;
  55. height: 15px;
  56. }
  57. .submenu_title{
  58. font-size: 120%;
  59. font-weight: 700;
  60. }
  61. #head_bar{
  62. display: flex;
  63. justify-content: space-between;
  64. height: 5em;
  65. background-color: var(--tool-bg-color1);
  66. border-bottom: 1px solid var(--tool-line-color);
  67. padding:10px;
  68. }
  69. .main_view{
  70. padding: 0 1em;
  71. max-width: 1280px;
  72. margin-left: auto;
  73. margin-right: auto;
  74. }
  75. .fun_frame {
  76. border-bottom: 1px solid gray;
  77. margin-right: 10px;
  78. margin-bottom: 10px;
  79. }
  80. .fun_frame .title{
  81. padding:6px;
  82. font-weight: 700;
  83. }
  84. .fun_frame>.content{
  85. padding:6px;
  86. max-height:6em;
  87. overflow-y: scroll;
  88. }
  89. .fixed{
  90. position:fixed;
  91. right: 0;
  92. top: 0;
  93. }
  94. .when_right_fixed{
  95. padding-right:20em;
  96. }
  97. #contents_view{
  98. display:flex;
  99. }
  100. #contents_div{
  101. flex:7;
  102. }
  103. #contents{
  104. }
  105. #contents li{
  106. white-space: normal;
  107. }
  108. #right_pannal{
  109. flex:3;
  110. max-width:20em;
  111. }
  112. #head_bar{
  113. height:unset;
  114. }
  115. #contents_foot{
  116. margin-bottom: 70vh;
  117. }
  118. #toc_content .level_2{
  119. padding-left:0.5em;
  120. }
  121. #toc_content .level_3{
  122. padding-left:1em;
  123. }
  124. #toc_content .level_4{
  125. padding-left:1.5em;
  126. }
  127. #toc_content .level_5{
  128. padding-left:2em;
  129. }
  130. .ui-dialog-titlebar{
  131. display: flex;
  132. justify-content: space-between;
  133. background-color: var(--btn-bg-color);
  134. padding: 5px;
  135. }
  136. .ui-widget-content{
  137. background-color: var(--bg-color);
  138. }
  139. .ui-dialog{
  140. box-shadow: 8px 8px 20px var(--border-shadow);
  141. }
  142. .active{
  143. background-color: var(--btn-hover-bg-color);
  144. }
  145. .icon_btn a {
  146. color: var(--main-color);
  147. }
  148. .icon_btn:hover a {
  149. color: var(--btn-hover-color);
  150. }
  151. chapter{
  152. display:inline-block;
  153. }
  154. .language-para {
  155. padding: 2px 2px;
  156. position: absolute;
  157. margin-top: 7px;
  158. border-bottom: 3px solid var(--link-color);
  159. margin-left: -60px;
  160. font-family: 'Noto Sans', 'Noto Sans SC', 'Noto Sans TC','Padauk', Arial, Verdana;
  161. }
  162. .level_0{
  163. margin-left:0;
  164. }
  165. .level_1{
  166. margin-left:1em;
  167. }
  168. .level_2{
  169. margin-left:2em;
  170. }
  171. .level_3{
  172. margin-left:3em;
  173. }
  174. .level_4{
  175. margin-left:4em;
  176. }
  177. .level_5{
  178. margin-left:5em;
  179. }
  180. .level_6{
  181. margin-left:6em;
  182. }
  183. .channal_list{
  184. white-space: nowrap;
  185. overflow-x: hidden;
  186. }
  187. .userinfo_channal{
  188. display:none;
  189. }
  190. .userinfo_channal:hover{
  191. display:block;
  192. }
  193. </style>
  194. <style media="screen and (max-width:767px)">
  195. #right_pannal{
  196. display:none;
  197. }
  198. .when_right_fixed{
  199. padding-right:0;
  200. }
  201. .index_toolbar{
  202. position:unset;
  203. }
  204. #pali_pedia{
  205. font-size: 200%;
  206. margin-top: auto;
  207. margin-bottom: auto;
  208. padding-left: 0.5em;
  209. }
  210. </style>
  211. <?php
  212. require_once("../pcdl/head_bar.php");
  213. ?>
  214. <div id="head_bar" >
  215. <div id="pali_pedia" style="display:flex;">
  216. <span><?php echo $_local->gui->anthology; ?></span>
  217. <span id="para_path"></span>
  218. <span class="case_dropdown" id="para_path_next_level">
  219. ……
  220. <div id="toc_next_menu" class="case_dropdown-content">
  221. </div>
  222. </span>
  223. </div>
  224. <div>
  225. <span>
  226. <?php
  227. echo "<button class='icon_btn' title='{$_local->gui->modify} {$_local->gui->composition_structure}'>";
  228. echo "<a href='";
  229. echo "'>{$_local->gui->edit}</a></button>";
  230. if(isset($_GET["display"]) && $_GET["display"]=="para"){
  231. echo "<button class='icon_btn active' title='{$_local->gui->show} {$_local->gui->each_paragraph}'>";
  232. echo $_local->gui->each_paragraph;
  233. echo "</button>";
  234. }
  235. else{
  236. echo "<button class='icon_btn'>";
  237. echo "<a href='../reader/?view=".$_GET["view"];
  238. if(isset($_GET["book"])){
  239. echo "&book=".$_GET["book"];
  240. }
  241. if(isset($_GET["para"])){
  242. echo "&para=".$_GET["para"];
  243. }
  244. if(isset($_GET["begin"])){
  245. echo "&begin=".$_GET["begin"];
  246. }
  247. if(isset($_GET["end"])){
  248. echo "&end=".$_GET["end"];
  249. }
  250. if(isset($_GET["channal"])){
  251. echo "&channal=".$_GET["channal"];
  252. }
  253. if(isset($_GET["lang"])){
  254. echo "&lang=".$_GET["lang"];
  255. }
  256. echo "&display=para' title='{$_local->gui->show} {$_local->gui->each_paragraph}'>";
  257. echo $_local->gui->each_paragraph;
  258. echo "</a>";
  259. echo "</button>";
  260. }
  261. if(isset($_GET["display"]) && $_GET["display"]=="sent"){
  262. echo "<button class='icon_btn active' title='{$_local->gui->show} {$_local->gui->each_sentence}'>";
  263. echo $_local->gui->each_sentence;
  264. echo "</button>";
  265. }
  266. else{
  267. echo "<button class='icon_btn'>";
  268. echo "<a href='../reader/?view=".$_GET["view"];
  269. if(isset($_GET["book"])){
  270. echo "&book=".$_GET["book"];
  271. }
  272. if(isset($_GET["para"])){
  273. echo "&para=".$_GET["para"];
  274. }
  275. if(isset($_GET["begin"])){
  276. echo "&begin=".$_GET["begin"];
  277. }
  278. if(isset($_GET["end"])){
  279. echo "&end=".$_GET["end"];
  280. }
  281. if(isset($_GET["channal"])){
  282. echo "&channal=".$_GET["channal"];
  283. }
  284. if(isset($_GET["lang"])){
  285. echo "&lang=".$_GET["lang"];
  286. }
  287. echo "&display=sent";
  288. echo "' title='{$_local->gui->show} {$_local->gui->each_sentence}'>{$_local->gui->each_sentence}</a></button>";
  289. }
  290. ?>
  291. <button class='icon_btn'><a href="#"><?php echo $_local->gui->help; ?></a></button>
  292. </span>
  293. </div>
  294. </div>
  295. <div id="main_view" class="main_view">
  296. <div id="article_head" style="border-bottom: 1px solid gray;">
  297. <div id="article_title" class="term_word_head_pali"><?php echo $_local->gui->title; ?></div>
  298. <div id="article_subtitle"><?php echo $_local->gui->sub_title; ?></div>
  299. <div id="article_author"><?php echo $_local->gui->author; ?></div>
  300. </div>
  301. <div id="contents_view">
  302. <div id="contents_div" style="padding: 0 1em 0 30px;">
  303. <div id="contents">
  304. <?php echo $_local->gui->loading; ?>...
  305. </div>
  306. <div id="contents_toc">
  307. </div>
  308. <div id="contents_foot">
  309. <div id="contents_nav" style="display:flex;justify-content: space-between;">
  310. <div id="contents_nav_left"></div>
  311. <div id="contents_nav_right"></div>
  312. </div>
  313. <div id="contents_dicuse">
  314. </div>
  315. </div>
  316. </div>
  317. <div id="right_pannal">
  318. <div class="fun_frame">
  319. <div id = "collect_title" class="title">Table of Content</div>
  320. <div id = "toc_content" class="content" style="max-height:20em;">
  321. </div>
  322. </div>
  323. <div class="fun_frame">
  324. <div style="display:flex;justify-content: space-between;">
  325. <div class="title"><?php echo $_local->gui->contributor; ?></div>
  326. <div class="click_dropdown_div">
  327. <div class="channel_select_button" onclick="onChannelMultiSelectStart()"><?php echo "Multi-Select"; ?></div>
  328. </div>
  329. </div>
  330. <div id="channal_list" class="content" style="max-height:20em;">
  331. </div>
  332. </div>
  333. </div>
  334. </div>
  335. </div>
  336. <script>
  337. $(document).ready(function(){
  338. ntf_init();
  339. click_dropdown_init();
  340. note_create();
  341. reader_load();
  342. });
  343. window.addEventListener('scroll',winScroll);
  344. function winScroll(e){
  345. if(GetPageScroll().y>220){
  346. }
  347. else{
  348. }
  349. }
  350. //滚动条位置
  351. function GetPageScroll()
  352. {
  353. var pos=new Object();
  354. var x, y;
  355. if(window.pageYOffset)
  356. { // all except IE
  357. y = window.pageYOffset;
  358. x = window.pageXOffset;
  359. } else if(document.documentElement && document.documentElement.scrollTop)
  360. { // IE 6 Strict
  361. y = document.documentElement.scrollTop;
  362. x = document.documentElement.scrollLeft;
  363. } else if(document.body) { // all other IE
  364. y = document.body.scrollTop;
  365. x = document.body.scrollLeft;
  366. }
  367. pos.x=x;
  368. pos.y=y;
  369. return(pos);
  370. }
  371. </script>
  372. </body>
  373. </html>