# HG changeset patch # User Calvin Yeh # Date 1506342767 -7200 # Node ID ae69cfe4f9d26265066fc85d03167d9bf20273a6 # Parent c0eccf597fccaee65a32575d3e3cfb93fed6fd72 new version, remove session mechanism, after all server side save data without session in previous version, check_sections_detail.php diff -r c0eccf597fcc -r ae69cfe4f9d2 check_sections_details2.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/check_sections_details2.php Mon Sep 25 14:32:47 2017 +0200 @@ -0,0 +1,257 @@ + + book id + book name + level1 + level2 + period + pages + version + editor + date"; + + $str.=""; + $str.="".$bookInfo['id']; + $str.="".$bookInfo['name']; + $str.="".$bookInfo['level1']; + $str.="".$bookInfo['level2']; + $str.="".$bookInfo['period']; + $str.="".$bookInfo['line']; + $str.="".$bookInfo['version']; + $str.="".$bookInfo['editor']; + $str.="".$bookInfo['date']; + $str.=""; + + echo $str; +} + +function printSectionArray($sectionArray,$missingPageArray){ + $str="
"; + echo $str; + $i=0; + foreach($sectionArray as $idx=>$row){ + /* + $flag=""; + if($i!=sizeof($pageArray) && $pageArray[$i]['start_page']==$row['start_page'] && $pageArray[$i]['end_page']==$row['end_page']){ + $flag="overlapper"; + $i++; + } + if($i!=0 && $pageArray[$i-1]['start_page']==$row['start_page'] && $pageArray[$i-1]['end_page']==$row['end_page']){ + $flag="overlapper"; + }*/ + if(!($idx!=0 && $sectionArray[$idx-1]['start_page']==$row['start_page'] && $sectionArray[$idx-1]['end_page']==$row['end_page']) + && $i
"; + //$str.="
"; + $i++; + echo $str; + } + + $str="
"; + $str.="
"; + $str.="
".$row['id']."
"; + $str.="
".sprintf("%05d",$row['books_id'])."
"; + $str.="
".$row['split_from']."
"; + $str.="
".$row['section_after']."
"; + $str.="
";//end of hiddenInfo + $str.="
".($idx+1)."
"; + $str.="
".$row['name']."
"; + $str.="
"; + $str.="
".$row['start_page']."
"; + $str.=" - "; + $str.="
".$row['end_page']."
"; + $str.="
";//end of page + $str.="
"; //end of class entry + echo $str; + + } + if($i"; + echo $str; + } + $str=""; + echo $str; +} + +?> + + + + + + + + + + + + + + + +
...
+
+ $version,"editor"=>$editor,"date"=>$date]); + printBookInfo($bookInfo); + //echo "version: ".$version."
last editor: ".$editor; + $missingPageArray=checkMissingPage($bookInfo,$info); + ?> + + + + + + + + + +
+
+ +
+
+
+ + + + + +