亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? createschoolhtml.java

?? java阿里巴巴代碼
?? JAVA
字號:
package com.buildhtml;

import java.util.ArrayList;
import java.util.HashMap;

import tools.util.FileIO;
import tools.util.StrReplace;

import com.saas.biz.attachMgr.Attachinfo;
import com.saas.biz.enquirydealMgr.EnquirydInfo;
import com.saas.biz.repositoryMgr.RepositoryInfo;
import com.saas.biz.sortMgr.ClassInfoBuild;
import com.saas.sys.exp.SaasApplicationException;
import com.saas.sys.log.Logger;

/**
 * @author:xsaas
 * @desc: 學院首頁生成
 * @2008-7-9
 */
public class CreateSchoolHtml {
	
	
	FileAndString FileString = new FileAndString();
	
	
	ClassInfoBuild classBuild = new ClassInfoBuild();
	
	
	Logger log = new Logger(this);
	
	
	
	public void buildIndex(String rootpath) throws SaasApplicationException {

		String str = "";
		String filepath = rootpath + "/" + "/school/index.html";
		String templatePath = rootpath + "/" + "templates/school.html";
		String templateStr = FileIO.LoadFile(templatePath);
		log.LOG_INFO("filepath" + filepath);
		log.LOG_INFO("templatePath" + templatePath);
		
		String[] tab = { "{#include-top#}", "{#include-bottom#}", "{#repost-list-8#}", "{#sale-list-8#}", "{#glass-img-2#}", "{#tech-list-13#}", "{#wait-list-13#}", "{#aread-list13#}" };
		str = StrReplace.replace(templateStr, tab[0], FileString.f2s(rootpath + "/school/sch_top.html"));
		str = StrReplace.replace(str, tab[1], FileString.f2s(rootpath + "/footer.html"));
		// 玻璃知識
		String glassInfo = getGlassString("4", 0, 8);
		str = StrReplace.replace(str, tab[2], glassInfo);
		log.LOG_INFO("玻璃知識");
		// 銷售經驗
		String saleInfo = getGlassString("2", 0, 8);
		str = StrReplace.replace(str, tab[3], saleInfo);
		log.LOG_INFO("銷售經驗");
		// 玻璃圖庫
		String images = getGlassImgage(0, 6);
		str = StrReplace.replace(str, tab[4], images);
		log.LOG_INFO("玻璃圖庫");
		// 技術成果
		String technology = getTechnologyString("3", 0, 13);
		str = StrReplace.replace(str, tab[5], technology);
		log.LOG_INFO("技術成果");
		// 待決問題
		String wintString=getEnquiryByWaitList(0,13);
		str = StrReplace.replace(str, tab[6], wintString);
		log.LOG_INFO("待決問題");
        //已決問題
		String alreadString=getEnquiryOffed(0,13);
		str = StrReplace.replace(str, tab[7], alreadString);
		log.LOG_INFO("已決問題");
		FileIO.SaveToFile(str, filepath);
	}
	
	
	
	/**
	 * 取出玻璃知識
	 */
	public String getGlassString(String type, int iStart, int limit) throws SaasApplicationException {

		String source = "";
		String resource = "<tr>" + "<td width=209 class=rencei_table_xian>" + "  ·<a href=sch_knowlist_con.jsp?repository_id={#rep-id#} target=_blank class=lanse>{#rep-title#}</a>" + "</td>" + "</tr>";
		RepositoryInfo reposInfo = new RepositoryInfo();
		ArrayList list = reposInfo.getRepositoryByType(type, iStart, limit);
		if (list != null && list.size() > 0) {
			for (int i = 0; i < list.size(); i++) {
				HashMap map = (HashMap) list.get(i);
				String repository_id = "", title = "";
				if (map.get("repository_id") != null) {
					repository_id = map.get("repository_id").toString();
				}
				if (map.get("title") != null) {
					title = map.get("title").toString();
				}
				source = source + StrReplace.replace(resource, "{#rep-id#}", repository_id);
				source = StrReplace.replace(source, "{#rep-title#}", title);
			}
		}else{
			source = source + StrReplace.replace(resource, "{#rep-id#}","");
			source = StrReplace.replace(source, "{#rep-title#}", "");
		}
		return source;
	}
	
	/**
	 * 取出技術成果
	 */
	public String getTechnologyString(String type, int iStart, int limit) throws SaasApplicationException {

		String source = "";
		String resource = "<tr>" + "<td width=82%>" + "  ·<a href=sch_knowlist_con.jsp?repository_id={#rep-id#} target=_blank class=lanse>{#rep-title#}</a>" + "</td>" + "<td width=18%>" + "{#pub-date#}" + "</td>" + "</tr>";
		RepositoryInfo reposInfo = new RepositoryInfo();
		ArrayList list = reposInfo.getRepositoryByType(type, iStart, limit);
		if (list != null && list.size() > 0) {
			for (int i = 0; i < list.size(); i++) {
				HashMap map = (HashMap) list.get(i);
				String repository_id = "", title = "", publish_date = "";
				if (map.get("repository_id") != null) {
					repository_id = map.get("repository_id").toString();
				}
				if (map.get("title") != null) {
					title = map.get("title").toString();
				}
				if (map.get("publish_date") != null) {
					publish_date = map.get("publish_date").toString();
					if (publish_date.length() > 10) {
						publish_date = publish_date.substring(0, 10);
					}
				}
				source = source + StrReplace.replace(resource, "{#rep-id#}", repository_id);
				source = StrReplace.replace(source, "{#rep-title#}", title);
				source = StrReplace.replace(source, "{#pub-date#}", publish_date);
			}
		}else{
			source = source + StrReplace.replace(resource, "{#rep-id#}", "");
			source = StrReplace.replace(source, "{#rep-title#}", "");
			source = StrReplace.replace(source, "{#pub-date#}", "");
		}
		return source;
	}
	
	/**
	 * 玻璃圖庫
	 */
	public String getGlassImgage(int iStart, int limit) throws SaasApplicationException {

		String source = "";
		String root_id = "000000000000000";
		// 默認圖片
		String defaultImg = "/zone_b2b/images/cp.gif";
		String resource = "<tr>" + "	<td width=130 align=center>" + "		<a href=/zone_b2b/school/sch_knowlist_con.jsp?repository_id={#rep-id1#}><img  src={#image1#} width=110 height=90 alt={#title1#}></a>" + "		<br>{#title1#}" + "	</td>" + "	<td width=130 align=center>" + "		<a href=/zone_b2b/school/sch_knowlist_con.jsp?repository_id={#rep-id2#}><img  src={#image2#} width=110 height=90 alt={#title2#}></a>" + "		<br>{#title2#}" + "	</td>" + "	<td width=132 align=center>" + "		<a href=/zone_b2b/school/sch_knowlist_con.jsp?repository_id={#rep-id3#}><img  src={#image3#} width=110 height=90 alt={#title3#}></a>" + "		<br>{#title3#}" + "	</td>" + "</tr>" + "<tr>" + "	<td width=130 align=center>" + "		<a href=/zone_b2b/school/sch_knowlist_con.jsp?repository_id={#rep-id4#}><img  src={#image4#} width=110 height=90 alt={#title4#}></a>" + "		<br>{#title4#}" + "	</td>" + "	<td width=130 align=center>" + "		<a href=/zone_b2b/school/sch_knowlist_con.jsp?repository_id={#rep-id5#}><img  src={#image5#} width=110 height=90 alt={#title5#}></a>" + "		<br>{#title5#}" + "	</td>" + "	<td width=132 align=center>" + "		<a href=/zone_b2b/school/sch_knowlist_con.jsp?repository_id={#rep-id6#}><img  src={#image6#} width=110 height=90 alt={#title6#}></a>" + "		<br>{#title6#}" + "	</td>" + "</tr>";
		Attachinfo attach = new Attachinfo();
		ArrayList list = attach.getAttachInfoByImage(root_id, 0, 6);
		int index = 1;
		if (list != null && list.size() > 0) {
			for (int i = 0; i < 6; i++) {
				HashMap map = new HashMap();
				if (list.size() > i) {
					map = (HashMap) list.get(i);
				}
				String repository_id="";
				if (map.get("repository_id") != null) {
					repository_id = map.get("repository_id").toString();
				}
				String file_path = "", attach_name = "";
				if (map.get("file_path") != null) {
					file_path = map.get("file_path").toString();
					file_path = file_path.substring(23);
				}
				else {
					file_path = defaultImg;
				}
				if (map.get("attach_name") != null) {
					attach_name = map.get("attach_name").toString();
					attach_name=attach_name.substring(0,attach_name.length()-4);
				}
				if (index == 1) {
					source = StrReplace.replace(resource, "{#image".trim() + index + "#}".trim(), file_path);
				}
				else {
					source = StrReplace.replace(source, "{#image".trim() + index + "#}".trim(), file_path);
				}
				source = StrReplace.replace(source, "{#title" + index + "#}", attach_name);
				source = StrReplace.replace(source, "{#rep-id"+index+"#}", repository_id);
				index++;
			}
		}
		else {
			for (int i = 0; i < 6; i++) {
				String file_path = "", attach_name = "未命名";
				file_path = defaultImg;
				if (index == 1) {
					source = StrReplace.replace(resource, "{#image".trim() + index + "#}".trim(), file_path);
				}
				else {
					source = StrReplace.replace(source, "{#image".trim() + index + "#}".trim(), file_path);
				}
				source = StrReplace.replace(source, "{#title".trim() + index + "#}".trim(), attach_name);
				index++;
			}
		}
		return source;
	}
	
	
	
	// 取出待解決信息
	public String getEnquiryByWaitList(int iStart, int limit) throws SaasApplicationException {

		EnquirydInfo enquiry = new EnquirydInfo();
		String source = "";
		String resource = "<tr>"+
	    "<td width=80%>"+
		"<a href=/zone_b2b/school/sch_list_content.jsp?trade_id={#trade-id#} class=lanse>{#title#}</a>"+
	    "</td>"+
	    "<td width=20%>"+
		 "{#pub-date#}"+
	    "</td>"+
        "</tr>";
		ArrayList list = enquiry.getEnquiryByList(iStart, limit);
		if(list !=null && list.size()>0){
			for(int i=0;i<list.size();i++){
				HashMap map=(HashMap)list.get(i);
				String trade_id="",title="",enquiry_date="";
				if(map.get("trade_id")!=null){
					trade_id=map.get("trade_id").toString();
				}
				if(map.get("rsrv_str3")!=null){
					title=map.get("rsrv_str3").toString();
				}
				if(map.get("enquiry_date")!=null){
					enquiry_date=map.get("enquiry_date").toString();
					if(enquiry_date.length()>10){
						enquiry_date=enquiry_date.substring(0,10);
					}
				}
				source = source + StrReplace.replace(resource, "{#trade-id#}", trade_id);
				source = StrReplace.replace(source, "{#title#}", title);
				source = StrReplace.replace(source, "{#pub-date#}", enquiry_date);
			}
		}else{
			source = source + StrReplace.replace(resource, "{#trade-id#}", "");
			source = StrReplace.replace(source, "{#title#}", "");
			source = StrReplace.replace(source, "{#pub-date#}", "");
		}
		return source;
	}
	
	// 取出已解決信息
	public String getEnquiryOffed(int iStart, int limit) throws SaasApplicationException {

		EnquirydInfo enquiry = new EnquirydInfo();
		String source = "";
		String resource = "<tr>"+
	    "<td width=80%>"+
		"<a href=/zone_b2b/school/sch_list_content.jsp?trade_id={#trade-id#} class=lanse>{#title#}</a>"+
	    "</td>"+
	    "<td width=20%>"+
		 "{#pub-date#}"+
	    "</td>"+
        "</tr>";
		ArrayList list = enquiry.getOffEnquiryByList(iStart, limit);
		if(list !=null && list.size()>0){
			for(int i=0;i<list.size();i++){
				HashMap map=(HashMap)list.get(i);
				String trade_id="",title="",enquiry_date="";
				if(map.get("trade_id")!=null){
					trade_id=map.get("trade_id").toString();
				}
				if(map.get("rsrv_str3")!=null){
					title=map.get("rsrv_str3").toString();
				}
				if(map.get("enquiry_date")!=null){
					enquiry_date=map.get("enquiry_date").toString();
					if(enquiry_date.length()>10){
						enquiry_date=enquiry_date.substring(0,10);
					}
				}
				source = source + StrReplace.replace(resource, "{#trade-id#}", trade_id);
				source = StrReplace.replace(source, "{#title#}", title);
				source = StrReplace.replace(source, "{#pub-date#}", enquiry_date);
			}
		}else{
			source = source + StrReplace.replace(resource, "{#trade-id#}", "");
			source = StrReplace.replace(source, "{#title#}", "");
			source = StrReplace.replace(source, "{#pub-date#}", "");
		}
		return source;
	}
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
色噜噜狠狠色综合中国| 88在线观看91蜜桃国自产| 日韩制服丝袜先锋影音| 欧美激情一区在线| 6080午夜不卡| 色悠久久久久综合欧美99| 久久精品99久久久| 亚洲精品免费电影| 国产日产欧产精品推荐色| 欧美日韩一区二区在线观看视频| 国产成人亚洲综合色影视| 亚洲mv在线观看| 亚洲日本在线a| 久久影院午夜论| 91精品国产一区二区人妖| 91麻豆免费观看| 成人理论电影网| 国产精品一级黄| 久久国产剧场电影| 视频一区欧美日韩| 一区二区三区电影在线播| 中文一区一区三区高中清不卡| 91精品欧美久久久久久动漫 | 欧美v国产在线一区二区三区| 99国产精品久久| 国产成都精品91一区二区三| 免费高清在线一区| 日本在线不卡视频| 五月天网站亚洲| 亚洲在线观看免费视频| 国产精品成人免费| 国产精品伦理在线| 久久只精品国产| 欧美电视剧在线观看完整版| 欧美高清hd18日本| 欧美日韩激情一区| 欧美三级三级三级爽爽爽| 色综合一区二区三区| 91浏览器入口在线观看| hitomi一区二区三区精品| 国产精品77777| 国产69精品久久久久777| 国产成人综合网| 岛国av在线一区| 成人午夜大片免费观看| 高清国产一区二区| 成人美女在线观看| 欧美中文字幕一区二区三区亚洲 | 亚洲国产精品久久久久秋霞影院| 综合婷婷亚洲小说| 亚洲久草在线视频| 亚洲综合色成人| 亚洲成人动漫在线观看| 日韩精品视频网| 久久国产精品露脸对白| 麻豆成人av在线| 国产综合色产在线精品| 国产一区视频在线看| 国产精品一区二区不卡| 成人免费观看视频| 色综合久久综合| 欧美日韩一区不卡| 日韩精品一区二区三区中文精品| 日韩精品一区二区三区中文不卡| 久久综合狠狠综合久久综合88| 久久精品一区二区三区不卡| 亚洲少妇最新在线视频| 亚洲1区2区3区4区| 久久99精品久久只有精品| 成人激情小说乱人伦| 欧美无砖专区一中文字| 精品国产sm最大网站免费看| 国产精品国模大尺度视频| 亚洲一区二区三区自拍| 日韩不卡一区二区三区 | 麻豆成人综合网| 国产99一区视频免费| 在线视频你懂得一区二区三区| 4438x亚洲最大成人网| 国产午夜精品在线观看| 亚洲第一精品在线| 国产精品亚洲专一区二区三区| 91啪亚洲精品| 精品久久久久久最新网址| 日韩美女视频19| 老汉av免费一区二区三区| 北条麻妃一区二区三区| 7777精品伊人久久久大香线蕉完整版| www欧美成人18+| 一区二区三区中文免费| 激情国产一区二区| 一本色道久久综合狠狠躁的推荐 | 欧美大片国产精品| 国产精品理伦片| 日韩激情视频网站| 92国产精品观看| 精品黑人一区二区三区久久| 亚洲综合视频网| 国产一区久久久| 91国产免费观看| 欧美国产1区2区| 免费观看在线综合| 在线观看亚洲一区| 国产精品久久精品日日| 蜜臀久久久久久久| 91成人免费电影| 国产三级一区二区| 美女视频第一区二区三区免费观看网站| eeuss鲁一区二区三区| 精品人在线二区三区| 亚洲国产精品久久一线不卡| fc2成人免费人成在线观看播放| 精品国产3级a| 日韩电影在线观看一区| 一本色道**综合亚洲精品蜜桃冫| 国产午夜精品理论片a级大结局 | 欧洲激情一区二区| 国产精品美女久久久久av爽李琼| 久久超碰97中文字幕| 欧美日韩黄色一区二区| 亚洲精品成人少妇| 波多野结衣欧美| 国产日韩欧美综合在线| 韩国精品在线观看| 在线成人高清不卡| 亚洲妇熟xx妇色黄| 欧美性猛片aaaaaaa做受| 亚洲精品国产无天堂网2021 | 狠狠色狠狠色合久久伊人| 欧美日本乱大交xxxxx| 亚洲第一av色| 欧美久久一二区| 亚洲第一激情av| 欧美喷潮久久久xxxxx| 五月综合激情日本mⅴ| 欧美三级资源在线| 亚洲成人自拍偷拍| 欧美日韩一区二区三区在线看| 亚洲女人小视频在线观看| av高清不卡在线| 亚洲欧洲综合另类| 欧美性一级生活| 午夜天堂影视香蕉久久| 91精品国产91热久久久做人人| 亚洲成人激情自拍| 91精品国产日韩91久久久久久| 日韩 欧美一区二区三区| 日韩一级二级三级精品视频| 久久99精品一区二区三区| 久久亚洲私人国产精品va媚药| 极品少妇xxxx精品少妇| 久久久久国产成人精品亚洲午夜| 国产精品中文字幕一区二区三区| 久久久精品日韩欧美| 成人a区在线观看| 亚洲美女视频一区| 欧美肥妇bbw| 精品亚洲免费视频| 欧美国产激情一区二区三区蜜月| av在线这里只有精品| 亚洲综合色自拍一区| 欧美一区二区三区在| 国产精品白丝jk白祙喷水网站| 国产精品欧美久久久久无广告 | 韩国欧美国产一区| 国产亚洲成aⅴ人片在线观看| 国产米奇在线777精品观看| 欧美激情资源网| 日本道色综合久久| 青青青爽久久午夜综合久久午夜| 精品日韩欧美在线| caoporn国产精品| 午夜私人影院久久久久| 久久无码av三级| 91在线精品一区二区三区| 亚洲大片在线观看| 久久精品一二三| 91福利精品第一导航| 麻豆精品精品国产自在97香蕉| 国产精品看片你懂得| 91精品久久久久久久久99蜜臂| 国产精品1区2区| 亚洲国产精品一区二区www| 久久久天堂av| 欧美日韩日日骚| 国产成人免费av在线| 亚洲大片在线观看| 欧美国产97人人爽人人喊| 欧美日韩电影在线播放| 成人免费毛片aaaaa**| 三级成人在线视频| 亚洲欧美综合色| 欧美成人r级一区二区三区| 91丨九色丨尤物| 国产乱码精品一区二区三区五月婷| 亚洲国产综合人成综合网站| 国产欧美日韩精品一区| 欧美一区二区三区在线电影 | 欧美精品一区二区三| 欧美日韩精品免费观看视频|