git-svn-id: http://xe-core.googlecode.com/svn/trunk@723 201d5d3c-b55e-5fd7-737f-ddc643e51545

This commit is contained in:
zero 2007-03-27 10:22:36 +00:00
parent 328e37d822
commit c21c7c32e1
8 changed files with 38 additions and 47 deletions

View file

@ -33,11 +33,14 @@
$content = $oContext->transContent($content);
Context::set('content', $content);
// content 래핑 (common/tpl/default.html)
// 레이아웃을 컴파일
require_once("./classes/template/TemplateHandler.class.php");
$oTemplate = new TemplateHandler();
$output = $oTemplate->compile($oModule->getLayoutPath(), $oModule->getLayoutFile());
$zbxe_final_content = $oTemplate->compile($oModule->getLayoutPath(), $oModule->getLayoutFile());
// 최종 결과를 common_layout에 넣어버림
Context::set('zbxe_final_content', $zbxe_final_content);
$output = $oTemplate->compile('./common/tpl', 'common_layout');
} else {
$output = $content;

View file

@ -1,8 +0,0 @@
{Context::getHtmlFooter()}
<div id="waitingforserverresponse">{$lang->msg_call_server}</div>
<div id="fororiginalimagearea">
<img src="./images/original_image_box_close.gif" alt="close original image" border="0" onclick="closeOriginalImage()" id="closeOriginalImageBtn"/>
<img src="./images/blank.gif" alt="original image" border="0" id="fororiginalimage" />
</div>
</body>
</html>

View file

@ -1,23 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="{Context::getLangType()}" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{Context::getBrowserTitle()}</title>
<script type="text/javascript" src="./common/js/x.js"></script>
<script type="text/javascript" src="./common/js/common.js"></script>
<script type="text/javascript" src="./common/js/xml_handler.js"></script>
<script type="text/javascript" src="./common/js/xml_js_filter.js"></script>
<script type="text/javascript" src="./common/js/tree_menu.js"></script>
<!--@foreach(Context::getJsFile() as $key => $js_file)-->
<script type="text/javascript" src="{$js_file}"></script>
<!--@end-->
<link rel="stylesheet" HREF="./common/css/default.css" type="text/css" />
<!--@foreach(Context::getCssFile() as $key => $css_file)-->
<link rel="stylesheet" HREF="{$css_file}" type="text/css" />
<!--@end-->
<script type="text/javascript">
var zbxe_url = "{$zbxe_url}";
</script>
{Context::getHtmlHeader()}
</head>
<body>

View file

@ -0,0 +1,32 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="{Context::getLangType()}" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{Context::getBrowserTitle()}</title>
<script type="text/javascript" src="./common/js/x.js"></script>
<script type="text/javascript" src="./common/js/common.js"></script>
<script type="text/javascript" src="./common/js/xml_handler.js"></script>
<script type="text/javascript" src="./common/js/xml_js_filter.js"></script>
<script type="text/javascript" src="./common/js/tree_menu.js"></script>
<!--@foreach(Context::getJsFile() as $key => $js_file)-->
<script type="text/javascript" src="{$js_file}"></script>
<!--@end-->
<link rel="stylesheet" HREF="./common/css/default.css" type="text/css" />
<!--@foreach(Context::getCssFile() as $key => $css_file)-->
<link rel="stylesheet" HREF="{$css_file}" type="text/css" />
<!--@end-->
<script type="text/javascript">
var zbxe_url = "{$zbxe_url}";
</script>
{Context::getHtmlHeader()}
</head>
<body>
{$zbxe_final_content}
{Context::getHtmlFooter()}
<div id="waitingforserverresponse">{$lang->msg_call_server}</div>
<div id="fororiginalimagearea">
<img src="./images/original_image_box_close.gif" alt="close original image" border="0" onclick="closeOriginalImage()" id="closeOriginalImageBtn"/>
<img src="./images/blank.gif" alt="original image" border="0" id="fororiginalimage" />
</div>
</body>
</html>

View file

@ -1,3 +1 @@
<!--#include("./common/tpl/common_header.html")-->
{$content}
<!--#include("./common/tpl/common_footer.html")-->

View file

@ -1,9 +1,6 @@
<!--%import("css/popup.css")-->
<!--#include("./common/tpl/common_header.html")-->
<div id="popup_content" style="float:right;">{$content}</div>
<script type="text/javascript">
xAddEventListener(window, 'load', setFixedPopupSize);
</script>
<!--#include("./common/tpl/common_footer.html")-->

View file

@ -1,4 +1,3 @@
<!--#include("./common/tpl/common_header.html")-->
<script type="text/javascript">
loadTreeMenu("{$main_menu->xml_file}", "main_menu", "menu", "{$layout_info->main_menu_name}");
</script>
@ -103,6 +102,3 @@
</tr>
</table>
</div>
<!--#include("./common/tpl/common_footer.html")-->

View file

@ -1,8 +1,6 @@
<!--%import("css/admin.css")-->
<!--%import("js/admin.js")-->
<!--#include("./common/tpl/common_header.html")-->
<div id="admin_title">
<a href="./?module=admin">zeroboard XE</a>
</div>
@ -32,5 +30,3 @@
<div id="admin_content">
{$content}
</div>
<!--#include("./common/tpl/common_footer.html")-->