活动页面添加参赛作品瀑布流
[PumpkinHouse.git] / PumpkinHouseWeb / Account / Register.aspx
blob09f9d8810eb6e6daf22890817320c7b63087b91a
1 <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Register.aspx.cs" Inherits="PumpkinHouse.Account.Register"\r
2     MasterPageFile="~/Site.Master" %>\r
3 \r
4 <asp:Content ContentPlaceHolderID="HeadContent" runat="server">\r
5     <script src="/Scripts/account.js" language="javascript" type="text/javascript"></script>\r
6     <script type="text/javascript" language="javascript" >\r
7         function doAction() {\r
8             $('#email').watermark('这是你的登录账号哦!');\r
9             $('#nickname').watermark('中英文皆可,14个字符/汉字');\r
10             $('#password').watermark('6-16位数字/字母 ');\r
12             configureRegistrationValidation();\r
14             $("#nickname").focus(function () {\r
15                 $("#nickname").css({"background-color":"#fff","color":"#5d5d5d"});\r
16             });\r
17             $("#nickname").blur(function (e) {\r
18                 var nameVal = $(e.target).val()\r
19                 if (nameVal.length == 0) {\r
20                     $("#nickname").css({ "background-color": "#F8F8F8", "color": "#c1c1c1" });\r
21                 }else{\r
22                     $("#nickname").css({ "background-color": "#fff", "color": "#5d5d5d" });\r
23                 }\r
24             });\r
26             $("#email").focus(function () {\r
27                 $("#email").css({ "background-color": "#fff", "color": "#5d5d5d" });\r
28             });\r
29             $("#email").blur(function (e) {\r
30                 var nameVal = $(e.target).val()\r
31                 if (nameVal.length == 0) {\r
32                     $("#email").css({ "background-color": "#F8F8F8", "color": "#c1c1c1" });\r
33                 } else {\r
34                     $("#email").css({ "background-color": "#fff", "color": "#5d5d5d" });\r
35                 }\r
36             });\r
38             $("#password").focus(function () {\r
39                 $("#password").css({ "background-color": "#fff", "color": "#5d5d5d" });\r
40             });\r
41             $("#password").blur(function (e) {\r
42                 var nameVal = $(e.target).val()\r
43                 if (nameVal.length == 0) {\r
44                     $("#password").css({ "background-color": "#F8F8F8", "color": "#c1c1c1" });\r
45                 } else {\r
46                     $("#password").css({ "background-color": "#fff", "color": "#5d5d5d" });\r
47                 }\r
48             });\r
50         }\r
52     </script>\r
53 </asp:Content>\r
54 <asp:Content ContentPlaceHolderID="MainContent" runat="server">\r
55     <style type="text/css">\r
56         .error{color:Red; font-size:16px; display:block; height:20px; font-weight:100; padding-top:20px; }\r
57     </style>\r
59     <form id="registerForm" action="">\r
60         <div class="Register">\r
61             <h1 class="Register-title">使用其他账号快速注册</h1>\r
62             <div class="fast-login-Btn">\r
63                 <ul>\r
64                     <li><a href="/Account/QQAuth.aspx?request=1" class="btn-qq"></a></li>\r
65                     <li><a href="/Account/TaobaoAuth.aspx?request=1" class="btn-taobao"></a><a href="/Account/TaobaoAuth.aspx?request=1"></a></li>\r
66                     <li><a href="/Account/SinaAuth.aspx?request=1" class="btn-sinaweibo"></a></li>\r
67                     <li><a href="/Account/QQWeiboAuth.aspx?request=1" class="btn-qqweibo"></a></li>\r
68                 </ul>\r
69             </div>\r
70     \r
71             <h1 class="Register-title">邮箱注册</h1>\r
72             <div class="email-login">\r
73                 <ul>\r
74                     <li><span>昵称</span><input type="text" value="" id="nickname" name="nickname" remote="/PublicService/AccountService.svc/ajax/IsNicknameAvailable" class="required" style="font-size:17px;" /></li>\r
75                     <li><span>邮箱</span><input type="text" value="" id="email" name="email" class="email required" remote="/PublicService/AccountService.svc/ajax/IsEmailAvailable" style="font-size:17px;"/></li>\r
76                     <li><span>密码</span><input type="password" value="" id="password" name="password" class="required" style="font-size:17px;" /></li>\r
77                 </ul>\r
78             </div>\r
79             <div class="submitBox"><input type="submit" value="注册" class="RgSure" </div>\r
81         </div>\r
82     </form>\r
83 </asp:Content>\r