git-svn-id: http://xe-core.googlecode.com/svn/trunk@1044 201d5d3c-b55e-5fd7-737f-ddc643e51545

This commit is contained in:
zero 2007-04-09 05:42:07 +00:00
parent 7142f18d07
commit e543d58f81
18 changed files with 38 additions and 44 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 502 B

Before After
Before After

View file

@ -101,15 +101,13 @@
$x = $xml_obj->attrs->x;
$y = $xml_obj->attrs->y;
$marker = $xml_obj->attrs->marker;
$width = $xml_obj->attrs->width;
$height = $xml_obj->attrs->height;
$style = $xml_obj->attrs->style;
if(!$width || !$height) {
preg_match_all('/([0-9]+)/i',$style,$matches);
$width = $matches[0][0];
$height = $matches[0][1];
}
preg_match_all('/(width|height)([^[:digit:]]+)([0-9]+)/i',$style,$matches);
$width = $matches[3][0];
$height = $matches[3][1];
if(!$width) $width = 400;
if(!$height) $height = 400;
$body_code = sprintf('<div style="width:%dpx;height:%dpx;margin-bottom:5px;"><iframe src="%s?module=editor&amp;act=procEditorCall&amp;method=displayMap&amp;component=naver_map&amp;width=%s&amp;height=%s&amp;x=%s&amp;y=%s&amp;marker=%s" frameBorder="0" style="padding:1px; border:1px solid #AAAAAA;width:%dpx;height:%dpx;margin:0px;"></iframe></div>', $width, $height, Context::getRequestUri(), $width, $height, $x, $y, $marker, $width, $height);
return $body_code;

Binary file not shown.

After

Width:  |  Height:  |  Size: 528 B

View file

@ -21,10 +21,10 @@
<div class="map_scale_box">
<div class="map_scale_header">{$lang->map_width}</div>
<div class="map_scale_body"><input type="text" class="input_map_size" id="map_width" value="640" />px</div>
<div class="map_scale_body"><input type="text" class="input_map_size" id="map_width" value="400" />px</div>
<div class="map_scale_header">{$lang->map_height}</div>
<div class="map_scale_body"><input type="text" class="input_map_size" id="map_height" value="480" />px</div>
<div class="map_scale_body"><input type="text" class="input_map_size" id="map_height" value="300" />px</div>
</div>
<div class="editor_button_area">

View file

@ -25,8 +25,8 @@ function getNaverMap() {
search_address(address);
}
xGetElementById("map_width").value = width-6;
xGetElementById("map_height").value = height-6;
xGetElementById("map_width").value = width-4;
xGetElementById("map_height").value = height-4;
}
function insertNaverMap(obj) {
@ -38,10 +38,9 @@ function insertNaverMap(obj) {
var address = xGetElementById("address").value;
var width = xGetElementById("map_width").value;
var height = xGetElementById("map_height").value;
var text = "<img src=\"./common/tpl/images/blank.gif\" editor_component=\"naver_map\" class=\"editor_component_output\" address=\""+address+"\" x=\""+x+"\" y=\""+y+"\" width=\""+width+"\" height=\""+height+"\" style=\"width:"+width+"px;height:"+height+"px;\" marker=\""+marker+"\" />";
var text = "<img src=\"./common/tpl/images/blank.gif\" editor_component=\"naver_map\" address=\""+address+"\" x=\""+x+"\" y=\""+y+"\" width=\""+width+"\" height=\""+height+"\" style=\"width:"+width+"px;height:"+height+"px;border:2px dotted #3CBC2f;background:url(./modules/editor/components/naver_map/tpl/navermap_component.gif) no-repeat center;\" marker=\""+marker+"\" />";
opener.editorFocus(opener.editorPrevSrl);