Browse Source

Merge pull request #112 from visuddhinanda/master

支持CSCD4 段落编号跳转
visuddhinanda 5 years ago
parent
commit
dd11aefbd5
3 changed files with 52 additions and 36 deletions
  1. 21 5
      app/pcdl/reader.php
  2. 25 25
      pali_title/64_title.csv
  3. 6 6
      pali_title/66_title.csv

+ 21 - 5
app/pcdl/reader.php

@@ -343,6 +343,7 @@ else{
 		}
 		}
 	}
 	}
 	$tocList = array();
 	$tocList = array();
+	$FetchChannal = array();
 	if($_view=="chapter" || $_view=="para" || $_view=="sent" ){
 	if($_view=="chapter" || $_view=="para" || $_view=="sent" ){
 		PDO_Connect("sqlite:"._FILE_DB_PALITEXT_);
 		PDO_Connect("sqlite:"._FILE_DB_PALITEXT_);
 		//生成目录
 		//生成目录
@@ -961,15 +962,20 @@ function render_sent($sent_data,$sn,$display_mode,$sent_count,$class=""){
 	</div>
 	</div>
 
 
 	<div id="right_panal_toc" style="position: fixed;top:3em;width:17em;left: calc(100% - 17em);height:auto; min-height:30em;border-left: 1px solid gray;    font-size: 80%;padding: 2em 0.5em;">
 	<div id="right_panal_toc" style="position: fixed;top:3em;width:17em;left: calc(100% - 17em);height:auto; min-height:30em;border-left: 1px solid gray;    font-size: 80%;padding: 2em 0.5em;">
-	<?php  
+	<div>
+<?php  
 	if($currLevel>=$tocMinLevel){
 	if($currLevel>=$tocMinLevel){
 		echo $htmlToc2; 
 		echo $htmlToc2; 
 	}
 	}
+?>
+</div>
+<h4>CSCD4 Paragraph Number</h4>
+<div id="s6_para">
 
 
-	echo "<div>Channal</div>";
-
-	
-	echo "<div>";
+</div>
+	<div>Channal</div>
+	<div>
+	<?php
 	echo "<a href='../pcdl/reader.php?view={$_GET["view"]}";
 	echo "<a href='../pcdl/reader.php?view={$_GET["view"]}";
 	echo "&book=".$_GET["book"];
 	echo "&book=".$_GET["book"];
 	echo "&para=".$_GET["para"];
 	echo "&para=".$_GET["para"];
@@ -1215,6 +1221,16 @@ function render_sent($sent_data,$sn,$display_mode,$sent_count,$class=""){
 	}
 	}
 	);
 	);
 	
 	
+	let objParanum = document.querySelectorAll("paranum");
+	let parahtml="";
+	for (const iterator of objParanum) {
+		let num = iterator.innerHTML;
+		iterator.innerHTML = num + "<a name='para_s6_"+num+"'></a>";
+		parahtml += "<div><a href='#para_s6_"+num+"'>"+num+"</a></div>";
+		
+	}
+	$("#s6_para").html(parahtml);
+
 	function haha(){
 	function haha(){
 		var wordquery ="('" + wordlist.join("','")+"')";
 		var wordquery ="('" + wordlist.join("','")+"')";
 		$.post("../term/term.php",
 		$.post("../term/term.php",

File diff suppressed because it is too large
+ 25 - 25
pali_title/64_title.csv


File diff suppressed because it is too large
+ 6 - 6
pali_title/66_title.csv


Some files were not shown because too many files changed in this diff