TEXT:STRING:NORMALTYPE:NORMALKEY,Type:INT(1):NORMALTYPE:NORMALKEY,LEVEL:STRING:NORMALTYPE:NORMALKEY,CODE:STRING:NORMALTYPE:NORMALKEY,Enable:STRING(5):NORMALTYPE:NORMALKEY,menu_image:STRING:NORMALTYPE:NORMALKEY,ImgD:STRING(255),Text2:STRING(20):NORMALTYPE:NORMALKEY,Level2:INT(1):NORMALTYPE:NORMALKEY,Type2:INT(1):NORMALTYPE:NORMALKEY,URL:STRING:NORMALTYPE:NORMALKEY
,1,1,1,,topmenu01,stop1,,3,4,
코드1112,1,2,10001,,,,,3,4,/gform/sample_auto_emp.gfm
code3,1,3,10002,,,,,2,4,/gform/URDMUS054.gfm
TMP,1,3,10003,,,,,2,4,
code5,1,5,13001,,,,,5,4,
code6,1,7,13002,,,,/F,7,4,
code7,1,7,13003,,,,,7,4,
one_grid_tmp,1,8,13004,,,,,8,4,/sample/Template/one_grid_tmp.gfm
test,2,2,10004,,,,,3,2,
DB2,1,3,14001,f,,,,2,4,
IN2,1,3,14002,t,,,,2,4,/gform/sample.gfm
spt,1,3,11111," ",,,,2,4,
nong,3,3,14003,f,,,,2,3,/gform/excel.gfm
tong,1,3,14004,t,,,,2,4,/gform/excel.gfm
spt,3,2,11111," ",,,,3,3,
Template,3,2,10005,,,,,3,3,
sample control1,4,3,15001,,,,,2,1,/sample/Template/control/file/control1.gfm
sample control1,4,3,15002,,,,,2,1,/sample/Template/control/file/control2.gfm
sample control2,4,3,15003,,,,,2,1,/sample/Template/control/file/control3.gfm
sample control3,4,3,15004,,,,,2,1,/sample/Template/control/control4.gfm
게시판 리스트,5,3,15005,,,,,2,5,/gform/cm/fc/bul/CMFCBulInq_l.gfm
,1,1,2,,topmenu02,search1,,1,4,
spt,1,2,11111," ",,,,3,4,
TEMP,3,2,20001,,,,,3,3,
oneGrid,4,3,21001,,,,,2,1,/sample/Template/gform/file/one_grid_tmp.gfm
mGrid,5,3,21002,,,,,2,1,/sample/Template/gform/file/m_grid_tmp.gfm
twoGrid,6,3,21003,,,,,2,1,
gridDetail,7,3,21004,,,,,2,1,/sample/Template/gform/file/gridDetail.gfm
TAB,8,3,21005,,,,,2,1,/sample/Template/gform/file/tab_grid_tmp.gfm
ADDROW,9,3,21006,,,,,2,1,/sample/Template/gform/file/add_row_grid_tmp.gfm
HEAD,4,3,21005,,,,,2,1,
HEAD TMP,5,4,21005,,,,,4,5,/sample/Template/gform/file/head_tmp.gfm
TEST,6,4,21007,,,,,4,5,/gform/test.gfm
URDMUS054,7,4,21008,,,,,4,5,/gform/URDMUS054.gfm
tab_grid_tmp,8,4,21009,,,,,4,5,/sample/Template/gform/file/tab_grid_tmp.gfm
,0,1,3,,topmenu03,excel1,,1,0,
품의(렌터카),1,2,30001,,,,spt,3,0,/sample/Template/gform/file/품의_렌터카_tmp.gfm
실행(렌터카),2,2,30002,,,,,3,0,/sample/Template/gform/file/실행_렌터카_tmp.gfm
distri,3,2,30002,,,,,3,0,
distri,4,2,30002,,,,,3,0,
distri,5,2,30002,,,,,3,0,
distri,6,2,30002,,,,,3,0,
,0,1,4,,topmenu04,print1,,1,0,
gwa,0,2,40001,,,,,2,0,
,1,1,5,,topmenu05,stop1,,1,0,
,1,1,6,,topmenu06,stop1,,1,0,
,1,1,7,,topmenu07,stop1,,1,0,
,1,1,8,,topmenu08,stop1,,1,0,
,1,1,9,,topmenu09,stop1,,1,0,
======================================================================================
<%@page import="com.ixync.http.HttpIXyncResponse.*"%>
<%@page import="com.ixync.http.HttpIXyncRequest.*"%>
<%@ page
import="java.io.*,com.ixync.*,com.ixync.io.*,com.ixync.http.*"
contentType="text/html;charset=utf-8"
%>
<%
IXyncInputStream gis = ((HttpIXyncRequest) request).getIXyncInputStream();
IXyncOutputStream gos = ((HttpIXyncResponse) response).getIXyncOutputStream();
File f = null;
FileInputStream fis = null;
try {
response.setContentType("application/octet-stream;charset=utf-8");
IXyncDataSet ds = new IXyncDataSet();
gos.fragment(ds);
// 이미지를 저장할 컬럼 BLOB타입으로 선언해주어야 한다.
ds.addDataColumn(new IXyncDataColumn("img",IXyncDataColumn.TB_BLOB));
ds.addDataColumn(new IXyncDataColumn("img_id",IXyncDataColumn.TB_STRING));
ds.addDataColumn(new IXyncDataColumn("img_size",IXyncDataColumn.TB_INT));
// 이미지가 들어있는 경로
//String strRealPath = request.getRealPath("/");
String strservletPath = request.getServletPath();
String tmpPath = strservletPath.replaceAll("makeImgData.jsp","");
String serverName = request.getServerName();
//System.out.println("http://" + serverName + tmpPath + "../image/");
//String imgDir = strRealPath+"\image\";
//String imgDir = "http://" + serverName + tmpPath + "../image/";
String imgDir = "C:\scardLS\lease-internal\webapps\images\";//local
//String imgDir = "/proframe/proframe4.0/package/jeus/ix_source/WebContent/image/";//test
//String imgDir = "/jeus/ix_source/WebContent/image/";//운영
// 이미지 리스트
String[] imgList = new String[] {
"topMenu01_n.gif",
"topMenu02_n.gif",
"topMenu03_n.gif",
"topMenu04_n.gif",
"topMenu05_n.gif",
"topMenu06_n.gif",
"topMenu07_n.gif",
"topMenu08_n.gif",
"topMenu09_n.gif"
};
// 이미지 ID(Key) 리스트 [외부 데이터셋의 컬럼값과 매칭되는 이미지 구분자]
String[] imgIdList = new String[] {
"topmenu01",
"topmenu02",
"topmenu03",
"topmenu04",
"topmenu05",
"topmenu06",
"topmenu07",
"topmenu08",
"topmenu09"
};
for ( int i=0; i<imgList.length; i++ ) {
//System.out.println(imgDir + imgList[i]);
f = new File(imgDir + imgList[i]);
System.out.println(f.length());
fis = new FileInputStream(f);
IXyncDataRow row = ds.newDataRow();
row.addColumnValue(fis); // 이미지를 담을 컬럼에 FileInputStream을 넣어 준다.
row.addColumnValue(imgIdList[i]); // 이미지를 구분하는 값
row.addColumnValue(f.length()); // 이미지의 SIZE
ds.addDataRow(row);
//ds.heap();
}
ds.flush();
gos.write(ds);
gos.close();
} catch (Exception e) {
e.printStackTrace();
} finally {
try {
fis.close();
} catch(Exception e) {
e.printStackTrace();
}
}
%>
======================================================================================
function fn_init(){
//time();
OnLoadQuickMenu();
topimg_ds.DataID = './data/makeImgData.jsp';
topmenu_ds.DataID = './data/makeCSVData11.jsp.csv';
// 메뉴서비스를 불러온다.(나중에 위에 코드와 바꾸면 됨)
//topmenu_ds.DataID ='/innoxync.do?beanName=ctfSvc&methodName=login&inputVOName=com.scard.lease.cm.fc.ctf.svc.impl.CmFcCtfSVO';
topmenu_ds.Reset();
topimg_ds.Reset();
//alert(topimg_ds.countrow)
//ToggleLeftFrame(); //좌측 프레임 숨기기
//session check
//setTimeout("chkFrmStart()", 100);
//종목리스트 조회
var fday = new Date();
}
======================================================================================
<table width="1231" height="30" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="1024">
<comment id="__NOSCRIPT_ID__">
<object id="top_menu" classid="clsid:31538FAB-8051-4cfa-ACA4-B2668718B6F8"
style="width:1024px;height:32px;font-family:돋움;font-size:11;background-color:#F1F6FB;color:#000000">
<param name="DataID" value="topmenu_ds"> <!-- 메뉴에서 사용할 데이터셋 -->
<param name="TextColumn" value="TEXT"><!-- 메뉴명으로 표시할 컬럼 지정::이미지적용할 경우에는 데이터값을 ""으로 넣는다 -->
<param name="LevelColumn" value="LEVEL"><!-- 메뉴 레벨 최상위메뉴만 이미지 표현가능 :: LEVEL = 1 -->
<param name="EnableColumn" value="Enable"><!-- 메뉴 Enable/Disable제어용 컬럼 지정 -->
<param name="InternalMargin" value="true">
<param name="InheritColor" value="true">
<param name="HighLightBackColor" value="#0A246A">
<param name="ImgDataID" value="topimg_ds"> <!-- 이미지 데이터셋 지정 -->
<param name="ImgIndexColumn" value="menu_image"> <!-- 이미지로 맵핑할 컬럼 지정 이 컬럼의 값에 따라 이미지가 표현됨 -->
<param name="ImgMarginAdjust" value="0">
<param name="LeftMargin" value="0">
</object></comment><SCRIPT>__ShowEmbedObject(__NOSCRIPT_ID__);</SCRIPT></td>
</tr>
</table>