MINI MINI MANI MO
<%@ page language="java" contentType="text/html; charset=euc-kr" %>
<html style="width:410; height:460;">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
<title>±×¸²»ðÀÔ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡.
</title>
<style type="text/css">
body {font-size: 9pt; font-family: ±¼¸², µ¸À½; font-style: normal; font-weight: normal;}
td {font-size: 9pt; font-family: ±¼¸², µ¸À½; font-style: normal; font-weight: normal;}
pre {font-size: 9pt; font-family: ±¼¸², µ¸À½; font-style: normal; font-weight: normal;}
input, select, textarea, button {font-size: 9pt; font-family: ±¼¸², µ¸À½; font-style: normal; font-weight: normal;}
input, select {width:90%;}
textarea {width:100%; height:50;}
button {width:75; cursor:hand;}
image {cursor:hand;}
.threedface {background-color: threedface;}
.align_select {border: 2px solid #000080;}
</style>
</head>
<script language="JScript">
//** ±âº» ȯ°æ ºÒ·¯ ¿À±â
var opener = window.dialogArguments;
var Editor_Root_Dir = opener.Editor_Root_Dir;
var ObjName = location.search.substring(1,location.search.length);
var Config = opener.document.all[ObjName].Config; //** ¼³Á¤ Á¤º¸
var EditorObj = opener.document.all['Editor__'+ ObjName +'__EditorPad']; //** ¿¡µðÅÍ °´Ã¼
var EditorDoc = EditorObj.contentWindow.document;
//** Ãë¼Ò
function FUN_Cancle(){
if(document.all['File_Check'].value==1)
{
window.close();
return;
}
}
//** È®ÀÎ
function FUN_Ok(){
var FormObj = document.forms[0];
Src = FormObj.Src.value;
Alt = FormObj.Alt.value;
Align = FormObj.Align.value;
Border = FormObj.Border.value;
Hspace = FormObj.Hspace.value;
Vspace = FormObj.Vspace.value;
Sizeappoint = FormObj.Sizeappoint.checked;
Width = FormObj.Width.value;
WidthType = FormObj.WidthType[0].checked ? FormObj.WidthType[0].value : FormObj.WidthType[1].value;
Height = FormObj.Height.value;
HeightType = FormObj.HeightType[0].checked ? FormObj.HeightType[0].value : FormObj.HeightType[1].value;
Link = FormObj.Link.value;
Target = FormObj.Target.value;
var ImageHTML = '';
var ImageLink = '';
if(!document.images['tmpImage'].complete){
var Answer = confirm('ÀÔ·ÂÇϽаæ·Î¿¡ ±×¸² ÆÄÀÏÀÌ ¾ø½À´Ï´Ù.\n´Ù½Ã ÀÔ·Â ÇϽðڽÀ´Ï±î?');
if(Answer){
if(document.all['Check'].value==0)
{
FormObj.Src.focus();
}
else
{
document.all['ImgUpload_IFrame'].contentWindow.document.all['Src'].focus();
}
return;
}else{
if(document.all['File_Check'].value==1)
window.close();
return;
}
}else{
//** °æ·Î »ðÀÔ
ImageHTML += '<img src="'+ Src +'" ';
//** ´ëü±ÛÀÚ »ðÀÔ
if(Alt != ''){
ImageHTML += 'alt="'+ Alt +'" ';
}
//** ¸ÂÃã »ðÀÔ
if(Align != ''){
ImageHTML += 'align="'+ Align +'" ';
}
//** µÎ²² »ðÀÔ
if(!isNaN(Border) && Border >= 0){
ImageHTML += 'Border="'+ Border +'" ';
}
//** °¡·Î °£°Ý Á¶Á¤
if(!isNaN(Hspace) && Hspace > 0){
ImageHTML += 'hspace="'+ Hspace +'" ';
}
//** ¼¼·Î°£°Ý Á¶Á¤
if(!isNaN(Vspace) && Vspace > 0){
ImageHTML += 'vspace="'+ Vspace +'" ';
}
//** Å©±â ÁöÁ¤
if(Sizeappoint){
if(Width > 0){
ImageHTML += 'width="'+ Width + WidthType +'" ';
}
if(Height > 0){
ImageHTML += 'height="'+ Height + HeightType +'" ';
}
}
ImageHTML += '>';
//** ¸µÅ© »ðÀÔ
if(Link != '' && Link.toLowerCase() != 'http://'){
ImageLink = '<a href="'+ Link +'" ';
if(Target != ''){
ImageLink += 'target="'+ Target +'">';
}else{
ImageLink += 'target="_blank">';
}
ImageHTML = ImageLink + ImageHTML + '</a>';
}
//** ¿¡µðÅÍ Ã¢¿¡ HTML ¼Ò½º »ðÀÔ
opener.Editor_InsertHTML(ObjName, ImageHTML);
//** â´Ý±â
window.close();
}
}
//** Å©±â ÁöÁ¤
function FUN_Sizeappoint(This){
var FormObj = This.form;
if(This.checked){
FormObj.Width.disabled = false;
FormObj.Width.className = '';
FormObj.Height.disabled = false;
FormObj.Height.className = '';
FormObj.WidthType[0].disabled = false;
FormObj.WidthType[1].disabled = false;
FormObj.HeightType[0].disabled = false;
FormObj.HeightType[1].disabled = false;
FormObj.Sizemaintain.disabled = false;
}else{
FormObj.Width.disabled = true;
FormObj.Width.className = 'threedface';
FormObj.Height.disabled = true;
FormObj.Height.className = 'threedface';
FormObj.WidthType[0].disabled = true;
FormObj.WidthType[1].disabled = true;
FormObj.HeightType[0].disabled = true;
FormObj.HeightType[1].disabled = true;
FormObj.Sizemaintain.disabled = true;
}
}
//** Á¤·Ä ¼±ÅÃ
function FUN_AlignSelect(This, Align){
var FormObj = document.forms[0];
document.images['ImageAlign_'].className = '';
document.images['ImageAlign_left'].className = '';
document.images['ImageAlign_right'].className = '';
This.className = 'align_select';
for(i=0; FormObj.Align.length; i++){
if(FormObj.Align.options[i].value == Align){
FormObj.Align.options[i].selected = true;
break;
}
}
}
function FUN_AlignChange(Value){
for(i=0; i<document.images.length; i++){
if(document.images[i].id == 'ImageAlign_'+ Value){
document.images[i].className = 'align_select';
}else{
document.images[i].className = '';
}
}
}
//** À̹ÌÁö ÁÖ¼Ò
function FUN_ImageSrc(This){
var ImageSrc = This.value;
if(ImageSrc != 'http://'){
document.images['tmpImage'].src = ImageSrc;
}
}
//** À̹ÌÁö ·Îµù ¿Ï·á
function FUN_ImageOnLoad(){
var FormObj = document.forms[0];
var ImageObj = document.images['tmpImage'];
FormObj.Width.value = ImageObj.width;
FormObj.Height.value = ImageObj.height;
}
//** À̹ÌÁö ·Îµù ½ÇÆÐ
function FUN_ImageOnError(){
var FormObj = document.forms[0];
if(document.readyState == 'complete'){
FormObj.Width.value = '';
FormObj.Height.value = '';
}
}
//** À̹ÌÁö »çÀÌÁî Á¶Á¤
var Edit_Times = 0;
function FUN_ImageResize(This, Type){
var FormObj = document.forms[0];
var ImageObj = document.images['tmpImage'];
var SizemaintainObj = FormObj.Sizemaintain;
if(Edit_Times != Type || !SizemaintainObj.checked){
return;
}
var ImageWidth = ImageObj.width;
var ImageHeight = ImageObj.height;
var WidthObj = FormObj.Width;
var HeightObj = FormObj.Height;
if(This.name=='Width'){
HeightObj.value = parseInt(ImageHeight * This.value / ImageWidth);
}else if(This.name=='Height'){
WidthObj.value = parseInt(ImageWidth * This.value / ImageHeight);
}
}
//** ±×¸²ÆÄÀÏ ¼±ÅÃÁ¾·ù
function FUN_Image_Src_Type(nType)
{
if(nType==0)
{
document.all['Check'].value = 0;
document.all['ImgLink_Box'].style.display = 'block';
document.all['ImgUpload_Box'].style.display = 'none';
document.all['Src'].value = 'http://';
document.all['ImgLink'].style.color = '#000000';
document.all['ImgUpload'].style.color = '#777777';
return;
}
else
{
document.all['Check'].value = 1;
document.all['ImgLink_Box'].style.display = 'none';
document.all['ImgUpload_Box'].style.display = 'block';
document.all['Src'].value = '';
document.all['ImgLink'].style.color = '#777777';
document.all['ImgUpload'].style.color = '#000000';
return;
}
}
//** È®ÀÎ ¹öư Ŭ¸¯
function FUN_Ok_Click()
{
var Check = document.all['Check'].value;
if (Check==0)
{
FUN_Ok();
return;
}
else
{
document.all['File_Check'].value = 0;
if(document.all['Src'].value != '' && document.all['Src'].value.toLowerCase() != 'http://')
{
document.all['FileUploading_Box'].style.display = 'block';
//document.all['ImgUpload_IFrame'].contentWindow.document.KNEditor_InsertImage_FileUpload.submit();
document.all['ImgUpload_IFrame'].contentWindow.FUN_FileUpload_Submit();
}
}
}
</script>
<body style="background: threedface; color: windowtext; margin: 0px; border-style: none;">
<form name="Insert_Image">
<input type="hidden" name="Check" value="1">
<input type="hidden" name="File_Check" value="1">
<table border="0" cellpadding="5" cellspacing="1" width="400">
<tr>
<td valign="top">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="390">
<tr>
<td height="20">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="390">
<tr>
<td align="center" width="80" id="ImgLink" onclick="javascript:FUN_Image_Src_Type(0);" title="À¥»ó¿¡ ÀÖ´Â ±×¸²ÆÄÀÏÀ» ºÒ·¯¿É´Ï´Ù." style="color : #777777; cursor : hand;"><b>[À¥ÆÄÀÏ]</b></td>
<td width="5"><span style="border: 1px inset; width: 1px; height: 100%; margin: 0 3 0 3"></span></td>
<td align="center" width="80" id="ImgUpload" onclick="javascript:FUN_Image_Src_Type(1);" title="³» ÄÄÇ»ÅÍ¿¡ ÀÖ´Â ±×¸²ÆÄÀÏÀ» ºÒ·¯¿É´Ï´Ù." style="color : #000000; cursor : hand;"><b>[·ÎÄÃÆÄÀÏ]</b></td>
<td width="325"><= ¸Þ´º¸¦ Ŭ¸¯ÇÏ¿© ¾÷·Îµå ¹æ½ÄÀ» ¼±ÅÃÇϼ¼¿ä</td>
</tr>
</table>
</td>
</tr>
<tr>
<td align="center" id="ImgLink_Box" style="display : none;">
<table border="0" cellpadding="0" cellspacing="0" width="90%" height="45" style="border-collapse: collapse">
<tr>
<td width="100%" colspan="2" height="1"></td>
</tr>
<tr>
<td width="20%">°æ·Î:</td>
<td width="80%">
<input type="text" name="Src" size="20" value="http://" style="width:100%;" OnPropertyChange="javascript:FUN_ImageSrc(this);" OnFocus="javascript:this.select();"></td>
</tr>
<tr>
<td width="20%">´ëü ±ÛÀÚ:</td>
<td width="80%">
<input type="text" name="Alt" size="20" style="width:100%;"></td>
</tr>
</table>
</td>
</tr>
<tr>
<td align="center" id="ImgUpload_Box" style="display : block;">
<table border="0" cellpadding="0" cellspacing="0" width="90%" height="45" style="border-collapse: collapse">
<tr>
<td>
<iframe name="ImgUpload_IFrame" marginwidth="0" marginheight="0" height="100%" width="100%" scrolling="no" border="0" frameborder="0" src="Editor_InsertImage_FileSelect.jsp"></iframe>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="20">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="390">
<tr>
<td width="59">ȸé Ç¥½Ã</td>
<td width="331"><hr></td>
</tr>
</table>
</td>
</tr>
<tr>
<td align="center">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="90%">
<tr>
<td width="100%" colspan="3" height="20">¹èÄ¡½ºÅ¸ÀÏ</td>
</tr>
<tr>
<td width="33%" align="center" height="60">
<img border="0" id="ImageAlign_" src="../icon_img_align_none.gif" class="align_select" OnClick="javascript:FUN_AlignSelect(this, '');" width="51" height="52"></td>
<td width="33%" align="center" height="60">
<img border="0" id="ImageAlign_left" src="../icon_img_align_left.gif" OnClick="javascript:FUN_AlignSelect(this, 'left');" width="51" height="52"></td>
<td width="34%" align="center" height="60">
<img border="0" id="ImageAlign_right" src="../icon_img_align_right.gif" OnClick="javascript:FUN_AlignSelect(this, 'right');" width="51" height="52"></td>
</tr>
<tr>
<td width="33%" align="center">¾øÀ½</td>
<td width="33%" align="center">¿ÞÂÊ</td>
<td width="34%" align="center">¿À¸¥ÂÊ</td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="20">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="390">
<tr>
<td width="55">·¹À̾ƿô</td>
<td width="335"><hr></td>
</tr>
</table>
</td>
</tr>
<tr>
<td align="center">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="90%">
<tr>
<td width="12%">¸ÂÃã:</td>
<td width="37%" colspan="2">
<select size="1" name="Align" OnChange="javascript:FUN_AlignChange(this.options[this.selectedIndex].value);">
<option value="">±âº»°ª</option>
<option value="left">¿ÞÂÊ</option>
<option value="right">¿À¸¥ÂÊ</option>
<option value="top">À§ÂÊ</option>
<option value="texttop">ÅØ½ºÆ® À§ÂÊ</option>
<option value="middle">¼¼·Î °¡¿îµ¥</option>
<option value="absmiddle">¼±Åà ¿µ¿ªÀÇ °¡¿îµ¥</option>
<option value="baseline">¿µ¾î±Û²Ã ±âÁؼ±</option>
<option value="bottom">¾Æ·¡ÂÊ</option>
<option value="absbottom">¼±Åà ¿µ¿ªÀÇ ¾Æ·¡ÂÊ</option>
<option value="center">°¡·Î °¡¿îµ¥</option>
</select></td>
<td width="25%">°¡·Î °£°Ý Á¶Á¤:</td>
<td width="25%">
<input type="text" name="Hspace" size="20" value="0"></td>
</tr>
<tr>
<td width="25%" colspan="2">Å׵θ® µÎ²²:</td>
<td width="25%">
<input type="text" name="Border" size="20" value="0"></td>
<td width="25%">¼¼·Î °£°Ý Á¶Á¤:</td>
<td width="25%">
<input type="text" name="Vspace" size="20" value="0"></td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="20">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="390">
<tr>
<td width="31">Å©±â</td>
<td width="359"><hr></td>
</tr>
</table>
</td>
</tr>
<tr>
<td align="center">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="90%">
<tr>
<td width="33%">
<input type="checkbox" name="Sizeappoint" value="1" style="width:20; cursor:hand;" unselectable="on" OnClick="javascript:FUN_Sizeappoint(this);">Å©±âÁöÁ¤</td>
<td width="10%">³Êºñ:</td>
<td width="23%">
<input type="text" name="Width" size="20" class="threedface" OnPropertyChange="javascript:FUN_ImageResize(this, 1)" OnFocus="javascript:Edit_Times=1;" disabled></td>
<td width="10%">³ôÀÌ:</td>
<td width="24%">
<input type="text" name="Height" size="20" class="threedface" OnPropertyChange="javascript:FUN_ImageResize(this, 2)" OnFocus="javascript:Edit_Times=2;" disabled></td>
</tr>
<tr>
<td width="33%">¡¡</td>
<td width="33%" colspan="2">
<input type="radio" value="" name="WidthType" style="width:20; cursor:hand;" unselectable="on" disabled checked>Çȼ¿
´ÜÀ§</td>
<td width="34%" colspan="2">
<input type="radio" value="" name="HeightType" style="width:20; cursor:hand;" unselectable="on" disabled checked>Çȼ¿
´ÜÀ§</td>
</tr>
<tr>
<td width="33%">¡¡</td>
<td width="33%" colspan="2">
<input type="radio" value="%" name="WidthType" style="width:20; cursor:hand;" unselectable="on" disabled>¹éºÐÀ²</td>
<td width="34%" colspan="2">
<input type="radio" value="%" name="HeightType" style="width:20; cursor:hand;" unselectable="on" disabled>¹éºÐÀ²</td>
</tr>
<tr>
<td width="100%" colspan="5">
<input type="checkbox" name="Sizemaintain" value="1" style="width:20; cursor:hand;" unselectable="on" disabled checked>°¡·Î
¼¼·Î ºñÀ² À¯Áö</td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="20">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="390">
<tr>
<td width="101">±âº» ÇÏÀÌÆÛ ¸µÅ©</td>
<td width="289"><hr></td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="20" align="center">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="90%">
<tr>
<td width="70%">
<input type="text" name="Link" size="20" value="http://"></td>
<td width="30%"><select size="1" name="Target">
<option value="_self">°°Àº ÇÁ·¹ÀÓ</option>
<option value="_top">Àüü ÆäÀÌÁö</option>
<option value="_blank" selected>ț ̢</option>
<option value="_parent">»óÀ§ ÇÁ·¹ÀÓ</option>
</select></td>
</tr>
</table>
</td>
</tr>
<tr>
<td height=3></td>
</tr>
<tr>
<td width="100%" style="padding-left:5px;">* À§ ÇÏÀÌÆÛ¸µÅ©´Â À̹ÌÁö¿¡ ¸µÅ©µÇ´Â ÁÖ¼ÒÀÔ´Ï´Ù.</td>
</tr>
<tr>
<td width="100%"><hr></td>
</tr>
<tr>
<td width="100%" align="right">
<button name="InsertTable_Ok" OnCLick="javascript:FUN_Ok_Click();" unselectable="on">È®ÀÎ</button>
<button name="InsertTable_Calcle" OnClick="javascript:FUN_Cancle();" unselectable="on">Ãë¼Ò</button>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
<!-- À̹ÌÁö -->
<img id="tmpImage" border="0" src="/images/blankimage.gif" OnLoad="javascript:FUN_ImageOnLoad();" OnError="javascript:FUN_ImageOnError();">
<!-- À̹ÌÁö -->
<div style="position: absolute; width: 100px; height: 190px; z-index: 1; left: 63px; top: 33px; display:none" id="FileUploading_Box">
<table border="1" width="250" height="80" cellspacing="0" cellpadding="0" bgcolor="">
<tr>
<td align="center"><font color="#940000">ÆÄÀÏ ¾÷·Îµå ÁßÀÔ´Ï´Ù.<br><br>Àá½Ã¸¸ ±â´Ù·Á ÁÖ¼¼¿ä.<br><br>
</font><b><font color="#FF0000">¾Æ¹«°Íµµ Ŭ¸¯ÇϽÃÁö ¸¶½Ã±â ¹Ù¶ø´Ï´Ù.</font></b></td>
</tr>
</table>
</div>
</body>
</html>
OHA YOOOO