liuyan.jsp
资源名称:shop.rar [点击查看]
上传用户:yatiankong
上传日期:2014-05-16
资源大小:5604k
文件大小:13k
源码类别:
Applet
开发平台:
Java
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
- <%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
- <jsp:useBean id="messageboardBean" class="MyFly.Bean.messageboardBean" scope="request"/>
- <jsp:useBean id="messageboardBeans" class="MyFly.Bean.messageboardBeans" scope="request"/>
- <%@ include file ="top_liuyan.jsp" %>
- <HTML><HEAD><TITLE>仙客吧, 每时每刻, 仙妮蕾德,每时每刻贸易公司,每时每刻,每时每刻贸易有限公司,仙妮蕾德论坛,仙妮蕾德事业论坛,仙妮蕾德产品论坛,生之源,力之源,维体力,蔻蒂森,加力能,Sunrider, Money, Fortune, Health,二十一世纪,财富第五波,黄金产业,加盟,开店,健康,亚健康,疾病,糖尿病,高血压,高脂肪,尿结石,尿毒症,头痛,感冒,健康论坛,事业分享,产品分享,高考,美容,绿色产品,保健产品,杭州, 食疗,食养,膳食,营养,杭州市, 上海市, 浙江省, 做生意, 发财, 发财致富, 特许经营, 连锁加盟, 商务部, 营养学, 营养师, 营养论坛, 创业,心脏病, 痛风, 腰肌劳损, 腰酸背痛, 关节炎, 肝硬化,减肥, 瘦身, 苗条, 肌肉, 长高, 聪明, 机会分享、财富分享、希望分享、事业中心、创业中心、商机、商业机会,安利、完美、立新世纪、优莎娜、如新、南方李锦记、康宝莱、罗麦</TITLE>
- <META content="text/html; charset=gb2312" http-equiv=Content-Type>
- <META content="MSHTML 5.00.3700.6699" name=GENERATOR>
- <META content="Visual Basic 7.0" name=CODE_LANGUAGE>
- <META content=JavaScript name=vs_defaultClientScript>
- <STYLE type=text/css>
- TD {
- FONT-SIZE: 9pt; LETTER-SPACING: 0.02em
- }
- A {
- COLOR: #000000; TEXT-DECORATION: none
- }
- A:hover {
- COLOR:#ff6600 ; POSITION: relative; RIGHT: 0px; TOP: 1px
- }
- .hg {
- LINE-HEIGHT: 18px
- }
- .whitetx {
- COLOR: #000000;
- }
- .ibox {
- BACKGROUND-COLOR: #EEFBEA; BORDER-BOTTOM: #00CC00 1px solid; BORDER-LEFT: #00CC00 1px solid; BORDER-RIGHT: #00CC00 1px solid; BORDER-TOP: #00CC00 1px solid; FONT-SIZE: 12px; HEIGHT: 16px
- }
- .style7 {color: #000000}
- .opacity {FILTER: alpha(opacity=100)
- }
- .style3 {color: #FF0099}
- .style1 {color: #FF0000}
- .style9 {font-size: 14pt}
- .style11 {font-size: 10px}
- </STYLE>
- </HEAD>
- <BODY background="image/fig_background.gif" leftMargin=0 topMargin=0>
- <table width="775" height="689" border="0" align="center" cellspacing="0">
- <tr valign="top">
- <td width="773" height="513"><table width="100%" height="694" border="1" cellspacing="0">
- <!--DWLayoutTable-->
- <tr>
- <td width="770" height="25"><span class="font14px style9"><img src="image/xz07.gif" width="16" height="16"> </span><strong>当前位置:</strong><a href="index.jsp">首页</a><strong> —> </strong>留言 </td>
- </tr>
- <tr>
- <td height="656" align="center" valign="top"><table width="100%" height="661" border="0" cellspacing="0">
- <TR>
- <TD height="646" valign="middle" background="image/liuyan.jpg"><table align=center border=0 cellpadding=0 cellspacing=0 width=627>
- <tbody>
- <tr>
- <td align=center height=43 width=627><table width="100%" height="153" border="0" cellspacing="0">
- <tr>
- <td height="15"><span style="font-size: 12pt; color: #FF0000;"><strong>相关留言:</strong></span></td>
- </tr>
- <tr>
- <td height="15"> </td>
- </tr>
- <tr>
- <td height="94"><%
- int size=2;
- String strNum=request.getParameter("pageNum");
- int cur;
- if(strNum == null || strNum.equals(""))
- {
- cur=1;
- }
- else
- {
- cur=Integer.parseInt(strNum);//取得要显示的页
- }
- messageboardBeans.init(size);
- int pageNum=messageboardBeans.get_pageCount(); //取得总页数
- messageboardBeans.get_pageRow(cur);
- for(int i=0; i<messageboardBeans.getItems(); i++)
- {
- %>
- <table width="550">
- <tr>----------------------------------- 留言 -----------------------------------</tr>
- <tr height="150" >留言者的姓名: <%=messageboardBeans.getName(i)%></tr>
- <tr>留言内容: <%=messageboardBeans.getContent(i)%></tr>
- <tr>留言时间: <%=messageboardBeans.getTime(i)%></tr>
- <tr style="background:background-color ; color:#CC6699">----------------------------------- 回复 -----------------------------------</tr>
- <tr bgcolor="#66CCCC">客服回复内容: <%=messageboardBeans.getHuifu(i)%></tr>
- <tr bgcolor="#66CCCC">客服回复时间: <%=messageboardBeans.getHuifutime(i)%></tr>
- </table>
- <%
- }
- %></td>
- </tr>
- <tr>
- <td height="20">
- <a href="liuyan.jsp?pageNum=<%=1%>">首页
- <%
- if(cur > 1)
- {
- %>
- <a href="liuyan.jsp?pageNum=<%=cur-1 %>">上一页</a>
- <%
- }
- %>
- <%
- if(cur < pageNum)
- {
- %>
- <a href="liuyan.jsp?pageNum=<%=cur+1 %>">下一页</a>
- <%
- }
- %>
- <a href="liuyan.jsp?pageNum=<%=pageNum%>">尾页</a> 页次: <STRONG><FONT
- color=red><%=cur%></FONT>/<%=pageNum%></STRONG>页 <B><%=size%></B>条/页
- </td>
- </tr>
- </table>
- </td>
- </tr>
- <tr>
- <script language="javascript">
- function mycheck(myform){
- if(myform.name.value=="")
- {
- alert("姓名没有输入!");
- myform.name.focus();
- return false;
- }
- if (myform.telephone.value == "")
- {
- alert("请填写电话号码!");
- myform.telephone.focus();
- return false;
- }
- if(myform.qq.value=="")
- {
- alert("OICQ没有输入!");
- myform.qq.focus();
- return false;
- }
- if(myform.mailbox.value=="")
- {
- alert("请填写邮箱!");
- myform.mailbox.focus();
- return false;
- }
- if (myform.mailbox.value!="")
- { if((myform.mailbox.value.length < 5)||(myform.mailbox.value.indexOf("@")<1) || (myform.mailbox.value.indexOf(".")<1) || (myform.mailbox.value.charAt(myform.mailbox.value.length-1)=="."))
- {
- alert("请填写正确的E-mail地址以便联系!格式为:userName@host.name");
- myform.mailbox.focus();
- return false;
- }
- }
- if(myform.title.value=="")
- {
- alert("请填写主题!");
- myform.title.focus();
- return false;
- }
- if(myform.content.value=="")
- {
- alert("请填写内容!");
- myform.content.focus();
- return false;
- }
- }
- </script>
- <form name="myform" onSubmit="return mycheck(myform)" action="addliouyan.jsp" method="post" >
- <td height="415" valign="top">
- <table align=left border=0 cellpadding=0 cellspacing=0
- width="100%">
- <tbody>
- <tr>
- <td width="73%" valign="top">
- <table align=center border=0 cellpadding=0 cellspacing=0
- height=356 width="95%">
- <tbody>
- <tr align=middle>
- <td height=53 colspan=2 class=font14px style="font-size: 16pt" style9><div align="left"><strong> 请填写您的留言</strong></div></td>
- </tr>
- <tr>
- <td align=right height=25>姓名:</td>
- <td height=-2 width="83%"><font size=+0>
- <input type="text" name="name" size=18
- style="FONT-SIZE: 14px">
- </font></td>
- </tr>
- <tr>
- <td align=right height=25>电话:</td>
- <td height=-1 width="83%"><font size=+0>
- <input type="text" name="telephone" size=18
- style="FONT-SIZE: 14px">
- </font></td>
- </tr>
- <tr>
- <td align=right height=25>OICQ:</td>
- <td height=11 width="83%"><font size=+0>
- <input type="text"
- class=kuang maxlength=36 name="qq" size=18
- style="FONT-SIZE: 14px">
- </font></td>
- </tr>
- <tr>
- <td align=right height=25>E-mail:</td>
- <td height=11 width="83%"><font size=+0>
- <input type="text"
- class=kuang maxlength=36 name="mailbox" size=18
- style="FONT-SIZE: 14px">
- </font></td>
- </tr>
- <tr>
- <td align=right height=25 width="17%">留言主题:
- </td>
- <td height=25 width="83%"><input type="text" class=kuang
- maxlength=36 name="title" size=30
- style="FONT-SIZE: 14px"></td>
- </tr>
- <tr>
- <td align=right height=1 valign=top width="17%">留言内容:
- </td>
- <td height=1 valign=top width="83%"><textarea cols=45 name="content" rows=10 style="FONT-SIZE: 14px"></textarea>
- </td>
- </tr>
- <tr>
- <td height=0 valign=top width="17%"></td>
- <td height=0 valign=top width="83%"><input name=cmdOk style="BACKGROUND-COLOR: #ffffff" type=submit value=提交留言>
- <input name=cmdReset style="BACKGROUND-COLOR: #ffffff" type=reset value=重新填写>
- </td>
- </tr>
- </tbody>
- </table></td>
- <td width="27%" valign="top">
- <div align=center>
- <table width="100%" border="0">
- <tr>
- <td height="28" valign="top"> </td>
- </tr>
- <tr>
- <td height="347" valign="top"> <p>请对自己的言论负责,请勿发表包含有以下内容的言论:<BR>
- (一)反对宪法所确定的基本原则的; <BR>
- (二)危害国家安全,泄露国家秘密,颠覆国家政权,破坏国家统一的;
- <BR>
- (三)损害国家荣誉和利益的;<BR>
- (四)煽动民族仇恨、民族歧视,破坏民族团结的; <BR>
- (五)破坏国家宗教政策,宣扬邪教和封建迷信的; <BR>
- (六)散布谣言,扰乱社会秩序,破坏社会稳定的; <BR>
- (七)散布淫秽、色情、赌博、暴力、凶杀、恐怖或者教唆犯罪的; <BR>
- (八)侮辱或者诽谤他人,侵害他人合法权益的; <BR>
- (九)含有法律、行政法规禁止的其他内容的。
- <p> </td>
- </tr>
- </table>
- </div></td>
- </tr>
- </tbody>
- </table>
- </td>
- </form>
- </tr>
- <tr>
- <td height="16"> </td>
- </tr>
- </tbody>
- </table> </TD>
- </TR>
- </table></td>
- </tr>
- </table></td>
- </tr>
- </table>
- <%@ include file ="foot.jsp"%>
- </BODY>
- </HTML>