Ver código fonte

增加设置功能

visuddhinanda 5 anos atrás
pai
commit
e7bc79be0a

+ 4 - 0
app/public/function.php

@@ -221,4 +221,8 @@ function pali2english($subject){
 function mTime(){
 	return(sprintf("%d",microtime(TRUE)*1000));
 }
+
+function getLanguageCode($inString){
+  return("zh-cn");
+}
 ?>

+ 12 - 0
app/studio/index_tool_bar.php

@@ -95,6 +95,18 @@
 					
 					</span>
 				</li>
+
+				<li id="term"  onclick="goto_url(this,'../term/my_dict_list.php')">
+					<span  class="navi_icon">
+						<svg class="icon">
+							<use xlink:href="../studio/svg/icon.svg#class_video"></use>
+						</svg>	
+					</span>	
+					<span class="navi_text">
+					<?php echo "术语";?>
+					
+					</span>
+				</li>				
 			</ul>
 		</div>
 		

+ 0 - 172
app/studio/setting.php

@@ -184,180 +184,8 @@ $album_power["2"]="编辑";
 
 			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 "<div id='setting_user_dict_count'>您的用户字典中没有单词。</div>";
-			}
-			else{
-
-				echo "<div>search:<input type='input'  /></div>";
-				$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);
-				?>
-				<div id="setting_user_dict_nav" style="backgroud-color:gray">
-				<?php 
-				if($iCurrPage==0){
-					echo "第一页 | ";
-					echo "上一页";
-				}
-				else{
-					echo "<a href=\"setting.php?item=userdict&page=0\">第一页</a>";
-					$prevPage=$iCurrPage-1;
-					echo "<a href=\"setting.php?item=userdict&page={$prevPage}\">上一页</a>";
-				}
-				
-				echo "第<input type=\"input\" value=\"".($iCurrPage+1)."\" size=\"4\" />页";
-				echo "共{$iPages}页";
-				
-				if($iCurrPage<$iPages-1){
-					echo "<a href=\"setting.php?item=userdict&page=".($iCurrPage+1)."\">下一页</a>";
-					echo "<a href=\"setting.php?item=userdict&page=".($iPages-1)."\">最后一页</a>";
-					
-				}
-				else{
-					echo "下一页 | 最后一页";
-				}
-				echo "<span id='setting_user_dict_count'>总计{$iCountWords}</span>";				
-				?>
-				  Type=
-				<select>
-					<option>n.</option>
-					<option>adj.</option>
-				</select>
-				<button>导入</button><button>导出</button><button>新建</button>
-				</div>
-				<table>
-					<tr>
-						<th><input type="checkbox" /></th><th>拼写</th><th>类型</th><th>语法</th><th>意思</th><th>语基</th><th>状态</th><th>引用</th><th></th>
-					</tr>
-				<?php
-				foreach($allWords as $word){
-					echo "<tr>";
-					echo "<td><input type=\"checkbox\" /></td>";
-					echo "<td>{$word["pali"]}</td>";
-					echo "<td>{$word["type"]}</td>";
-					echo "<td>{$word["gramma"]}</td>";
-					echo "<td>{$word["mean"]}</td>";
-					echo "<td>{$word["parent"]}</td>";
-					if($word["creator"]==$UID){
-						echo "<td>原创</td>";
-					}
-					else{
-						echo "<td>引用</td>";
-					}
-					echo "<td>{$word["ref_counter"]}</td>";
-					echo "<td>...</td>";
-					echo "</tr>";
-				}
-				?>
-				</table>
-				<?php
-			}
-
 			break;
 		case "term":
-			if(isset($_GET["page"])){
-				$iCurrPage=$_GET["page"];
-			}
-			else{
-				$iCurrPage=0;
-			}
-			$iOnePage=300;
-			
-			$dictFileName=_FILE_DB_TERM_;
-			PDO_Connect("sqlite:$dictFileName");
-
-			$query = "select count(*) as co  from term where owner= ".$PDO->quote($USER_NAME);
-			echo $query;
-			$allWord = PDO_FetchOne($query);
-			$iCountWords=$allWord;
-			
-			if($iCountWords==0){
-				echo "<div id='setting_user_dict_count'>您的术语字典中没有单词。</div>";
-			}
-			else{
-				echo "<div id='setting_user_dict_count'>您的术语字典中已经有{$iCountWords}个单词。</div>";
-				$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);
-				?>
-				<div id="setting_user_dict_nav">
-				<?php 
-				if($iCurrPage==0){
-					echo "第一页 | ";
-					echo "上一页";
-				}
-				else{
-					echo "<a href=\"setting.php?item=term&page=0\">第一页</a>";
-					$prevPage=$iCurrPage-1;
-					echo "<a href=\"setting.php?item=term&page={$prevPage}\">上一页</a>";
-				}
-				
-				echo "第<input type=\"input\" value=\"".($iCurrPage+1)."\" size=\"4\" />页";
-				echo "共{$iPages}页";
-				
-				if($iCurrPage<$iPages-1){
-					echo "<a href=\"setting.php?item=term&page=".($iCurrPage+1)."\">下一页</a>";
-					echo "<a href=\"setting.php?item=term&page=".($iPages-1)."\">最后一页</a>";
-					
-				}
-				else{
-					echo "下一页 | 最后一页";
-				}
-				?>
-				</div>
-				<table>
-					<tr>
-						<th>序号</th><th>拼写</th><th>意思</th><th>第二个意思</th><th>注解</th><th>引用</th>
-					</tr>
-				<?php
-				foreach($allWords as $word){
-					echo "<tr>";
-					echo "<td>{$word["id"]}</td>";
-					echo "<td>{$word["word"]}</td>";
-					echo "<td>{$word["meaning"]}</td>";
-					echo "<td>{$word["other_meaning"]}</td>";
-					echo "<td><textarea>{$word["note"]}</textarea></td>";
-					echo "<td></td>";
-					echo "</tr>";
-				}
-				?>
-				</table>
-				<?php
-			}
-
 			break;
 		case "account":
 			echo "<h2>{$_local->gui->account}</h2>";

+ 158 - 0
app/term/my_dict_list.php

@@ -0,0 +1,158 @@
+<?php
+require_once '../studio/index_head.php';
+?>
+<body id="file_list_body" onLoad="course_list()">
+
+	<script >
+	var gCurrPage="term";
+	</script>
+
+	<style>
+	#term {
+		background-color: var(--btn-border-color);
+		
+	}
+	#term:hover{
+		background-color: var(--btn-border-color);
+		color: var(--btn-color);
+		cursor:auto;
+    }
+    #word_list{
+        width:unset;
+    }
+	</style>
+
+	<?php
+	require_once '../studio/index_tool_bar.php';
+	?>
+		
+	<div class="index_inner" style="    margin-left: 18em;margin-top: 5em;">
+		<div id="word_list"  class="file_list_block">
+
+		<div class="tool_bar">
+	<div>
+	术语百科
+	</div>
+
+	<div>
+		<span class="icon_btn_div">
+			<span class="icon_btn_tip"><?php echo $_local->gui->add;?></span>
+			<button id="file_add" type="button" class="icon_btn" title=" ">
+				<a href="../course/my_channal_new.php">
+				<svg class="icon">
+					<use xlink:href="../studio/svg/icon.svg#ic_add_circle"></use>
+				</svg>
+				</a>
+			</button>
+		</span>
+		
+		<span class="icon_btn_div">				
+			<span class="icon_btn_tip"><?php echo $_local->gui->recycle_bin;?></span>
+			<button id="to_recycle" type="button" class="icon_btn" onclick="file_del()" title=" ">
+				<svg class="icon">
+					<use xlink:href="../studio/svg/icon.svg#ic_delete"></use>
+				</svg>
+			</button>
+		</span>	
+	</div>
+				
+</div>
+
+<div id="userfilelist">
+<?php
+//
+
+require_once "../path.php";
+require_once "../public/_pdo.php";
+require_once '../public/load_lang.php';
+require_once '../ucenter/function.php';
+
+if(isset($_GET["page"])){
+    $iCurrPage=$_GET["page"];
+}
+else{
+    $iCurrPage=0;
+}
+$iOnePage=300;
+
+$dictFileName=_FILE_DB_TERM_;
+PDO_Connect("sqlite:$dictFileName");
+
+$query = "select count(*) as co  from term where owner= ".$PDO->quote($USER_NAME);
+
+$allWord = PDO_FetchOne($query);
+$iCountWords=$allWord;
+
+if($iCountWords==0){
+    echo "<div id='setting_user_dict_count'>您的术语字典中没有单词。</div>";
+}
+else{
+    echo "<div id='setting_user_dict_count'>您的术语字典中已经有{$iCountWords}个单词。</div>";
+    $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);
+
+    echo '<div id="setting_user_dict_nav">';
+
+    if($iCurrPage==0){
+        echo "第一页 | ";
+        echo "上一页";
+    }
+    else{
+        echo "<a href=\"setting.php?item=term&page=0\">第一页</a>";
+        $prevPage=$iCurrPage-1;
+        echo "<a href=\"setting.php?item=term&page={$prevPage}\">上一页</a>";
+    }
+    
+    echo "第<span style='display:inline-block;width:4em;'><input type=\"input\" value=\"".($iCurrPage+1)."\" size=\"4\" /></span>页";
+    echo "共{$iPages}页";
+    
+    if($iCurrPage<$iPages-1){
+        echo "<a href=\"setting.php?item=term&page=".($iCurrPage+1)."\">下一页</a>";
+        echo "<a href=\"setting.php?item=term&page=".($iPages-1)."\">最后一页</a>";
+        
+    }
+    else{
+        echo "下一页 | 最后一页";
+    }
+    ?>
+    </div>
+    <div>
+        <div style="display:flex;">
+            <div style='max-width:2em;flex:1;'></div>
+            <div style='flex:1;'>序号</div>
+            <div style='flex:2;'>拼写</div>
+            <div style='flex:2;'>意思</div>
+            <div style='flex:2;'>第二个意思</div>
+            <div style='flex:5;'>注解</div>
+            <div style='flex:1;'>语言</div>
+        </div>
+    <?php
+    
+    foreach($allWords as $key => $word){
+        echo '<div class="file_list_row" style="padding:5px;">';
+        echo '<div style="max-width:2em;flex:1;"><input type="checkbox" /></div>';
+        echo "<div style='flex:1;'>".($key+1)."</div>";
+        echo "<div style='flex:2;'>{$word["word"]}</div>";
+        echo "<div style='flex:2;'>{$word["meaning"]}</div>";
+        echo "<div style='flex:2;'>{$word["other_meaning"]}</div>";
+        echo "<div style='flex:5;'><textarea style='width:100%;'>{$word["note"]}</textarea></div>";
+        echo "<div style='flex:1;'></div>";
+        echo "</div>";
+    }
+
+    echo '</div>';
+}
+    ?>
+
+    </div>
+			
+	
+<?php
+require_once '../studio/index_foot.php';
+?>

+ 10 - 0
app/ucenter/default.json

@@ -0,0 +1,10 @@
+{
+  "ui.lang": ["en", "zh-cn", "zh-tw"],
+  "ui.lang.load": ["en", "zh-cn", "zh-tw", "si", "my"],
+  "system.translation.lang": ["en", "zh-cn", "zh-tw"],
+  "studio.translation.lang": ["en", "zh-cn"],
+  "system.dict": ["我的字典", "巴缅"],
+  "dict.lang": ["zh-cn", "en"],
+  "dict.whitelist": ["我的字典", "巴缅"],
+  "dict.blacklist": ["我的字典", "巴缅"]
+}

+ 30 - 0
app/ucenter/get_setting.php

@@ -0,0 +1,30 @@
+<?php
+require_once '../path.php';
+if(!isset($_COOKIE["userid"])){
+    $setting = array();
+}
+else{
+    $setting=json_decode(file_get_contents("../ucenter/default.json"),TRUE);
+    //打开数据库
+    $dns = "sqlite:"._FILE_DB_USERINFO_;
+    $dbh = new PDO($dns, "", "",array(PDO::ATTR_PERSISTENT=>true));
+    $dbh->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_WARNING);  
+
+    $query = "select setting from user where userid = ? ";
+    $stmt = $dbh->prepare($query);
+    $stmt->execute(array($_COOKIE["userid"]));
+    $fUser = $stmt->fetchAll(PDO::FETCH_ASSOC);
+    $dbh=null;      
+    if(isset($fUser[0]["setting"])){
+        $my_setting=json_decode($fUser[0]["setting"],TRUE);
+        foreach ($setting as $key => $value) {
+            if(isset($my_setting[$key])){
+                $setting[$key] = $my_setting[$key];
+            }
+        }
+    }
+}
+
+echo json_encode($setting, JSON_UNESCAPED_UNICODE);
+
+?>

+ 24 - 0
app/ucenter/set_setting.php

@@ -0,0 +1,24 @@
+<?php
+require_once "../path.php";
+require_once "../public/_pdo.php";
+require_once '../public/function.php';
+
+global $PDO;
+PDO_Connect("sqlite:"._FILE_DB_USERINFO_);
+
+$query="UPDATE user SET  setting = ? where  userid = ?  ";
+$sth = $PDO->prepare($query);
+
+$sth->execute(array( $_POST["data"] , $_COOKIE["userid"]));
+$respond=array("status"=>0,"message"=>"");
+if (!$sth || ($sth && $sth->errorCode() != 0)) {
+	$error = PDO_ErrorInfo();
+	$respond['status']=1;
+	$respond['message']=$error[2];
+}
+else{
+	$respond['status']=0;
+	$respond['message']="设置保存成功";
+}
+echo json_encode($respond, JSON_UNESCAPED_UNICODE);
+?>

+ 76 - 0
app/ucenter/setting.js

@@ -0,0 +1,76 @@
+var setting;
+function setting_onload() {
+  $.post("get_setting.php", {}, function (data, status) {
+    try {
+      setting = JSON.parse(data);
+      let html;
+
+      html = "";
+      html += "常用界面语言:";
+      html +=
+        "<input type='input' value='" +
+        setting["ui.lang.load"].join() +
+        "' /><button>保存</button>";
+      $("#setting_general").html(html);
+
+      html = "";
+      html += "常用译文语言:";
+      html +=
+        "<input type='input' value='" +
+        setting["studio.translation.lang"].join() +
+        "' /><button>保存</button>";
+      $("#setting_studio").html(html);
+
+      html = "";
+      html += "自动查词词典语言:";
+      html +=
+        "<input id='dict_lang' type='input' value='" +
+        setting["dict.lang"].join() +
+        "' /><button onclick=\"save('dict_lang','dict.lang',true)\">保存</button>";
+      $("#setting_dictionary").html(html);
+    } catch (e) {}
+  });
+}
+
+var get_callback;
+function setting_get(key, callback) {
+  get_callback = callback;
+  $.post(
+    "../ucenter/get_setting.php",
+    {
+      key: key,
+    },
+    function (data, status) {
+      try {
+        let arrSetting = JSON.parse(data);
+        if (arrSetting.hasOwnProperty(key)) {
+          get_callback(arrSetting[key]);
+        } else {
+          get_callback(false);
+        }
+      } catch (e) {
+        get_callback(false);
+      }
+    }
+  );
+}
+
+function save(obj, key, array = false) {
+  if (array) {
+    setting[key] = $("#" + obj)
+      .val()
+      .split(",");
+  } else {
+    setting[key] = $("#" + obj).val();
+  }
+
+  $.post(
+    "set_setting.php",
+    {
+      data: JSON.stringify(setting),
+    },
+    function (data, status) {
+      alert(data);
+    }
+  );
+}

+ 277 - 0
app/ucenter/setting.php

@@ -0,0 +1,277 @@
+<?php
+require_once "../public/_pdo.php";
+require_once "../path.php";
+require_once '../public/load_lang.php';
+require_once '../public/function.php';
+?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html>
+<head>
+	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
+	<meta name="viewport" content="width=device-width, initial-scale=1.0">
+	<link type="text/css" rel="stylesheet" href="../studio/css/font.css"/>
+	<link type="text/css" rel="stylesheet" href="../pcdl/css/reader.css"/>
+	<link type="text/css" rel="stylesheet" href="../pcdl/css/reader_mob.css" media="screen and (max-width:767px)">
+	<title id="page_title">PCD Reader</title>
+
+	<script src="../public/js/jquery.js"></script>
+	<script src="../public/js/fixedsticky.js"></script>
+	<script src="./setting.js"></script>
+	<script src="../public/js/comm.js"></script>
+
+</head>
+<body class="reader_body" >
+<?php
+if(!isset($_COOKIE["userid"])){
+    echo "请您先登陆";
+    exit;
+}
+?>
+<a name="page_head"></a>
+
+
+<style>
+		#para_nav {
+			display: flex;
+			justify-content: space-between;
+			padding: 5px 1em;
+			border-top: 1px solid gray;
+		}
+
+	.word{
+		display:inline-block;
+		padding: 1px 3px;
+	}
+	.mean{
+		font-size: 65%;
+	}
+		/* 下拉内容 (默认隐藏) */
+	#mean_menu {
+		margin: 0.3em;
+		position: absolute;
+		background-color: white;
+		min-width: 8em;
+		max-width: 30em;
+		margin: -1px 0px;
+		box-shadow: 0px 3px 13px 0px black;
+		color: var(--main-color);
+		z-index: 200;
+	}
+
+	/* 下拉菜单的链接 */
+	#mean_menu a {
+		/*padding: 0.3em 0.4em;*/
+		line-height: 160%;
+		text-decoration: none;
+		display: block;
+		cursor: pointer;
+		text-align: left;
+		font-size:80%;
+	}
+
+	/* 鼠标移上去后修改下拉菜单链接颜色 */
+	.mean_menu a:hover {
+		background-color: blue;
+		color: white;
+	}
+
+.par_pali_div{
+	margin-top:1em;
+}
+.par_pali_div{
+	font-weight:700;
+}
+sent{
+	font-weight:500;
+	font-size:110%;
+	line-height: 150%;
+}
+sent:hover{
+	background-color:#fefec1;
+}
+para {
+    color: white;
+    background-color:  #F1CA23;
+    min-width: 2em;
+    display: inline-block;
+    text-align: center;
+    padding: 3px 6px;
+    border-radius: 99px;
+	margin-right: 5px;
+	cursor:pointer;
+	font-size:80%;
+}
+para:hover{
+
+}
+
+.sent_count{
+	font-size:80%;
+    color: white;
+    background-color: #1cb70985;
+    min-width: 2em;
+    display: inline-block;
+    text-align: center;
+    padding: 2px 0;
+    border-radius: 99px;
+	margin-left: 5px;	
+	cursor:pointer;
+}
+.toc_1{
+	padding: 5px;
+    cursor: pointer;
+	border-left: 2px solid #aaaaaa;
+}
+.toc_1_title{
+	font-weight:700;
+}
+.toc_2{
+	font-weight:500;
+	padding-left:1em;
+	display:none;
+}
+.curr_chapter{
+	border-color: #4d4dff;
+	color: #4d4dff;
+}
+.toc_curr_chapter2{
+	display:block;
+}
+.toc_title2 a{
+	color:black;
+	line-height:1.4em;
+	text-decoration: none;
+}
+.toc_title2 a:hover{
+	text-decoration: underline;
+}
+.curr_chapter_title2 a{
+	color:#4d4dff;
+	font-weight:900;
+}
+#leftmenuinner{
+    width: 20em;
+    max-width: 90%;
+		overflow-y: scroll;
+		border-right: unset;	
+}
+#leftmenuinnerinner{
+
+}
+#leftmenuinnerinner{
+	margin-left: 2em;
+    font-size: 0.8em;
+	border-right: unset;
+}
+.sent_toc{
+	font-weight:700;
+	font-family: Noto serif;
+    font-size: 150%;
+}
+</style>
+		<!-- tool bar begin-->
+		<div id="main_tool_bar" class='reader_toolbar'>
+			<div id="index_nav"> 
+				<button onclick="setNaviVisibility()">
+					<svg t='1598084571450' class='icon' viewBox='0 0 1029 1024' version='1.1' xmlns='http://www.w3.org/2000/svg' p-id='6428' width='20px' height='20px'><path d='M159.744 69.632 53.248 69.632C28.672 69.632 4.096 90.112 4.096 118.784l0 94.208c0 28.672 24.576 49.152 53.248 49.152l102.4 0C184.32 266.24 208.896 241.664 208.896 212.992L208.896 118.784C208.896 90.112 184.32 69.632 159.744 69.632zM970.752 69.632 368.64 69.632c-28.672 0-57.344 24.576-57.344 49.152l0 94.208c0 28.672 32.768 49.152 57.344 49.152l598.016 0c28.672 0 57.344-24.576 57.344-49.152L1024 118.784C1028.096 94.208 999.424 69.632 970.752 69.632zM159.744 413.696 53.248 413.696c-28.672 0-53.248 24.576-53.248 49.152l0 94.208c0 28.672 24.576 49.152 53.248 49.152l102.4 0c28.672 0 53.248-24.576 53.248-49.152l0-94.208C208.896 438.272 184.32 413.696 159.744 413.696zM970.752 413.696 368.64 413.696c-28.672 0-57.344 24.576-57.344 49.152l0 94.208c0 28.672 32.768 49.152 57.344 49.152l598.016 0c28.672 0 57.344-24.576 57.344-49.152l0-94.208C1028.096 438.272 999.424 413.696 970.752 413.696zM159.744 757.76 53.248 757.76c-28.672 0-53.248 24.576-53.248 49.152l0 94.208c0 28.672 24.576 49.152 53.248 49.152l102.4 0c28.672 0 53.248-24.576 53.248-49.152l0-94.208C208.896 782.336 184.32 757.76 159.744 757.76zM970.752 761.856 368.64 761.856c-28.672 0-57.344 24.576-57.344 49.152l0 94.208c0 28.672 32.768 49.152 57.344 49.152l598.016 0c28.672 0 57.344-24.576 57.344-49.152l0-94.208C1028.096 782.336 999.424 761.856 970.752 761.856z' fill='#757AF7' p-id='6429'></path></svg>
+				</button>
+			</div>
+			<div>
+				<span id="tool_bar_title" style="font-family: 'Noto Serif';"><?php echo $_local->gui->title; ?></span>
+			</div>
+			<div style="display: flex;">	
+			
+			</div>
+		</div>	
+		
+
+		
+	<div id="main_text_view" style="padding-bottom: 10em;">
+        <?php 
+            echo "<a name='account'></a>";
+            echo "<h2>{$_local->gui->account}</h2>";
+            echo "{$_local->gui->username}:{$_COOKIE["username"]} <button>修改</button><br />";
+            echo "{$_local->gui->nick_name}:{$_COOKIE["nickname"]} <button>修改</button><br />";
+            echo "{$_local->gui->e_mail}:{$_COOKIE["email"]}<button>修改</button><br />";
+            echo "<a href='../ucenter/pwd_set.php'>{$_local->gui->change_password}</a><br>";
+            echo "<a href='login.php?op=logout'>{$_local->gui->logout}</a>";
+
+            echo "<h2>{$_local->gui->general}</h2>";
+            echo "<div id='setting_general' class='setting_content'>";
+            echo "</div>";
+
+            echo "<h2>{$_local->gui->studio}</h2>";
+            echo "<div id='setting_studio' class='setting_content'>";
+            echo "</div>";
+            
+            echo "<h2>{$_local->gui->library}</h2>";
+            echo "<div id='setting_library' class='setting_content'>";
+            echo "</div>";
+
+            echo "<h2>{$_local->gui->dictionary}</h2>";
+            echo "<div id='setting_dictionary' class='setting_content'>";
+            echo "</div>";
+
+        ?>
+
+
+	</div><!--main_text_view end-->
+
+
+
+	<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>
+
+	</div>
+	<!-- 全屏 黑色背景 -->	
+	<div id="BV" class="blackscreen" onclick="setNaviVisibility()"></div>
+		<!-- nav begin--> 
+
+	<div id="leftmenuinner" class="viewswitch_off">
+			<div class="win_caption">
+				<div><button id="left_menu_hide" onclick="setNaviVisibility()">返回</button></div>
+			</div>
+			
+		<div class='toc' id='leftmenuinnerinner' style="font-family: 'Noto Serif';">	
+			<!-- toc begin -->
+			<div class="menu" id="menu_toc">
+				<a name="_Content" ></a>
+				<div  id="toc_content">
+                <?php
+                    echo "<div class='toc_1 toc_1_title'><a href='#account'>{$_local->gui->account}</a></div>";
+                    echo "<div class='toc_1 toc_1_title'><a href='#general'>{$_local->gui->general}</a></div>";
+                    echo "<div class='toc_1 toc_1_title'><a href='#studio'>{$_local->gui->studio}</a></div>";
+                    echo "<div class='toc_1 toc_1_title'><a href='#library'>{$_local->gui->library}</a></div>";
+                    echo "<div class='toc_1 toc_1_title'><a href='#dictionary'>{$_local->gui->dictionary}</a></div>";
+                ?>
+                </div>
+
+			
+			</div>
+		
+		</div>
+		<!-- nav end -->	
+	</div>
+
+	<div id="mean_menu" ></div>
+<script>
+$(document).ready(setting_onload);
+
+function setNaviVisibility(strObjId = "") {
+    var objNave = document.getElementById("leftmenuinner");
+    var objblack = document.getElementById("BV");
+  
+    if (objNave.className == "viewswitch_off") {
+      objblack.style.display = "block";
+      objNave.className = "viewswitch_on";
+    } else {
+      objblack.style.display = "none";
+      objNave.className = "viewswitch_off";
+    }
+  }
+</script>
+	
+</body>
+</html>