2
0

setting.php 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355
  1. <?php
  2. require_once "../public/_pdo.php";
  3. require_once "../path.php";
  4. require_once '../public/load_lang.php';
  5. require_once '../public/function.php';
  6. ?>
  7. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
  8. <html>
  9. <script language="javascript">
  10. <?php
  11. //加载js语言包
  12. //require_once '../public/load_lang_js.php';
  13. ?>
  14. <?php
  15. //加载js语言包
  16. if(file_exists(_DIR_LANGUAGE_."/".$currLanguage.".json")){
  17. echo "var gLocal = ".file_get_contents(_DIR_LANGUAGE_."/".$currLanguage.".json").";";
  18. }
  19. else{
  20. echo "var gLocal = ".file_get_contents(_DIR_LANGUAGE_."/default.json").";";
  21. }
  22. ?>
  23. var gDownloadListString="";
  24. var g_device="computer";
  25. var strSertch = location.search;
  26. var gConfigDirMydocument="<?php echo _DIR_USER_DOC_."/".$userid._DIR_MYDOCUMENT_; ?>/";
  27. if(strSertch.length>0){
  28. strSertch = strSertch.substr(1);
  29. var sertchList=strSertch.split('&');
  30. for (x in sertchList){
  31. var item = sertchList[x].split('=');
  32. if(item[0]=="device"){
  33. g_device=item[1];
  34. }
  35. }
  36. }
  37. if(g_device=="mobile"){
  38. g_is_mobile=true;
  39. }
  40. else{
  41. g_is_mobile=false;
  42. }
  43. var gCaseTable=<?php echo file_get_contents("../public/js/case.json"); ?>
  44. </script>
  45. <head>
  46. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  47. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  48. <link type="text/css" rel="stylesheet" href="../pcdl/css/font.css"/>
  49. <link type="text/css" rel="stylesheet" href="../pcdl/css/reader.css"/>
  50. <link type="text/css" rel="stylesheet" href="../pcdl/css/reader_mob.css" media="screen and (max-width:800px)">
  51. <link type="text/css" rel="stylesheet" href="../public/css/notify.css"/>
  52. <title id="page_title"><?php echo $_local->gui->setting; ?></title>
  53. <script src="../public/js/jquery-3.5.1.js"></script>
  54. <script src="../public/js/jquery-ui-1.12.1/jquery-ui.js"></script>
  55. <script src="../public/js/fixedsticky.js"></script>
  56. <script src="../lang/lang.js"></script>
  57. <script src="../public/js/comm.js"></script>
  58. <script src="../public/js/notify.js"></script>
  59. <script src="./setting.js"></script>
  60. </head>
  61. <body class="reader_body" >
  62. <?php
  63. if(!isset($_COOKIE["userid"])){
  64. echo "请您先登陆";
  65. exit;
  66. }
  67. ?>
  68. <a name="page_head"></a>
  69. <style>
  70. .pcd_notify{
  71. margin-left: 20em;
  72. background-color: rgb(201 137 15 / 64%);
  73. }
  74. #para_nav {
  75. display: flex;
  76. justify-content: space-between;
  77. padding: 5px 1em;
  78. border-top: 1px solid gray;
  79. }
  80. .word{
  81. display:inline-block;
  82. padding: 1px 3px;
  83. }
  84. .mean{
  85. font-size: 65%;
  86. }
  87. /* 下拉内容 (默认隐藏) */
  88. #mean_menu {
  89. margin: 0.3em;
  90. position: absolute;
  91. background-color: white;
  92. min-width: 8em;
  93. max-width: 30em;
  94. margin: -1px 0px;
  95. box-shadow: 0px 3px 13px 0px black;
  96. color: var(--main-color);
  97. z-index: 200;
  98. }
  99. /* 下拉菜单的链接 */
  100. #mean_menu a {
  101. /*padding: 0.3em 0.4em;*/
  102. line-height: 160%;
  103. text-decoration: none;
  104. display: block;
  105. cursor: pointer;
  106. text-align: left;
  107. font-size:80%;
  108. }
  109. /* 鼠标移上去后修改下拉菜单链接颜色 */
  110. .mean_menu a:hover {
  111. background-color: blue;
  112. color: white;
  113. }
  114. .par_pali_div{
  115. margin-top:1em;
  116. }
  117. .par_pali_div{
  118. font-weight:700;
  119. }
  120. sent{
  121. font-weight:500;
  122. font-size:110%;
  123. line-height: 150%;
  124. }
  125. sent:hover{
  126. background-color:#fefec1;
  127. }
  128. para {
  129. color: white;
  130. background-color: #F1CA23;
  131. min-width: 2em;
  132. display: inline-block;
  133. text-align: center;
  134. padding: 3px 6px;
  135. border-radius: 99px;
  136. margin-right: 5px;
  137. cursor:pointer;
  138. font-size:80%;
  139. }
  140. para:hover{
  141. }
  142. .sent_count{
  143. font-size:80%;
  144. color: white;
  145. background-color: #1cb70985;
  146. min-width: 2em;
  147. display: inline-block;
  148. text-align: center;
  149. padding: 2px 0;
  150. border-radius: 99px;
  151. margin-left: 5px;
  152. cursor:pointer;
  153. }
  154. .toc_1{
  155. padding: 5px;
  156. cursor: pointer;
  157. border-left: 2px solid #aaaaaa;
  158. }
  159. .toc_1_title{
  160. font-weight:700;
  161. }
  162. .toc_2{
  163. font-weight:500;
  164. padding-left:1em;
  165. display:none;
  166. }
  167. .curr_chapter{
  168. border-color: #4d4dff;
  169. color: #4d4dff;
  170. }
  171. .toc_curr_chapter2{
  172. display:block;
  173. }
  174. .toc_title2 a{
  175. color:black;
  176. line-height:1.4em;
  177. text-decoration: none;
  178. }
  179. .toc_title2 a:hover{
  180. text-decoration: underline;
  181. }
  182. .curr_chapter_title2 a{
  183. color:#4d4dff;
  184. font-weight:900;
  185. }
  186. #leftmenuinner{
  187. width: 20em;
  188. max-width: 90%;
  189. overflow-y: scroll;
  190. border-right: unset;
  191. }
  192. #leftmenuinnerinner{
  193. }
  194. #leftmenuinnerinner{
  195. margin-left: 2em;
  196. font-size: 0.8em;
  197. border-right: unset;
  198. }
  199. .sent_toc{
  200. font-weight:700;
  201. font-family: Noto serif;
  202. font-size: 150%;
  203. }
  204. .dict_lang{
  205. /*border: 1px solid gray;*/
  206. min-height: 4em;
  207. margin:0.5em;
  208. }
  209. .setting_shell{
  210. border-bottom: 1px solid gray;
  211. margin-bottom: 3em;
  212. padding-bottom: 3em;
  213. }
  214. </style>
  215. <!-- tool bar begin-->
  216. <div id="main_tool_bar" class='reader_toolbar'>
  217. <div id="index_nav">
  218. <button onclick="setNaviVisibility()">
  219. <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>
  220. </button>
  221. </div>
  222. <div>
  223. <span id="tool_bar_title" style="font-family: 'Noto Serif';"><?php echo $_local->gui->setting; ?></span>
  224. </div>
  225. <div style="display: flex;">
  226. </div>
  227. </div>
  228. <div id="main_text_view" style="padding-bottom: 10em;">
  229. <?php
  230. echo "<div id='setting_account_shell' class='setting_shell'>";
  231. echo "<a name='account'></a>";
  232. echo "<h2>{$_local->gui->account}</h2>";
  233. echo "{$_local->gui->avatar}:<span id='head_img'></span>";
  234. echo "{$_local->gui->username}:{$_COOKIE["username"]} <button>{$_local->gui->modify}</button><br />";
  235. echo "{$_local->gui->nick_name}:{$_COOKIE["nickname"]} <button>{$_local->gui->modify}</button><br />";
  236. echo "{$_local->gui->e_mail}:{$_COOKIE["email"]}<button>{$_local->gui->modify}</button><br />";
  237. echo "<a href='../ucenter/pwd_set.php'>{$_local->gui->change_password}</a><br>";
  238. echo "<a href='login.php?op=logout'>{$_local->gui->logout}</a>";
  239. echo "</div>";
  240. echo "<div id='setting_general_shell' class='setting_shell'>";
  241. echo "<a name='general'></a>";
  242. echo "<h2>{$_local->gui->general}</h2>";
  243. echo "<div id='setting_general' class='setting_content'>";
  244. echo "</div>";
  245. echo "</div>";
  246. echo "<div id='setting_library_shell' class='setting_shell'>";
  247. echo "<a name='library'></a>";
  248. echo "<h2>{$_local->gui->library}</h2>";
  249. echo "<div id='setting_library' class='setting_content'>";
  250. echo "</div>";
  251. echo "</div>";
  252. echo "<div id='setting_studio_shell' class='setting_shell'>";
  253. echo "<a name='studio'></a>";
  254. echo "<h2>{$_local->gui->studio}</h2>";
  255. echo "<div id='setting_studio' class='setting_content'>";
  256. echo "</div>";
  257. echo "</div>";
  258. echo "<div id='setting_dictionary_shell' class='setting_shell'>";
  259. echo "<a name='dictionary'></a>";
  260. echo "<h2>{$_local->gui->dictionary}</h2>";
  261. echo "<div id='setting_dictionary' class='setting_content'>";
  262. echo "</div>";
  263. echo "</div>";
  264. ?>
  265. </div><!--main_text_view end-->
  266. <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;">
  267. </div>
  268. </div>
  269. <!-- 全屏 黑色背景 -->
  270. <div id="BV" class="blackscreen" onclick="setNaviVisibility()"></div>
  271. <!-- nav begin-->
  272. <div id="leftmenuinner" class="viewswitch_off">
  273. <div class="win_caption">
  274. <div><button id="left_menu_hide" onclick="setNaviVisibility()">返回</button></div>
  275. </div>
  276. <div class='toc' id='leftmenuinnerinner' style="font-family: 'Noto Serif';">
  277. <!-- toc begin -->
  278. <div class="menu" id="menu_toc">
  279. <a name="_Content" ></a>
  280. <div id="toc_content">
  281. <?php
  282. echo "<div class='toc_1 toc_1_title'><a href='#account'>{$_local->gui->account}</a></div>";
  283. echo "<div class='toc_1 toc_1_title'><a href='#general'>{$_local->gui->general}</a></div>";
  284. echo "<div class='toc_1 toc_1_title'><a href='#studio'>{$_local->gui->studio}</a></div>";
  285. echo "<div class='toc_1 toc_1_title'><a href='#library'>{$_local->gui->library}</a></div>";
  286. echo "<div class='toc_1 toc_1_title'><a href='#dictionary'>{$_local->gui->dictionary}</a></div>";
  287. ?>
  288. </div>
  289. </div>
  290. </div>
  291. <!-- nav end -->
  292. </div>
  293. <div id="mean_menu" ></div>
  294. <script>
  295. $(document).ready(setting_onload);
  296. ntf_init(1);
  297. function setNaviVisibility(strObjId = "") {
  298. var objNave = document.getElementById("leftmenuinner");
  299. var objblack = document.getElementById("BV");
  300. if (objNave.className == "viewswitch_off") {
  301. objblack.style.display = "block";
  302. objNave.className = "viewswitch_on";
  303. } else {
  304. objblack.style.display = "none";
  305. objNave.className = "viewswitch_off";
  306. }
  307. }
  308. </script>
  309. </body>
  310. </html>