setting.php 10 KB

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