<%@page language="java"
contentType="text/html;charset=GBK"
import="java.sql.*"
%>
<%@include file="/inc/config.jsp"%>
<%@include file="/inc/include.jsp"%>
<%--权限判断--%>
<%
try{
String userName = (String)session.getAttribute("userName");
if(userName == null){
response.sendRedirect("/login.jsp?error=1");
}
}catch(Exception ex){
response.sendRedirect("/login.jsp?error=1");
}
%>
<%--执行数据库查询--%>
<%
Integer integer = (Integer)session.getAttribute("userId");
int selfUserId = integer.intValue();
//分组信息
Integer groupIdInteger = session.getAttribute("groupid")==null?(new Integer(0)):(Integer)session.getAttribute("groupid");
int groupId = groupIdInteger.intValue();
if(groupId==0){
response.sendRedirect("/grouperror.jsp?error=6");
}
//每页显示条数
int numberPerPage = 10;
String pageStr = request.getParameter("page")==null?"1":request.getParameter("page");
int pageInt = Integer.parseInt(pageStr);
String sqlStr = "select count(*) from leaveword where groupid="+groupId;
%>
<jsp:useBean id="db" scope="page" class="com.ljsilver.util.DatabaseOperate">
<jsp:setProperty name="db" property="sqlStr" value="<%=sqlStr%>"/>
</jsp:useBean>
<%
db.buildConnection();
ResultSet result = db.getResultSet();
result.next();
int count = result.getInt(1);
db.close();
int pageNumber;
if(count%numberPerPage==0){
pageNumber = count/numberPerPage;
}else{
pageNumber = count/numberPerPage+1;
}
if(pageInt>pageNumber||pageInt<1){pageInt = 1;}
String footStr = "第"+pageStr+"页 共"+pageNumber+"页 ";
if(pageInt!=1){
footStr+="<a href='/list.jsp?page=1'>首页</a> <a href='/list.jsp?page="
+(pageInt-1)+"'>上一页</a> ";
}
if(pageInt!=pageNumber){
footStr+="<a href='/list.jsp?page="
+(pageInt+1)+"'>下一页</a> <a href='list.jsp?page="
+pageNumber+"'>末页</a>";
}
int first = count-(pageInt-1)*numberPerPage;
String sqlStr2 = "select lwid,name,ip,time,content,leaveword.userid from leaveword,member where member.userid=leaveword.userid and groupid="+groupId+" ORDER BY lwid";
%>
<jsp:useBean id="db2" scope="page" class="com.ljsilver.util.DatabaseOperate">
<jsp:setProperty name="db2" property="sqlStr" value="<%=sqlStr2%>"/>
</jsp:useBean>
<%
db2.buildConnection();
ResultSet result2 = db2.getResultSet();
result2.absolute(first);
String content="";
int i=0;
if(count>0){
do{
content += "<table width=\"760\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" > "
+"<tr bgcolor=\"#CCCCCC\"><td width=\"10%\" align=\"left\">";
content += result2.getString("name")+"</td><td width=\"20%\" align=\"left\">";
String[] address = net.acai.ip.IPLocalizer.search(result2.getString("ip"));
content += "留言ip:"+result2.getString("ip")+"</td><td width=\"30%\" align=\"left\">";
content += "来自:<font color=\"0099FF\">"+address[0]+"</font>"+address[1]
+"</td><td width=\"12%\" align=\"right\">";
if(selfUserId==result2.getInt("leaveword.userid")){
content +="<a href=/editleaveword.jsp?lwid="+result2.getInt("lwid")+">编辑</a>";
}
content += " ";
content += "<a href=/leaveword.jsp?quoteid="+result2.getInt("lwid")+">引用回复</a>";
content += "</td><td width=\"28%\" align=\"right\">";
content += "发表日期:"+result2.getString("time")+"</tr><tr>"
+"<td colspan=\"5\" bgcolor=\"#FFFFFF\">";
content += com.ljsilver.util.HTMLString.HTMLUBB(result2.getString("content"));
content +="</td></tr><tr><td colspan=\"5\"> </td></tr></table>";
i++;
}while(result2.previous()&&i<numberPerPage);
}else{
content+="<font color=\"blue\">暂无留言。<br><br><br></font>";
}
db2.close();
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>查看留言</title>
<!--meta http-equiv="refresh" content="300;URL=/list.jsp"-->
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<LINK rel="stylesheet" type="text/css" href="/inc/style.css">
<script language="JavaScript">
function checkliuyan(){
if(document.frmAnnounce.content.value==""){
alert("留言内容不能为空!");
document.frmAnnounce.content.focus();
return false;
}
document.frmAnnounce.submit();
}
function pageload(){
document.frmAnnounce.content.focus();
}
function AddText(NewCode) {
document.frmAnnounce.content.value+=NewCode
}
helpstat = false;
stprompt = true;
basic = false;
function thelp(swtch){
if (swtch == 1){
basic = false;
stprompt = false;
helpstat = true;
} else if (swtch == 0) {
helpstat = false;
stprompt = false;
basic = true;
} else if (swtch == 2) {
helpstat = false;
basic = false;
stprompt = true;
}
}
function email() {
if (helpstat) {
alert("Email 标记\n插入 Email 超级链接\n用法1: [email]webmaster@aspsky.net[/email]\n用法2: [email=webmaster@aspsky.net]沙滩小子[/email]");
} else if (basic) {
AddTxt="[email][/email]";
AddText(AddTxt);
} else {
txt2=prompt("链接显示的文字.\n如果为空,那么将只显示你的 Email 地址","");
if (txt2!=null) {
txt=prompt("Email 地址.","[email]name@domain.com[/email]");
if (txt!=null) {
if (txt2=="") {
AddTxt="[email]"+txt+"[/email]";
} else {
AddTxt="[email="+txt+"]"+txt2;
AddText(AddTxt);
AddTxt="[/email]";
}
AddText(AddTxt);
}
}
}
}
function flash() {
if (helpstat){
alert("Flash 动画\n插入 Flash 动画.\n用法: [flash]Flash 文件的地址[/flash]");
} else if (basic) {
AddTxt="[flash][/flash]";
AddText(AddTxt);
} else {
txt=prompt("Flash 文件的地址","http://");
if (txt!=null) {
AddTxt="[flash]"+txt;
AddText(AddTxt);
AddTxt="[/flash]";
AddText(AddTxt);
}
}
}
function showsize(size) {
if (helpstat) {
alert("文字大小标记\n设置文字大小.\n可变范围 1 - 6.\n 1 为最小 6 为最大.\n用法: [size="+size+"]这是 "+size+" 文字[/size]");
} else if (basic) {
AddTxt="[size="+size+"][/size]";
AddText(AddTxt);
} else {
txt=prompt("大小 "+size,"文字");
if (txt!=null) {
AddTxt="[size="+size+"]"+txt;
AddText(AddTxt);
AddTxt="[/size]";
AddText(AddTxt);
}
}
}
function bold() {
if (helpstat) {
alert("加粗标记\n使文本加粗.\n用法: [b]这是加粗的文字[/b]");
} else if (basic) {
AddTxt="[b][/b]";
AddText(AddTxt);
} else {
txt=prompt("文字将被变粗.","文字");
if (txt!=null) {
AddTxt="[b]"+txt;
AddText(AddTxt);
AddTxt="[/b]";
AddText(AddTxt);
}
}
}
function italicize() {
if (helpstat) {
alert("斜体标记\n使文本字体变为斜体.\n用法: [i]这是斜体字[/i]");
} else if (basic) {
AddTxt="[i][/i]";
AddText(AddTxt);
} else {
txt=prompt("文字将变斜体","文字");
if (txt!=null) {
AddTxt="[i]"+txt;
AddText(AddTxt);
AddTxt="[/i]";
AddText(AddTxt);
}
}
}
function quote() {
if (helpstat){
alert("引用标记\n引用一些文字.\n用法: [quote]引用内容[/quote]");
} else if (basic) {
AddTxt="[quote][/quote]";
AddText(AddTxt);
} else {
txt=prompt("被引用的文字","文字");
if(txt!=null) {
AddTxt="[quote]"+txt;
AddText(AddTxt);
AddTxt="[/quote]";
AddText(AddTxt);
}
}
}
function showcolor(color) {
if (helpstat) {
alert("颜色标记\n设置文本颜色. 任何颜色名都可以被使用.\n用法: [color="+color+"]颜色要改变为"+color+"的文字[/color]");
} else if (basic) {
AddTxt="[color="+color+"][/color]";
AddText(AddTxt);
} else {
txt=prompt("选择的颜色是: "+color,"文字");
if(txt!=null) {
AddTxt="[color="+color+"]"+txt;
AddText(AddTxt);
AddTxt="[/color]";
AddText(AddTxt);
}
}
}
function center() {
if (helpstat) {
alert("对齐标记\n使用这个标记, 可以使文本左对齐、居中、右对齐.\n用法: [align=center|left|right]要对齐的文本[/align]");
} else if (basic) {
AddTxt="[align=center|left|right][/align]";
AddText(AddTxt);
} else {
txt2=prompt("对齐样式\n输入 'center' 表示居中, 'left' 表示左对齐, 'right' 表示右对齐.","center");
while ((txt2!="") && (txt2!="center") && (txt2!="left") && (txt2!="right") && (txt2!=null)) {
txt2=prompt("错误!\n类型只能输入 'center' 、 'left' 或者 'right'.","");
}
txt=prompt("要对齐的文本","文本");
if (txt!=null) {
AddTxt="\r[align="+txt2+"]"+txt;
AddText(AddTxt);
AddTxt="[/align]";
AddText(AddTxt);
}
}
}
function hyperlink() {
if (helpstat) {
alert("超级链接标记\n插入一个超级链接标记\n使用方法: [url]http://www.justhis.com[/url]\nUSE: [url=http://www.justhis.com]链接文字[/url]");
} else if (basic) {
AddTxt="[url][/url]";
AddText(AddTxt);
} else {
txt2=prompt("链接文本显示.\n如果不想使用, 可以为空, 将只显示超级链接地址. ","");
if (txt2!=null) {
txt=prompt("超级链接.","http://");
if (txt!=null) {
if (txt2=="") {
AddTxt="[url]"+txt;
AddText(AddTxt);
AddTxt="[/url]";
AddText(AddTxt);
} else {
AddTxt="[url="+txt+"]"+txt2;
AddText(AddTxt);
AddTxt="[/url]";
AddText(AddTxt);
}
}
}
}
}
function p_w_picpath() {
if (helpstat){
alert("图片标记\n插入图片\n用法: [img]http://www.justhis.com/logo.gif[/img]");
} else if (basic) {
AddTxt="[img][/img]";
AddText(AddTxt);
} else {
txt=prompt("图片的 URL","http://");
if(txt!=null) {
AddTxt="\r[img]"+txt;
AddText(AddTxt);
AddTxt="[/img]";
AddText(AddTxt);
}
}
}
function showcode() {
if (helpstat) {
alert("代码标记\n使用代码标记,可以使你的程序代码里面的 html 等标志不会被破坏.\n使用方法:\n [code]这里是代码文字[/code]");
} else if (basic) {
AddTxt="\r[code]\r[/code]";
AddText(AddTxt);
} else {
txt=prompt("输入代码","");
if (txt!=null) {
AddTxt="\r[code]"+txt;
AddText(AddTxt);
AddTxt="[/code]";
AddText(AddTxt);
}
}
}
function list() {
if (helpstat) {
alert("列表标记\n建造一个文字或则数字列表.\n\nUSE:[list][*]项目一[/*][*]项目二[/*][*]项目三[/*][/list]");
} else if (basic) {
AddTxt="[list][*] [/*][*] [/*][*] [/*][/list]";
AddText(AddTxt);
} else {
txt=prompt("列表类型\n输入 'A' 表示有序列表, '1' 表示无序列表, 留空表示无序列表.","");
while ((txt!="") && (txt!="A") && (txt!="a") && (txt!="1") && (txt!=null)) {
txt=prompt("错误!\n类型只能输入 'A' 、 '1' 或者留空.","");
}
if (txt!=null) {
if (txt=="") {
AddTxt="[list]";
} else {
AddTxt="[list="+txt+"]";
}
txt="1";
while ((txt!="") && (txt!=null)) {
txt=prompt("列表项\n空白表示结束列表","");
if (txt!="") {
AddTxt+="[*]"+txt+"[/*]";
}
}
AddTxt+="[/list]";
AddText(AddTxt);
}
}
}
function showfont(font) {
if (helpstat){
alert("字体标记\n给文字设置字体.\n用法: [face="+font+"]改变文字字体为"+font+"[/face]");
} else if (basic) {
AddTxt="[face="+font+"][/face]";
AddText(AddTxt);
} else {
txt=prompt("要设置字体的文字"+font,"文字");
if (txt!=null) {
AddTxt="[face="+font+"]"+txt;
AddText(AddTxt);
AddTxt="[/face]";
AddText(AddTxt);
}
}
}
function underline() {
if (helpstat) {
alert("下划线标记\n给文字加下划线.\n用法: [u]要加下划线的文字[/u]");
} else if (basic) {
AddTxt="[u][/u]";
AddText(AddTxt);
} else {
txt=prompt("下划线文字.","文字");
if (txt!=null) {
AddTxt="[u]"+txt;
AddText(AddTxt);
AddTxt="[/u]";
AddText(AddTxt);
}
}
}
function setfly() {
if (helpstat){
alert("飞翔标记\n使文字飞行.\n用法: [fly]文字为这样文字[/fly]");
} else if (basic) {
AddTxt="[fly][/fly]";
AddText(AddTxt);
} else {
txt=prompt("飞翔文字","文字");
if (txt!=null) {
AddTxt="[fly]"+txt;
AddText(AddTxt);
AddTxt="[/fly]";
AddText(AddTxt);
}
}
}
function move() {
if (helpstat) {
alert("移动标记\n使文字产生移动效果.\n用法: [move]要产生移动效果的文字[/move]");
} else if (basic) {
AddTxt="[move][/move]";
AddText(AddTxt);
} else {
txt=prompt("要产生移动效果的文字","文字");
if (txt!=null) {
AddTxt="[move]"+txt;
AddText(AddTxt);
AddTxt="[/move]";
AddText(AddTxt);
}
}
}
function shadow() {
if (helpstat) {
alert("阴影标记\n使文字产生阴影效果.\n用法: [SHADOW=宽度, 颜色, 边界]要产生阴影效果的文字[/SHADOW]");
} else if (basic) {
AddTxt="[SHADOW=255,blue,1][/SHADOW]";
AddText(AddTxt);
} else {
txt2=prompt("文字的长度、颜色和边界大小","255,blue,1");
if (txt2!=null) {
txt=prompt("要产生阴影效果的文字","文字");
if (txt!=null) {
if (txt2=="") {
AddTxt="[SHADOW=255, blue, 1]"+txt;
AddText(AddTxt);
AddTxt="[/SHADOW]";
AddText(AddTxt);
} else {
AddTxt="[SHADOW="+txt2+"]"+txt;
AddText(AddTxt);
AddTxt="[/SHADOW]";
AddText(AddTxt);
}
}
}
}
}
function rm() {
if (helpstat) {
alert("realplay\n播放realplay文件.\n用法: [rm=宽度, 高度]文件地址[/rm]");
} else if (basic) {
AddTxt="[rm=500,350][/rm]";
AddText(AddTxt);
} else {
txt2=prompt("视频的宽度,高度","500,350");
if (txt2!=null) {
txt=prompt("视频文件的地址","请输入");
if (txt!=null) {
if (txt2=="") {
AddTxt="[rm=500,350]"+txt;
AddText(AddTxt);
AddTxt="[/rm]";
AddText(AddTxt);
} else {
AddTxt="[rm="+txt2+"]"+txt;
AddText(AddTxt);
AddTxt="[/rm]";
AddText(AddTxt);
}
}
}
}
}
function mp() {
if (helpstat) {
alert("Media Player\n播放Media Player文件.\n用法: [mp=宽度, 高度]文件地址[/mp]");
} else if (basic) {
AddTxt="[mp=500,350][/mp]";
AddText(AddTxt);
} else {
txt2=prompt("视频的宽度,高度","500,350");
if (txt2!=null) {
txt=prompt("视频文件的地址","请输入");
if (txt!=null) {
if (txt2=="") {
AddTxt="[mp=500,350]"+txt;
AddText(AddTxt);
AddTxt="[/mp]";
AddText(AddTxt);
} else {
AddTxt="[mp="+txt2+"]"+txt;
AddText(AddTxt);
AddTxt="[/mp]";
AddText(AddTxt);
}
}
}
}
}
function qt() {
if (helpstat) {
alert("QuickTime\n播放QuickTime文件.\n用法: [qt=宽度, 高度]文件地址[/qt]");
} else if (basic) {
AddTxt="[qt=500,350][/qt]";
AddText(AddTxt);
} else {
txt2=prompt("视频的宽度,高度","500,350");
if (txt2!=null) {
txt=prompt("视频文件的地址","请输入");
if (txt!=null) {
if (txt2=="") {
AddTxt="[qt=500,350]"+txt;
AddText(AddTxt);
AddTxt="[/qt]";
AddText(AddTxt);
} else {
AddTxt="[qt="+txt2+"]"+txt;
AddText(AddTxt);
AddTxt="[/qt]";
AddText(AddTxt);
}
}
}
}
}
function sk() {
if (helpstat) {
alert("Shockwave\n插入Shockwave文件.\n用法: [dir=宽度, 高度]文件地址[/dir]");
} else if (basic) {
AddTxt="[dir=500,350][/dir]";
AddText(AddTxt);
} else {
txt2=prompt("Shockwave文件的宽度,高度","500,350");
if (txt2!=null) {
txt=prompt("Shockwave文件的地址","请输入地址");
if (txt!=null) {
if (txt2=="") {
AddTxt="[dir=500,350]"+txt;
AddText(AddTxt);
AddTxt="[/dir]";
AddText(AddTxt);
} else {
AddTxt="[dir="+txt2+"]"+txt;
AddText(AddTxt);
AddTxt="[/dir]";
AddText(AddTxt);
}
}
}
}
}
function glow() {
if (helpstat) {
alert("光晕标记\n使文字产生光晕效果.\n用法: [GLOW=宽度, 颜色, 边界]要产生光晕效果的文字[/GLOW]");
} else if (basic) {
AddTxt="[glow=255,red,2][/glow]";
AddText(AddTxt);
} else {
txt2=prompt("文字的长度、颜色和边界大小","255,red,2");
if (txt2!=null) {
txt=prompt("要产生光晕效果的文字.","文字");
if (txt!=null) {
if (txt2=="") {
AddTxt="[glow=255,red,2]"+txt;
AddText(AddTxt);
AddTxt="[/glow]";
AddText(AddTxt);
} else {
AddTxt="[glow="+txt2+"]"+txt;
AddText(AddTxt);
AddTxt="[/glow]";
AddText(AddTxt);
}
}
}
}
}
function openscriphtml()
{
if (navigator.appName!="Microsoft Internet Explorer")
alert("此功能 Netscape 用户不能使用!")
else
{newwin=window.open('htmledit/editor.html','','width=544,height=294');
newwin.focus();
}
}
function runEx(){
//alert('请注意,按下确定将生成页面,按下后请稍后....');
var winEx = window.open("", "winEx", "width=300,height=200,status=yes,menubar=yes,scrollbars=yes,resizable=yes"); winEx.document.open("text/html", "replace");
winEx.document.write(unescape(event.srcElement.parentElement.children[2].value));
winEx.document.close();
}
function insertsmilie(smilieface){
document.frmAnnounce.content.value+=smilieface;
}
</script>
</head>
<body background='p_w_picpaths/bg.gif'>
<table align="center" width="760" border="0" cellspacing="0" cellpadding="0">
<%@ include file="/inc/head.jsp"%>
<tr>
<td align="center">
<b>留言记录</b>
</td>
</tr>
<tr>
<td><br><br>
</td>
</tr>
<tr><td align="right"><a href="/leaveword.jsp"><font color="red"><b>我要留言</b></font><a></td></tr>
<tr><td> </td></tr>
<tr>
<td align="center">
<%=content%>
<table align="center"><tr><td><%=footStr%></td></tr></table>
<form name="frmAnnounce" method="post" action="/servlet/AddLeaveWord" autocomplete="on">
<table width="760" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="3">发表留言: <b>[点击表情图即可在帖子中加入相应的表情]</b></td></tr>
<tr><td width="33%"><a href="javascript:insertsmilie('[em1]');"><img src="face/1.gif" border=0></a>
<a href="javascript:insertsmilie('[em2]');"><img src="face/2.gif" border=0></a>
<a href="javascript:insertsmilie('[em3]');"><img src="face/3.gif" border=0></a>
<a href="javascript:insertsmilie('[em4]');"><img src="face/4.gif" border=0></a>
<a href="javascript:insertsmilie('[em5]');"><img src="face/5.gif" border=0></a>
<a href="javascript:insertsmilie('[em6]');"><img src="face/6.gif" border=0></a>
<a href="javascript:insertsmilie('[em7]');"><img src="face/7.gif" border=0></a>
<a href="javascript:insertsmilie('[em8]');"><img src="face/8.gif" border=0></a>
<a href="javascript:insertsmilie('[em9]');"><img src="face/9.gif" border=0></a>
<a href="javascript:insertsmilie('[em10]');"><img src="face/10.gif" border=0></a
>
<a href="javascript:insertsmilie('[em11]');"><img src="face/11.gif" border=0></a
>
<a href="javascript:insertsmilie('[em12]');"><img src="face/12.gif" border=0></a
>
<a href="javascript:insertsmilie('[em13]');"><img src="face/13.gif" border=0></a
>
<a href="javascript:insertsmilie('[em14]');"><img src="face/14.gif" border=0></a
>
<a href="javascript:insertsmilie('[em15]');"><img src="face/15.gif" border=0></a
>
<a href="javascript:insertsmilie('[em16]');"><img src="face/16.gif" border=0></a
>
<a href="javascript:insertsmilie('[em17]');"><img src="face/17.gif" border=0></a
>
<a href="javascript:insertsmilie('[em18]');"><img src="face/18.gif" border=0></a
>
<a href="javascript:insertsmilie('[em19]');"><img src="face/19.gif" border=0></a
>
<a href="javascript:insertsmilie('[em20]');"><img src="face/20.gif" border=0></a
>
<a href="javascript:insertsmilie('[em21]');"><img src="face/21.gif" border=0></a
>
<a href="javascript:insertsmilie('[em22]');"><img src="face/22.gif" border=0></a
>
<a href="javascript:insertsmilie('[em23]');"><img src="face/23.gif" border=0></a
>
<a href="javascript:insertsmilie('[em24]');"><img src="face/24.gif" border=0></a
>
<a href="javascript:insertsmilie('[em25]');"><img src="face/25.gif" border=0></a
>
<a href="javascript:insertsmilie('[em26]');"><img src="face/26.gif" border=0></a
>
<a href="javascript:insertsmilie('[em27]');"><img src="face/27.gif" border=0></a
>
<a href="javascript:insertsmilie('[em28]');"><img src="face/28.gif" border=0></a
>
<a href="javascript:insertsmilie('[em29]');"><img src="face/29.gif" border=0></a
>
<a href="javascript:insertsmilie('[em30]');"><img src="face/30.gif" border=0></a
>
<a href="javascript:insertsmilie('[em31]');"><img src="face/31.gif" border=0></a
>
<a href="javascript:insertsmilie('[em32]');"><img src="face/32.gif" border=0></a
>
<a href="javascript:insertsmilie('[em33]');"><img src="face/33.gif" border=0></a
>
<a href="javascript:insertsmilie('[em34]');"><img src="face/34.gif" border=0></a
>
<a href="javascript:insertsmilie('[em35]');"><img src="face/35.gif" border=0></a
>
<a href="javascript:insertsmilie('[em36]');"><img src="face/36.gif" border=0></a
>
<a href="javascript:insertsmilie('[em37]');"><img src="face/37.gif" border=0></a
>
<a href="javascript:insertsmilie('[em38]');"><img src="face/38.gif" border=0></a
>
<a href="javascript:insertsmilie('[em39]');"><img src="face/39.gif" border=0></a
>
<a href="javascript:insertsmilie('[em40]');"><img src="face/40.gif" border=0></a
>
<a href="javascript:insertsmilie('[em41]');"><img src="face/41.gif" border=0></a
>
<a href="javascript:insertsmilie('[em42]');"><img src="face/42.gif" border=0></a
>
<a href="javascript:insertsmilie('[em43]');"><img src="face/43.gif" border=0></a
>
<a href="javascript:insertsmilie('[em44]');"><img src="face/44.gif" border=0></a
>
<a href="javascript:insertsmilie('[em45]');"><img src="face/45.gif" border=0></a
>
<a href="javascript:insertsmilie('[em46]');"><img src="face/46.gif" border=0></a
>
<a href="javascript:insertsmilie('[em47]');"><img src="face/47.gif" border=0></a
>
<a href="javascript:insertsmilie('[em48]');"><img src="face/48.gif" border=0></a
>
<a href="javascript:insertsmilie('[em49]');"><img src="face/49.gif" border=0></a
>
<a href="javascript:insertsmilie('[em50]');"><img src="face/50.gif" border=0></a
>
<a href="javascript:insertsmilie('[em51]');"><img src="face/51.gif" border=0></a
>
<a href="javascript:insertsmilie('[em52]');"><img src="face/52.gif" border=0></a
>
<a href="javascript:insertsmilie('[em53]');"><img src="face/53.gif" border=0></a
>
<a href="javascript:insertsmilie('[em54]');"><img src="face/54.gif" border=0></a
>
<a href="javascript:insertsmilie('[em55]');"><img src="face/55.gif" border=0></a
>
<a href="javascript:insertsmilie('[em56]');"><img src="face/56.gif" border=0></a
>
<a href="javascript:insertsmilie('[em57]');"><img src="face/57.gif" border=0></a
>
<a href="javascript:insertsmilie('[em58]');"><img src="face/58.gif" border=0></a
>
<a href="javascript:insertsmilie('[em59]');"><img src="face/59.gif" border=0></a
>
<a href="javascript:insertsmilie('[em60]');"><img src="face/60.gif" border=0></a
>
<a href="javascript:insertsmilie('[em61]');"><img src="face/61.gif" border=0></a
>
<a href="javascript:insertsmilie('[em62]');"><img src="face/62.gif" border=0></a
>
<a href="javascript:insertsmilie('[em63]');"><img src="face/63.gif" border=0></a
>
<a href="javascript:insertsmilie('[em64]');"><img src="face/64.gif" border=0></a
>
<a href="javascript:insertsmilie('[em65]');"><img src="face/65.gif" border=0></a
>
<a href="javascript:insertsmilie('[em66]');"><img src="face/66.gif" border=0></a
>
<a href="javascript:insertsmilie('[em67]');"><img src="face/67.gif" border=0></a
>
<a href="javascript:insertsmilie('[em68]');"><img src="face/68.gif" border=0></a
>
<a href="javascript:insertsmilie('[em69]');"><img src="face/69.gif" border=0></a
>
<a href="javascript:insertsmilie('[em70]');"><img src="face/70.gif" border=0></a
>
<a href="javascript:insertsmilie('[em71]');"><img src="face/71.gif" border=0></a
>
<a href="javascript:insertsmilie('[em72]');"><img src="face/72.gif" border=0></a
>
<a href="javascript:insertsmilie('[em73]');"><img src="face/73.gif" border=0></a
>
<a href="javascript:insertsmilie('[em74]');"><img src="face/74.gif" border=0></a
>
<a href="javascript:insertsmilie('[em75]');"><img src="face/75.gif" border=0></a
>
<a href="javascript:insertsmilie('[em76]');"><img src="face/76.gif" border=0></a
>
<a href="javascript:insertsmilie('[em77]');"><img src="face/77.gif" border=0></a
>
<a href="javascript:insertsmilie('[em78]');"><img src="face/78.gif" border=0></a
>
<a href="javascript:insertsmilie('[em79]');"><img src="face/79.gif" border=0></a
>
<a href="javascript:insertsmilie('[em80]');"><img src="face/80.gif" border=0></a
>
<a href="javascript:insertsmilie('[em81]');"><img src="face/81.gif" border=0></a
>
<a href="javascript:insertsmilie('[em82]');"><img src="face/82.gif" border=0></a
>
<a href="javascript:insertsmilie('[em83]');"><img src="face/83.gif" border=0></a
>
<a href="javascript:insertsmilie('[em84]');"><img src="face/84.gif" border=0></a
>
<a href="javascript:insertsmilie('[em85]');"><img src="face/85.gif" border=0></a
>
<a href="javascript:insertsmilie('[em86]');"><img src="face/86.gif" border=0></a
>
<a href="javascript:insertsmilie('[em87]');"><img src="face/87.gif" border=0></a
>
<a href="javascript:insertsmilie('[em88]');"><img src="face/88.gif" border=0></a
>
<a href="javascript:insertsmilie('[em89]');"><img src="face/89.gif" border=0></a
>
<a href="javascript:insertsmilie('[em90]');"><img src="face/90.gif" border=0></a
>
<a href="javascript:insertsmilie('[em91]');"><img src="face/91.gif" border=0></a
>
<a href="javascript:insertsmilie('[em92]');"><img src="face/92.gif" border=0></a
>
<a href="javascript:insertsmilie('[em93]');"><img src="face/93.gif" border=0></a
>
<a href="javascript:insertsmilie('[em94]');"><img src="face/94.gif" border=0></a
>
<a href="javascript:insertsmilie('[em95]');"><img src="face/95.gif" border=0></a
>
</td>
<td width="2%"></td>
<td width="65%"><p> </p>
<font color="#000000">
<img onclick=bold() src="pic/icon_editor_bold.gif" width="22" height="22" alt="粗体" border="0">
<img onclick=italicize() src="pic/icon_editor_italicize.gif" width="23" height="22" alt="斜体" border="0">
<img onclick=underline() src="pic/icon_editor_underline.gif" width="23" height="22" alt="下划线" border="0">
<img onclick=center() src="pic/icon_editor_center.gif" width="22" height="22" alt="居中" border="0">
<img onclick=hyperlink() src="pic/icon_editor_url.gif" width="22" height="22" alt="超级连接" border="0">
<img onclick=email() src="pic/icon_editor_email.gif" width="23" height="22" alt="Email连接" border="0">
<img onclick=p_w_picpath() src="pic/icon_editor_p_w_picpath.gif" width="23" height="22" alt="图片" border="0">
<img onclick=flash() src="pic/swf.gif" width="23" height="22" alt="Flash图片" border="0">
<img onclick=sk() src="pic/Shockwave.gif" width="23" height="22" alt="Shockwave文件" border="0">
<img onclick=rm() src="pic/rm.gif" width="23" height="22" alt="realplay视频文件" border="0">
<img onclick=mp() src="pic/mp.gif" width="23" height="22" alt="Media Player视频文件" border="0">
<img onclick=qt() src="pic/qt.gif" width="23" height="22" alt="QuickTime视频文件" border="0">
<img onclick=quote() src="pic/icon_editor_quote.gif" width="23" height="22" alt="引用" border="0">
<IMG onclick=setfly() height=22 alt=飞行字 src="pic/fly.gif" width=23 border=0>
<IMG onclick=move() height=22 alt=移动字 src="pic/move.gif" width=23 border=0>
<IMG onclick=glow() height=22 alt=发光字 src="pic/glow.gif" width=23 border=0>
<IMG onclick=shadow() height=22 alt=阴影字 src="pic/shadow.gif" width=23 border=0>
<br>
字体:
<SELECT onchange=showfont(this.options[this.selectedIndex].value) name=font>
<option value="宋体" selected>宋体</option>
<option value="楷体_GB2312">楷体</option>
<option value="新宋体">新宋体</option>
<option value="黑体">黑体</option>
<option value="隶书">隶书</option>
<OPTION value="Andale Mono">Andale Mono</OPTION>
<OPTION value=Arial>Arial</OPTION>
<OPTION value="Arial Black">Arial Black</OPTION>
<OPTION value="Book Antiqua">Book Antiqua</OPTION>
<OPTION value="Century Gothic">Century Gothic</OPTION>
<OPTION value="Comic Sans MS">Comic Sans MS</OPTION>
<OPTION value="Courier New">Courier New</OPTION>
<OPTION value=Georgia>Georgia</OPTION>
<OPTION value=Impact>Impact</OPTION>
<OPTION value=Tahoma>Tahoma</OPTION>
<OPTION value="Times New Roman" >Times New Roman</OPTION>
<OPTION value="Trebuchet MS">Trebuchet MS</OPTION>
<OPTION value="Script MT Bold">Script MT Bold</OPTION>
<OPTION value=Stencil>Stencil</OPTION>
<OPTION value=Verdana>Verdana</OPTION>
<OPTION value="Lucida Console">Lucida Console</OPTION>
</SELECT>
字体大小<select name="size" onChange="showsize(this.options[this.selectedIndex].value)">
<option value="1">1</option>
<option value="2">2</option>
<option value="3" selected>3</option>
<option value="4">4</option>
</select>
<font face="宋体" color=#333333>颜色:</font>
<SELECT onchange=showcolor(this.options[this.selectedIndex].value) name=color>
<option style="background-color:#F0F8FF;color: #F0F8FF" value="#F0F8FF">#F0F8FF</option>
<option style="background-color:#FAEBD7;color: #FAEBD7" value="#FAEBD7">#FAEBD7</option>
<option style="background-color:#00FFFF;color: #00FFFF" value="#00FFFF">#00FFFF</option>
<option style="background-color:#7FFFD4;color: #7FFFD4" value="#7FFFD4">#7FFFD4</option>
<option style="background-color:#F0FFFF;color: #F0FFFF" value="#F0FFFF">#F0FFFF</option>
<option style="background-color:#F5F5DC;color: #F5F5DC" value="#F5F5DC">#F5F5DC</option>
<option style="background-color:#FFE4C4;color: #FFE4C4" value="#FFE4C4">#FFE4C4</option>
<option style="background-color:#000000;color: #000000" value="#000000">#000000</option>
<option style="background-color:#FFEBCD;color: #FFEBCD" value="#FFEBCD">#FFEBCD</option>
<option style="background-color:#0000FF;color: #0000FF" value="#0000FF">#0000FF</option>
<option style="background-color:#8A2BE2;color: #8A2BE2" value="#8A2BE2">#8A2BE2</option>
<option style="background-color:#A52A2A;color: #A52A2A" value="#A52A2A">#A52A2A</option>
<option style="background-color:#DEB887;color: #DEB887" value="#DEB887">#DEB887</option>
<option style="background-color:#5F9EA0;color: #5F9EA0" value="#5F9EA0">#5F9EA0</option>
<option style="background-color:#7FFF00;color: #7FFF00" value="#7FFF00">#7FFF00</option>
<option style="background-color:#D2691E;color: #D2691E" value="#D2691E">#D2691E</option>
<option style="background-color:#FF7F50;color: #FF7F50" value="#FF7F50">#FF7F50</option>
<option style="background-color:#6495ED;color: #6495ED" value="#6495ED" selected>#6495ED</option>
<option style="background-color:#FFF8DC;color: #FFF8DC" value="#FFF8DC">#FFF8DC</option>
<option style="background-color:#DC143C;color: #DC143C" value="#DC143C">#DC143C</option>
<option style="background-color:#00FFFF;color: #00FFFF" value="#00FFFF">#00FFFF</option>
<option style="background-color:#00008B;color: #00008B" value="#00008B">#00008B</option>
<option style="background-color:#008B8B;color: #008B8B" value="#008B8B">#008B8B</option>
<option style="background-color:#B8860B;color: #B8860B" value="#B8860B">#B8860B</option>
<option style="background-color:#A9A9A9;color: #A9A9A9" value="#A9A9A9">#A9A9A9</option>
<option style="background-color:#006400;color: #006400" value="#006400">#006400</option>
<option style="background-color:#BDB76B;color: #BDB76B" value="#BDB76B">#BDB76B</option>
<option style="background-color:#8B008B;color: #8B008B" value="#8B008B">#8B008B</option>
<option style="background-color:#556B2F;color: #556B2F" value="#556B2F">#556B2F</option>
<option style="background-color:#FF8C00;color: #FF8C00" value="#FF8C00">#FF8C00</option>
<option style="background-color:#9932CC;color: #9932CC" value="#9932CC">#9932CC</option>
<option style="background-color:#8B0000;color: #8B0000" value="#8B0000">#8B0000</option>
<option style="background-color:#E9967A;color: #E9967A" value="#E9967A">#E9967A</option>
<option style="background-color:#8FBC8F;color: #8FBC8F" value="#8FBC8F">#8FBC8F</option>
<option style="background-color:#483D8B;color: #483D8B" value="#483D8B">#483D8B</option>
<option style="background-color:#2F4F4F;color: #2F4F4F" value="#2F4F4F">#2F4F4F</option>
<option style="background-color:#00CED1;color: #00CED1" value="#00CED1">#00CED1</option>
<option style="background-color:#9400D3;color: #9400D3" value="#9400D3">#9400D3</option>
<option style="background-color:#FF1493;color: #FF1493" value="#FF1493">#FF1493</option>
<option style="background-color:#00BFFF;color: #00BFFF" value="#00BFFF">#00BFFF</option>
<option style="background-color:#696969;color: #696969" value="#696969">#696969</option>
<option style="background-color:#1E90FF;color: #1E90FF" value="#1E90FF">#1E90FF</option>
<option style="background-color:#B22222;color: #B22222" value="#B22222">#B22222</option>
<option style="background-color:#FFFAF0;color: #FFFAF0" value="#FFFAF0">#FFFAF0</option>
<option style="background-color:#228B22;color: #228B22" value="#228B22">#228B22</option>
<option style="background-color:#FF00FF;color: #FF00FF" value="#FF00FF">#FF00FF</option>
<option style="background-color:#DCDCDC;color: #DCDCDC" value="#DCDCDC">#DCDCDC</option>
<option style="background-color:#F8F8FF;color: #F8F8FF" value="#F8F8FF">#F8F8FF</option>
<option style="background-color:#FFD700;color: #FFD700" value="#FFD700">#FFD700</option>
<option style="background-color:#DAA520;color: #DAA520" value="#DAA520">#DAA520</option>
<option style="background-color:#808080;color: #808080" value="#808080">#808080</option>
<option style="background-color:#008000;color: #008000" value="#008000">#008000</option>
<option style="background-color:#ADFF2F;color: #ADFF2F" value="#ADFF2F">#ADFF2F</option>
<option style="background-color:#F0FFF0;color: #F0FFF0" value="#F0FFF0">#F0FFF0</option>
<option style="background-color:#FF69B4;color: #FF69B4" value="#FF69B4">#FF69B4</option>
<option style="background-color:#CD5C5C;color: #CD5C5C" value="#CD5C5C">#CD5C5C</option>
<option style="background-color:#4B0082;color: #4B0082" value="#4B0082">#4B0082</option>
<option style="background-color:#FFFFF0;color: #FFFFF0" value="#FFFFF0">#FFFFF0</option>
<option style="background-color:#F0E68C;color: #F0E68C" value="#F0E68C">#F0E68C</option>
<option style="background-color:#E6E6FA;color: #E6E6FA" value="#E6E6FA">#E6E6FA</option>
<option style="background-color:#FFF0F5;color: #FFF0F5" value="#FFF0F5">#FFF0F5</option>
<option style="background-color:#7CFC00;color: #7CFC00" value="#7CFC00">#7CFC00</option>
<option style="background-color:#FFFACD;color: #FFFACD" value="#FFFACD">#FFFACD</option>
<option style="background-color:#ADD8E6;color: #ADD8E6" value="#ADD8E6">#ADD8E6</option>
<option style="background-color:#F08080;color: #F08080" value="#F08080">#F08080</option>
<option style="background-color:#E0FFFF;color: #E0FFFF" value="#E0FFFF">#E0FFFF</option>
<option style="background-color:#FAFAD2;color: #FAFAD2" value="#FAFAD2">#FAFAD2</option>
<option style="background-color:#90EE90;color: #90EE90" value="#90EE90">#90EE90</option>
<option style="background-color:#D3D3D3;color: #D3D3D3" value="#D3D3D3">#D3D3D3</option>
<option style="background-color:#FFB6C1;color: #FFB6C1" value="#FFB6C1">#FFB6C1</option>
<option style="background-color:#FFA07A;color: #FFA07A" value="#FFA07A">#FFA07A</option>
<option style="background-color:#20B2AA;color: #20B2AA" value="#20B2AA">#20B2AA</option>
<option style="background-color:#87CEFA;color: #87CEFA" value="#87CEFA">#87CEFA</option>
<option style="background-color:#778899;color: #778899" value="#778899">#778899</option>
<option style="background-color:#B0C4DE;color: #B0C4DE" value="#B0C4DE">#B0C4DE</option>
<option style="background-color:#FFFFE0;color: #FFFFE0" value="#FFFFE0">#FFFFE0</option>
<option style="background-color:#00FF00;color: #00FF00" value="#00FF00">#00FF00</option>
<option style="background-color:#32CD32;color: #32CD32" value="#32CD32">#32CD32</option>
<option style="background-color:#FAF0E6;color: #FAF0E6" value="#FAF0E6">#FAF0E6</option>
<option style="background-color:#FF00FF;color: #FF00FF" value="#FF00FF">#FF00FF</option>
<option style="background-color:#800000;color: #800000" value="#800000">#800000</option>
<option style="background-color:#66CDAA;color: #66CDAA" value="#66CDAA">#66CDAA</option>
<option style="background-color:#0000CD;color: #0000CD" value="#0000CD">#0000CD</option>
<option style="background-color:#BA55D3;color: #BA55D3" value="#BA55D3">#BA55D3</option>
<option style="background-color:#9370DB;color: #9370DB" value="#9370DB">#9370DB</option>
<option style="background-color:#3CB371;color: #3CB371" value="#3CB371">#3CB371</option>
<option style="background-color:#7B68EE;color: #7B68EE" value="#7B68EE">#7B68EE</option>
<option style="background-color:#00FA9A;color: #00FA9A" value="#00FA9A">#00FA9A</option>
<option style="background-color:#48D1CC;color: #48D1CC" value="#48D1CC">#48D1CC</option>
<option style="background-color:#C71585;color: #C71585" value="#C71585">#C71585</option>
<option style="background-color:#191970;color: #191970" value="#191970">#191970</option>
<option style="background-color:#F5FFFA;color: #F5FFFA" value="#F5FFFA">#F5FFFA</option>
<option style="background-color:#FFE4E1;color: #FFE4E1" value="#FFE4E1">#FFE4E1</option>
<option style="background-color:#FFE4B5;color: #FFE4B5" value="#FFE4B5">#FFE4B5</option>
<option style="background-color:#FFDEAD;color: #FFDEAD" value="#FFDEAD">#FFDEAD</option>
<option style="background-color:#000080;color: #000080" value="#000080">#000080</option>
<option style="background-color:#FDF5E6;color: #FDF5E6" value="#FDF5E6">#FDF5E6</option>
<option style="background-color:#808000;color: #808000" value="#808000">#808000</option>
<option style="background-color:#6B8E23;color: #6B8E23" value="#6B8E23">#6B8E23</option>
<option style="background-color:#FFA500;color: #FFA500" value="#FFA500">#FFA500</option>
<option style="background-color:#FF4500;color: #FF4500" value="#FF4500">#FF4500</option>
<option style="background-color:#DA70D6;color: #DA70D6" value="#DA70D6">#DA70D6</option>
<option style="background-color:#EEE8AA;color: #EEE8AA" value="#EEE8AA">#EEE8AA</option>
<option style="background-color:#98FB98;color: #98FB98" value="#98FB98">#98FB98</option>
<option style="background-color:#AFEEEE;color: #AFEEEE" value="#AFEEEE">#AFEEEE</option>
<option style="background-color:#DB7093;color: #DB7093" value="#DB7093">#DB7093</option>
<option style="background-color:#FFEFD5;color: #FFEFD5" value="#FFEFD5">#FFEFD5</option>
<option style="background-color:#FFDAB9;color: #FFDAB9" value="#FFDAB9">#FFDAB9</option>
<option style="background-color:#CD853F;color: #CD853F" value="#CD853F">#CD853F</option>
<option style="background-color:#FFC0CB;color: #FFC0CB" value="#FFC0CB">#FFC0CB</option>
<option style="background-color:#DDA0DD;color: #DDA0DD" value="#DDA0DD">#DDA0DD</option>
<option style="background-color:#B0E0E6;color: #B0E0E6" value="#B0E0E6">#B0E0E6</option>
<option style="background-color:#800080;color: #800080" value="#800080">#800080</option>
<option style="background-color:#FF0000;color: #FF0000" value="#FF0000">#FF0000</option>
<option style="background-color:#BC8F8F;color: #BC8F8F" value="#BC8F8F">#BC8F8F</option>
<option style="background-color:#4169E1;color: #4169E1" value="#4169E1">#4169E1</option>
<option style="background-color:#8B4513;color: #8B4513" value="#8B4513">#8B4513</option>
<option style="background-color:#FA8072;color: #FA8072" value="#FA8072">#FA8072</option>
<option style="background-color:#F4A460;color: #F4A460" value="#F4A460">#F4A460</option>
<option style="background-color:#2E8B57;color: #2E8B57" value="#2E8B57">#2E8B57</option>
<option style="background-color:#FFF5EE;color: #FFF5EE" value="#FFF5EE">#FFF5EE</option>
<option style="background-color:#A0522D;color: #A0522D" value="#A0522D">#A0522D</option>
<option style="background-color:#C0C0C0;color: #C0C0C0" value="#C0C0C0">#C0C0C0</option>
<option style="background-color:#87CEEB;color: #87CEEB" value="#87CEEB">#87CEEB</option>
<option style="background-color:#6A5ACD;color: #6A5ACD" value="#6A5ACD">#6A5ACD</option>
<option style="background-color:#708090;color: #708090" value="#708090">#708090</option>
<option style="background-color:#FFFAFA;color: #FFFAFA" value="#FFFAFA">#FFFAFA</option>
<option style="background-color:#00FF7F;color: #00FF7F" value="#00FF7F">#00FF7F</option>
<option style="background-color:#4682B4;color: #4682B4" value="#4682B4">#4682B4</option>
<option style="background-color:#D2B48C;color: #D2B48C" value="#D2B48C">#D2B48C</option>
<option style="background-color:#008080;color: #008080" value="#008080">#008080</option>
<option style="background-color:#D8BFD8;color: #D8BFD8" value="#D8BFD8">#D8BFD8</option>
<option style="background-color:#FF6347;color: #FF6347" value="#FF6347">#FF6347</option>
<option style="background-color:#40E0D0;color: #40E0D0" value="#40E0D0">#40E0D0</option>
<option style="background-color:#EE82EE;color: #EE82EE" value="#EE82EE">#EE82EE</option>
<option style="background-color:#F5DEB3;color: #F5DEB3" value="#F5DEB3">#F5DEB3</option>
<option style="background-color:#FFFFFF;color: #FFFFFF" value="#FFFFFF">#FFFFFF</option>
<option style="background-color:#F5F5F5;color: #F5F5F5" value="#F5F5F5">#F5F5F5</option>
<option style="background-color:#FFFF00;color: #FFFF00" value="#FFFF00">#FFFF00</option>
<option style="background-color:#9ACD32;color: #9ACD32" value="#9ACD32">#9ACD32</option>
</SELECT>
<textarea name="content" cols="75" rows="14"></textarea>
<p> </p>
</td>
</tr>
<tr><td width="33%"></td><td width="2%"></td>
<td align="center" width="65%">
<input name="submission" type=button onclick="javascript:checkliuyan()" value="提交">
<input name="clear" type="reset" id="clear" value="清除"></td>
</tr>
</table>
</form></td>
</tr>
<%@ include file="/inc/foot.jsp"%>
</table>
</body>
</html>
再贴一个留言板的代码
精选 转载PHP 代码:
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
封装一个工具类,拒绝重复代码!
封装一个工具类,拒绝重复代码!
List 字段 工具类 -
jquery留言板代码 jsp 留言板
系 统 概 述 一个简单的留言板所实现的功能有:用户注册、用户登录、查
jquery留言板代码 sql 验证码 java -
javascript留言板 留言板jquery
Jquery-留言板
jquery javascript html5 css3 es6