From d22ab91f3458c618688afc76aafa8b013a7e8f55 Mon Sep 17 00:00:00 2001 From: zero Date: Fri, 23 Mar 2007 05:46:15 +0000 Subject: [PATCH] git-svn-id: http://xe-core.googlecode.com/svn/trunk@622 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- .../editor/components/image_gallery/icon.gif | Bin 1402 -> 1474 bytes .../components/image_gallery/lang/ko.lang.php | 6 +- .../image_gallery/tpl/images/blank.gif | Bin 0 -> 43 bytes .../image_gallery/tpl/images/border_solid.gif | Bin 0 -> 89 bytes .../components/image_gallery/tpl/popup.css | 67 +++++++++++++++++- .../components/image_gallery/tpl/popup.html | 53 ++++++++++++-- .../components/image_gallery/tpl/popup.js | 52 +++++++++++--- 7 files changed, 161 insertions(+), 17 deletions(-) create mode 100644 modules/editor/components/image_gallery/tpl/images/blank.gif create mode 100644 modules/editor/components/image_gallery/tpl/images/border_solid.gif diff --git a/modules/editor/components/image_gallery/icon.gif b/modules/editor/components/image_gallery/icon.gif index f5a20f9d00d6742648e5678f9a34dbf0d9583b9b..d6e714d1d8e222e2ad9ab86fbd1c058a44f6d606 100644 GIT binary patch delta 1366 zcmV-c1*!V_3c?G2M@dFFIbmV|5CG@$05vjdHZyBCG;23BY&bP+IW}!NH*PyPZaX+{ zJUMSYI&eNaa6de8Ks|CoKXXDrbVNaQMniT+M0ZC-cSuEeNk(}}M|ny}dQ3@sPE37I zO?^^Ne^XI_R#bymRfAnxhhAKWU|ot~UW#O4jAdetXl9UqX=jmaX_9PelW=X7ac`D# zaF=v)n0A6*ntL^Rc%5UGJb;5%WtcvFd!JsAiGF;bXPQ8Vi$PzKjDUWkfq$ZgjznaW zk%NJwgMy@lf~19mrD~R=uZBNrnWc(|sdT1FX`Y&kimG?0OnRzLbDhI`t7~_i)|ZyD zc&eXzpVxd=uy}o<#d^9=eWKZivTuI8Qk)1Op}yMvMX9uKIezmLUZ zsi(h@#$AoH(32_w9)F#((U{3)p0d%NveKBzYL&F(udc+Gwd0%1XRxou(XVcz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xE?T*EUOTUGv&`9IcMB7 z;lN_m7@cDf0stVDs>Z26omClDCkUZ`HCvPzu_8f6Dltu?3gZG{zzHtSuwo@R*WlW= zZ{u41StS^r9el0;$w6a?gBzyAm=)tJ1prCS2G%V&nV@6HlJ~Z(k}J=WGFouJu+bue zk5Xa~Gadjy6J4rUcf}A80_!m^5Cn|i20iG2L0wS10?C?-Br-=MYeEtV7)(AXkR<@TFlA!_ zih`9B02G3ZL3rvp7ghjLQV9S=IK#+Ph#)f6KLbV4N}QO+ISLqZg5iu<2Q)U|gfM%0 zvH<`w*ak-h0SvIgr$C{O+9g)T8DPK<%V9EACYek+5FM)M;!7{Q+)~T2wb+768<1?8 f)w2yna)=mURBNrZYCOWsFKs~U?YH2D8xR0H2+w(M diff --git a/modules/editor/components/image_gallery/lang/ko.lang.php b/modules/editor/components/image_gallery/lang/ko.lang.php index 24d512ec5..18e302224 100644 --- a/modules/editor/components/image_gallery/lang/ko.lang.php +++ b/modules/editor/components/image_gallery/lang/ko.lang.php @@ -9,6 +9,10 @@ $lang->width = "가로크기"; $lang->height = "세로크기"; $lang->image_list = "이미지 목록"; - $lang->cmd_make_thumbnail = "썸네일 생성"; + $lang->gallery_style = "갤러리형식 "; + $lang->gallery_slide_style = "슬라이드 형식"; + $lang->gallery_list_style = "모두 펼침"; + $lang->gallery_border_color = "테두리색"; + $lang->gallery_bg_color = "배경색"; $lang->about_image_list = "이미지 갤러리에 추가할 파일을 선택하세요. 선택후 드래그 또는 shift+클릭(범위선택), ctrl+클릭(개별선택) 가능합니다"; ?> diff --git a/modules/editor/components/image_gallery/tpl/images/blank.gif b/modules/editor/components/image_gallery/tpl/images/blank.gif new file mode 100644 index 0000000000000000000000000000000000000000..35d42e808f0a8017b8d52a06be2f8fec0b466a66 GIT binary patch literal 43 scmZ?wbhEHbWMp7uXkcLY|NlP&1B2pE7Dgb&paUX6G7L;iE{qJ;0LZEa`2YX_ literal 0 HcmV?d00001 diff --git a/modules/editor/components/image_gallery/tpl/images/border_solid.gif b/modules/editor/components/image_gallery/tpl/images/border_solid.gif new file mode 100644 index 0000000000000000000000000000000000000000..9fbf79f573642a1c331706d47539c94e64a4fb08 GIT binary patch literal 89 zcmZ?wbhEHblw%NJXkcXc4+e@qSr{1@7#VaJfB+=Jz+}+Uzw-23=|yw41f^{5v)FT7 o_TllK22VA$SzYsPJFP!>?6u6{s(tfs+rMOJ+_T6qkb%J(0IMn^>;M1& literal 0 HcmV?d00001 diff --git a/modules/editor/components/image_gallery/tpl/popup.css b/modules/editor/components/image_gallery/tpl/popup.css index e1a8bd26b..4cd7b0d8e 100644 --- a/modules/editor/components/image_gallery/tpl/popup.css +++ b/modules/editor/components/image_gallery/tpl/popup.css @@ -16,9 +16,26 @@ text-align:center; } +.short_header { + float:left; + width:80px; + text-align:left; + font-weight:bold; + margin:5px; + font-size:9pt; +} + +.short_body { + float:left; + width:90px; + text-align:left; + margin:5px; + font-size:9pt; +} + .header { float:left; - width:100px; + width:80px; clear:left; text-align:left; font-weight:bold; @@ -32,7 +49,6 @@ text-align:left; margin:5px; font-size:9pt; - font-size:9pt; } .image_list { @@ -67,3 +83,50 @@ height:16px; font-size:9pt; } + +.editor_color_box { + clear:both; + height:65px; + width:400px; + border:1px solid #DDDDDD; + padding:2px; + margin-bottom:3px; +} + +.editor_color_input { + clear:both; +} + +img.bg_preview_color { + width:30px; + height:16px; + border:1px solid #000000; + background-color:#FFFFFF; +} + +img.border_preview_color { + width:30px; + height:16px; + border:1px solid #EEEEEE; + background-color:#88EE22; +} + +img.color_icon { + width:14px; + height:14px; + border:1px solid #FFFFFF; +} + +img.color_icon_over { + width:14px; + height:14px; + border:1px solid #000000; + cursor:pointer; +} + +.table_input { + width:40px; + height:13px; + font-size:9pt; + border:1px solid #AAAAAA; +} diff --git a/modules/editor/components/image_gallery/tpl/popup.html b/modules/editor/components/image_gallery/tpl/popup.html index a561f6c18..9e9cbdd10 100644 --- a/modules/editor/components/image_gallery/tpl/popup.html +++ b/modules/editor/components/image_gallery/tpl/popup.html @@ -8,14 +8,55 @@
{$lang->image_gallery}
-
{$lang->width}
-
px
+
{$lang->width}
+
px
-
{$lang->height}
-
px
+
{$lang->height}
+
px
-
{$lang->cmd_make_thumbnail}
-
+
{$lang->gallery_style}
+
+ +
+ +
{$lang->gallery_border_color}
+
+
+ +
+
+ + + + + + +
blank#
+
+
+ +
{$lang->gallery_bg_color}
+
+
+ +
+
+ + + + + + +
blank#
+
+
{$lang->image_list}
diff --git a/modules/editor/components/image_gallery/tpl/popup.js b/modules/editor/components/image_gallery/tpl/popup.js index 84c32ff6a..12edb2808 100644 --- a/modules/editor/components/image_gallery/tpl/popup.js +++ b/modules/editor/components/image_gallery/tpl/popup.js @@ -11,11 +11,8 @@ function getSlideShow() { var width = xWidth(selected_node)-6; var height = xHeight(selected_node)-6; - var make_thumbnail = selected_node.getAttribute("make_thumbnail"); xGetElementById("width").value = width; xGetElementById("height").value = height; - if(make_thumbnail=="Y") xGetElementById("make_thumbnail").checked = true; - else xGetElementById("make_thumbnail").checked = false; selected_images = xInnerHtml(selected_node); } @@ -64,9 +61,6 @@ function insertSlideShow() { var width = xGetElementById("width").value; var height = xGetElementById("height").value; - var make_thumbnail = "N"; - if(xGetElementById("make_thumbnail").checked) make_thumbnail = "Y"; - else make_thumbnail = "N"; var images_list = ""; for(var i=0; i"+images_list+"
"; + var text = "
"+images_list+"
"; opener.editorFocus(opener.editorPrevSrl); var iframe_obj = opener.editorGetIFrame(opener.editorPrevSrl) opener.editorReplaceHTML(iframe_obj, text); @@ -92,4 +85,47 @@ function insertSlideShow() { window.close(); } +/* 색상 클릭시 */ +function select_color(type, code) { + xGetElementById(type+"_preview_color").style.backgroundColor = "#"+code; + xGetElementById(type+"_color_input").value = code; +} + +/* 수동 색상 변경시 */ +function manual_select_color(type, obj) { + if(obj.value.length!=6) return; + code = obj.value; + xGetElementById(type+"_preview_color").style.backgroundColor = "#"+code; +} + +/* 색상표를 출력 */ +function printColor(type, blank_img_src) { + var colorTable = new Array('22','44','66','88','AA','CC','EE'); + var html = ""; + + for(var i=0;i<8;i+=1) html += printColorBlock(type, i.toString(16)+i.toString(16)+i.toString(16)+i.toString(16)+i.toString(16)+i.toString(16), blank_img_src); + + for(var i=0; i\"color\"<\/div>"; + } else { + return "
\"color\"<\/div>"; + } +} + xAddEventListener(window, "load", getSlideShow);