index_tools.php 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. <?php
  2. require 'checklogin.inc';
  3. require_once '../public/config.php';
  4. require_once '../public/load_lang.php';
  5. //load language file
  6. if(file_exists($dir_language.$currLanguage.".php")){
  7. require $dir_language.$currLanguage.".php";
  8. }
  9. else{
  10. include $dir_language."default.php";
  11. }
  12. if(isset($_GET["device"])){
  13. $currDevice=$_GET["device"];
  14. }
  15. else{
  16. if(isset($_COOKIE["device"])){
  17. $currDevice=$_COOKIE["device"];
  18. }
  19. else{
  20. $currDevice="computer";
  21. }
  22. }
  23. //获取当前年
  24. $year=date('Y');
  25. //获取当年月
  26. $month=date('m');
  27. ?>
  28. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
  29. <html>
  30. <head>
  31. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  32. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  33. <link type="text/css" rel="stylesheet" href="css/style.css"/>
  34. <link type="text/css" rel="stylesheet" href="css/color_day.css" id="colorchange" />
  35. <title><?php echo $_local->gui->pcd_studio; ?></title>
  36. <script language="javascript" src="js/common.js"></script>
  37. <script language="javascript" src="js/filenew.js"></script>
  38. <script src="js/jquery-3.3.1.min.js"></script>
  39. <script src="js/fixedsticky.js"></script>
  40. <script type="text/javascript">
  41. <?php require_once '../public/load_lang_js.php';//加载js语言包?>
  42. var g_device = "computer";
  43. var strSertch = location.search;
  44. if(strSertch.length>0){
  45. strSertch = strSertch.substr(1);
  46. var sertchList=strSertch.split('&');
  47. for ( i in sertchList){
  48. var item = sertchList[i].split('=');
  49. if(item[0]=="device"){
  50. g_device=item[1];
  51. }
  52. }
  53. }
  54. if(g_device=="mobile"){
  55. g_is_mobile=true;
  56. }
  57. else{
  58. g_is_mobile=false;
  59. }
  60. var g_langrage="en";
  61. function menuLangrage(obj){
  62. g_langrage=obj.value;
  63. setCookie('language',g_langrage,365);
  64. window.location.assign("index_tools.php?language="+g_langrage);
  65. }
  66. </script>
  67. </head>
  68. <body class="indexbody" >
  69. <!-- tool bar begin-->
  70. <div class='index_toolbar'>
  71. <div id="index_nav">
  72. <button><a href="index.php?language=<?php echo $currLanguage; ?>"><?php echo $module_gui_str['editor']['1018'];?></a></button>
  73. <button><a href="index_pc.php?language=<?php echo $currLanguage; ?>"><?php echo $module_gui_str['editor_wizard']['1002'];?></a></button>
  74. <button><a href="filenew.php?language=<?php echo $currLanguage; ?>"><?php echo $module_gui_str['editor']['1064'];?></a></button>
  75. <button class="selected"><?php echo $module_gui_str['editor']['1052'];?></button>
  76. </div>
  77. <div class="toolgroup1">
  78. <span><?php echo $module_gui_str['editor']['1050'];?></span>
  79. <select id="id_language" name="menu" onchange="menuLangrage(this)">
  80. <option value="en" >English</option>
  81. <option value="si" >සිංහල</option>
  82. <option value="my" >myanmar</option>
  83. <option value="zh-cn" >简体中文</option>
  84. <option value="zh-tw" >繁體中文</option>
  85. </select>
  86. <?php
  87. echo $_local->gui->welcome;
  88. echo "<a href=\"setting.php?item=account\">";
  89. echo urldecode($_COOKIE["nickname"]);
  90. echo "</a>";
  91. echo $_local->gui->to_the_dhamma;
  92. echo "<a href='login.php?op=logout'>";
  93. echo $_local->gui->logout;
  94. echo "</a>";
  95. ?>
  96. </div>
  97. </div>
  98. <!--tool bar end -->
  99. <script>
  100. document.getElementById("id_language").value="<?php echo($currLanguage); ?>";
  101. </script>
  102. <div class="index_inner">
  103. <div class="sutta_top_blank"></div>
  104. <div class="fun_block">
  105. <h2><?php echo $module_gui_str['editor']['1052'];?></h2>
  106. <div >
  107. <p>
  108. <a class="tool_button" href="../tools/translate_import.html" target="tc"><?php echo $module_gui_str['editor']['1054'];?></a>
  109. </p>
  110. <p>
  111. <a class="tool_button" href="../tools/unicode.html" target="unicode"><?php echo $module_gui_str['editor']['1055'];?></a>
  112. </p>
  113. <p>
  114. <a class="tool_button" href="../tools/Pa_auk_dict/Pa_auk_dict.htm" target="Pa-auk Dictionary"><?php echo $module_gui_str['editor']['1056'];?></a>
  115. </p>
  116. <p>
  117. <a class="tool_button" href="dictionary.php?language=<?php echo($currLanguage); ?>" target="dictionary"><?php echo $module_gui_str['editor']['1057'];?></a>
  118. </p>
  119. <p>
  120. <a class="tool_button" href="../tools/guid.php?language=<?php echo($currLanguage); ?>" target="guid"><?php echo $module_gui_str['editor']['1088'];?></a>
  121. </p>
  122. <p>
  123. <a class="tool_button" href="../tools/pali_word_analysis/index.php?language=<?php echo($currLanguage); ?>" target="analysis"><?php echo $module_gui_str['editor']['1102'];?></a>
  124. </p>
  125. <p>
  126. <a class="tool_button" href="search.php?language=<?php echo($currLanguage); ?>" target="search"><?php echo $module_gui_str['editor_palicannon']['1002'];?></a>
  127. </p>
  128. <p>
  129. <a class="tool_button" href="term_sys_tool.php?language=<?php echo($currLanguage); ?>" target="search"><?php echo $module_gui_str['editor_plugin']['1007'];?></a>
  130. </p>
  131. <p>
  132. <a class="tool_button" href="buddhist_calendar.php?language=<?php echo($currLanguage); ?>&y=<?php echo($year); ?>&m=<?php echo($month); ?>" target="search"><?php echo $module_gui_str['tools']['1004'];?></a>
  133. </p>
  134. <p>
  135. <a class="tool_button" href="../dict_builder/index.php?language=<?php echo($currLanguage); ?>" target="dict_builder">PCD Dict-Builder</a>
  136. </p>
  137. <p>
  138. <a class="tool_button" href="../term/index.php?language=<?php echo($currLanguage); ?>" target="dict_builder">PCD Term</a>
  139. </p>
  140. </div>
  141. </div>
  142. </div>
  143. <div class="foot_div">
  144. <?php echo $module_gui_str['editor']['1066'];?>
  145. </div>
  146. </body>
  147. </html>