css 및 js 호출순서 조정기능 추가

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@5785 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ngleader 2009-03-06 05:33:56 +00:00
parent 4f380d9c48
commit 61851f1dfe
2149 changed files with 109090 additions and 18689 deletions

View file

@ -9,5 +9,4 @@ h3 { margin:0 20px 0 20px; }
.menuListZone td.category_zone { padding-right:10px; }
#category_list { padding:.5em 0 .5em 0; margin-bottom:2em; width:250px; overflow:hidden; float:left; position:absolute; left:10px;}
#menu_zone_info { margin-left:10px; width:550px; _width:530px; float:left; position:absolute; right:10px;}
*:first-child+html #category_info { width:540px; }
#menu_zone_info { width:560px; position:absolute; margin:0 auto; left:0; right:0; z-index:9999;}

View file

@ -1,5 +1,5 @@
<!--%import("js/board_admin.js")-->
<h3>{$lang->menu} <span class="gray">{$lang->cmd_management}</span></h3>
<h3 class="xeAdmin">{$lang->menu} <span class="gray">{$lang->cmd_management}</span></h3>
<div class="infoText">{nl2br($lang->about_menu)}</div>

View file

@ -3,39 +3,36 @@
<!--#include("header.html")-->
<!-- 정보 -->
<div class="summary">
<strong>Total</strong> <em>{number_format($total_count)}</em>, Page <strong>{number_format($page)}</strong>/{number_format($total_page)}
</div>
<!-- 삭제를 위한 임시 form -->
<form id="fo_menu" action="./" method="get">
<input type="hidden" name="menu_srl" value="" />
</form>
<!-- 목록 -->
<table cellspacing="0" class="adminTable">
<table cellspacing="0" class="crossTable">
<caption>Total {number_format($total_count)}, Page {number_format($page)}/{number_format($total_page)}</caption>
<thead>
<tr>
<th scope="col"><div>{$lang->no}</div></th>
<th scope="col" class="wide"><div>{$lang->title}</div></th>
<th scope="col"><div>{$lang->regdate}</div></th>
<th scope="col"><div>{$lang->cmd_delete}</div></th>
<th scope="col" colspan="2"><div>&nbsp;</div></th>
</tr>
</thead>
<tbody>
<!--@foreach($menu_list as $no => $val)-->
<tr class="row{$cycle_idx}">
<td class="number center">{$no}</td>
<td><a href="{getUrl('act','dispMenuAdminManagement','menu_srl',$val->menu_srl)}">{htmlspecialchars($val->title)}</a></td>
<td class="date center nowrap">{zdate($val->regdate,"Y-m-d")}</td>
<td class="delete center"><a href="#" onclick="doDeleteMenu('{$val->menu_srl}');return false;">{$lang->cmd_delete}</a></td>
<td class="wide">{htmlspecialchars($val->title)}</td>
<td class="nowrap">{zdate($val->regdate,"Y-m-d")}</td>
<td><a href="{getUrl('act','dispMenuAdminManagement','menu_srl',$val->menu_srl)}" class="buttonSet buttonSetting"><span>{$lang->cmd_setup}</span></a></td>
<td><a href="#" onclick="doDeleteMenu('{$val->menu_srl}');return false;" title="{htmlspecialchars($lang->cmd_delete)}" class="buttonSet buttonDelete"><span>{$lang->cmd_delete}</span></a></td>
</tr>
<!--@end-->
<tr>
<td colspan="4" class="right">
<a href="{getUrl('act','dispMenuAdminInsert','module_srl','')}" class="button"><span>{$lang->cmd_make}</span></a>
</td>
<th colspan="5" class="button">
<a href="{getUrl('act','dispMenuAdminInsert','module_srl','')}" class="button black strong"><span>{$lang->cmd_make}</span></a>
</th>
</tr>
</tbody>
</table>

View file

@ -234,4 +234,4 @@ function completeInsertMenu(ret_obj) {
//var url = current_url.setQuery('act','dispMenuAdminManagement').setQuery('menu_srl',menu_srl);
//window.open(url);
}
}

View file

@ -2,7 +2,7 @@ function Tree(url){
// clear tree;
jQuery('#menu > ul > li > ul').remove();
if(jQuery("ul.simpleTree > li > a").size() ==0)jQuery('<a href="#" class="add"><img src="./common/js/plugins/ui.tree/images/iconAdd.gif" /></a>').bind("click",function(e){addNode(0,e);}).appendTo("ul.simpleTree > li");
if(jQuery("ul.simpleTree > li > a").size() ==0)jQuery('<a href="#" class="add"><img src="./common/js/plugins/ui.tree/images/iconAdd.gif" alt="'+lang_cmd_insert+'" title="'+lang_cmd_insert+'" /></a>').bind("click",function(e){addNode(0,e);}).appendTo("ul.simpleTree > li");
//ajax get data and transeform ul il
jQuery.get(url,function(data){
@ -16,17 +16,17 @@ function Tree(url){
var node = jQuery('<li id="tree_'+node_srl+'"><span>'+text+'</span></li>');
// button
jQuery('<a href="#" class="add"><img src="./common/js/plugins/ui.tree/images/iconAdd.gif" /></a>').bind("click",function(e){
jQuery('<a href="#" class="add"><img src="./common/js/plugins/ui.tree/images/iconAdd.gif" alt="'+lang_cmd_insert+'" title="'+lang_cmd_insert+'" /></a>').bind("click",function(e){
addNode(node_srl,e);
return false;
}).appendTo(node);
jQuery('<a href="#" class="modify"><img src="./common/js/plugins/ui.tree/images/iconModify.gif" /></a>').bind("click",function(e){
jQuery('<a href="#" class="modify"><img src="./common/js/plugins/ui.tree/images/iconModify.gif" alt="'+lang_cmd_modify+'" title="'+lang_cmd_modify+'" /></a>').bind("click",function(e){
modifyNode(node_srl,e);
return false;
}).appendTo(node);
jQuery('<a href="#" class="delete"><img src="./common/js/plugins/ui.tree/images/iconDel.gif" /></a>').bind("click",function(e){
jQuery('<a href="#" class="delete"><img src="./common/js/plugins/ui.tree/images/iconDel.gif" alt="'+lang_cmd_delete+'" title="'+lang_cmd_delete+'" /></a>').bind("click",function(e){
deleteNode(node_srl);
return false;
}).appendTo(node);
@ -128,8 +128,7 @@ function modifyNode(node_srl,e){
};
jQuery.exec_json('menu.getMenuAdminTplInfo', params, function(data){
jQuery('#menu_zone_info').html(data.tpl);
jQuery('#menu_zone_info').html(data.tpl).css("margin-top",e.pageY-400);
jQuery('#menu_zone_info').html(data.tpl).css('position','absolute').css("left",e.pageX).css("top",e.pageY).css('display','block');
});
}
@ -144,7 +143,7 @@ function addNode(node_srl,e){
};
jQuery.exec_json('menu.getMenuAdminTplInfo', params, function(data){
jQuery('#menu_zone_info').html(data.tpl).css("margin-top",e.pageY-400);
jQuery('#menu_zone_info').html(data.tpl).css('position','absolute').css("left",e.pageX).css("top",e.pageY).css('display','block');
});
}
@ -168,3 +167,7 @@ function completeInsertMenuItem(ret_obj) {
jQuery('#menu_zone_info').html('');
Tree(xml_url);
}
function doMoveMenuInfo() {
xAddEventListener(window,'load', function() { window.document.body.appendChild(xGetElementById('fo_menu')); xGetElementById('menu_zone_info').style.width = '550px'; } );
}

View file

@ -4,7 +4,7 @@
<form action="./" method="get" onsubmit="return procFilter(this, insert_menu)">
<table cellspacing="0" class="adminTable">
<table cellspacing="0" class="rowTable">
<tr>
<th scope="col"><div>{$lang->cmd_menu_insert}</div></th>
<td>{nl2br($lang->about_menu_management)}</td>
@ -17,9 +17,9 @@
</td>
</tr>
<tr>
<td colspan="2" class="right">
<span class="button"><input type="submit" value="{$lang->cmd_submit}" accesskey="s" /></span>
</td>
<th colspan="2" class="button">
<span class="button black strong"><input type="submit" value="{$lang->cmd_submit}" accesskey="s" /></span>
</th>
</tr>
</table>

View file

@ -4,120 +4,113 @@
<input type="hidden" name="hover_btn" value="{$item_info->hover_btn}" />
<input type="hidden" name="active_btn" value="{$item_info->active_btn}" />
<table cellspacing="0" class="adminTable">
<tr>
<th scope="row" colspan="3" class="button"><div>
<div class="layer" style="display:block;">
<h4 class="xeAdmin">{$lang->menu}</h4>
<button class="xButton" type="button" onclick="hideCategoryInfo();return false" ><span>{$lang->cmd_close}</span></button>
<span class="button green"><input type="submit" value="{$lang->cmd_save}" /></span>
<span class="button red"><input type="button" onclick="hideCategoryInfo();return false" value="{$lang->cmd_close}" /></span>
<div class="layerBody">
</div></th>
</tr>
<!--@if($item_info->parent_menu_name)-->
<tr class="row{$cycle_idx}">
<th scope="row" colspan="2"><div>{$lang->parent_menu_name}</div></th>
<td>{$item_info->parent_menu_name[$lang_type]}</td>
</tr>
<!--@end-->
{@ $_row = 0;}
<!--@foreach($lang_supported as $key => $val)-->
<tr>
<!--@if($_row==0)--><th scope="row" rowspan="{count($lang_supported)}"><div>{$lang->menu_name}</div></th><!--@end-->
<th><div>{$val}</div></th>
<td><input type="checkbox" name="ck_menu_name_{$key}" /><input type="text" name="menu_name_{$key}" value="{htmlspecialchars($item_info->name[$key])}" class="inputTypeText"/></td>
{@ $_row ++ }
</tr>
<!--@end-->
<tr>
<th scope="row" colspan="2"><div>{$lang->menu_url}</div></th>
<td>
<input type="text" name="menu_url" value="{htmlspecialchars($item_info->url)}" class="inputTypeText" />
<a href="{getUrl('module','menu','act','dispMenuAdminMidList')}" onclick="popopen(this.href);return false;" class="button"><span>{$lang->cmd_search_mid}</span> </a>
<p class="clear">{$lang->about_menu_url}</p>
</td>
</tr>
<tr>
<th scope="row" colspan="2"><div>{$lang->menu_open_window}</div></th>
<td>
<input type="checkbox" name="menu_open_window" value="Y" <!--@if($item_info->open_window=="Y")-->checked="checked"<!--@end--> />
<p>{$lang->about_menu_open_window}</p>
</td>
</tr>
<tr>
<th scope="row" colspan="2"><div>{$lang->menu_expand}</div></th>
<td>
<input type="checkbox" name="menu_expand" value="Y" <!--@if($item_info->expand=="Y")-->checked="checked"<!--@end--> />
<p>{$lang->about_menu_expand}</p>
</td>
</tr>
<tr>
<th scope="row" colspan="2"><div>{$lang->menu_img_btn}</div></th>
<td><p>{$lang->about_menu_img_btn}</p></td>
</tr>
<tr>
<th scope="row" colspan="2"><div>{$lang->menu_normal_btn}</div></th>
<td>
<div id="menu_normal_btn_zone" <!--@if(!$item_info->normal_btn)-->style="display:none;"<!--@end-->>
<img src="{$item_info->normal_btn}" alt="" id="menu_normal_btn_img" /><br />
<a href="#" onclick="doDeleteButton('menu_normal_btn');return false;" class="button"><span>{$lang->cmd_delete}</span></a>
</div>
<input type="file" name="menu_normal_btn" value="" class="inputTypeText" onchange="doMenuUploadButton(this); return false;"/>
</td>
</tr>
<tr>
<th scope="row" colspan="2"><div>{$lang->menu_hover_btn}</div></th>
<td>
<div id="menu_hover_btn_zone") <!--@if(!$item_info->hover_btn)-->style="display:none;"<!--@end-->>
<img src="{$item_info->hover_btn}" alt="" id="menu_hover_btn_img" /><br />
<a href="#" onclick="doDeleteButton('menu_hover_btn');return false;" class="button"><span>{$lang->cmd_delete}</span></a>
</div>
<input type="file" name="menu_hover_btn" value="" class="inputTypeText" onchange="doMenuUploadButton(this); return false;"/>
</td>
</tr>
<tr>
<th scope="row" colspan="2"><div>{$lang->menu_active_btn}</div></th>
<td>
<div id="menu_active_btn_zone" <!--@if(!$item_info->active_btn)-->style="display:none;"<!--@end-->>
<img src="{$item_info->active_btn}" alt="" id="menu_active_btn_img" /><br />
<a href="#" onclick="doDeleteButton('menu_active_btn');return false;" class="button"><span>{$lang->cmd_delete}</span></a>
</div>
<input type="file" name="menu_active_btn" value="" class="inputTypeText" onchange="doMenuUploadButton(this); return false;"/>
</td>
</tr>
<tr>
<th scope="row" colspan="2"><div>{$lang->menu_group_srls}</div></th>
<td>
<!--@foreach($group_list as $key=>$val)-->
<input type="checkbox" name="group_srls" value="{$key}" id="group_{$key}" <!--@if(is_array($item_info->group_srls)&&in_array($key, $item_info->group_srls))-->checked="checked"<!--@end-->/>
<label for="group_{$key}">{$val->title}</label>
<table cellspacing="0" class="rowTable">
<!--@if($item_info->parent_menu_name)-->
<tr class="row{$cycle_idx}">
<th scope="row"><div>{$lang->parent_menu_name}</div></th>
<td>{$item_info->parent_menu_name}</td>
</tr>
<!--@end-->
<p>{$lang->about_menu_group_srls}</p>
</td>
</tr>
<tr>
<th scope="row" colspan="3" class="button"><div>
<tr>
<th scope="row"><div>{$lang->menu_name}</div></th>
<td>
<input type="text" name="menu_name" id="menu_name" value="{htmlspecialchars($item_info->name)}" class="inputTypeText w300"/>
<a href="{getUrl('','module','module','act','dispModuleAdminLangcode','target','menu_name')}" onclick="popopen(this.href);return false;" class="buttonSet buttonSetting"><span>{$lang->cmd_find_langcode}</span></a>
</td>
</tr>
<tr>
<th scope="row"><div>{$lang->menu_url}</div></th>
<td>
<input type="text" name="menu_url" value="{htmlspecialchars($item_info->url)}" class="inputTypeText" />
<a href="{getUrl('module','menu','act','dispMenuAdminMidList')}" onclick="popopen(this.href);return false;" class="button black"><span>{$lang->cmd_search_mid}</span> </a>
<p class="clear">{$lang->about_menu_url}</p>
</td>
</tr>
<tr>
<th scope="row"><div>{$lang->menu_open_window}</div></th>
<td>
<input type="checkbox" name="menu_open_window" value="Y" <!--@if($item_info->open_window=="Y")-->checked="checked"<!--@end--> />
<p>{$lang->about_menu_open_window}</p>
</td>
</tr>
<tr>
<th scope="row"><div>{$lang->menu_expand}</div></th>
<td>
<input type="checkbox" name="menu_expand" value="Y" <!--@if($item_info->expand=="Y")-->checked="checked"<!--@end--> />
<p>{$lang->about_menu_expand}</p>
</td>
</tr>
<tr>
<th scope="row"><div>{$lang->menu_img_btn}</div></th>
<td><p>{$lang->about_menu_img_btn}</p></td>
</tr>
<tr>
<th scope="row"><div>{$lang->menu_normal_btn}</div></th>
<td>
<div id="menu_normal_btn_zone" <!--@if(!$item_info->normal_btn)-->style="display:none;"<!--@end-->>
<img src="{$item_info->normal_btn}" alt="" id="menu_normal_btn_img" /><br />
<a href="#" onclick="doDeleteButton('menu_normal_btn');return false;" class="button"><span>{$lang->cmd_delete}</span></a>
</div>
<input type="file" name="menu_normal_btn" value="" class="inputTypeText" onchange="doMenuUploadButton(this); return false;"/>
</td>
</tr>
<tr>
<th scope="row"><div>{$lang->menu_hover_btn}</div></th>
<td>
<div id="menu_hover_btn_zone") <!--@if(!$item_info->hover_btn)-->style="display:none;"<!--@end-->>
<img src="{$item_info->hover_btn}" alt="" id="menu_hover_btn_img" /><br />
<a href="#" onclick="doDeleteButton('menu_hover_btn');return false;" class="button"><span>{$lang->cmd_delete}</span></a>
</div>
<input type="file" name="menu_hover_btn" value="" class="inputTypeText" onchange="doMenuUploadButton(this); return false;"/>
</td>
</tr>
<tr>
<th scope="row"><div>{$lang->menu_active_btn}</div></th>
<td>
<div id="menu_active_btn_zone" <!--@if(!$item_info->active_btn)-->style="display:none;"<!--@end-->>
<img src="{$item_info->active_btn}" alt="" id="menu_active_btn_img" /><br />
<a href="#" onclick="doDeleteButton('menu_active_btn');return false;" class="button"><span>{$lang->cmd_delete}</span></a>
</div>
<input type="file" name="menu_active_btn" value="" class="inputTypeText" onchange="doMenuUploadButton(this); return false;"/>
</td>
</tr>
<tr>
<th scope="row"><div>{$lang->menu_group_srls}</div></th>
<td>
<!--@foreach($group_list as $key=>$val)-->
<input type="checkbox" name="group_srls" value="{$key}" id="group_{$key}" <!--@if(is_array($item_info->group_srls)&&in_array($key, $item_info->group_srls))-->checked="checked"<!--@end-->/>
<label for="group_{$key}">{$val->title}</label>
<!--@end-->
<p>{$lang->about_menu_group_srls}</p>
</td>
</tr>
<tr>
<th scope="row" colspan="3" class="button"><div>
<span class="button black strong"><input type="submit" value="{$lang->cmd_save}" /></span>
</div></th>
</tr>
</table>
<span class="button green"><input type="submit" value="{$lang->cmd_save}" /></span>
<span class="button red"><input type="button" onclick="hideCategoryInfo();return false" value="{$lang->cmd_close}" /></span>
<script type="text/javascript">
(function($){
$("[name^=menu_name_]").bind("blur",function(e){
if($("[name=ck_"+$(this).attr("name")+"]:checked").size()>0){
$("[name^=ck_menu_name_]:checked").each(function(i){
$("[name="+$(this).attr("name").substring(3)+"]").val(e.target.value);
});
}
});
})(jQuery);
</script>
</div></th>
</tr>
</table>
<script type="text/javascript">
(function($){
$("[name^=menu_name_]").bind("blur",function(e){
if($("[name=ck_"+$(this).attr("name")+"]:checked").size()>0){
$("[name^=ck_menu_name_]:checked").each(function(i){
$("[name="+$(this).attr("name").substring(3)+"]").val(e.target.value);
});
}
});
})(jQuery);
</script>
</div>
</div>

View file

@ -18,8 +18,8 @@
<!--@if($module == 'admin')-->
<form action="./" method="get" onsubmit="return procFilter(this, update_menu_title)">
<input type="hidden" name="menu_srl" value="{$menu_info->menu_srl}" />
<table cellspacing="0" class="adminTable">
<caption>{$lang->menu} {$lang->cmd_management}</caption>
<h4 class="xeAdmin">{$lang->menu} {$lang->cmd_management}</h4>
<table cellspacing="0" class="rowTable">
<tr>
<th scope="col"><div>{$lang->title}</div></th>
<td>
@ -41,7 +41,7 @@
</form>
<!--@else-->
<table cellspacing="0" class="adminTable">
<table cellspacing="0" class="rowTable">
<tr>
<th scope="col"><div>{$lang->title}</div></th>
<td class="left">
@ -65,24 +65,30 @@
<input type="hidden" name="module" value="menu" />
<input type="hidden" name="act" value="" />
<input type="hidden" name="target" value="" />
<div id="menu">
<ul class="simpleTree">
<li class="root" id='tree_0'><span>{$lang->menu}</span></li>
</ul>
</div>
<div id="menu_zone_info" style="position:absolute;top:200px; width:70%; right:20px"></div>
<div id="menu_zone_info"></div>
</form>
<div id="menu">
<ul class="simpleTree">
<li class="root" id='tree_0'><span>{$lang->menu}</span></li>
</ul>
</div>
</div>
</div>
<iframe id='tmp_upload_iframe' name='tmp_upload_iframe' style='display:none;width:1px;height:1px;position:absolute;top:-10px;left:-10px'></iframe>
<script type="text/javascript">
<script type="text/javascript">//<![CDATA[
//언어파일 로드용
var lang_cmd_insert = "{htmlspecialchars($lang->cmd_insert)}";
var lang_cmd_delete = "{htmlspecialchars($lang->cmd_delete)}";
var lang_cmd_modify = "{htmlspecialchars($lang->cmd_modify)}";
var simpleTreeCollection;
var max_menu_depth = 999;
var xml_url = "{$menu_info->xml_file}";
var lang_confirm_delete = "{$lang->confirm_delete}";
doMoveMenuInfo();
Tree(xml_url);
//]]>
</script>

View file

@ -1,9 +1,9 @@
<!--%import("js/menu_admin.js")-->
<div id="popHeadder" class="w700">
<h3>{$lang->cmd_search_mid}</h3>
<div id="popHeader" class="wide">
<h3 class="xeAdmin">{$lang->cmd_search_mid}</h3>
</div>
<div id="popBody" class="w700">
<div id="popBody">
<form action="./" method="get">
<input type="hidden" name="module" value="{$module}" />
<input type="hidden" name="act" value="{$act}" />
@ -21,7 +21,7 @@
<!--@end-->
</select>
<input type="submit" name="go_button" id="go_button" value="GO" class="buttonTypeGo" />
<table cellspacing="0" class="adminTable topGap">
<table cellspacing="0" class="rowTable topGap">
<thead>
<tr>
<th scope="row"><div>{$lang->module_category}</div></th>
@ -50,9 +50,3 @@
</form>
</div>
<div id="popFooter" class="w700">
<div class="tCenter gap1">
<a href="#" onclick="window.close(); return false;" class="button"><span>{$lang->cmd_close}</span></a>
</div>
</div>