fix the bug in homepage.jsp :tow divs in a line
This commit is contained in:
parent
9998992b2d
commit
4206b6ec26
|
@ -19,33 +19,25 @@ public class SessionFilter extends OncePerRequestFilter {
|
||||||
|
|
||||||
// 请求的uri
|
// 请求的uri
|
||||||
String uri = request.getRequestURI();
|
String uri = request.getRequestURI();
|
||||||
System.out.println("start url filter");
|
|
||||||
System.out.println(uri);
|
|
||||||
String user = (String) request.getSession().getAttribute("username");
|
String user = (String) request.getSession().getAttribute("username");
|
||||||
if (user == null || user.equals("")) {
|
if (user == null || user.equals("")) {
|
||||||
// uri中包含background时才进行过滤
|
// uri中包含background时才进行过滤
|
||||||
for (String s : notFilter) {
|
for (String s : notFilter) {
|
||||||
if (uri.contains(s)) {
|
if (uri.contains(s)) {
|
||||||
filterChain.doFilter(request, response);
|
filterChain.doFilter(request, response);
|
||||||
System.out.println("end the filter");
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (uri.equals("/")) {
|
if (uri.equals("/")) {
|
||||||
filterChain.doFilter(request, response);
|
filterChain.doFilter(request, response);
|
||||||
System.out.println("end the filter");
|
|
||||||
return;
|
return;
|
||||||
} else {
|
} else {
|
||||||
System.out.println("redirect to login.jsp");
|
|
||||||
response.sendRedirect("index.jsp");
|
response.sendRedirect("index.jsp");
|
||||||
System.out.println("end the filter");
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
filterChain.doFilter(request, response);
|
filterChain.doFilter(request, response);
|
||||||
System.out.println("the user is:"+user);
|
|
||||||
System.out.println("end the filter");
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -44,3 +44,21 @@ disply:none;
|
||||||
margin-top : 30px;
|
margin-top : 30px;
|
||||||
margin-left:200px;
|
margin-left:200px;
|
||||||
}
|
}
|
||||||
|
.message-left{
|
||||||
|
font-size:20px;
|
||||||
|
text-align:center;
|
||||||
|
width:32%;
|
||||||
|
height:168px;
|
||||||
|
float:left;
|
||||||
|
|
||||||
|
}
|
||||||
|
.message-right{
|
||||||
|
padding-left: 8px;
|
||||||
|
padding-top:8px;
|
||||||
|
text-align:left;
|
||||||
|
float: right;
|
||||||
|
width: 65%;
|
||||||
|
height:160px;
|
||||||
|
font-size:13px;
|
||||||
|
|
||||||
|
}
|
|
@ -20,7 +20,7 @@
|
||||||
<link href='css/opa-icons.css' rel='stylesheet'>
|
<link href='css/opa-icons.css' rel='stylesheet'>
|
||||||
|
|
||||||
<link rel="shortcut icon" href="img/bench4q-1.ico">
|
<link rel="shortcut icon" href="img/bench4q-1.ico">
|
||||||
|
<link href="bench4q-css/bench4q.css" rel="stylesheet" >
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
@ -30,10 +30,9 @@
|
||||||
<div class="container-fluid">
|
<div class="container-fluid">
|
||||||
<div class="row-fluid">
|
<div class="row-fluid">
|
||||||
|
|
||||||
|
<div id="content" class="span10 center ">
|
||||||
<div id="content" class="span10 center">
|
|
||||||
<!-- content starts -->
|
<!-- content starts -->
|
||||||
<div class="sortable row-fluid">
|
<div class="sortable row-fluid ui-sortable">
|
||||||
<a data-rel="tooltip" class="well span4 top-block" href="test.jsp">
|
<a data-rel="tooltip" class="well span4 top-block" href="test.jsp">
|
||||||
<span class="icon32 icon-blue icon-plus"></span>
|
<span class="icon32 icon-blue icon-plus"></span>
|
||||||
<div>
|
<div>
|
||||||
|
@ -55,18 +54,20 @@
|
||||||
|
|
||||||
<div class="row-fluid">
|
<div class="row-fluid">
|
||||||
<div class="box span12">
|
<div class="box span12">
|
||||||
<div class="box-introduction">
|
<div class="box-introduction" ">
|
||||||
<div class="alert1 alert-error"
|
|
||||||
style="float: left; width: 278px;">
|
</div>
|
||||||
|
<div class="message-left" style="background-color: #eddbe3">
|
||||||
<br />
|
<br />
|
||||||
<fmt:message key="creat" />
|
<fmt:message key="creat" />
|
||||||
<br /> <br />
|
<br /> <br />
|
||||||
<fmt:message key="testplan" />
|
<fmt:message key="testplan" />
|
||||||
<br /> <br /> <br />
|
<br /> <br /> <br /></br>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="alert2 alert-info"
|
<div class="message-right"
|
||||||
style="float: right; width: 550px;">
|
|
||||||
|
style="background-color: #eddbe3">
|
||||||
<fmt:message key="creattestplanhead" />
|
<fmt:message key="creattestplanhead" />
|
||||||
<br /> <br />
|
<br /> <br />
|
||||||
<fmt:message key="creattestplancontent1" />
|
<fmt:message key="creattestplancontent1" />
|
||||||
|
@ -74,10 +75,9 @@
|
||||||
<fmt:message key="creattestplancontent2" />
|
<fmt:message key="creattestplancontent2" />
|
||||||
<br />
|
<br />
|
||||||
<fmt:message key="creattestplancontent3" />
|
<fmt:message key="creattestplancontent3" />
|
||||||
<br /> <br />
|
<br /> <br /></br>
|
||||||
</div>
|
</div>
|
||||||
<div style="clear: both;"></div>
|
<div class="clearfix"></div>
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<!--/span-->
|
<!--/span-->
|
||||||
|
@ -86,16 +86,15 @@
|
||||||
<div class="row-fluid">
|
<div class="row-fluid">
|
||||||
<div class="box span12">
|
<div class="box span12">
|
||||||
<div class="box-introduction"></div>
|
<div class="box-introduction"></div>
|
||||||
<div class="alert1 alert-success"
|
<div class="message-left"
|
||||||
style="float: left; width: 278px;">
|
style="background-color:#669533">
|
||||||
<br />
|
<br />
|
||||||
<fmt:message key="script" />
|
<fmt:message key="script" />
|
||||||
<br /> <br /> <br />
|
<br /> <br /> <br />
|
||||||
<fmt:message key="management" />
|
<fmt:message key="management" />
|
||||||
<br /> <br /> <br />
|
<br /> <br /> <br />
|
||||||
</div>
|
</div>
|
||||||
<div class="alert2 alert-info"
|
<div class="message-right" style="background-color:#669533">
|
||||||
style="float: right; width: 550px;">
|
|
||||||
|
|
||||||
<fmt:message key="scriptmanagementhead" />
|
<fmt:message key="scriptmanagementhead" />
|
||||||
<br /> <br />
|
<br /> <br />
|
||||||
|
@ -106,14 +105,16 @@
|
||||||
<fmt:message key="scriptmanagementcontent3" />
|
<fmt:message key="scriptmanagementcontent3" />
|
||||||
<br /> <br /> <br />
|
<br /> <br /> <br />
|
||||||
</div>
|
</div>
|
||||||
|
<div class="clearfix"></div>
|
||||||
</div>
|
</div>
|
||||||
<!--/span-->
|
<!--/span-->
|
||||||
</div>
|
</div>
|
||||||
<!--/row-->
|
<!--/row-->
|
||||||
|
|
||||||
<div class="row-fluid">
|
<div class="row-fluid">
|
||||||
<div class="box span12">
|
<div class="box span12">
|
||||||
<div class="alert1 alert-heading"
|
<div class="message-left"
|
||||||
style="float: left; width: 278px;">
|
style=" background-color: #8bc5e8">
|
||||||
<br />
|
<br />
|
||||||
<fmt:message key="test" />
|
<fmt:message key="test" />
|
||||||
<br /> <br /> <br />
|
<br /> <br /> <br />
|
||||||
|
@ -121,8 +122,8 @@
|
||||||
<br /> <br /> <br />
|
<br /> <br /> <br />
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="alert2 alert-info"
|
<div class="message-right"
|
||||||
style="float: right; width: 550px;">
|
style="background-color: #8bc5e8">
|
||||||
|
|
||||||
<fmt:message key="testhistoryhead" />
|
<fmt:message key="testhistoryhead" />
|
||||||
<br /> <br />
|
<br /> <br />
|
||||||
|
@ -133,10 +134,11 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="box-introductiont"></div>
|
<div class="box-introductiont"></div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="clearfix"></div>
|
||||||
<!--/span-->
|
<!--/span-->
|
||||||
</div>
|
</div>
|
||||||
<!--/row-->
|
<!--/row-->
|
||||||
<div class="clearfix"></div>
|
|
||||||
|
|
||||||
<!-- content ends -->
|
<!-- content ends -->
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -50,7 +50,7 @@ body {
|
||||||
|
|
||||||
<div class="input-prepend" title="Username" data-rel="tooltip">
|
<div class="input-prepend" title="Username" data-rel="tooltip">
|
||||||
<span class="add-on"><i class="icon-user"></i></span> <input
|
<span class="add-on"><i class="icon-user"></i></span> <input
|
||||||
autofocus class="input-large span10" name="username"
|
autofocus class="input-large span6" name="username"
|
||||||
id="username" type="text" onblur="checkName(this.value)" /> <img
|
id="username" type="text" onblur="checkName(this.value)" /> <img
|
||||||
id="imgName" src="">
|
id="imgName" src="">
|
||||||
</div>
|
</div>
|
||||||
|
@ -58,7 +58,7 @@ body {
|
||||||
|
|
||||||
<div class="input-prepend" title="Password" data-rel="tooltip">
|
<div class="input-prepend" title="Password" data-rel="tooltip">
|
||||||
<span class="add-on"><i class="icon-lock"></i></span> <input
|
<span class="add-on"><i class="icon-lock"></i></span> <input
|
||||||
class="input-large span10" name="password" id="password"
|
autofocus class="input-large span6" name="password" id="password"
|
||||||
type="password" onblur="checkPass(this.value)" /> <img
|
type="password" onblur="checkPass(this.value)" /> <img
|
||||||
id="imgPass" src="">
|
id="imgPass" src="">
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue