?? comment.jsp
字號:
<%@page language="java" contentType="text/html;charset=GBK"%>
<%@page import="java.util.*,java.text.*,oa.main.DealString,javax.swing.tree.DefaultMutableTreeNode,java.util.Hashtable"%>
<%
oa.bean.MainBean myBean = null;
try{
myBean = new oa.bean.MainBean();
//session.setAttribute("UID","11");
DealString ds = new DealString();
//取得菜單類別
String strId1 = ds.toString((String)request.getParameter("txt_type1"));
String strId2 = ds.toString((String)request.getParameter("txt_type2"));
if(strId1.equals(""))strId1 = "1";
if(strId2.equals(""))strId2 = "0";
String strFileId = ds.toString((String)request.getParameter("txt_fileid"));
if(strFileId.equals(""))strFileId = "0";
String strSub = ds.toString((String)request.getParameter("txt_sub"));
String strEdit = ds.toString((String)request.getParameter("txt_edit"));
if(strEdit.equals("")) strEdit = "0";
String strmenuid = ds.toString((String)request.getParameter("txt_menuid"));
if(strmenuid.equals("")) strmenuid = "0";
String strtopicid = ds.toString((String)request.getParameter("txt_topicid"));
if(strtopicid.equals("")) strtopicid = "0";
String strsearch = ds.toString((String)request.getParameter("txt_search"));
if(strsearch.equals("")) strsearch="0";
String ip = request.getRemoteAddr() ;
%>
<table border="0" cellPadding="0" align=center cellSpacing="0" width="790" background="../images/bg01.gif">
<tr><td align=left height=50> 文章標題>>> <%=ds.toGBK(request.getParameter("comtitle"))%></td></tr>
<tr><td align=center height=50><font size=3><b>發(fā)表評論</b></font></td></tr>
<tr><td align=center><table width=33%><tr><td><font color=red>請勿發(fā)表違反國家法律法規(guī)及公司規(guī)定的言論!您的IP地址等信息將自動被系統(tǒng)記錄!</font></td></tr></table></td></tr>
<tr><td align=center><table width=33%><tr><td>IP地址:<%=ip%></td></tr></table></td></tr>
</table>
<table border="0" cellPadding="0" align=center cellSpacing="0" width="790" background="../images/bg01.gif">
<tr align=center><td align=center><TEXTAREA NAME="txt_comment" ROWS="15" COLS="40" maxlength=20></TEXTAREA></td></tr>
<tr align = center><td colspan=2><input type="button" name="Submit2" value="確定" onclick="toservlet()"> <input type="reset" name="re" value="重來"></td></tr>
</table>
<script>
function toservlet()
{
if(document.all.txt_comment.value!="")
{
document.all.txt_type1.value = "<%=strId1%>";
document.all.txt_type2.value = "<%=strId2%>";
document.all.txt_fileid.value = "<%=strFileId%>";
document.all.txt_menuid.value = "1";
document.all.txt_topicid.value = "<%=ip%>";
document.all.txt_search.value = "";
document.all.txt_type.value = "99";
document.all.txt_edit.value = "1";
if(confirm("是否確認發(fā)表該評論?"))
{
document.all.form1.action = "../../manageservlet";
document.all.form1.submit();
}
}
else
{
alert("內(nèi)容不能為空!");
}
}
</script>
<%}finally{
if(myBean!=null)
myBean.closeConn();
}%>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -