setting.php 8.1 KB

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