123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218 |
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
- <html>
- <head>
- <title>TrustForm Soonsu Viewer</title>
- <meta http-equiv="content-type" content="text/html; charset=UTF-8">
- <script type="text/javascript" >
- vbOKOnly = 0; vbOKCancel = 1; vbAbortRetryIgnore = 2; vbYesNoCancel = 3; vbYesNo = 4; vbRetryCancel = 5;
- vbNoIcon = 0; vbCritical = 16; vbQuestion = 32; vbExclamation = 48; vbInformation = 64;
-
- vbDefaultButton1 = 0; vbDefaultButton2 = 256; vbDefaultButton3 = 512; vbDefaultButton4 = 768;
-
- vbApplicationModal = 0; vbSystemModal = 4096;
- function ModalOnload ()
- {
- var htMessage = window.dialogArguments;
- var strMessage = htMessage["message"];
- var strTitle = htMessage["title"];
- var strType = htMessage["type"];
- if (strTitle)
- {
- document.title = strTitle;
- }
- var nButtonType = vbOKOnly;
- var nIconType = vbNoIcon;
- var nDefaultButton = vbDefaultButton1;
- var nModalType = vbApplicationModal;
- if (strType)
- {
- var nType = Number(strType);
- nButtonType = nType & 0XF;
- nIconType = nType & 0XF0;
- nDefaultButton = nType & 0XF00;
- nModalType = nType & 0XF000;
-
- // Modal Type 을 구한다.
- if (vbSystemModal & nType)
- {
- nModalType = vbSystemModal;
- }
- }
- MakeMassageDialog(strMessage, nButtonType, nIconType, nModalType);
- }
- function MakeMassageDialog (strMessage, nButtonType, nIconType, nModalType)
- {
- var heMessageBody = document.getElementById("__Message_Body");
- var heWholeDiv = document.createElement("div");
- heMessageBody.appendChild(heWholeDiv);
-
- var heMessageDiv = document.createElement("div");
- heMessageDiv.setAttribute("id", "__Message_Div");
- heMessageDiv.style.padding = "20px";
-
- heWholeDiv.appendChild(heMessageDiv);
- var heMessageTable = document.createElement("table");
- heMessageTable.cellPadding = "5";
- heMessageTable.cellSpacing = "0";
- heMessageTable.border = "0";
- heMessageTable.style.fontFamily = "굴림";
- heMessageTable.style.fontSize = "10pt";
- heMessageDiv.appendChild(heMessageTable);
- var heMessageTbody = document.createElement("tbody");
- heMessageTable.appendChild(heMessageTbody);
- var heMessageTr = document.createElement("tr");
- heMessageTbody.appendChild(heMessageTr);
- if (0 != nIconType)
- {
- var heIconTd = document.createElement("td");
- heMessageTr.appendChild(heIconTd);
- var strImagePath = "";
- switch (nIconType)
- {
- case vbCritical : strImagePath = "/TrustForm/kr/comsquare/image/alert/critical.png"; break;
- case vbQuestion : strImagePath = "/TrustForm/kr/comsquare/image/alert/question.png"; break;
- case vbExclamation : strImagePath = "/TrustForm/kr/comsquare/image/alert/exclamation.png"; break;
- case vbInformation : strImagePath = "/TrustForm/kr/comsquare/image/alert/information.png"; break;
- }
- var heIcon = document.createElement("img");
- heIcon.src = strImagePath;
- heIcon.width = 32;
- heIcon.height = 32;
- heIconTd.appendChild(heIcon);
- }
- var heMessageTd = document.createElement("td");
- if (null != heMessageTd.innerText)
- {
- heMessageTd.innerText = strMessage;
- }
- else
- {
- heMessageTd.textContent = strMessage;
- }
-
- heMessageTr.appendChild(heMessageTd);
- var heButtonDiv = document.createElement("div");
- heButtonDiv.style.fontFamily = "굴림";
- heButtonDiv.style.fontSize = "10pt";
- heButtonDiv.style.padding = "10px";
- heButtonDiv.style.backgroundColor = "#F0F0F0";
- heWholeDiv.appendChild(heButtonDiv);
- if (vbOKOnly == nButtonType)
- {
- var heButton = makeButton("확인");
- heButtonDiv.appendChild(heButton);
- }
- else if (vbOKCancel == nButtonType)
- {
- var heButton = makeButton("확인");
- heButtonDiv.appendChild(heButton);
- heButton = makeButton("취소");
- heButtonDiv.appendChild(heButton);
- }
- else if (vbAbortRetryIgnore == nButtonType)
- {
- var heButton = makeButton("중단(A)");
- heButtonDiv.appendChild(heButton);
- heButton = makeButton("다시 시도(R)");
- heButtonDiv.appendChild(heButton);
- heButton = makeButton("무시(I)");
- heButtonDiv.appendChild(heButton);
- }
- else if (vbYesNoCancel == nButtonType)
- {
- var heButton = makeButton("예(Y)");
- heButtonDiv.appendChild(heButton);
- heButton = makeButton("아니요(N)");
- heButtonDiv.appendChild(heButton);
- heButton = makeButton("취소");
- heButtonDiv.appendChild(heButton);
- }
- else if (vbYesNo == nButtonType)
- {
- var heButton = makeButton("예(Y)");
- heButtonDiv.appendChild(heButton);
- heButton = makeButton("아니요(N)");
- heButtonDiv.appendChild(heButton);
- }
- else if (vbRetryCancel == nButtonType)
- {
- var heButton = makeButton("다시 시도(R)");
- heButtonDiv.appendChild(heButton);
- heButton = makeButton("취소");
- heButtonDiv.appendChild(heButton);
- }
- if (window.dialogWidth)
- {
- window.dialogWidth = heMessageBody.scrollWidth + "px";
- window.dialogHeight = heMessageBody.scrollHeight + "px";
- }
- else
- {
- self.resizeTo(heWholeDiv.scrollWidth, heWholeDiv.scrollHeight);
- }
- }
- function makeButton (strValue)
- {
- var heButton = document.createElement("button");
- heButton.style.fontFamily = "굴림";
- heButton.style.fontSize = "9pt";
- heButton.style.width = "86px";
- heButton.style.height = "24px";
- if (heButton.childNodes[0])
- {
- heButton.childNodes[0].nodeValue = strValue;
- }
- else if (heButton.value)
- {
- heButton.value = strValue;
- }
- else
- {
- heButton.innerHTML = strValue;
- }
- return heButton;
- }
- </script>
- </head>
-
- <body id="__Message_Body" onload="ModalOnload();">
- </body>
- </html>
|