koipa_edu_2025-1/src/main/webapp/innorix/gnexam/useFuncBtn.html
2023-07-18 15:40:15 +09:00

81 lines
3.7 KiB
HTML

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="../innorix.css">
<script src="../innorix.js"></script>
<script>
var control_0 = new Object();
var control_1 = new Object();
var control_2 = new Object();
window.onload = function() {
// 파일전송 컨트롤 생성
control_0 = innorix.create({
el: '#fileControl_0', // 컨트롤 출력 HTML 객체 ID
transferMode: 'both', // 업로드, 다운로드 혼합사용
installUrl: '../install/install.html', // Agent 설치 페이지
uploadUrl: './upload.jsp', // 업로드 URL
useFuncBtn : 0 // 모든 버튼 출력 | 기본값
});
// 파일전송 컨트롤 생성
control_1 = innorix.create({
el: '#fileControl_1', // 컨트롤 출력 HTML 객체 ID
transferMode: 'both', // 업로드, 다운로드 혼합사용
installUrl: '../install/install.html', // Agent 설치 페이지
uploadUrl: './upload.jsp', // 업로드 URL
useFuncBtn : 1 // 선택 박스만 출력
});
// 파일전송 컨트롤 생성
control_2 = innorix.create({
el: '#fileControl_2', // 컨트롤 출력 HTML 객체 ID
transferMode: 'both', // 업로드, 다운로드 혼합사용
installUrl: '../install/install.html', // Agent 설치 페이지
uploadUrl: './upload.jsp', // 업로드 URL
useFuncBtn : 2 // 이동 및 삭제 버튼과 선택 박스 출력안함
});
/*
※ 매뉴얼 내에 useFuncBtn는 Boolean 타입으로 명시되어있습니다.
매뉴얼내용이 변경되어 아래 가이드와 같이 적용해주세요.
컨트롤 리스트 내 파일 아이템 이동, 삭제 기능버튼 출력여부
- useFuncBtn : 0 // 모든 버튼 출력 | 기본값
- useFuncBtn : 1 // 선택 박스만 출력
- useFuncBtn : 2 // 이동 및 삭제 버튼과 선택 박스 출력안함
- useFuncBtn : false // 모든 버튼 출력 | 기본값
- useFuncBtn : true // 선택 박스만 출력
*/
};
</script>
</head>
<body>
<a href="../gnIndex.html">&larr; 예제 목록</a><br /><br />
<form action="result.jsp" id="f_write" name="f_write" method="post">
test1 : <input type="text" name="test1" />
</form><br />
<p>useFuncBtn : 0 (기본값)</p>
<div id="fileControl_0"></div><br/>
<input type="button" value="멀티 파일 추가" onclick="control_0.openFileDialog();"/>
<input type="button" value="업로드" onclick="control_0.upload();"/>
<br/><br/>
<p>useFuncBtn : 1</p>
<div id="fileControl_1"></div><br/>
<input type="button" value="멀티 파일 추가" onclick="control_1.openFileDialog();"/>
<input type="button" value="업로드" onclick="control_1.upload();"/>
<br/><br/>
<p>useFuncBtn : 2</p>
<div id="fileControl_2"></div><br/>
<input type="button" value="멀티 파일 추가" onclick="control_2.openFileDialog();"/>
<input type="button" value="업로드" onclick="control_2.upload();"/>
<br/><br/>
</body>
</html>