?? manage.jsp
字號:
<%@ page errorPage="ErrorPage.jsp" %>
<%@ page contentType="text/html;charset=gb2312" %>
<HTML>
<BODY>
<jsp:useBean id="thisUser" scope="session" class="chatroom.oneUser" />
<jsp:useBean id="thischatroom" scope="application" class="chatroom.ChatRoom" />
<%
if (thisUser.getUserName() != null)
{
%>
<form method="post" action="../servlet/chatroom.Chat" target="onechat">
<table width="699" border="0" cellspacing="0" cellpadding="5" align="center">
<tr>
<td>
<p><font size="2" >聊天內容:
<input type="text" name="txtword" size="40" maxlength="40">
對象:
<select name="seluser">
<option value="all" selected>大家</option>
<%
int intchatroom=Integer.parseInt(thisUser.getUserPosion());
int i;
for(i=1;i<=thischatroom.returnUserCount(intchatroom);i++){
String theUserName=thischatroom.returnUserName(intchatroom,i);
String theUserId=thischatroom.returnUserId(intchatroom,i);
if (!thisUser.getUserId().equals(theUserId))
out.print("<option value=\""+theUserId+"\">"+theUserName+"</option>");
}
%>
</select>
顏色:
<select name="selcolor">
<option value="red">紅色</option>
<option value="blue">藍色</option>
</select>
</p><p>表情:
<select name="selface">
<option value="0" selected>無</option>
<option value="1">笑</option>
</select>
聊天刷新:
<select name="selre1">
<option value="5"
<%
if (thisUser.getRetimeChat(intchatroom)==5) out.print("selected");
%>
>5秒</option>
<option value="10"
<%
if (thisUser.getRetimeChat(intchatroom)==10) out.print("selected");
%>
>10秒</option>
<option value="20"
<%
if (thisUser.getRetimeChat(intchatroom)==20) out.print("selected");
%>
>20秒</option>
<option value="30"
<%
if (thisUser.getRetimeChat(intchatroom)==30) out.print("selected");
%>
>30秒</option>
<option value="60"
<%
if (thisUser.getRetimeChat(intchatroom)==60) out.print("selected");
%>
>1分鐘</option>
</select>
用戶刷新:
<select name="selre2">
<option value="5"
<%
if (thisUser.getRetimeUser(intchatroom)==5) out.print("selected");
%>
>5秒</option>
<option value="10"
<%
if (thisUser.getRetimeUser(intchatroom)==10) out.print("selected");
%>
>10秒</option>
<option value="20"
<%
if (thisUser.getRetimeUser(intchatroom)==20) out.print("selected");
%>
>20秒</option>
<option value="30"
<%
if (thisUser.getRetimeUser(intchatroom)==30) out.print("selected");
%>
>30秒</option>
<option value="60"
<%
if (thisUser.getRetimeUser(intchatroom)==60) out.print("selected");
%>
>1分鐘</option>
</select>
<input type="checkbox" name="radprivate" value="yes">
私聊
<input type="submit" name="cmdok" value="發送">
<a href="Bye" target="_parent">離開聊天室</a>
<a href="manage.jsp">刷新</a>
</font></p>
</td>
</tr>
</table>
<input type="hidden" name="isret" value="no">
</form>
<% } else out.print("尚未登錄,進入<a href='/mytest/jsp/login.jsp'>用戶登錄</a>");
%>
</BODY>
</HTML>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -