diff --git a/modules/layout/lang/ko.lang.php b/modules/layout/lang/ko.lang.php index d8df0669b..7b94266ee 100644 --- a/modules/layout/lang/ko.lang.php +++ b/modules/layout/lang/ko.lang.php @@ -7,4 +7,5 @@ $lang->layout_name = '레이아웃 이름'; $lang->menu_count = '메뉴의 수'; + $lang->depth = '단계'; ?> diff --git a/modules/layout/layout.view.php b/modules/layout/layout.view.php index faba68dab..6a0c5ba4f 100644 --- a/modules/layout/layout.view.php +++ b/modules/layout/layout.view.php @@ -40,7 +40,13 @@ /** * @brief 레이아웃 등록 페이지 step 2 **/ - function dispInsertLayout() { + function dispInsertLayout2() { + // 선택된 레이아웃의 정볼르 구해서 세팅 + $layout = Context::get('layout'); + $oLayoutModel = &getModel('layout'); + $info = $oLayoutModel->getLayoutInfoXml($layout); + Context::set('info', $info); + $this->setTemplateFile('insert_layout2'); } diff --git a/modules/layout/tpl.admin/insert_layout.html b/modules/layout/tpl.admin/insert_layout.html index 60ff0e515..e361dabe4 100644 --- a/modules/layout/tpl.admin/insert_layout.html +++ b/modules/layout/tpl.admin/insert_layout.html @@ -1,4 +1,4 @@ -
+ diff --git a/modules/layout/tpl.admin/insert_layout2.html b/modules/layout/tpl.admin/insert_layout2.html new file mode 100644 index 000000000..f3bc75ed8 --- /dev/null +++ b/modules/layout/tpl.admin/insert_layout2.html @@ -0,0 +1,54 @@ + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + diff --git a/modules/layout/tpl.admin/js/admin.js b/modules/layout/tpl.admin/js/admin.js new file mode 100644 index 000000000..d48a78175 --- /dev/null +++ b/modules/layout/tpl.admin/js/admin.js @@ -0,0 +1,44 @@ +function doEditDefaultValue(obj, cmd, menu_id) { + var listup_obj = xGetElementById('default_value_listup_'+menu_id); + var item_obj = xGetElementById('default_value_item_'+menu_id); + var idx = listup_obj.selectedIndex; + var lng = listup_obj.options.length; + var val = item_obj.value; + switch(cmd) { + case 'insert' : + if(!val) return; + var opt = new Option(val, val, false, true); + listup_obj.options[listup_obj.length] = opt; + item_obj.value = ''; + item_obj.focus(); + break; + case 'up' : + if(lng < 2 || idx<1) return; + + var value1 = listup_obj.options[idx].value; + var value2 = listup_obj.options[idx-1].value; + listup_obj.options[idx] = new Option(value2,value2,false,false); + listup_obj.options[idx-1] = new Option(value1,value1,false,true); + break; + case 'down' : + if(lng < 2 || idx == lng-1) return; + + var value1 = listup_obj.options[idx].value; + var value2 = listup_obj.options[idx+1].value; + listup_obj.options[idx] = new Option(value2,value2,false,false); + listup_obj.options[idx+1] = new Option(value1,value1,false,true); + break; + case 'delete' : + listup_obj.remove(idx); + if(idx==0) listup_obj.selectedIndex = 0; + else listup_obj.selectedIndex = idx-1; + break; + } + + var value_list = new Array(); + for(var i=0;i
{$lang->layout_name}{$info->title} ver {$info->version} ({$layout})
{$lang->author}{$info->author->name}
{$lang->description}{nl2br($info->author->description)}
+ {$val->name}
+ ({$val->maxdepth} {$lang->depth}) +
+
+ +
+
+ + +
+
+ + + +
+
+ + +