mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-31 00:59:58 +09:00
css 및 js 호출순서 조정기능 추가
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@5785 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
4f380d9c48
commit
61851f1dfe
2149 changed files with 109090 additions and 18689 deletions
|
|
@ -5,7 +5,8 @@
|
|||
#address { width:100px; }
|
||||
.about_address { clear:both; color:#DDDDDD; }
|
||||
|
||||
.address_list_box { color:#AAAAAA; margin-top:1em; clear:both;}
|
||||
.address_list_box { color:#AAAAAA; margin-top:1em; clear:both; padding:5px; }
|
||||
.address_list_box a { color:#AAAAAA; }
|
||||
.address_lists { list-style:none; }
|
||||
|
||||
#display_map { width:400px; height:400px; border:0px; border:1px solid #DDDDDD; margin-left:10px; }
|
||||
#display_map { width:400px; height:300px; border:1px solid #DDDDDD; }
|
||||
|
|
|
|||
|
|
@ -1,14 +1,12 @@
|
|||
<!--%import("popup.js")-->
|
||||
<!--%import("popup.css")-->
|
||||
<!--%import("../lang")-->
|
||||
|
||||
<div id="popHeadder">
|
||||
<h3>{$component_info->title} ver. {$component_info->version}</h3>
|
||||
<div id="popHeader">
|
||||
<h3 class="xeAdmin">{$component_info->title} ver. {$component_info->version}</h3>
|
||||
</div>
|
||||
|
||||
<div id="popBody">
|
||||
|
||||
<table border="0">
|
||||
<table border="0" class="colTable">
|
||||
<col width="190" />
|
||||
<col />
|
||||
<tr valign="top">
|
||||
|
|
@ -19,21 +17,21 @@
|
|||
<input type="hidden" id="map_y" name="x" value="" />
|
||||
<input type="hidden" id="marker" name="marker_1" value="" />
|
||||
|
||||
<table border="0">
|
||||
<table border="0" class="rowTable">
|
||||
<tr>
|
||||
<td><input type="text" class="inputTypeText" id="address" value="" /></td>
|
||||
<td><span class="button"><input type="submit" value="{$lang->cmd_search}" /></span></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<div class="about_address">{$lang->about_address}</div>
|
||||
<p class="summary">{$lang->about_address}</p>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<div class="address_list_box" id="address_list">{$lang->about_address_use}</div>
|
||||
|
||||
<table cellspacing="0" class="tableType5 gap1">
|
||||
<table cellspacing="0" class="rowTable">
|
||||
<tr>
|
||||
<th scope="row"><div>{$lang->map_width}</div></th>
|
||||
<td><input type="text" class="inputTypeText" size="3" id="map_width" value="400" />px</td>
|
||||
|
|
@ -44,14 +42,13 @@
|
|||
</table>
|
||||
</td>
|
||||
<td>
|
||||
<iframe name="display_map" id="display_map" frameBorder="0" src="./?module=editor&component=naver_map&act=procEditorCall&method=displayMap&width=400&height=400"></iframe>
|
||||
<iframe name="display_map" id="display_map" frameBorder="0" src="./?module=editor&component=naver_map&act=procEditorCall&method=displayMap&width=400&height=300"></iframe>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="popFooter" class="tCenter">
|
||||
<a href="#" onclick="insertNaverMap()" class="button"><span>{$lang->cmd_insert}</span></a>
|
||||
<a href="#" onclick="window.close(); return false;" class="button"><span>{$lang->cmd_close}</span></a>
|
||||
<a href="#" onclick="insertNaverMap()" class="button black strong"><span>{$lang->cmd_insert}</span></a>
|
||||
<a href="#" onclick="winopen('./?module=editor&act=dispEditorComponentInfo&component_name={$component_info->component_name}','ComponentInfo','left=10,top=10,width=10,height=10,resizable=no,scrollbars=no,toolbars=no');return false;" class="button"><span>{$lang->about_component}</span></a>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -14,11 +14,15 @@ function getNaverMap() {
|
|||
var width = xWidth(node);
|
||||
var height = xHeight(node);
|
||||
var address = node.getAttribute("address");
|
||||
var zoom = node.getAttribute("zoom");
|
||||
|
||||
if(x&&y) {
|
||||
xGetElementById("map_x").value = x;
|
||||
xGetElementById("map_y").value = y;
|
||||
moveMap(x,y,3);
|
||||
if(zoom) {
|
||||
moveMap(x,y,zoom);
|
||||
}
|
||||
else {
|
||||
moveMap(x,y,3);
|
||||
}
|
||||
}
|
||||
if(address) {
|
||||
xGetElementById("address").value = address;
|
||||
|
|
@ -32,15 +36,16 @@ function getNaverMap() {
|
|||
function insertNaverMap(obj) {
|
||||
if(typeof(opener)=="undefined") return;
|
||||
|
||||
var x = xGetElementById("map_x").value;
|
||||
var y = xGetElementById("map_y").value;
|
||||
var x = display_map.mapObj.getCenter().x;
|
||||
var y = display_map.mapObj.getCenter().y;
|
||||
var marker = xGetElementById("marker").value;
|
||||
var address = xGetElementById("address").value;
|
||||
var zoom = display_map.mapObj.getZoom();
|
||||
|
||||
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\" 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+"\" />";
|
||||
var text = "<img src=\"./common/tpl/images/blank.gif\" editor_component=\"naver_map\" address=\""+address+"\" x=\""+x+"\" y=\""+y+"\" zoom=\""+zoom+"\" 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);
|
||||
|
||||
|
|
@ -52,8 +57,6 @@ function insertNaverMap(obj) {
|
|||
window.close();
|
||||
}
|
||||
|
||||
xAddEventListener(window, "load", getNaverMap);
|
||||
|
||||
/* 네이버의 map openapi로 주소에 따른 좌표를 요청 */
|
||||
function search_address(selected_address) {
|
||||
if(typeof(selected_address)=="undefined") selected_address = null;
|
||||
|
|
@ -73,11 +76,6 @@ function moveMap(x,y,scale) {
|
|||
display_map.moveMap(x,y,scale);
|
||||
}
|
||||
|
||||
function mapClicked(pos) {
|
||||
xGetElementById("map_x").value = pos.x;
|
||||
xGetElementById("map_y").value = pos.y;
|
||||
}
|
||||
|
||||
var naver_address_list = new Array();
|
||||
function complete_search_address(ret_obj, response_tags, selected_address) {
|
||||
var address_list = ret_obj['address_list'];
|
||||
|
|
@ -91,7 +89,7 @@ function complete_search_address(ret_obj, response_tags, selected_address) {
|
|||
var item = address_list[i].split(",");
|
||||
|
||||
naver_address_list[naver_address_list.length] = item;
|
||||
html += "<a href='#' onclick=\"moveMap('"+item[0]+"','"+item[1]+"');return false;\">"+item[2]+"</a><br />";
|
||||
html += "<li class=\"address_lists\"><a href='#' onclick=\"moveMap('"+item[0]+"','"+item[1]+"');return false;\">"+item[2]+"</a></li>";
|
||||
}
|
||||
|
||||
var list_zone = xGetElementById("address_list");
|
||||
|
|
@ -106,3 +104,4 @@ function addMarker(pos) {
|
|||
marker_count++;
|
||||
return true;
|
||||
}
|
||||
xAddEventListener(window, "load", getNaverMap);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue