";
echo "";
/*查找实际出现的拼写
$strQueryWord中是所有可能的拼写
*/
$realQueryWord="(";
$query = "select word2,count(word) as co from bold where \"word2\" in $strQueryWord group by word2 order by co DESC";
$Fetch = PDO_FetchAll($query);
$iFetch=count($Fetch);
if($iFetch>0){
echo "
";
}
//查找这些词出现在哪些书中
$query = "select book,count(word) as co from bold where \"word2\" in $realQueryWord group by book order by co DESC";
$Fetch = PDO_FetchAll($query);
$iFetch=count($Fetch);
if($iFetch>0){
echo "
";
//查黑体字结束
break;
case "update":
$target=$_GET["target"];
switch($target){
case "bold";
$arrBookName=json_decode(file_get_contents("../public/book_name/sc.json"));
$dictFileName=_FILE_DB_BOLD_;
PDO_Connect("sqlite:$dictFileName");
$wordlist=$_GET["wordlist"];
$booklist=$_GET["booklist"];
$aBookList=ltrim($booklist,"(");
$aBookList=rtrim($aBookList,")");
$aBookList=str_replace("'","",$aBookList);
$aBookList=str_getcsv($aBookList);
foreach($aBookList as $oneBook){
$aInputBook["{$oneBook}"]=1;
}
//查找这些词出现在哪些书中
$query = "select book,count(word) as co from bold where \"word2\" in $wordlist group by book order by co DESC";
$Fetch = PDO_FetchAll($query);
$iFetch=count($Fetch);
if($iFetch>0){
echo "