📄 sendforum.jsp
字号:
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<jsp:useBean id="user" class="com.jc.taobao.gjj.entity.UserInfo"
scope="session" />
<jsp:useBean id="userbean" class="com.jc.taobao.gjj.logic.UserInfoBean"
scope="session" />
<%@ page import="com.jc.taobao.gjj.entity.*"%>
<jsp:useBean id="photo" class="com.jc.taobao.gjj.entity.PhotoInfo"
scope="session" />
<jsp:useBean id="photobean"
class="com.jc.taobao.gjj.logic.PhotoInfoBean" scope="session" />
<jsp:useBean id="modebean"
class="com.jc.taobao.gjj.logic.ModeInfoBean" scope="session" />
<jsp:useBean id="modex"
class="com.jc.taobao.gjj.entity.ModeInfo" scope="session" />
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>My JSP 'sendforum.jsp' starting page</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
<link href="CSS/sendforum.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="FCKeditor/fckeditor.js"></script>
<style type="text/css">
<!--
.style1 {
font-size: 12px;
font-weight: bold;
}
.style2 {font-size: 10px}
.style3 {font-size: 14px}
.style4 {font-size: 12px}
.style5 {color: #057198}
.style7 {font-size: 12px; color: #6998CE; }
-->
</style>
</head>
<body>
<div id="buttomdiv">
<div id="top">
<img src="image/gao/12.jpg" width="983" height="107">
</div>
<div id="navigation1">
<table width="986" border="0" cellspacing="0" cellpadding="0">
<tr>
<td bgcolor="#EEEEEE"><span class="style3">
<%
String username = (String) session.getAttribute("loginusername");
if (username == null) {
out.print("你好,");
} else {
%>
<%=username%>,
<%
}
%>
欢迎您发帖!</span></td>
</tr>
<tr>
<td bgcolor="#EEEEEE"> </td>
</tr>
<tr>
<td> <img src="image/taobaoluntan/home.gif" width="20" height="20"> <span class="style1"><span class="style5">淘宝论坛</span> <span class="style2">》》</span> ≡ <span class="style5"> <a href="" style="color: #4B6EA6;font-size: 12px;text-decoration: none;"><%=((ModeInfo)((ArrayList)modebean.getquerybymodeid(Integer.valueOf(Integer.parseInt(request.getParameter("modeid"))))).get(0)).getModelname() %></a></span> ≡ <span class="style5">我要发帖</span></span></td>
</tr>
</table>
</div>
<div id="navigation2">
<table width="986" height="35" border="0" cellpadding="0" cellspacing="0">
<tr>
<td> </td>
</tr>
</table>
</div>
<div id="front">
<form id="form1" name="form1" method="post" action="servlet/SendPasterServlet">
<table width="986" height="617" border="0" cellpadding="0"
cellspacing="0" id="table">
<tr>
<td width="267" height="42" align="center" valign="middle" bgcolor="#EEEEEE" style="border-right:1px solid #99C2E2; "><div align="center"><span class="style3">
主题分类
→ </span></div></td>
<td width="717" bgcolor="#F0F0F0"><input type="hidden" name="mastermodeid" value="<%=request.getParameter("modeid") %>">
<%if(username==null)
{
out.print("对不起,您必须先登录!才有发帖的权利");
} %>
</td>
</tr>
<tr>
<td height="38" align="center" valign="middle" bgcolor="#EEEEEE" style="border-right:1px solid #99C2E2; "><span class="style3">
主帖标题
→ </span></td>
<td bgcolor="#F0F0F0" style="padding-left:20px; "><input type="text" id="txtmastertitleid" name="txtmastertitle" style="width:400px; ">
</td>
</tr>
<tr>
<td height="37" bgcolor="#EEEEEE" style="border-right:1px solid #99C2E2; "><div align="center"><span class="style3">
认证码
→ </span></div></td>
<td bgcolor="#F0F0F0" style="padding-left:20px; "><input type="text" name="yanzhengma" style="width: 100px;"> <img src="http://localhost:8080/taobao/servlet/GetRandomImageServlet"> <input type="button" value="看不清,换一张" onclick="javascript:window.history.go(0)">
</td>
</tr>
<tr>
<td height="406" valign="top" bgcolor="#EEEEEE" style="border-right:1px solid #99C2E2; ">
<%
if(username!=null){
user.setUsername(username);
ArrayList al=(ArrayList)userbean.getquerybyuserusename(user);
UserInfo userinfo=(UserInfo)al.get(0);
ArrayList alphoto=(ArrayList)photobean.getquerybyphotoid(Integer.valueOf(userinfo.getPhotoid()));
photo=(PhotoInfo)alphoto.get(0);
%>
<table width="266" height="340" border="0" cellpadding="0" cellspacing="0" style="border:1px solid #99C2E2;border-style:dashed; ">
<tr>
<td height="33" align="center"><%=username %></td>
</tr>
<tr>
<td height="141" align="center"><img src="<%=photo.getPhotopath() %>" width="153" height="143" style="border:1px solid #99C2E2; border-style:dashed; "></td>
</tr>
<tr>
<td height="57"> </td>
</tr>
<tr>
<td valign="top"><table width="256" height="106" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="130"><div align="center"><img src="image/taobaoluntan/emailme.gif">:</div></td>
<td width="126"><div align="left"><span class="style4"><%=userinfo.getUseremail() %></span></div></td>
</tr>
<tr>
<td><div align="center"><img src="image/taobaoluntan/homepage.gif">:</div></td>
<td class="style4"><% %></td>
</tr>
<tr>
<td><div align="center"><img src="image/taobaoluntan/oicqme.gif">:</div></td>
<td><span class="style4"><%=userinfo.getUsertel() %></span></td>
</tr>
</table></td>
</tr>
</table>
<%}%> </td>
<td bgcolor="#F0F0F0" style="padding-left: 15px;padding-top: 10px; border:none;">
<table width="75%" border="0">
<tr>
<td height="25">
<textarea name="contest" id="contest"
style="width:100%; height:400px;"></textarea>
<script type="text/javascript">
var oFCKeditor = new FCKeditor( 'contest' ) ;
oFCKeditor.ToolbarSet = 'Default' ;
oFCKeditor.Width = '100%' ;
oFCKeditor.Height = '400' ;
oFCKeditor.Value = '' ;
oFCKeditor.ReplaceTextarea();
</script>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td bgcolor="#EEEEEE" style="border-right:1px solid #99C2E2; "><div align="center"><span class="style4">用户需知<br>
每次发帖字数不得多于250个汉字</span></div></td>
<td bgcolor="#F0F0F0" style="padding-left: 20px;">
<input type="submit" name="Submit" value="提交帖子" />
<input type="reset" name="new" value="重新发帖" />
</td>
</tr>
</table>
</form>
</div>
<div id="front2"><marquee direction="left" loop="-1"><span class="style7">本站严禁发表色情、政治等违法文章!论坛言论纯属会员个人意见,与本站立场无关。本站内容均来自互联网,如涉及侵犯您的权利,请通知我们,我们将在第一时间予以更改或删除。 </span></marquee></div>
<div id="buttom">
<UL>
<LI>
<A href="">关于淘宝</A>
</LI>
<LI>
<A href="">合作伙伴</A>
</LI>
<LI>
<A href="">帮助中心</A>
</LI>
<LI>
<A href="">诚征英才</A>
</LI>
<LI>
<A href="">联系我们</A>
</LI>
<LI>
<A href="">网站地图</A>
</LI>
<LI>
<A href="">热门商品</A>
</LI>
<LI>
<A href="">热门品牌</A>
</LI>
<LI>
<A href="">版权说明 </A>
</LI>
<LI>
<A href="">淘客推广</A>
</LI>
</UL>
<DIV id="buttomfont">
全球阿里巴巴 - 阿里巴巴网络:
<A href="">中国站</A>
<A href="">国际站</A>
<A href="">日文站</A> |
<A href="">淘宝站</A> |
<A href="">支付宝</A> |
<A href="">中国雅虎</A> |
<A href="">雅虎口碑网</A> |
<A href="">阿里软件</A> |
<A href="">阿里妈妈</A>
</DIV>
<DIV id="buttomfont2">
Copyright 2003-2008, 版权所有 TAOBAO.COM
</DIV>
</div>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -