diff --git a/src/main/webapp/css/register.css b/src/main/webapp/css/register.css index dd68cf55..a586c59b 100644 --- a/src/main/webapp/css/register.css +++ b/src/main/webapp/css/register.css @@ -4,20 +4,86 @@ .regdiv1 { - style="margin:20px auto; - width:958px; height:600px; background-color:#efefef"> + margin:20px auto; + width:958px; + height:600px; + background-color:#efefef; +} + +。regtable1{ + width:100% ; + height:100%; + border:0; +} + +.regtable2{ + width:100%; + height:50px; + border:0; + align:center; + cellpadding:0; + background-color:#efefef +} + +.regtable3{ + width:100%; + height:300px; + border:0; +} + +.regtable4{ + width:100%; + height:400px; + border:0; + cellpadding:0; + background-color:#efefef; +} + +.regtr1{ + height:50px; + width:100%; +} + +.regtr2{ + width:100%; + height:100px; } .regtd1{ - style="width:20%; + width:10%; + height:50px; + text-align:right; +} + +.regtd2{ + width:20%; height:50px; text-align:right; background-color:#efefef; } -.regtd2{ - style="text-align:center; - background-color:#efefef;" - colspan="2" +.regtd3{ + width:25%; + height:50px; + text-align:right; + background-color:#efefef; } +.regtd4{ + width:55%; + height:50px; + text-align:right; + background-color:#efefef; +} + +.regtd5{ + text-align:center; + background-color:#efefef; + colspan:2; + +} + + + + + diff --git a/src/main/webapp/js/register.js b/src/main/webapp/js/register.js index a8dd8f82..4ea249e0 100644 --- a/src/main/webapp/js/register.js +++ b/src/main/webapp/js/register.js @@ -1,22 +1,22 @@ function clean() { - document.getElementsByName('userName')[0].value=""; + 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 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"; + document.getElementsByName('username')[0].value=""; + document.getElementsByName('username')[0].style.border="1px solid red"; null_flag=1;} if(input_pwd==""){ @@ -39,8 +39,8 @@ alert(name + " must be number!"); if(name=="username"){ $('#usrmsg').show(); - document.getElementsByName('userName')[0].value=""; - document.getElementsByName('userName')[0].style.border="1px solid red"; + document.getElementsByName('username')[0].value=""; + document.getElementsByName('username')[0].style.border="1px solid red"; } else if(name=="password"){ diff --git a/src/main/webapp/register.jsp b/src/main/webapp/register.jsp index c2805f8c..51dc3280 100644 --- a/src/main/webapp/register.jsp +++ b/src/main/webapp/register.jsp @@ -16,21 +16,87 @@