something that changes,for exanple:register.jsp

This commit is contained in:
shuyouxiangming 2013-07-11 08:53:47 +08:00
parent 833c72f3df
commit 56a41923e2
34 changed files with 1486 additions and 0 deletions

32
.classpath Normal file
View File

@ -0,0 +1,32 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" output="target/classes" path="src/main/java">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="src" output="target/test-classes" path="src/test/java">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
<attributes>
<attribute name="maven.pomderived" value="true"/>
<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
</attributes>
</classpathentry>
<classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="output" path="target/classes"/>
</classpath>

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/target

42
.project Normal file
View File

@ -0,0 +1,42 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>bench4q-web</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.wst.jsdt.core.javascriptValidator</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.wst.common.project.facet.core.builder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.wst.validation.validationbuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.m2e.core.maven2Builder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.m2e.core.maven2Nature</nature>
<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
<nature>org.eclipse.wst.jsdt.core.jsNature</nature>
</natures>
</projectDescription>

12
.settings/.jsdtscope Normal file
View File

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src/main/webapp"/>
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.JRE_CONTAINER"/>
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.WebProject">
<attributes>
<attribute name="hide" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.baseBrowserLibrary"/>
<classpathentry kind="output" path=""/>
</classpath>

View File

@ -0,0 +1,8 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
org.eclipse.jdt.core.compiler.compliance=1.5
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
org.eclipse.jdt.core.compiler.source=1.5

View File

@ -0,0 +1,4 @@
activeProfiles=
eclipse.preferences.version=1
resolveWorkspaceProjects=true
version=1

View File

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<project-modules id="moduleCoreId" project-version="1.5.0">
<wb-module deploy-name="bench4q-web">
<wb-resource deploy-path="/" source-path="/target/m2e-wtp/web-resources"/>
<wb-resource deploy-path="/" source-path="/src/main/webapp" tag="defaultRootSource"/>
<property name="context-root" value="bench4q-web"/>
<property name="java-output-path" value="/bench4q-web/target/classes"/>
</wb-module>
</project-modules>

View File

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<faceted-project>
<fixed facet="wst.jsdt.web"/>
<installed facet="java" version="1.5"/>
<installed facet="jst.web" version="2.3"/>
<installed facet="wst.jsdt.web" version="1.0"/>
</faceted-project>

View File

@ -0,0 +1 @@
org.eclipse.wst.jsdt.launching.baseBrowserLibrary

View File

@ -0,0 +1 @@
Window

View File

@ -0,0 +1,2 @@
disabled=06target
eclipse.preferences.version=1

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,23 @@
@CHARSET "UTF-8";
.regdiv1 {
style="margin:20px auto;
width:958px; height:600px; background-color:#efefef">
}
.regtd1{
style="width:20%;
height:50px;
text-align:right;
background-color:#efefef;
}
.regtd2{
style="text-align:center;
background-color:#efefef;"
colspan="2"
}

View File

@ -0,0 +1,139 @@
body,html,h3,div,p,tr,td,input,ul,li,h2,h4{ margin:0; padding:0;}
body{ font-size:13px; font-family:Verdana, Geneva, sans-serif; color:#000000;}
html,body{ }
.fl{ float:left;_display:inline;}
.fr{ float:right;_display:inline;}
li{ list-style:none;}
a{ text-decoration:none;}
a:hover{ text-decoration:underline;}
.wrapper{ width:1003px; margin:0 auto; }
.myclear{ overflow:hiddenl;zoom:1;}
.header{ height:117px; width:1003px; background:url(../images/banner.jpg) no-repeat 0 0; border-bottom:2px solid #A4CBEC;}
.sidebar{ width:127px;}
/*header*/
.header{ font-size:14px; color:#fff; position:relative;}
.top_nav{ margin-top:3px; margin-right:3px;}
.top_nav a{ color:#fff; margin-left:15px; text-decoration:underline;}
.topnav2{ position:absolute;right:3px; bottom:3px;}
/*right*/
.main{ background:url(../images/mainbg.jpg) repeat-y 0 0;overflow:hidden;zoom:1; border-bottom:2px solid #A4CBEC; padding-bottom:60px;}
/*sidebar*/
.sidebar{ }
.sidebar ul{ margin-left:13px; padding-top:25px;}
.sidebar ul li{ margin-bottom:3px;}
.sidebar ul li a{ display:block; width:114px; height:35px; line-height:300px;overflow:hidden;zoom:1; background:url(../images/nav.gif) no-repeat;}
.sidebar ul li.n_01 a{ background-position:0 0;}
.sidebar ul li.n_02 a{ background-position:0 -38px;}
.sidebar ul li.n_03 a{ background-position:0 -76px;}
.sidebar ul li.n_04 a{ background-position:0 -114px;}
.sidebar ul li.n_05 a{ background-position:0 -152px;}
.sidebar ul li.n_01 a.cur{ background-position:-121px 0;}
.sidebar ul li.n_02 a.cur{ background-position:-121px -38px;}
.sidebar ul li.n_03 a.cur{ background-position:-121px -76px;}
.sidebar ul li.n_04 a.cur{ background-position:-121px -114px;}
.sidebar ul li.n_05 a.cur{ background-position:-121px -152px;}
/*sidebar2*/
.main2{ background:url(../images/mainbg2.jpg) repeat-y 0 0; overflow:hidden;zoom:1; border-bottom:2px solid #A4CBEC;}
.sidebar2{ }
.sidebar2 ul{ margin-left:13px; padding-top:25px;}
.sidebar2 ul li{ display:block; margin-bottom:4px;}
.sidebar2 ul li a{ display:block; width:84px; height:26px; line-height:300px;overflow:hidden;zoom:1; background:url(../images/nav.gif) no-repeat;}
.sidebar2 ul li.n_01 a{ background-position:-13px -215px;}
.sidebar2 ul li.n_02 a{ background-position:-13px -245px;}
.sidebar2 ul li.n_03 a{ background-position:-13px -275px;}
.sidebar2 ul li.n_01 a.cur{ background-position:-151px -215px;}
.sidebar2 ul li.n_02 a.cur{ background-position:-151px -245px;}
.sidebar2 ul li.n_03 a.cur{ background-position:-151px -275px;}
/*right*/
.right{ width:866px; margin-left:10px; padding-top:20px;}
.r_menu{ height:35px; padding-left:20px;background:url(../images/r_nav_bg.jpg) repeat-x 0 30px;}
.r_menu a{display:inline-block; float:left;margin-right:10px;margin-top:3px; background:url(../images/bg.gif) no-repeat 0 -100px; font-size:16px; font-weight:bold; color:#688DCF;height:27px;line-height:27px;}
.r_menu a:hover,.r_menu a.cur{ text-decoration:none; background-position:0 -154px; color:#fff;height:31px;line-height:31px; margin-top:0;}
.r_menu a:hover span,.r_menu a.cur span{ background-position:right -186px;height:31px; cursor:pointer;}
.r_menu a span{display:inline-block; padding:0 15px;background:url(../images/bg.gif) no-repeat;height:27px;line-height:27px;}
.r_menu a span{ background-position:right -127px;}
/*r_main*/
.r_main .tb{ width:800px; margin-left:20px; margin-top:10px;}
.r_main .tb td{ padding:5px 5px 7px 0; font-size:14px; text-align:right;}
.r_main .tb td select{ width:110px; height:20px; padding:2px;border:1px solid #A4CBEC;}
.search_box{ width:290px; height:18px; line-height:18px; border:1px solid #A4CBEC;}
.r_main .tb td.text_left{ text-align:left;}
/*btn*/
.btn_bar{ width:800px; margin-left:20px; margin-top:30px;}
.btn_bar a{ margin-right:10px; line-height:21px;}
.btn_blue a{display:inline-block;background:url(../images/bg.gif) no-repeat 0 0; color:#fff; font-size:14px; text-decoration:none;}
.btn_blue a span{ display:inline-block; height:21px; line-height:21px;padding:2px 12px;background:url(../images/bg.gif) right -25px;cursor:pointer;}
.orange a{display:inline-block;background:url(../images/bg.gif) no-repeat 0 -50px; color:#fff; font-size:14px; text-decoration:none;}
.orange a span{ display:inline-block;cursor:pointer;height:21px;line-height:21px; padding:2px 12px;background:url(../images/bg.gif) right -75px;}
.tb2{ border-collapse:collapse; margin-top:30px; margin-left:20px; width:800px;}
.tb2 th{ background:#D4EEFF; color:#676664; font-size:14px; padding:7px 4px; border:1px solid #fff;}
.tb2 td{ border:1px solid #fff; background:#F5F5F5; padding:7px 4px;}
.pagebar{ margin-top:10px; margin-left:20px; font-size:14px;}
.pagebar select{ border:1px solid #7F9DB9; width:50px; height:20px; margin-right:2px;}
.pagebar span{ margin-right:10px;}
.p_next em{ font-style:normal;}
.p_next em{ margin:0 5px;}
.p_next em a{ color:#3D6DC2;}
.pagebar em{ margin-left:10px;}
.pagebar em span{ font-style:normal; margin-right:0;}
.page_text{ border:1px solid #7F9DB9; padding:3px; width:20px; margin:0 5px;line-height:21px;}
.gray{ color:#999999;}
.box1{ margin-bottom:25px; margin-left:20px; font-size:14px;}
.box1 p{ line-height:28px;}
.p1{ text-indent:13px;}
/*tb_t1*/
.tb_t1 input{width:170px; height:18px; line-height:18px; border:1px solid #A4CBEC;}
.top_tab{ height:30px; margin-top:15px;}
.top_tab .btn_blue a{ margin-left:10px;}
.tb3 .btn_blue a{ margin-left:5px;}
.tb3{ font-size:14px; text-align:left;}
.tb3 th{ background:#D4EEFF; color:#666563; padding:4px 10px;}
.tb3 td{ padding:4px;padding:4px 10px;}
.tb3 .odd td{ background:#F5F5F5;}
.r_main .tb_btn td{ padding-top:20px;}
.r_main .tb_btn td .orange{ margin-right:20px;}
.tb_t3 tr td input{width:108px; height:18px; border:1px solid #A4CBEC;}
.tips,.tit1{font-size:14px; margin-bottom:5px; margin-left:20px;}
.tit1{ color:#666666; margin-top:20px; }
.btn_bar2{ margin:20px 0 0 20px;}
.btn_bar2 .orange{ margin-right:20px;}
/*m_main*/
.m_main{ font-size:14px; width:630px; margin-left:80px; margin-top:30px;}
.m_main p{ color:#FE7701; margin-bottom:5px;}
.m_main .tb_t3 td{ padding:10px 0;}
.m_main .tb_t3 .p_color a{ color:#3E6CC4;}
.m_main .tb_t3 select{ border:1px solid #A4CBEC;height:20px;padding:2px;width:110px;}
/*m_r_right*/
.m_r_right{ margin:5px 0 0 10px; width:886px; /*overflow:hidden;*/ padding-bottom:60px;}
.m_r_right h2{ text-align:center; font-size:18px; text-align:center;font-weight:bold; color:#2B7CCB;}
.paper_tit{ background:#D4EEFF; color:#656764; font-size:14px; height:24px; line-height:24px; padding-left:10px; margin-bottom:7px;}
.test_time{ color:#999; font-size:14px; line-height:28px; text-align:center; margin-bottom:5px;}
.m_r_right .btn_blue{ margin-top:30px;}
.test_box{ font-size:14px;}
.test_box h4{ font-size:14px; font-weight:normal; line-height:30px; margin-bottom:5px;}
.test_box p span{ margin-right:30px;}
.test_box p{ line-height:28px;}
.test_box p input{ margin-right:4px;}

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.1 KiB

View File

@ -0,0 +1,59 @@
function clean() {
document.getElementsByName('userName')[0].value="";
document.getElementsByName('password')[0].value="";
document.getElementsByName('retype_password')[0].value="";
}
function password_validation() {
var null_flag=0;
var user_name = document.getElementsByName('userName')[0].value;
var retype_pwd = document.getElementsByName('retype_password')[0].value;
var input_pwd = document.getElementsByName('password')[0].value;
if(user_name==""){
$('#usrmsg').show();
document.getElementsByName('userName')[0].value="";
document.getElementsByName('userName')[0].style.border="1px solid red";
null_flag=1;}
if(input_pwd==""){
$('#pwdmsg').show();
document.getElementsByName('password')[0].value="";
document.getElementsByName('password')[0].style.border="1px solid red";
null_flag=1;}
if((null_flag==0)&&(input_pwd==retype_pwd)) fm.submit();
else{
$('#rtpmsg').show();
document.getElementsByName('retype_password')[0].value="";
document.getElementsByName('retype_password')[0].style.border="1px solid red";
}
}
function form_validation(name) {
var input_value = document.getElementsByName(name)[0].value;
var regx=/^[a-zA-Z0-9]+$/;
if(!regx.test(input_value)){
alert(name + " must be number!");
if(name=="username"){
$('#usrmsg').show();
document.getElementsByName('userName')[0].value="";
document.getElementsByName('userName')[0].style.border="1px solid red";
}
else if(name=="password"){
$('#pwdmsg').show();
document.getElementsByName('password')[0].value="";
document.getElementsByName('password')[0].style.border="1px solid red";
}
}
else
{
document.getElementsByName(name)[0].style.border="1px solid #ddd";
if(name=="username") $('#usrmsg').hide();
else if(name=="password") $('#pwdmsg').hide();
//else $('#rtpmsg').hide();
}
}

View File

@ -0,0 +1,37 @@
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<style type="text/css" src="css/register.css"> </style>
<style type="text/css" src="css/common.css"> </style>
<script type="text/javascript" src="js/register.js"></script>
<title>register</title>
</head>
<body>
<img alt="GitHub" class="github-logo-4x" src="images/register/bench4q-1.png" height="30">
<img alt="GitHub" class="github-logo-4x-hover" src="images/register/bench4q-2.png" height="30">
<li class="login"><a href="userlogin.jsp">login</a></li>
<h1>
Bench4Q is a new methodology for QoS benchmarking
</h1>
<table class="table1">
<img src="images/register/tips.jpg"/>
<img src="images/register/bench4qblog.jpg"/>
</table>
<form id="fm" name="fm" action="Regester/register" method="post">
<p> <img src="images/register/username.jpg"/> UserName; <input type="text" name="userName" onChange="javascript:form_validation('userName')" /><p>
<p> <img src="images/register/password.jpg"/> Password; <input type="text" name="password" onChange="javascript:form_validation('password')" /><p>
<p> <img src="images/register/retype.jpg"/> Retype Password; <input type="text" name="retype_password" /><p>
<input type="image" name="Submit" value="Register" src="images/register/submit.jpg" onMouseOver="this.src='images/register/submiton.jpg'" onMouseOut="this.src='images/register/submit.jpg'" onClick="javascript:password_validation();return false" /> <img name="clear" value="clear" src="images/register/clear.jpg" onClick="javascript:clean();return false" />
</form>
</body>
</html>

View File

@ -0,0 +1,12 @@
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
</body>
</html>