?? board3.jsp
字號:
<%
if(session.getAttribute("id") == null || session.getAttribute("id") == "")
{
%>
<form action="../user/log.jsp" name="form1" method="post">
<input type=hidden name="action" value="login">
<input type=hidden name="nextpage" value="login">
<tr>
<td width="150" height="22" background="images/hydl3.jpg">
<div align="center"><font size="2">會員登錄</font></div></td>
</tr>
<tr>
<td background="images/hydl.jpg"> <div align="center">
<table width="150" border="0" cellspacing="0" cellpadding="0">
<tr valign="bottom">
<td width="71" height="28"> <div align="center"><font size="2">會員名:</font></div></td>
<td width="79" height="28"><strong><font size="2">
<input name="username" type="text" size="8">
</font></strong></td>
</tr>
<tr>
<td height="28"> <div align="center"><font size="2">密 碼:</font></div></td>
<td height="28"><strong><font size="2">
<input name="password" type="password" size="8">
</font></strong></td>
</tr>
</table>
</div></td>
</tr>
<tr>
<td height="30" background="images/hydl.jpg">
<div align="center"><strong>
<a href="javascript:judegpwduser()"><img src="images/login1.gif" width="34" height="20"border=0></a>
<a href="../user/register.jsp"><img src="images/reg.gif" width="34" height="20" border=0></a>
</strong>
</div>
</td>
</tr>
<script language="javascript">
function judegpwduser()
{
if(document.form1.username.value==null||document.form1.username.value=="")
{
alert("請輸入用戶名!");
document.form1.username.focus();
return;
}
if(document.form1.password.value==null||document.form1.password.value=="")
{
alert("請輸入密碼!");
document.form1.username.focus();
return;
}
document.form1.submit();
}
</script>
<tr>
<td height="5" background="images/hydl.jpg"> <div align="center"><img src="images/tmtp.gif" width="2" height="2"></div></td>
</tr>
</form>
<%
}
else
{
%>
<tr>
<td width="150" height="22" background="images/hydl3.jpg">
<div align="center"><font size="2">會員信息:</font></div></td>
</tr>
<tr>
<td background="images/hydl.jpg"> <div align="center">
<table width="150" border="0" cellspacing="0" cellpadding="0">
<tr valign="bottom">
<td width="71" height="28"> <div align="center"><font size="2">會員ID:</font></div></td>
<td width="79" height="28"><strong><font size="2">
<%=session.getAttribute("id")%>
</font></strong></td>
</tr>
<tr>
<td height="28"> <div align="center"><font size="2">昵 稱:</font></div></td>
<td height="28"><strong><font size="2">
<%=((String)session.getAttribute("nickname"))%>
</font></strong></td>
</tr>
</table>
</div></td>
</tr>
<%
}
%>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -