📄 index.jsp
字号:
<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@ page import="java.text.*" %>
<%@ page import="com.Char.*"%>
<%@ page import="com.Jabbar.*"%>
<%@ page import="java.util.*" %>
<%@ page import="javax.servlet.*"%>
<%@ page import="javax.servlet.http.*"%>
<%@ include file="nBase/nConfig.jsp"%>
<%@ include file="nBase/nCookie.jsp"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>盈盈网聊中心主页::<%=nWebName%></title>
<LINK REL="stylesheet" HREF="images/main.css" TYPE="text/css">
<SCRIPT src="js/postcode.js" type=text/javascript></SCRIPT>
</head>
<body>
<div id="top">
<DIV id="logo">
<a href="<%=nDomain%>"><img title="<%=nWebName%>" src="<%=nLogoUrl%>" ></a>
</DIV>
<DIV id="bar">
<jsp:include page="nBase/AD_468x60.jsp"/>
</DIV>
</div>
<DIV class=w id=nav>
<DIV class=l><A href="<%=nDomain%>"><B><%=nWebName%></B></A>->盈盈网聊中心</A>
</DIV>
<DIV class=r id=login>
<%
if(szname==null ||szname.equals("") )
{
%>
<A href="nUser/rigister.jsp">注册</A>
<A href="nUser/login.jsp">登陆</A>
<%
}
else
{
%>
<b>用户:</b><span class=cRed><%=szname%></span> <a href=nUser/login_out.jsp>退出</a>
<%
}
%>
</DIV>
</DIV>
<jsp:useBean id="JMsg" scope="application" class="com.Jabbar.mMsg">
<jsp:setProperty name="JMsg" property="*"></jsp:setProperty>
</jsp:useBean>
<jsp:useBean id="JUser" scope="application" class="com.Jabbar.mUser">
<jsp:setProperty name="JUser" property="*"></jsp:setProperty>
</jsp:useBean>
<%
//response.setCharacterEncoding("UTF8");//设置编码格式
request.setCharacterEncoding("UTF8");//设置编码格式
String msg,username,ip;
//msg=SetCharConvert.unicodeToUTF(request.getParameter("msg"));
//username=SetCharConvert.unicodeToUTF(request.getParameter("username"));
msg=request.getParameter("msg");
username=request.getParameter("username");
ip=request.getParameter("Ip");
if(username == null || username.equals("")){
username="游客";
}
if(msg!=null && !msg.equals("")){
JMsg.AddMsg(msg,username,ip);
}
%>
<div class="c" id="left">
<h1>最新消息发布</h1>
<%=JMsg.getAllMsg()%>
</DIV>
</div>
<div class="c" id="right">
<h1>在线用户列表</h1>
<%=JUser.getAllUser()%>
</div>
<DIV id="post">
<FORM method="post" action="index.jsp" name=FORM >
<DIV id="pl">
<IMG onclick=bold() height=22 alt=粗体字 src="images/bold.gif" width=23 border=0>
<IMG onclick=italicize() height=22 alt=斜体字 src="images/italicize.gif" width=23 border=0>
<IMG onclick=underline() height=22 alt=下划线 src="images/underline.gif" width=23 border=0>
<IMG onclick=center() height=22 alt=居中 src="images/center.gif" width=23 border=0>
<IMG onclick=image() height=22 alt=插入图片 src="images/image.gif" width=23 border=0>
<IMG onclick=code() height=22 alt=插入代码 src="images/code.gif" width=23 border=0>
<IMG onclick=quote() height=22 alt=插入引用 src="images/quote.gif" width=23 border=0>
<BR />
<b>字号:</b>
<SELECT onchange=showsize(this.options[this.selectedIndex].value) name=size>
<OPTION value=1>1</OPTION>
<OPTION value=2>2</OPTION>
<OPTION value=3 selected>3</OPTION>
<OPTION value=4>4</OPTION>
<OPTION value=5>5</OPTION>
<OPTION value=6>6</OPTION>
</SELECT>
<b>颜色: </b>
<SELECT onchange=showcolor(this.options[this.selectedIndex].value) name=color>
<OPTION style="COLOR: blue" value=cBlue>蓝色</OPTIO>
<OPTION style="COLOR: red" value=cRed>红色</OPTIO>
<OPTION style="COLOR: green" value=cGreen>绿色</OPTIO>
</SELECT>
</DIV>
<DIV id="pc">
<TEXTAREA name=msg ></TEXTAREA>
<input type="hidden" name="Ip" value="<%=request.getRemoteAddr()%>" >
<input type="hidden" name="username" value="<%=szname%>" >
</DIV>
<DIV id="pr">
[<A href="javascript:copytext('FORM.atc_content')">复制</A>]
[<A href="javascript:replac()">替换</A>]
[<A href="javascript:checklength(document.FORM);">长度</A>] <span class="cGreen"><50字节</span><BR />
<input class="p" type="submit" name="regsubmit" onclick="return check();" value="发布消息">
</DIV>
</FORM>
</DIV>
<jsp:include page="nBase/footer.jsp"/>
</BODY>
</HTML>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -