参考字典 Refrence Dictionary";
echo "";
echo "
";
echo "
quote($USER_NAME);
echo $query;
$allWord = PDO_FetchOne($query);
$iCountWords=$allWord;
if($iCountWords==0){
echo "
{$_local->gui->account}";
echo "{$_local->gui->username}:$username
"; echo "{$_local->gui->nick_name}:$nickname
"; echo "{$_local->gui->e_mail}:$email
"; echo "{$_local->gui->change_password}
"; echo "{$_local->gui->logout}"; break; case "album": $db_file = _FILE_DB_RESRES_INDEX_; PDO_Connect("sqlite:$db_file"); if(isset($_GET["id"])){ if(isset($_GET["power"])){ /*权限管理*/ $query = "select * from 'album' where id='{$_GET["id"]}'"; $album_info = PDO_FetchAll($query); if(count($album_info)>0){ $query = "select * from 'album_power' where album_id='{$album_info[0]["id"]}'"; $Fetch = PDO_FetchAll($query); echo "
| 选择 | 名称 | 语言 | 简介 | 下载 | "; foreach($all as $dict){ echo " |
|---|---|---|---|---|---|
| {$dict["shortname"]} | {$dict["language"]} | {$dict["name"]} | 管理 | "; echo "
系统字典System Dictionary
"; break; case "local": //语言文件 if(isset($_GET["lang"])){ $_local=json_decode(file_get_contents("../public/lang/{$_GET["lang"]}.json")); } else{ $_local=json_decode(file_get_contents("../public/lang/default.json")); } echo $_local->gui->pcd_studio; echo ""; foreach($_local as $x=>$value){ echo "";
$counter=count($value);
echo "
";
}
break;
case "userdict"://用户字典管理
if(isset($_GET["page"])){
$iCurrPage=$_GET["page"];
}
else{
$iCurrPage=0;
}
$iOnePage=300;
$db_file = _FILE_DB_WBW_;
PDO_Connect("sqlite:$db_file");
$query = "select count(word_index) as co from user_index where user_id={$UID}";
$allWord = PDO_FetchOne($query);
$iCountWords=$allWord;
if($iCountWords==0){
echo "{$x}({$counter})
";
echo "";
echo "您的用户字典中没有单词。
";
}
else{
echo "search:
";
$iPages=ceil($iCountWords/$iOnePage);
if($iCurrPage>$iPages){
$iCurrPage=$iPages;
}
$begin=$iCurrPage*$iOnePage;
$query = "select word_index from user_index where user_id={$UID} order by id DESC limit {$begin},{$iOnePage} ";
$allWord = PDO_FetchAll($query);
$strQuery="('";
foreach($allWord as $one){
$strQuery .= $one["word_index"]."','";
}
$strQuery = substr($strQuery,0,strlen($strQuery)-2);
$strQuery .= ")";
$query = "select * from dict where id in {$strQuery} order by time DESC";
$allWords = PDO_FetchAll($query);
?>
| 拼写 | 类型 | 语法 | 意思 | 语基 | 状态 | 引用 | "; echo " | {$word["pali"]} | "; echo "{$word["type"]} | "; echo "{$word["gramma"]} | "; echo "{$word["mean"]} | "; echo "{$word["parent"]} | "; if($word["creator"]==$UID){ echo "原创 | "; } else{ echo "引用 | "; } echo "{$word["ref_counter"]} | "; echo "... | "; echo ""; } ?>
|---|
您的术语字典中没有单词。
";
}
else{
echo "您的术语字典中已经有{$iCountWords}个单词。
";
$iPages=ceil($iCountWords/$iOnePage);
if($iCurrPage>$iPages){
$iCurrPage=$iPages;
}
$begin=$iCurrPage*$iOnePage;
$query = "select * from term where owner= ".$PDO->quote($USER_NAME);
$allWords = PDO_FetchAll($query);
?>
| 序号 | 拼写 | 意思 | 第二个意思 | 注解 | 引用 | {$word["id"]} | "; echo "{$word["word"]} | "; echo "{$word["meaning"]} | "; echo "{$word["other_meaning"]} | "; echo ""; echo " | "; echo ""; } ?> |
|---|
"; echo "{$_local->gui->nick_name}:$nickname
"; echo "{$_local->gui->e_mail}:$email
"; echo "{$_local->gui->change_password}
"; echo "{$_local->gui->logout}"; break; case "album": $db_file = _FILE_DB_RESRES_INDEX_; PDO_Connect("sqlite:$db_file"); if(isset($_GET["id"])){ if(isset($_GET["power"])){ /*权限管理*/ $query = "select * from 'album' where id='{$_GET["id"]}'"; $album_info = PDO_FetchAll($query); if(count($album_info)>0){ $query = "select * from 'album_power' where album_id='{$album_info[0]["id"]}'"; $Fetch = PDO_FetchAll($query); echo "
专辑权限管理
"; echo "{$album_info[0]["title"]}-{$album_info[0]["author"]}
";
echo "