Changeset 105 for hadoop-register/index.php
- Timestamp:
- Aug 5, 2009, 5:05:08 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
hadoop-register/index.php
r97 r105 3 3 ?> 4 4 <HTML> 5 <HEAD> 6 <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8"> 7 <TITLE>Hadoop 帳號</TITLE> 8 <SCRIPT LANGUAGE="javascript"> 9 function check_data() 10 { 11 if (document.myForm.user.value.length == 0) 12 { 13 alert("帳號不可空白"); 14 return false; 15 } 16 if (document.myForm.password.value.length == 0) 17 { 18 alert("密碼不可空白"); 19 return false; 20 } 21 myForm.submit(); 22 } 23 </SCRIPT> 24 </HEAD> 5 <HEAD> 6 <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8"> 7 <TITLE>Hadoop 帳號</TITLE> 8 <SCRIPT LANGUAGE="javascript"> 25 9 26 <BODY> 27 <!-- <P ALIGN="center"><IMG SRC="member.jpg"> </P> --> 28 <P ALIGN="center"> Hadoop 帳號申請 </P> 29 <FORM ACTION="check_user_identification.php" METHOD="post" NAME="myForm"> 30 <TABLE WIDTH="40%" ALIGN="center"> 31 <TR> 32 <TD ALIGN="center"> 33 <FONT COLOR="#3333FF">帳號:</FONT> 34 <INPUT NAME="user" TYPE="text" SIZE="15"> 35 </TD> 36 </TR> 37 <TR> 38 <TD ALIGN="center"> 39 <FONT COLOR="#3333FF">密碼:</FONT> 40 <INPUT NAME="password" TYPE="password" SIZE="15"> 41 </TD> 42 </TR> 43 <TR> 44 <TD ALIGN="center"> 45 <INPUT TYPE="button" VALUE="登入" onClick="check_data()"> 46 <INPUT TYPE="reset" VALUE="重填"> 47 </TD> 48 </TR> 49 </TABLE> 50 </FORM> 51 <P ALIGN="center"> 10 // 驗證輸入資料 11 function check_data() 12 { 13 if (document.myForm.user.value.length == 0) 14 { 15 alert("帳號不可空白"); 16 return false; 17 } 18 if (document.myForm.password.value.length == 0) 19 { 20 alert("密碼不可空白"); 21 return false; 22 } 23 myForm.submit(); 24 } 25 26 // 判斷按鍵事件 27 function press(e) 28 { 29 // ie 及 firefox 的事件判斷 30 if (window.event) 31 { 32 e = event; 33 e.which = e.keyCode; 34 } 35 36 // 如果按下 enter 37 if (e.which == 13) 38 { 39 myForm.submit(); 40 } 41 } 42 43 </SCRIPT> 44 </HEAD> 45 <BODY> 46 <P ALIGN="center"> Hadoop 帳號申請 </P> 47 <FORM ACTION="check_user_identification.php" METHOD="post" NAME="myForm"> 48 <TABLE WIDTH="40%" ALIGN="center"> 49 <TR> 50 <TD ALIGN="center"> 51 <FONT COLOR="#3333FF">帳號:</FONT> 52 <INPUT NAME="user" TYPE="text" SIZE="15"> 53 </TD> 54 </TR> 55 <TR> 56 <TD ALIGN="center"> 57 <FONT COLOR="#3333FF">密碼:</FONT> 58 <INPUT NAME="password" TYPE="password" SIZE="15" onKeyPress="press(event)"> 59 </TD> 60 </TR> 61 <TR> 62 <TD ALIGN="center"> 63 <INPUT TYPE="button" VALUE="登入" onClick="check_data()"> 64 <INPUT TYPE="reset" VALUE="重填"> 65 </TD> 66 </TR> 67 </TABLE> 68 </FORM> 69 <P ALIGN="center"> 52 70 <A HREF="new_register.php">新增帳號</A> 53 71 <A HREF="forget_password.php">忘記密碼</A></P> 54 <P ALIGN="center"> </P>55 <P ALIGN="center"> </P>56 <P ALIGN="center">72 <P ALIGN="center"> </P> 73 <P ALIGN="center"> </P> 74 <P ALIGN="center"> 57 75 <? 58 76 $my_mysql = new W_mysql(); … … 61 79 $my_mysql->close($link); 62 80 ?> 63 </P> 64 65 <? // <P ALIGN="center"><a href="administrator.php">管理者登入</a></P> ?> 81 </P> 82 <? // <P ALIGN="center"><a href="administrator.php">管理者登入</a></P> ?> 66 83 </BODY> 67 84 </HTML>
Note: See TracChangeset
for help on using the changeset viewer.