123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
- <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
- <xhtml:head>
- <xhtml:title>이미지 확대</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <image>
- <attachfile>
- <image/>
- <printyn/>
- </attachfile>
- </image>
- </main>
- <init/>
- <hidden>
- <popupmenu>
- <menu>
- <label>출력</label>
- <func>fPrint</func>
- </menu>
- </popupmenu>
- </hidden>
- </root>
- </instance>
- <submission id="TRAEA03904" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/"/>
- <submission id="TRAEA03905" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/imgsend" resultref="/root/imgbinary"/>
- <submission id="TXAEA03903" mediatype="multipart/form-data" method="form-data-post" ref="/root/send" resultref="/root/hidden"/>
- <submission id="TXAEA03904" mediatype="multipart/form-data" method="form-data-post" ref="/root/delsend" resultref="/root/hidden"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- if (checkOpener()) { //opener 검사
- var param = opener.javascript.getParameter("opener_parameter_id"); //opener parameter value를 get
- if(param != "") { // opener parameter value가 있는 경우
- // 첫번째 방법
- // model.makeValue("/root/hidden/dflag",param);
- // model.refresh();
-
- // 두번째 방법 parameter value를 이용하여 프로그램 수행
- condarray = param.split("▦");
- model.setValue("/root/main/image/attachfile/image", condarray[0]);
- model.setValue("/root/main/image/attachfile/printyn", condarray[1]);
-
- setImageRefInstance("/root/main/image/attachfile/image");
-
- // 이미지 크기 조절하기
- img1.initStyle("height");
- img1.initStyle("width");
-
-
- if(img1.currentStyle.width > 1280)
- {
- var imgWidth = img1.currentStyle.width;
- var imgHeight = img1.currentStyle.height;
-
- var imgRate = 1280 / imgWidth;
-
- img1.attribute("width") = 1280;
- img1.attribute("height") = imgHeight * imgRate;
- }
-
- if(img1.currentStyle.height > 1024)
- {
- var imgWidth = img1.currentStyle.width;
- var imgHeight = img1.currentStyle.height;
-
- var imgRate = 1024 / imgHeight;
-
- img1.attribute("width") = imgWidth / imgRate;
- img1.attribute("height") = 1024;
- }
-
- img1.refresh();
-
- model.refresh();
-
- if(model.getValue("/root/main/image/attachfile/printyn") == "Y")
- {
- fPrint();
- }
-
- }
- }
-
- ]]>
- </script>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
- <script type="javascript">
- <![CDATA[
- function fPrint()
- {
- group3.attribute("width") = "1280";
- group3.attribute("height") = "1024";
- group3.attribute("scroll") = "none";
-
- body.attribute("pagewidth") = "1320";
- body.attribute("pageheight") = "1050";
- body.attribute("scroll") = "none";
-
- window.width = "1330";
- window.height = "1050";
-
- window.print();
-
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="1200" pageheight="1000" style="margin-left:0; margin-top:0; margin-right:0; margin-bottom:0; ">
- <group id="group3" scroll="auto" style="left:0px; top:0px; width:1280px; height:1024px; margin-left:0; margin-top:0; margin-right:0; margin-bottom:0; ">
- <img id="img1" ref="/root/main/image/attachfile/image" style="left:0px; top:0px; width:1280px; height:1024px; background-stretch:stretch; border-color:#B0B0B0; border-style:none; ">
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- window.close();
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- setPopupMenu("img1", false, "/root/hidden/popupmenu/menu", "label", "func");
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- initPopupMenu();
- ]]>
- </script>
- </img>
- </group>
- </xhtml:body>
- </xhtml:html>
|