mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-14 00:39:57 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@1319 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
e1ecee7484
commit
ab336f2392
3 changed files with 33 additions and 12 deletions
|
|
@ -14,6 +14,24 @@ function doDeleteLayout(layout_srl) {
|
|||
procFilter(fo_obj, delete_layout);
|
||||
}
|
||||
|
||||
/* 수정된 레이아웃을 원본으로 돌림 */
|
||||
function doResetLayoutCode(layout_srl) {
|
||||
var fo_obj = xGetElementById('fo_layout');
|
||||
procFilter(fo_obj, reset_layout_code);
|
||||
return false;
|
||||
}
|
||||
|
||||
/* 수정중인 레이아웃 미리보기 */
|
||||
function doPreviewLayoutCode() {
|
||||
var fo_obj = xGetElementById('fo_layout');
|
||||
fo_obj.target = "_LayoutPreview";
|
||||
fo_obj.act.value = "dispLayoutAdminPreview";
|
||||
fo_obj.submit();
|
||||
fo_obj.act.value = "";
|
||||
fo_obj.target = "";
|
||||
}
|
||||
|
||||
|
||||
/* 메뉴 관리로 이동 */
|
||||
function doMenuManagement(menu_id) {
|
||||
var fo_obj = xGetElementById("fo_layout");
|
||||
|
|
|
|||
|
|
@ -1,14 +1,16 @@
|
|||
<!--%import("filter/update_layout_code.xml")-->
|
||||
<!--%import("filter/reset_layout_code.xml")-->
|
||||
|
||||
<!--#include("header.html")-->
|
||||
|
||||
<div style="margin-bottom:10px;border:4px solid #DDDDDD;padding:5px;font-weight:bold;">
|
||||
{$layout_info->title} ver {$layout_info->version} ({$layout_info->layout})
|
||||
</div>
|
||||
|
||||
<div style="margin-bottom:10px;border:1px solid #DDDDDD;padding:5px;">
|
||||
{nl2br($lang->about_layout_code)}
|
||||
</div>
|
||||
<table border="1" width="100%">
|
||||
<tr>
|
||||
<th>{$layout_info->title} ver {$layout_info->version} ({$layout_info->layout})</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{nl2br($lang->about_layout_code)}</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<div style="margin-bottom:10px;border:1px solid #DDDDDD;padding:5px;">
|
||||
<div style="font-weight:bold">{$lang->plugin}</div>
|
||||
|
|
@ -20,18 +22,18 @@
|
|||
</div>
|
||||
|
||||
<div style="margin-bottom:10px;">
|
||||
<form id="fo_layout" action="./" method="get" onsubmit="return procFilter(this, update_layout_code)">
|
||||
<form id="fo_layout" action="./" method="post" onsubmit="return procFilter(this, update_layout_code);">
|
||||
<input type="hidden" name="layout_srl" value="{$layout_srl}" />
|
||||
<input type="hidden" name="module" value="layout" />
|
||||
<input type="hidden" name="act" value="" />
|
||||
|
||||
<div>
|
||||
<textarea name="code" style="width:99%;height:400px;border:2px solid #DDDDDD;">{htmlspecialchars($layout_code)}</textarea>
|
||||
</div>
|
||||
<div>
|
||||
<input type="submit" value="{$lang->cmd_save}" />
|
||||
<input type="button" value="{$lang->cmd_preview}" onclick="doPreviewLayoutCode('{$layout_srl}');return false" />
|
||||
<input type="button" value="{$lang->cmd_load_source}" onclick="doResetLayoutCode('{$layout_srl}');return false" />
|
||||
<input type="button" value="{$lang->cmd_preview}" onclick="doPreviewLayoutCode();return false" />
|
||||
<input type="button" value="{$lang->cmd_reset}" onclick="doResetLayoutCode('{$layout_srl}');return false" />
|
||||
</div>
|
||||
|
||||
|
||||
</form>
|
||||
</div>
|
||||
|
|
|
|||
1
modules/layout/tpl/layout_preview.html
Normal file
1
modules/layout/tpl/layout_preview.html
Normal file
|
|
@ -0,0 +1 @@
|
|||
{$layout_tpl}
|
||||
Loading…
Add table
Add a link
Reference in a new issue