⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 edit_text_submit.jsp

📁 电信的网厅的整站代码
💻 JSP
字号:
<%@ page contentType="text/html; charset=GBK" language="java" errorPage=""%>
<%request.setCharacterEncoding("GBK");%>
<%@ page import="com.doone.util.*"%>
<%@ page import="com.doone.data.*"%>
<%@ page import="com.doone.fj1w.bbs.*"%>
<%@ page import="com.doone.uurm.*"%>
<%@ page import="com.doone.fj1w.fjmgr.sysmgr.*"%>
<%@ page import="com.doone.fj1w.fjmgr.config.UpImageBean"%>
<%@ page import="java.util.*"%>
<%@ page import="java.io.*"%>
<%
	UpImageBean contentBean = new UpImageBean();
	String sParentId = request.getParameter("PARENT_ID");
	String sBoardId = request.getParameter("BOARD_ID");
	String sTextOrImage = request.getParameter("TEXTORIMAGE");//判断是显示图片,还是文字
	String sContentId = request.getParameter("CONTENT_ID");
	String sLinkType = request.getParameter("LINKTYPE");//链接类型(=1显示最新动态,优惠资讯按钮)
	String sMenuCode = request.getParameter("MENUCODE");//菜单编码
	String sTitle = request.getParameter("TITLE");
    String sContent = request.getParameter("LINK");//链接
	boolean bIsint=contentBean.is_int(sContent);
	if ((sContent==null)||(sContent.trim().length()==0)||(!bIsint)){
		sContent = request.getParameter("LTITLE");//自己输入的链接
		sContent=sContent.replaceAll("\"","");
		sContent=sContent.replaceAll("\'","");
		}
	String sEditornew = request.getParameter("editOrnew");//链接
	WebAuth auth = WebAuth.getInstance(request);
    Long long1= null;
      if (sBoardId!=null)
		{try{
		long1= new Long(sBoardId);
		}catch(NumberFormatException ex){
		 long1 = new Long(0);
		}}
		DacClient db = new DacClient();
	try {
		TF_Content content =null;
		db.beginTransaction(-1);
		if (sEditornew.equals("1"))
		{content = new TF_Content(db);
		}
		else{
		content = new TF_Content(db, Long.parseLong(sContentId));}
				content.setBoard_ID(long1.longValue());
				content.setAccount_ID(auth.getUserID());
				content.setAccount_Name(auth.getUserCode());
				content.setUser_Name(auth.getUserName());
				content.setTitle(sTitle);
				content.setContent(sContent.toString());
				content.setCreate_Time(new Date());
                content.setTip_Order(0);
                content.setExtract_Sign("0");
                content.setReply_Count(0);
                content.setReply_Account_ID(auth.getUserID());
                content.setReply_User_Name(auth.getUserName());
                content.setLast_Click_Time(new Date());
                content.setLast_Reply_Time(new Date());
                content.setContentType("03");
                content.save();		 
	}
	catch(Exception ex) {
		try{
			db.endTransaction(false);
		}
		catch(Exception e){}
 	    out.write("<script language=javascript>window.location.href='" + request.getContextPath()
                                + "/view/sysmgr/OperFailure.jsp?error=" + Util.Replace(ex.getMessage())
                                + "';</script>");
        FileLogger.getLogger().warn(ex.getMessage(), ex);
	}
%>
     <link href="../../common/style/main.css" rel="stylesheet" type="text/css" />
      <style>
.botton {
font-size: 12px;
color: #804000;
BORDER-RIGHT: #666666 1px solid;
BORDER-TOP: #666666 1px solid;
 BORDER-LEFT: #666666 1px solid;
  BORDER-BOTTOM: #666666 1px solid;
BACKGROUND-COLOR: #ffffff;
}
.add_zl {
	font-size: 12px;
	line-height: 18px;
	color: #333333;
	text-decoration: none;
}

body {
	margin-top: 0px;
}
.biaoti {
	font-size: 12px;
	color: #FFFFFF;
	text-decoration: none;
}
.style4 {
	color: #FF0000;
	font-weight: bold;
	font-size: 12px;
}
</style>
<table id="ibtnPanel" style="font-size: 9pt; border-bottom: #efefef 1px outset" cellspacing="0"
					cellpadding="0" width="100%" border="0">
					<tr bgcolor="#efefef" height="33">
						<td align="left" valign="middle" id="ibtnaddResearch"  title="" onClick="return fnToolAddResearch();" DefaultClass="btnDefault" OverClass="btnOver" DownClass="btnDown"><table width="100%"  border="0" cellpadding="0" cellspacing="1" class="add_zl">
                          <tr>
                            <td height="27" bgcolor="#f5f5f5">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="edit_web_index.jsp">返回修改首页导航</a></td>
                          </tr>
                        </table></td>
					</tr>
				</table>
<table width="300" border="0" align="center" cellpadding="0" cellspacing="0" class="add_zl">
  <tr>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td align="center">正在执行您的操作,请稍候!!!</td>
  </tr>
  <tr>
    <td align="center"><span id=BackSecs class="style4"></span></td>
  </tr>
</table> 
<%String fff="edit_text_file.jsp?PARENT_ID="+sParentId+"&TEXTORIMAGE="+sTextOrImage+"&MENUCODE="+sMenuCode+"&LINKTYPE="+sLinkType;%>
		<script language="JavaScript">

			function countDown(Secs) {
				BackSecs.innerText=Secs;
				if(Secs>0) {
					setTimeout("countDown("+Secs+"-1)",1000);
				}
				else {
				 	var str="<%=fff%>";
					window.location.href = str; 
				}
			}
			countDown(5);

     </script>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -