setting.php 8.5 KB

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