mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-25 06:09:55 +09:00
1. jQuery뿐 아니라 여러 javascript 의 플러그인 사용을 위해 template handler에 <!--%load_js_plugin("이름")--> 기능 추가 ( ./common/js/plugins/이름/plugin.load 파일에 기재된 js/css, 또는 lang을 import 함)
2. 1번에 의해 ui.datepicker, ui.tree를 플러그인으로 빼서 적용 3. jquery의 버전별 이름이 생길 문제를 대비하여 jquery.js로 파일 이름 변경 4. js/css파일들은 크기보다 그 개수가 적어야 함으로 jquery-1.2.6.fix.js를 common.js 파일로 통합 git-svn-id: http://xe-core.googlecode.com/svn/sandbox@5083 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
d2d9b2c3a2
commit
5d549bffd7
57 changed files with 149 additions and 366 deletions
|
|
@ -56,9 +56,8 @@
|
|||
|
||||
<!--// 날짜 입력 -->
|
||||
<!--@elseif($val->type == 'date')-->
|
||||
<!--// calendar -->
|
||||
<!--%import("../../../../common/js/ui.datepicker.js",optimized=false)-->
|
||||
<!--%import("../../../../common/css/ui.datepicker.css",optimized=false)-->
|
||||
<!--// datepicker javascript plugin load -->
|
||||
<!--%load_js_plugin("ui.datepicker")-->
|
||||
|
||||
<input type="hidden" name="{$val->column_name}" id="date_{$val->column_name}" value="{$val->value}" />
|
||||
<input type="text" class="inputDate" value="{zdate($val->value,'Y-m-d')}" readonly="readonly" />
|
||||
|
|
|
|||
|
|
@ -43,9 +43,9 @@
|
|||
</select>
|
||||
|
||||
<!--@elseif($val->type == 'date')-->
|
||||
<!--// calendar -->
|
||||
<!--%import("../../../../common/js/ui.datepicker.js",optimized=false)-->
|
||||
<!--%import("../../../../common/css/ui.datepicker.css",optimized=false)-->
|
||||
<!--// datepicker javascript plugin load -->
|
||||
<!--%load_js_plugin("ui.datepicker")-->
|
||||
|
||||
<input type="hidden" name="{$val->column_name}" id="date_{$val->column_name}" value="{$val->value}" />
|
||||
<input type="text" class="inputDate" value="{zdate($val->value,'Y-m-d')}" readonly="readonly" />
|
||||
|
||||
|
|
|
|||
|
|
@ -55,9 +55,9 @@
|
|||
|
||||
<!--// 날짜 입력 -->
|
||||
<!--@elseif($val->type == 'date')-->
|
||||
<!--// calendar -->
|
||||
<!--%import("../../../../common/js/ui.datepicker.js",optimized=false)-->
|
||||
<!--%import("../../../../common/css/ui.datepicker.css",optimized=false)-->
|
||||
<!--// datepicker javascript plugin load -->
|
||||
<!--%load_js_plugin("ui.datepicker")-->
|
||||
|
||||
<input type="hidden" name="{$val->column_name}" id="date_{$val->column_name}" value="{$val->value}" />
|
||||
<input type="text" class="inputDate" value="{zdate($val->value,'Y-m-d')}" readonly="readonly" />
|
||||
|
||||
|
|
|
|||
|
|
@ -3,9 +3,8 @@
|
|||
<!--%import("filter/delete_category.xml")-->
|
||||
<!--%import("filter/move_category.xml")-->
|
||||
|
||||
|
||||
<!--%import("../../../common/js/jquery.simple.tree.js",optimized=false)-->
|
||||
<!--%import("../../../common/css/jquery.simple.tree.css",optimized=false)-->
|
||||
<!--// tree javascript plugin load -->
|
||||
<!--%load_js_plugin("ui.tree")-->
|
||||
|
||||
<!--%import("js/board_admin.js")-->
|
||||
<script type="text/javascript">
|
||||
|
|
|
|||
|
|
@ -8,7 +8,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/tpl/images/tree/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" /></a>').bind("click",function(e){addNode(0,e);}).appendTo("ul.simpleTree > li");
|
||||
|
||||
//ajax get data and transeform ul il
|
||||
jQuery.get(url,function(data){
|
||||
|
|
@ -31,19 +31,19 @@ function Tree(url){
|
|||
|
||||
|
||||
// button
|
||||
jQuery('<a href="#" class="add"><img src="./common/tpl/images/tree/iconAdd.gif" /></a>').bind("click",function(e){
|
||||
jQuery('<a href="#" class="add"><img src="./common/js/plugins/ui.tree/images/iconAdd.gif" /></a>').bind("click",function(e){
|
||||
jQuery("#tree_"+node_srl+" > span").click();
|
||||
addNode(node_srl,e);
|
||||
return false;
|
||||
}).appendTo(node);
|
||||
|
||||
jQuery('<a href="#" class="modify"><img src="./common/tpl/images/tree/iconModify.gif" /></a>').bind("click",function(e){
|
||||
jQuery('<a href="#" class="modify"><img src="./common/js/plugins/ui.tree/images/iconModify.gif" /></a>').bind("click",function(e){
|
||||
jQuery("#tree_"+node_srl+" > span").click();
|
||||
modifyNode(node_srl,e);
|
||||
return false;
|
||||
}).appendTo(node);
|
||||
|
||||
jQuery('<a href="#" class="delete"><img src="./common/tpl/images/tree/iconDel.gif" /></a>').bind("click",function(e){
|
||||
jQuery('<a href="#" class="delete"><img src="./common/js/plugins/ui.tree/images/iconDel.gif" /></a>').bind("click",function(e){
|
||||
deleteNode(node_srl);
|
||||
return false;
|
||||
}).appendTo(node);
|
||||
|
|
|
|||
|
|
@ -1,9 +1,8 @@
|
|||
<!--%import("js/counter_admin.js")-->
|
||||
<!--%import("css/counter.css")-->
|
||||
|
||||
<!--// calendar -->
|
||||
<!--%import("../../../common/js/ui.datepicker.js",optimized=false)-->
|
||||
<!--%import("../../../common/css/ui.datepicker.css",optimized=false)-->
|
||||
<!--// datepicker javascript plugin load -->
|
||||
<!--%load_js_plugin("ui.datepicker")-->
|
||||
|
||||
<script type="text/javascript">
|
||||
function moveDate() {
|
||||
|
|
|
|||
|
|
@ -3,10 +3,8 @@
|
|||
<!--%import("filter/insert_poll.xml")-->
|
||||
<!--%import("../lang")-->
|
||||
|
||||
<!--// calendar -->
|
||||
<!--%import("../../../../../common/js/ui.datepicker.js",optimized=false)-->
|
||||
<!--%import("../../../../../common/css/ui.datepicker.css",optimized=false)-->
|
||||
|
||||
<!--// datepicker javascript plugin load -->
|
||||
<!--%load_js_plugin("ui.datepicker")-->
|
||||
|
||||
<script type="text/javascript">
|
||||
var msg_poll_cannot_modify = "{$lang->msg_poll_cannot_modify}";
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
function homepageLoadMenuInfo(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/tpl/images/tree/iconAdd.gif" /></a>').bind("click",function(e){homepageAddMenu(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" /></a>').bind("click",function(e){homepageAddMenu(0,e);}).appendTo("ul.simpleTree > li");
|
||||
|
||||
//ajax get data and transeform ul il
|
||||
jQuery.get(url,function(data){
|
||||
|
|
@ -16,13 +16,13 @@ function homepageLoadMenuInfo(url){
|
|||
var node = jQuery('<li id="tree_'+node_srl+'"><span>'+text+'</span></li>');
|
||||
|
||||
// button
|
||||
jQuery('<a href="#" class="add"><img src="./common/tpl/images/tree/iconAdd.gif" /></a>').bind("click",function(e){
|
||||
jQuery('<a href="#" class="add"><img src="./common/js/plugins/ui.tree/images/iconAdd.gif" /></a>').bind("click",function(e){
|
||||
jQuery("#tree_"+node_srl+" > span").click();
|
||||
homepageAddMenu(node_srl,e);
|
||||
return false;
|
||||
}).appendTo(node);
|
||||
|
||||
jQuery('<a href="#" class="modify"><img src="./common/tpl/images/tree/iconModify.gif" /></a>').bind("click",function(e){
|
||||
jQuery('<a href="#" class="modify"><img src="./common/js/plugins/ui.tree/images/iconModify.gif" /></a>').bind("click",function(e){
|
||||
jQuery.exec_json("homepage.getHomepageMenuItem",{ "node_srl":node_srl},function(data){
|
||||
jQuery("#tree_"+node_srl+" > span").click();
|
||||
data.menu_info['mode'] = 'update';
|
||||
|
|
@ -34,7 +34,7 @@ function homepageLoadMenuInfo(url){
|
|||
|
||||
}).appendTo(node);
|
||||
|
||||
jQuery('<a href="#" class="delete"><img src="./common/tpl/images/tree/iconDel.gif" /></a>').bind("click",function(e){
|
||||
jQuery('<a href="#" class="delete"><img src="./common/js/plugins/ui.tree/images/iconDel.gif" /></a>').bind("click",function(e){
|
||||
homepageDeleteMenu(node_srl);
|
||||
return false;
|
||||
}).appendTo(node);
|
||||
|
|
@ -254,4 +254,4 @@ function doReloadTreeMenu(){
|
|||
|
||||
function closeTreeMenuInfo(){
|
||||
jQuery('#menuItem').css("visibility",'hidden');
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
<!--%import("./filter/insert_menu_item.xml")-->
|
||||
<!--%import("./filter/delete_menu_item.xml")-->
|
||||
|
||||
<!--%import("../../../../common/js/jquery.simple.tree.js",optimized=false)-->
|
||||
<!--%import("../../../../common/css/jquery.simple.tree.css",optimized=false)-->
|
||||
<!--// tree javascript plugin load -->
|
||||
<!--%load_js_plugin("ui.tree")-->
|
||||
|
||||
<h3 class="title">{$lang->cmd_homepage_menus[$act]}</h3>
|
||||
<p class="infoText">{$lang->about_homepage_act[$act]}</p>
|
||||
|
|
|
|||
|
|
@ -57,9 +57,8 @@
|
|||
<!--// 날짜 입력 -->
|
||||
<!--@elseif($val->type == 'date')-->
|
||||
|
||||
<!--// calendar -->
|
||||
<!--%import("../../../../common/js/ui.datepicker.js",optimized=false)-->
|
||||
<!--%import("../../../../common/css/ui.datepicker.css",optimized=false)-->
|
||||
<!--// datepicker javascript plugin load -->
|
||||
<!--%load_js_plugin("ui.datepicker")-->
|
||||
|
||||
<input type="hidden" name="{$val->column_name}" id="date_{$val->column_name}" value="{$val->value}" />
|
||||
<input type="text" class="inputDate" value="{zdate($val->value,'Y-m-d')}" readonly="readonly" />
|
||||
|
|
|
|||
|
|
@ -2,9 +2,8 @@
|
|||
<!--%import("css/issuetracker.css")-->
|
||||
<!--%import("filter/insert_milestone.xml")-->
|
||||
|
||||
<!--// calendar -->
|
||||
<!--%import("../../../common/js/ui.datepicker.js",optimized=false)-->
|
||||
<!--%import("../../../common/css/ui.datepicker.css",optimized=false)-->
|
||||
<!--// datepicker javascript plugin load -->
|
||||
<!--%load_js_plugin("ui.datepicker")-->
|
||||
|
||||
<!--@if($milestone)-->
|
||||
<form action="{Context::getRequestUri()}" method="post" onsubmit="return procFilter(this, insert_milestone)">
|
||||
|
|
|
|||
|
|
@ -9,9 +9,8 @@
|
|||
<!--%import("filter/insert_component.xml")-->
|
||||
<!--%import("filter/delete_component.xml")-->
|
||||
|
||||
<!--// calendar -->
|
||||
<!--%import("../../../common/js/ui.datepicker.js",optimized=false)-->
|
||||
<!--%import("../../../common/css/ui.datepicker.css",optimized=false)-->
|
||||
<!--// datepicker javascript plugin load -->
|
||||
<!--%load_js_plugin("ui.datepicker")-->
|
||||
|
||||
<form action="{Context::getRequestUri()}" method="post" onsubmit="return procFilter(this, insert_milestone)">
|
||||
<input type="hidden" name="module_srl" value="{$module_srl}" />
|
||||
|
|
|
|||
|
|
@ -16,9 +16,8 @@
|
|||
<!--%import("filter/delete_image_mark.xml")-->
|
||||
<!--@end-->
|
||||
|
||||
<!--// calendar -->
|
||||
<!--%import("../../../../common/js/ui.datepicker.js",optimized=false)-->
|
||||
<!--%import("../../../../common/css/ui.datepicker.css",optimized=false)-->
|
||||
<!--// datepicker javascript plugin load -->
|
||||
<!--%load_js_plugin("ui.datepicker")-->
|
||||
|
||||
|
||||
<form id="fo_insert_member" action="{getUrl()}" method="post" onsubmit="return procFilter(this, modify_info)" <!--@if($member_config->profile_image == 'Y' || $member_config->image_name=='Y' || $member_config->image_mark=='Y')-->enctype="multipart/form-data"<!--@end-->>
|
||||
|
|
|
|||
|
|
@ -2,9 +2,8 @@
|
|||
<!--%import("../../tpl/js/krzip_search.js")-->
|
||||
<!--%import("filter/signup.xml")-->
|
||||
|
||||
<!--// calendar -->
|
||||
<!--%import("../../../../common/js/ui.datepicker.js",optimized=false)-->
|
||||
<!--%import("../../../../common/css/ui.datepicker.css",optimized=false)-->
|
||||
<!--// datepicker javascript plugin load -->
|
||||
<!--%load_js_plugin("ui.datepicker")-->
|
||||
|
||||
<!--#include("./common_header.html")-->
|
||||
|
||||
|
|
|
|||
|
|
@ -2,9 +2,8 @@
|
|||
<!--%import("filter/insert.xml")-->
|
||||
<!--%import("css/member_admin.css")-->
|
||||
|
||||
<!--// calendar -->
|
||||
<!--%import("../../../common/js/ui.datepicker.js",optimized=false)-->
|
||||
<!--%import("../../../common/css/ui.datepicker.css",optimized=false)-->
|
||||
<!--// datepicker javascript plugin load -->
|
||||
<!--%load_js_plugin("ui.datepicker")-->
|
||||
|
||||
<form id="fo_insert_member" action="./" method="get" onsubmit="return procFilter(this, insert)">
|
||||
<input type="hidden" name="page" value="{$page}" />
|
||||
|
|
@ -257,4 +256,4 @@
|
|||
$(".inputDate").datepicker(option);
|
||||
});
|
||||
})(jQuery);
|
||||
</script>
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -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/tpl/images/tree/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" /></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/tpl/images/tree/iconAdd.gif" /></a>').bind("click",function(e){
|
||||
jQuery('<a href="#" class="add"><img src="./common/js/plugins/ui.tree/images/iconAdd.gif" /></a>').bind("click",function(e){
|
||||
addNode(node_srl,e);
|
||||
return false;
|
||||
}).appendTo(node);
|
||||
|
||||
jQuery('<a href="#" class="modify"><img src="./common/tpl/images/tree/iconModify.gif" /></a>').bind("click",function(e){
|
||||
jQuery('<a href="#" class="modify"><img src="./common/js/plugins/ui.tree/images/iconModify.gif" /></a>').bind("click",function(e){
|
||||
modifyNode(node_srl,e);
|
||||
return false;
|
||||
}).appendTo(node);
|
||||
|
||||
jQuery('<a href="#" class="delete"><img src="./common/tpl/images/tree/iconDel.gif" /></a>').bind("click",function(e){
|
||||
jQuery('<a href="#" class="delete"><img src="./common/js/plugins/ui.tree/images/iconDel.gif" /></a>').bind("click",function(e){
|
||||
deleteNode(node_srl);
|
||||
return false;
|
||||
}).appendTo(node);
|
||||
|
|
@ -96,7 +96,7 @@ function Tree(url){
|
|||
|
||||
|
||||
// image url replace
|
||||
// jQuery("#menu ul.simpleTree img").attr("src",function(){ return jQuery(this).attr("src").replace("images/","./common/tpl/images/tree/");});
|
||||
// jQuery("#menu ul.simpleTree img").attr("src",function(){ return jQuery(this).attr("src").replace("images/","./common/js/plugins/ui.tree/images/");});
|
||||
|
||||
|
||||
|
||||
|
|
@ -162,4 +162,4 @@ function deleteNode(node_srl){
|
|||
function completeInsertMenuItem(ret_obj) {
|
||||
jQuery('#menu_zone_info').html('');
|
||||
Tree(xml_url);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,11 +3,12 @@
|
|||
<!--%import("filter/delete_menu_item.xml")-->
|
||||
<!--%import("filter/move_menu_item.xml")-->
|
||||
|
||||
<!--%import("../../../common/js/jquery.simple.tree.js",optimized=false)-->
|
||||
<!--%import("../../../common/css/jquery.simple.tree.css",optimized=false)-->
|
||||
<!--%import("js/menu_tree.js")-->
|
||||
<!--%import("js/menu_admin.js")-->
|
||||
|
||||
<!--// tree javascript plugin load -->
|
||||
<!--%load_js_plugin("ui.tree")-->
|
||||
|
||||
<script type="text/javascript">
|
||||
var alertImageOnly = "{$lang->alert_image_only}";
|
||||
</script>
|
||||
|
|
@ -84,4 +85,4 @@ var max_menu_depth = 999;
|
|||
var xml_url = "{$menu_info->xml_file}";
|
||||
var lang_confirm_delete = "{$lang->confirm_delete}";
|
||||
Tree(xml_url);
|
||||
</script>
|
||||
</script>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue