palitext1.php 7.5 KB

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