setting.php 8.3 KB

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