<%@ page language="java"%>
<%@ page import="com.ucap.util.string.StrOperate"%>
<%@ page contentType="text/html;charset=utf-8"%>
<% 
com.ucap.system.db.DataBase db=null;
try{  db=com.ucap.system.db.DataBaseFactory.getDataBase(0);
  com.ucap.system.db.PreStatement stmt = null;
  com.ucap.system.db.RecordSet rs = null;
  org.apache.commons.logging.Log logger = org.apache.commons.logging.LogFactory.getLog("CMS");
  String requestCode="-1";
  String CategoryID="-1";
  if(request.getParameter("requestCode")!=null){
    requestCode=request.getParameter("requestCode");
  }
  if(request.getParameter("CategoryID")!=null){
    CategoryID=request.getParameter("CategoryID");
  }
  com.ucap.cm.category.interfaces.CategoryManager cateManager = null;
  cateManager = com.ucap.cm.category.interfaces.CategoryFactory.getCategoryManager();
  /**多语言内容,[简体中文、繁体中文、英文、韩文、日文].此数组应用于插件中文需要多语言支持.*/
  final String[][] multiLangStrArrays=
  {
  {"共","条","当前第","页","首页","上一页","末页","下一页","更多","评论","大","中","小","发送给朋友","邮件订阅","RSS订阅","加入到收藏夹","打印","关闭","首页"},
  {},
  {},
  {},
  {},
  {},
  {},
  {},
  {},
  {},
  {},
  {}
  };
  /**多语言Key,[zh_CN、zh_TW、en、ko_KR、ja_JP、de_DE、fr_FR、ru_RU、ar_DZ、pt_PT、it_IT、sp_SP]*/
  final String[] multiLangStrKeys={"zh_CN","zh_TW","en","ko_KR","ja_JP","de_DE","fr_FR","ru_RU","ar_DZ","pt_PT","it_IT","sp_SP"};
  com.ucap.cm.template.interfaces.TemplateManager templateManager = com.ucap.cm.template.interfaces.TemplateFactory.getTemplateManager();
  long defaultSiteId=0;
  String defaultSiteCode="";
  String catePath="";
  long defaultCateId=0;
  long defaultinfoId=0;
  String resourcePrefix="../../../../business/cmsresources/";
  String resourceDynamicPrefix="http://10.43.97.36:7001/publicfiles///business/cmsresources/";
  defaultCateId=java.lang.Long.parseLong(requestCode);
  com.ucap.cm.category.entity.Category defaultCate=cateManager.getCateByCateId(defaultCateId);
  if(defaultCate!=null){
    defaultSiteId=defaultCate.getParentSiteId();
  }
  if(cateManager!=null){
    defaultSiteCode=cateManager.getSiteCode(defaultSiteId);
    catePath=cateManager.getCategoryPath(defaultCateId);
  }
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>东莞市公安局</title>
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
-->
</style>
<link href="http://10.43.97.36:7001/publicfiles///model/htmltemplate//441900610000/css/dgpolice_001.css" rel="stylesheet" type="text/css">
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
</script>
</head>

<body background="http://10.43.97.36:7001/publicfiles///model/htmltemplate//441900610000/images/bodybg.gif" style="background-position:center">
<table width="780" border="0" align="center" cellpadding="0" cellspacing="0" background="http://10.43.97.36:7001/publicfiles///model/htmltemplate//441900610000/images/index_002_02.gif">
  <tr>
    <td width="11"><img src="http://10.43.97.36:7001/publicfiles///model/htmltemplate//441900610000/images/index_002_01.gif" width="11" height="38" alt=""></td>
    <td width="568"><%
if (true) {
/**开始定义变量及对象实例*/
com.ucap.cm.info.interfaces.InformationManager infoManager=com.ucap.cm.info.interfaces.InformationFactory.getInformationManage();
com.ucap.control.filemng.file.MNGFileManager fileManager = new com.ucap.control.filemng.file.logic.FileBean();
java.lang.StringBuffer outputString = new java.lang.StringBuffer();
java.util.ArrayList infoBean = null;
String imgpreurl ="";
String inputCateCode = "";
String inputSiteCode = "";
String ulorglflag = "0";
int x = 0;
/**结束定义变量及对象实例*/

imgpreurl = fileManager.getTemplateContextPath()+com.ucap.util.application.Constant.DEFAULT_HTTP_DIR_SEPERATOR+"/441900610000/"+com.ucap.util.application.Constant.DEFAULT_HTTP_DIR_SEPERATOR;
logger.debug("imgpreurl=========="+imgpreurl);

/**根据站点代号和栏目代号取得站点下栏目列表集*/
if(!defaultSiteCode.equals("")){
infoBean=cateManager.getCatesDirBySCCode(defaultSiteCode,"");
}
/**结束根据站点代号和栏目代号取得站点下栏目列表集*/

if (infoBean != null && infoBean.size()>0) {
 String hrefLinkCss="";
/**开始获取图片或字符前缀*/
 String prefixString="";
prefixString="<td class='' width='15'>&nbsp;&nbsp;|&nbsp;&nbsp;</td>";
/**结束获取图片或字符前缀*/

java.util.ArrayList navigationList=new java.util.ArrayList();
for(int j=0;j<infoBean.size();j++){
  com.ucap.cm.category.value.TempCategory tempNaviCategory=(com.ucap.cm.category.value.TempCategory)infoBean.get(j);
  if(tempNaviCategory!=null && tempNaviCategory.getIsUsedInMap() && ((ulorglflag.equals("1") && tempNaviCategory.getUniteLibAndGatherLibFlag().equals("1"))||tempNaviCategory.getUniteLibAndGatherLibFlag().equals("0"))){
     navigationList.add(tempNaviCategory);
  }
}
for(int i=0;i<navigationList.size();i++){
String linkURL = "";
com.ucap.cm.category.value.TempCategory tc=(com.ucap.cm.category.value.TempCategory)navigationList.get(i);
linkURL = infoManager.getCateUrl("CI",Long.parseLong(tc.getId()),"3","");
logger.debug("linkURL=========="+linkURL);
if(i>0){
   outputString.append("&nbsp;&nbsp;|&nbsp;&nbsp;");
}
if(!linkURL.equals("")){outputString.append("<a href='"+linkURL+"' target='_self' "+hrefLinkCss+">");
}
outputString.append(tc.getDisplayName());
if(!linkURL.equals("")){outputString.append("</a>");
}
if(i>0){
        if(0!=20 && (i+1) % 20==0&&i!=navigationList.size()-1){
                outputString.append("<br>");
        }else if(i==navigationList.size()-1){
                outputString.append("<br>");
        }
}else if(i==0){
        if(20==1){
                outputString.append("<br>");
        }
}
}
}
else {
logger.debug("[FirstInfoOfCateBean.getPreString()]-infoBean is null");
}
out.print(outputString.toString());}%></td>
  <td width="43"><img src="http://10.43.97.36:7001/publicfiles///model/htmltemplate//441900610000/images/index_002_04.gif" width="13" height="38" alt=""><img src="http://10.43.97.36:7001/publicfiles///model/htmltemplate//441900610000/images/index_002_05.gif" width="30" height="38" alt=""></td>
    <td width="158" align="right"><table width="148" height="20" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td width="102"><input type="text" name="textfield3" style="width:90px; border:1px solid #cccccc; "></td>
        <td width="82"><img src="http://10.43.97.36:7001/publicfiles///model/htmltemplate//441900610000/images/index_14.gif" width="43" height="18" alt=""></td>
      </tr>
    </table></td>
  </tr>
</table>
<table width="780" border="0" align="center" cellpadding="0" cellspacing="0">  <tr>
    <td height="177" valign="top">
	
	<div id="Layer2" style="position:absolute; width:200px; height:115px; z-index:2">
      <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="780" height="177">
        <param name="movie" value="http://10.43.97.36:7001/publicfiles///model/htmltemplate//441900610000/images/flashtop.swf">
        <param name="quality" value="high">
		<param name="wmode" value="transparent">
        <embed src="http://10.43.97.36:7001/publicfiles///model/htmltemplate//441900610000/images/flashtop.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="780" height="177"></embed>
      </object>
    </div><div id="Layer1" style="position:absolute; width:200px; height:115px; z-index:1">
      <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="500" height="177">
        <param name="movie" value="http://10.43.97.36:7001/publicfiles///model/htmltemplate//441900610000/images/star.swf">
        <param name="quality" value="high">
		<param name="wmode" value="transparent">
        <embed src="http://10.43.97.36:7001/publicfiles///model/htmltemplate//441900610000/images/star.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="500" height="177"></embed>
      </object>
    </div>
	
	<%
if (true) {
com.ucap.cm.info.entity.Information info = null;
com.ucap.cm.category.entity.Category category = null;
com.ucap.cm.template.value.TemplateSiteTemp templatetmp = null;
java.lang.StringBuffer outputString = new java.lang.StringBuffer("");
String inputSiteCode = "";
String inputCateCode = "pdbtp00d";
String inputWidth = "50";
String inputHeight = "50";
com.ucap.cm.info.interfaces.InformationManager tmpInfoManager=com.ucap.cm.info.interfaces.InformationFactory.getInformationManage();
logger.debug("[FirstInfoOfCateBean.getPageString()]defaultSiteCode="+defaultSiteCode+"&inputCateCode="+inputCateCode);
info = tmpInfoManager.getFirstInfoByCateCode(defaultSiteCode,inputCateCode);
category = cateManager.getCateByCode(defaultSiteCode,inputCateCode);
if(info==null||category==null){
  logger.debug("[FirstInfoOfCateBean.getPageString()]defaultCateId="+defaultCateId);
  info = tmpInfoManager.getFirstInfoByCateId(defaultCateId);
  category = cateManager.getCateByCateId(defaultCateId);
}
if (info != null && category != null) {
String infoContent=info.getContent();
String infoTitle=info.getTitle();
String infoSubTitle=info.getSubTitle();
infoContent=StrOperate.checkNull(infoContent,"").replaceAll("SYSIMAGEPATHFLAG",resourceDynamicPrefix);
infoTitle=StrOperate.checkNull(infoTitle,"").replaceAll("SYSIMAGEPATHFLAG",resourceDynamicPrefix);
infoSubTitle=StrOperate.checkNull(infoSubTitle,"").replaceAll("SYSIMAGEPATHFLAG",resourceDynamicPrefix);
outputString.append(""+infoContent+"");
}else{
   logger.debug("[FirstInfoOfCateBean.getPreString()]-info is null");
}
out.print(outputString.toString());}
%>
</td>
  </tr>
</table>
<table width="780" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  <tr>
    <td><table width="780" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="559" bgcolor="#FFFFFF"><table width="559" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="24"><img src="http://10.43.97.36:7001/publicfiles///model/htmltemplate//441900610000/images/index_01_02.gif" width="24" height="24" alt=""></td>
                <td width="62">您的位置：</td>
                <td width="473"><% 
    if(true){ 
      /**开始取得多语言序号,简体中文-0*/
      int multiLangSeq=0; 
      if(multiLangStrKeys!=null&&multiLangStrKeys.length>0){ 
        for(int i=0;i<multiLangStrKeys.length;i++){ 
          if(multiLangStrKeys[i].equals("zh_CN")){ 
              multiLangSeq=i; 
              break; 
          } 
        } 
      } 
      
      /**结束取得多语言序号,简体中文-0*/
        /**开始定义变量及对象*/
        long siteId=0;
        String siteName="";
        long cateID=0;
        String siteIndexUrl = "";
        String displayStr="";
        String displayHead="1";
        String showHead="";
        long categoryId=defaultCateId; 
        com.ucap.cm.category.entity.Category cate=null;
        String separator=">>";
        com.ucap.cm.info.interfaces.InformationManager infoManager=com.ucap.cm.info.interfaces.InformationFactory.getInformationManage();
        com.ucap.cm.site.entity.Site theSite=null;
        /**结束定义变量及对象*/
        theSite=(new com.ucap.cm.site.logic.SiteBean()).getSiteByID(defaultSiteId);
        //构造站点的URL
        if(theSite!=null){
          siteId=theSite.getID();
          siteName=theSite.getName();
          siteIndexUrl=infoManager.getSiteUrl(siteId,"3","");
        }
        if(displayHead.equals("1")){
            showHead = "<a href='"+siteIndexUrl+"'>"+multiLangStrArrays[multiLangSeq][19]+"</a>";
        }else if(displayHead.equals("2")){
            showHead = "<a href='"+siteIndexUrl+"'>"+siteName+"</a>";
        }else if(displayHead.equals("3")){
          showHead +="";
        }
        //构造站点下的层次栏目及其URL
        try{ 
          int i=0;
          do { 
            if(categoryId!=-1)
              cate=cateManager.getCateByCateId(categoryId); 
            if(cate!=null){
              cateID=cate.getID();
              String cateName=cate.getDisplayName(); 
              String cateIndexUrl = "";
cateIndexUrl = infoManager.getCateUrl("CI",cateID,"3","");
              logger.debug("cateIndexUrl="+cateIndexUrl);
              if(!cateIndexUrl.equals("") && !displayHead.equals("3")){ 
                displayStr =" "+separator+" <a href='"+cateIndexUrl+"'>" + cateName+"</a>"+displayStr; 
              }else{
                displayStr =" "+separator+" " + cateName+""+displayStr; 
              }
              if(i!=0){
                categoryId=cate.getParentCategoryId(); 
              }else{
                displayStr="";
              }
              i++;
            }//end if(cate!=null)
          }while(categoryId !=0 && cate!=null); 
          displayStr=showHead+displayStr;
          if(displayStr.trim().startsWith(separator)){
             displayStr=displayStr.substring(displayStr.indexOf(separator)+1);
          }
          displayStr="<span >"+displayStr+"</span>"; 
          out.print(displayStr); 
        }catch(Exception e){
          out.print("Database Load False~~!");
        } 
    }%></td>
              </tr>
          </table></td>
          <td width="221">&nbsp;</td>
        </tr>
    </table></td>
  </tr>
  <tr>
    <td align="center" valign="top"><table width="700" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="20">&nbsp;</td>
        </tr>
        <tr>
          <td><table width="700" border="0" cellpadding="0" cellspacing="0" background="http://10.43.97.36:7001/publicfiles///model/htmltemplate//441900610000/images/index_01_19.gif">
              <tr>
                <td width="40"><img src="http://10.43.97.36:7001/publicfiles///model/htmltemplate//441900610000/images/index_01_16.gif" width="40" height="27" alt=""></td>
                <td width="150" background="http://10.43.97.36:7001/publicfiles///model/htmltemplate//441900610000/images/index_01_17.gif" style="font-size:14px; color:#FFFFFF; font-weight:bold; "><% 
if(true){ 
com.ucap.cm.category.entity.Category category=null;
 if(category==null&&defaultCate!=null){
   category=defaultCate;
 }
 com.ucap.cm.category.value.TempCategory tempCategory=null;
 if(category!=null){
   tempCategory=cateManager.CategoryConvTempCategory(category);
 }
long preImg=0;
long sufImg=0;
long logoImg=0;
if(tempCategory!=null){
if(tempCategory.getPrefixImg()!=null)
preImg=tempCategory.getPrefixImg().getSourceId();
if(tempCategory.getSufixImg()!=null)
sufImg=tempCategory.getSufixImg().getSourceId();
if(tempCategory.getCategoryLogo()!=null)
logoImg=tempCategory.getCategoryLogo().getSourceId();
}
com.ucap.cm.directory.logic.ImgBean imgBean=new com.ucap.cm.directory.logic.ImgBean();
com.ucap.cm.directory.entity.Img preImgEntity=imgBean.searchImg(preImg);
com.ucap.cm.directory.entity.Img sufImgEntity=imgBean.searchImg(sufImg);
com.ucap.cm.directory.entity.Img logoImgEntity=imgBean.searchImg(logoImg);
String displayStr="";
if("0".equals("1")){
if(preImgEntity!=null){
displayStr+="<img src='"+preImgEntity.getNomalSourceFile().getImageType()+"'>";
}
}
if("1".equals("1")){
if(tempCategory!=null){
displayStr+=""+tempCategory.getDisplayName()+"";
}
}
if("0".equals("1")){
if(logoImgEntity!=null){
displayStr+="<img src='"+logoImgEntity.getNomalSourceFile().getImageType()+"'>";
}
}
if("0".equals("1")){
if(sufImgEntity!=null){
displayStr+="<img src='"+sufImgEntity.getNomalSourceFile().getImageType()+"'>";
}
}
out.println(displayStr); 
}
%> 
</td>
                <td width="310"><img src="http://10.43.97.36:7001/publicfiles///model/htmltemplate//441900610000/images/index_01_18.gif" width="34" height="27" alt=""></td>
                <td width="200" align="right" background="http://10.43.97.36:7001/publicfiles///model/htmltemplate//441900610000/images/index_01_19.gif"><img src="http://10.43.97.36:7001/publicfiles///model/htmltemplate//441900610000/images/index_01_21.gif" width="39" height="27" alt=""></td>
              </tr>
          </table></td>
        </tr>
        <tr>
          <td><img src="http://10.43.97.36:7001/publicfiles///model/htmltemplate//441900610000/images/space.gif" width="100" height="10"></td>
        </tr>
        <tr>
          <td></td>
        </tr>
        <tr>
          <td height="400" valign="top"><%
if (true) {
com.ucap.cm.info.entity.Information info = null;
com.ucap.cm.category.entity.Category category = null;
com.ucap.cm.template.value.TemplateSiteTemp templatetmp = null;
java.lang.StringBuffer outputString = new java.lang.StringBuffer("");
String inputSiteCode = "";
String inputCateCode = "";
String inputWidth = "50";
String inputHeight = "50";
com.ucap.cm.info.interfaces.InformationManager tmpInfoManager=com.ucap.cm.info.interfaces.InformationFactory.getInformationManage();
if(info==null||category==null){
  logger.debug("[FirstInfoOfCateBean.getPageString()]defaultCateId="+defaultCateId);
  info = tmpInfoManager.getFirstInfoByCateId(defaultCateId);
  category = cateManager.getCateByCateId(defaultCateId);
}
if (info != null && category != null) {
String infoContent=info.getContent();
String infoTitle=info.getTitle();
String infoSubTitle=info.getSubTitle();
infoContent=StrOperate.checkNull(infoContent,"").replaceAll("SYSIMAGEPATHFLAG",resourceDynamicPrefix);
infoTitle=StrOperate.checkNull(infoTitle,"").replaceAll("SYSIMAGEPATHFLAG",resourceDynamicPrefix);
infoSubTitle=StrOperate.checkNull(infoSubTitle,"").replaceAll("SYSIMAGEPATHFLAG",resourceDynamicPrefix);
outputString.append(""+infoContent+"");
}else{
   logger.debug("[FirstInfoOfCateBean.getPreString()]-info is null");
}
out.print(outputString.toString());}
%>
</td>
        </tr>
        <tr>
          <td height="50">&nbsp;</td>
        </tr>
    </table></td>
  </tr>
</table>
<table width="780" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td><img src="http://10.43.97.36:7001/publicfiles///model/htmltemplate//441900610000/images/index_93.gif" width="780" height="6" alt=""></td>
  </tr>
  <tr>
    <td height="24" align="center" bgcolor="#F6F6F6"><%
if (true) {
/**开始定义变量及对象实例*/
com.ucap.cm.info.interfaces.InformationManager infoManager=com.ucap.cm.info.interfaces.InformationFactory.getInformationManage();
com.ucap.control.filemng.file.MNGFileManager fileManager = new com.ucap.control.filemng.file.logic.FileBean();
java.lang.StringBuffer outputString = new java.lang.StringBuffer();
java.util.ArrayList infoBean = null;
String imgpreurl ="";
String inputCateCode = "pqtlm";
String inputSiteCode = "dgpolice";
String ulorglflag = "0";
int x = 0;
/**结束定义变量及对象实例*/

imgpreurl = fileManager.getTemplateContextPath()+com.ucap.util.application.Constant.DEFAULT_HTTP_DIR_SEPERATOR+"/441900610000/"+com.ucap.util.application.Constant.DEFAULT_HTTP_DIR_SEPERATOR;
logger.debug("imgpreurl=========="+imgpreurl);

/**根据站点代号和栏目代号取得站点下栏目列表集*/
infoBean=cateManager.getCatesDirBySCCode(inputSiteCode,inputCateCode);
/**结束根据站点代号和栏目代号取得站点下栏目列表集*/

if (infoBean != null && infoBean.size()>0) {
 String hrefLinkCss="";
/**开始获取图片或字符前缀*/
 String prefixString="";
prefixString="<td class='' width='15'>&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;</td>";
/**结束获取图片或字符前缀*/

java.util.ArrayList navigationList=new java.util.ArrayList();
for(int j=0;j<infoBean.size();j++){
  com.ucap.cm.category.value.TempCategory tempNaviCategory=(com.ucap.cm.category.value.TempCategory)infoBean.get(j);
  if(tempNaviCategory!=null && tempNaviCategory.getIsUsedInMap() && ((ulorglflag.equals("1") && tempNaviCategory.getUniteLibAndGatherLibFlag().equals("1"))||tempNaviCategory.getUniteLibAndGatherLibFlag().equals("0"))){
     navigationList.add(tempNaviCategory);
  }
}
for(int i=0;i<navigationList.size();i++){
String linkURL = "";
com.ucap.cm.category.value.TempCategory tc=(com.ucap.cm.category.value.TempCategory)navigationList.get(i);
linkURL = infoManager.getCateUrl("CI",Long.parseLong(tc.getId()),"3","");
logger.debug("linkURL=========="+linkURL);
if(i>0){
   outputString.append("&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;");
}
if(!linkURL.equals("")){outputString.append("<a href='"+linkURL+"' target='_self' "+hrefLinkCss+">");
}
outputString.append(tc.getDisplayName());
if(!linkURL.equals("")){outputString.append("</a>");
}
if(i>0){
        if(0!=20 && (i+1) % 20==0&&i!=navigationList.size()-1){
                outputString.append("<br>");
        }else if(i==navigationList.size()-1){
                outputString.append("<br>");
        }
}else if(i==0){
        if(20==1){
                outputString.append("<br>");
        }
}
}
}
else {
logger.debug("[FirstInfoOfCateBean.getPreString()]-infoBean is null");
}
out.print(outputString.toString());}%></td>
  </tr>
  <tr>
    <td><img src="http://10.43.97.36:7001/publicfiles///model/htmltemplate//441900610000/images/index_95.gif" width="780" height="11" alt=""></td>
  </tr>
  <tr>
    <td height="110" align="center" bgcolor="#F6F6F6"><%
if (true) {
com.ucap.cm.info.entity.Information info = null;
com.ucap.cm.category.entity.Category category = null;
com.ucap.cm.template.value.TemplateSiteTemp templatetmp = null;
java.lang.StringBuffer outputString = new java.lang.StringBuffer("");
String inputSiteCode = "dgpolice";
String inputCateCode = "s270";
String inputWidth = "50";
String inputHeight = "50";
com.ucap.cm.info.interfaces.InformationManager tmpInfoManager=com.ucap.cm.info.interfaces.InformationFactory.getInformationManage();
logger.debug("[FirstInfoOfCateBean.getPageString()]inputSiteCode="+inputSiteCode+"&inputCateCode="+inputCateCode);
info = tmpInfoManager.getFirstInfoByCateCode(inputSiteCode,inputCateCode);
category = cateManager.getCateByCode(inputSiteCode,inputCateCode);
if(info==null||category==null){
  logger.debug("[FirstInfoOfCateBean.getPageString()]defaultCateId="+defaultCateId);
  info = tmpInfoManager.getFirstInfoByCateId(defaultCateId);
  category = cateManager.getCateByCateId(defaultCateId);
}
if (info != null && category != null) {
String infoContent=info.getContent();
String infoTitle=info.getTitle();
String infoSubTitle=info.getSubTitle();
infoContent=StrOperate.checkNull(infoContent,"").replaceAll("SYSIMAGEPATHFLAG",resourceDynamicPrefix);
infoTitle=StrOperate.checkNull(infoTitle,"").replaceAll("SYSIMAGEPATHFLAG",resourceDynamicPrefix);
infoSubTitle=StrOperate.checkNull(infoSubTitle,"").replaceAll("SYSIMAGEPATHFLAG",resourceDynamicPrefix);
outputString.append(""+infoContent+"");
}else{
   logger.debug("[FirstInfoOfCateBean.getPreString()]-info is null");
}
out.print(outputString.toString());}
%>
</td>
  </tr>
</table>
</body>
</html><%try{ 
if(rs!=null) rs.close(); 
if(stmt!=null) stmt.close(); 
if(db!=null) db.close(); 
}catch(Exception e){ 
logger.error(e.toString()); 
 } 
}catch(Exception x){System.out.println("x:"+x.toString());}
finally{    
try{db.close();}catch(Exception xe){;}}%>
