<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <title>無標題文檔</title> <script src="temp/js/jquery-1.6.4.js" type="text/javascript"></script> <script type="text/javascript"> // JavaScript Document $(function(){ $(".cz").click(function(){ $(":text").val(""); $(":password").val(""); }); $(".zc").click(function(){ if($(":text").val()==""||$(":password").val()==""){ alert("不允許為空白!"); return false; } var b=new Array(); $(":input").each(function(i){ if(i<=1){ b[i]=$(this).val(); } }); $.get( "reg.php", {"b":b, "time":Math.random() }, function(d){ if(d=="ok"){
window.location="index.php"; } } ); }) $(".tuichu").click(function(){ $.get( "reg.php", {"exit":"0", "ddd":Math.random() },function(d){
if(d=="ok"){ window.location="index.php"; } } ); }) }); </script> </head> <body> <table width="350" height="100%" border="0" align="center"> <tr height="180"> <th scope="row"> </th> </tr> <tr> <th scope="row"><table width="395" border="0" cellspacing="1" bgcolor="#999999"> <tr> <th height="28" colspan="2" bgcolor="#CCCCCC" >已登入</th> </tr> <tr bgcolor="#FFFFFF"> <th width="28%" height="28" scope="row" align="right">使用者名稱:</th> <td height="28" align="left"><?php echo iconv("utf-8","gbk",$_SESSION['n']); ?> </td> </tr> <tr bgcolor="#FFFFFF"> <th height="27" scope="row" align="right">密 碼:</th> <td height="27" align="left"><?php echo $_SESSION['m']; ?> </td> </tr> <tr> <th height="28" colspan="2" bgcolor="#FFFFFF" ><input class="tuichu" value="退出" type="button" /></th> </tr> </table></th> </tr> <tr> <th scope="row"> </th> </tr> </table> </body> </html> |