| 1 |
Index: src/webapp/WEB-INF/templates/login/html/login.jsp |
| 2 |
=================================================================== |
| 3 |
--- src/webapp/WEB-INF/templates/login/html/login.jsp (リビジョン 519203) |
| 4 |
+++ src/webapp/WEB-INF/templates/login/html/login.jsp (作業コピー) |
| 5 |
@@ -19,13 +19,92 @@ |
| 6 |
<fmt:setBundle basename="org.apache.jetspeed.login.resources.LoginViewResources" /> |
| 7 |
|
| 8 |
<html> |
| 9 |
-<body onLoad='document.forms["login"].submit();'> |
| 10 |
-<form id='login' method='POST' action='<%= response.encodeURL("j_security_check") %>'> |
| 11 |
-<input type='hidden' name='j_username' value='<%= session.getAttribute(LoginConstants.USERNAME) %>'/> |
| 12 |
-<input type='hidden' name='j_password' value='<%= session.getAttribute(LoginConstants.PASSWORD) %>'/> |
| 13 |
-<noscript> |
| 14 |
-<input type='submit' value="<fmt:message key="login.button"/>"/> |
| 15 |
-</noscript> |
| 16 |
-</form> |
| 17 |
+<head> |
| 18 |
+<title><fmt:message key="login.button"/></title> |
| 19 |
+<style> |
| 20 |
+body { |
| 21 |
+ margin:0px; |
| 22 |
+ padding:0px; |
| 23 |
+ background-color:#ffffff; |
| 24 |
+} |
| 25 |
+#main { |
| 26 |
+ width:300px; |
| 27 |
+ position:absolute; |
| 28 |
+ top:40%; |
| 29 |
+ left:50%; |
| 30 |
+ margin-top:-50px; |
| 31 |
+ margin-left:-150px; |
| 32 |
+ border: 2px solid #999999; |
| 33 |
+ text-align:center; |
| 34 |
+} |
| 35 |
+.title { |
| 36 |
+ position:relative; |
| 37 |
+ top:-10px; |
| 38 |
+ text-align:center; |
| 39 |
+ font-size:medium; |
| 40 |
+ background-color:#ffffff; |
| 41 |
+ margin:0px; |
| 42 |
+ padding:5px 10px; |
| 43 |
+ display:inline; |
| 44 |
+ |
| 45 |
+ font-family: Arial, Helvetica, sans-serif; |
| 46 |
+ font-size: 11px; |
| 47 |
+} |
| 48 |
+form { |
| 49 |
+ margin:0px; |
| 50 |
+ padding:5px; |
| 51 |
+ text-align:left; |
| 52 |
+} |
| 53 |
+.data { |
| 54 |
+ height:30px; |
| 55 |
+} |
| 56 |
+.label { |
| 57 |
+ padding:2px; |
| 58 |
+ margin:0px; |
| 59 |
+ width:120px; |
| 60 |
+ text-align:right; |
| 61 |
+ float:left; |
| 62 |
+ |
| 63 |
+ font-family: Arial, Helvetica, sans-serif; |
| 64 |
+ font-size: 11px; |
| 65 |
+} |
| 66 |
+.input { |
| 67 |
+ padding:2px; |
| 68 |
+ margin:0px; |
| 69 |
+ text-align:left; |
| 70 |
+} |
| 71 |
+.input input { |
| 72 |
+ font-family: Arial, Helvetica, sans-serif; |
| 73 |
+ font-size: 11px; |
| 74 |
+} |
| 75 |
+.action { |
| 76 |
+ padding:0px; |
| 77 |
+ margin:0px; |
| 78 |
+ width:290px; |
| 79 |
+ text-align:center; |
| 80 |
+ clear:both; |
| 81 |
+} |
| 82 |
+.action input { |
| 83 |
+ font-family: Arial, Helvetica, sans-serif; |
| 84 |
+ font-size: 11px; |
| 85 |
+} |
| 86 |
+</style> |
| 87 |
+</head> |
| 88 |
+<body> |
| 89 |
+<div id="main"> |
| 90 |
+ <div class="title"><fmt:message key="login.button"/></div> |
| 91 |
+ <form id="login" method="POST" action="<%= response.encodeURL("j_security_check") %>"> |
| 92 |
+ <div class="data"> |
| 93 |
+ <div class="label"><fmt:message key="username.label"/></div> |
| 94 |
+ <div class="input"><input type="text" name="j_username" size="16" /></div> |
| 95 |
+ </div> |
| 96 |
+ <div class="data"> |
| 97 |
+ <div class="label"><fmt:message key="password.label"/></div> |
| 98 |
+ <div class="input"><input type="password" name="j_password" size="16"/></div> |
| 99 |
+ </div> |
| 100 |
+ <div class="action"><input type="submit" value="<fmt:message key="login.button"/>"/></div> |
| 101 |
+ </form> |
| 102 |
+</div> |
| 103 |
</body> |
| 104 |
</html> |
| 105 |
+ |