<%@ page contentType="text/html;charset=UTF-8" %> <%@page import="jcms.entity.module.Jcms_BulletinEntity"%> <%@page import="jcms.blf.module.Jcms_BulletinBLF"%> <%@page import="com.hanweb.common.util.Convert"%> <%@ include file="./config.jsp" %> <% strAppID = Convert.getValue( strAppID ); strWebID = Convert.getValue( strWebID ); //网上公告的ID int bulletinid = Convert.getParameterInt( request,"bulletinid",0); if( strAppID.length()==0 ||strWebID.length() == 0 || bulletinid == 0 ) { out.println("传入参数有误!"); return; } Jcms_BulletinEntity ent = new Jcms_BulletinEntity(); Jcms_BulletinBLF blf = new Jcms_BulletinBLF(sys); ent = blf.getEnt(""+bulletinid,strWebID); //外挂模块路径 String strPath = application.getRealPath("") + "/jcms_files/jcms"+strAppID+"/web"+strWebID +"/site/module/bulletin/"; if( ent == null ) { //out.println(""); return; } //window.open 的URL String strUrl = ""; if( ent.getB_content()==0 ) { strUrl = "./opr_bulletin.jsp?i_id="+bulletinid+"&name="+ (ent.getVc_name()==null?"公告":ent.getVc_name()); } else//自已指定的链接 { strUrl = xmlFile.getContent("link",strPath+"config/config"+bulletinid+".xml"); strUrl = Convert.getValue( strUrl ); strUrl = strUrl.length()==0?("opr_bulletin.jsp?i_id="+bulletinid):strUrl; } String str = "\"" + strUrl + "\"," + ent.getVc_script(); out.println(""); %>