index.html 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <title>idsOOS</title>
  7. <style>
  8. body {
  9. font-family: Arial, Helvetica, sans-serif;
  10. margin: 0;
  11. padding: 0;
  12. background-color: #f5f5f5;
  13. color: #333;
  14. }
  15. h1 {
  16. text-align: center;
  17. font-size: 36px;
  18. margin: 30px 0;
  19. background-image: linear-gradient(to right, #FF0000 0%, #FF7F00 15%, #FFFF00 30%, #00FF00 45%, #0000FF 60%, #4B0082 75%, #8F00FF 100%);
  20. -webkit-background-clip: text;
  21. -webkit-text-fill-color: transparent;
  22. text-shadow: 2px 2px #ccc;
  23. }
  24. h2 {
  25. text-align: center;
  26. color: #007bff;
  27. margin-bottom: 20px;
  28. }
  29. form {
  30. max-width: 400px;
  31. margin: 20px auto;
  32. padding: 15px;
  33. background-color: white;
  34. box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  35. border-radius: 5px;
  36. }
  37. label {
  38. display: block;
  39. margin-bottom: 5px;
  40. }
  41. input {
  42. width: 100%;
  43. padding: 10px;
  44. margin-bottom: 15px;
  45. box-sizing: border-box;
  46. }
  47. button {
  48. background-color: #007bff;
  49. color: white;
  50. padding: 10px 15px;
  51. border: none;
  52. border-radius: 5px;
  53. cursor: pointer;
  54. }
  55. button:hover {
  56. background-color: #0056b3;
  57. }
  58. code {
  59. font-size: 16px;
  60. display: block;
  61. margin-top: 20px;
  62. text-align: center;
  63. color: #28a745; /* 突出链接颜色 */
  64. font-weight: bold;
  65. text-transform: uppercase;
  66. background-color: #f8f9fa;
  67. border-radius: 5px;
  68. padding: 10px;
  69. }
  70. a {
  71. color: #007bff;
  72. text-decoration: none;
  73. transition: color 0.3s ease-in-out;
  74. }
  75. a:hover {
  76. color: #0056b3;
  77. }
  78. /* 自定义 checkbox 样式 */
  79. input[type="checkbox"] {
  80. appearance: none;
  81. -webkit-appearance: none;
  82. -moz-appearance: none;
  83. width: 20px;
  84. height: 20px;
  85. border: 1px solid #999;
  86. border-radius: 4px;
  87. margin-right: 5px;
  88. cursor: pointer;
  89. }
  90. input[type="checkbox"]:checked {
  91. background-color: #007bff;
  92. border-color: #007bff;
  93. }
  94. </style>
  95. </head>
  96. <body>
  97. <h1>idsOOS</h1>
  98. <h2>注册表单</h2>
  99. <form action="http://www.sencorsta.com:7779/user/register" method="post" onsubmit="return validateForm()">
  100. <label for="account">账号:</label>
  101. <input type="text" id="account" name="account" required><br>
  102. <label for="email">邮箱:</label>
  103. <input type="email" id="email" name="email" required><br>
  104. <label for="phone">手机:</label>
  105. <input type="tel" id="phone" name="phone" required><br>
  106. <label for="password">密码:</label>
  107. <input type="password" id="password" name="password" required><br>
  108. <label for="confirmPassword">确认密码:</label>
  109. <input type="password" id="confirmPassword" name="confirmPassword" required>
  110. <br>
  111. <button type="submit">提交</button>
  112. </form>
  113. <script>
  114. function validateForm() {
  115. // 获取输入框的值
  116. var password = document.getElementById('password').value;
  117. var confirmPassword = document.getElementById('confirmPassword').value;
  118. // 检查密码和确认密码是否一致
  119. if (password !== confirmPassword) {
  120. alert('密码和确认密码不一致');
  121. return false;
  122. }
  123. return true;
  124. }
  125. </script>
  126. <h2>登录表单</h2>
  127. <form action="http://www.sencorsta.com:7779/user/loginAccount" method="post">
  128. <label for="account">账号:</label>
  129. <input type="text" id="account" name="account" required><br>
  130. <label for="password">密码:</label>
  131. <input type="password" id="password" name="password" required><br>
  132. <button type="submit">提交</button>
  133. </form>
  134. <h2>多文件上传</h2>
  135. <form id="uploadForm" action="http://www.sencorsta.com:7780/idsOos/uploadFile" method="post"
  136. enctype="multipart/form-data">
  137. <!-- 添加上传文件的input -->
  138. <input type="file" name="files" id="fileInput" multiple>
  139. <label for="token">token:</label>
  140. <input type="text" id="token" name="token" required><br>
  141. <label for="path">路径(默认/):</label>
  142. <input type="text" id="path" name="path"><br>
  143. <label for="isPublic">是否公开:</label>
  144. <input type="checkbox" id="isPublic" name="isPublic">
  145. <br>
  146. <button type="submit">上传</button>
  147. </form>
  148. <h2>查看我的文件</h2>
  149. <form id="myFilesForm" action="http://www.sencorsta.com:7780/idsOos/myFiles" method="post">
  150. <label for="token">token:</label>
  151. <input type="text" id="token" name="token" required><br>
  152. <label for="uuid">唯一id:</label>
  153. <input type="text" id="uuid" name="uuid"><br>
  154. <label for="fileName">文件名搜索:</label>
  155. <input type="text" id="fileName" name="fileName"><br>
  156. <label for="path">路径搜索:</label>
  157. <input type="text" id="path" name="path"><br>
  158. <br>
  159. <button type="submit">搜索</button>
  160. </form>
  161. <code>本网站基于IDS2.0开发,仅供演示和学习使用。更多资源请访问 <a href="http://www.sencorsta.com:2203/ice/Ids" target="_blank">官方网站</a> 或 <a
  162. href="http://www.sencorsta.com:2203/ice/Ids" target="_blank">社区论坛</a>。</code>
  163. </body>
  164. </html>