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

This commit is contained in:
zero 2007-03-30 03:30:56 +00:00
parent 810f30cf6b
commit 8662753b24
2 changed files with 85 additions and 105 deletions

View file

@ -1,58 +1,45 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<layout version="0.1"> <layout version="0.1">
<title xml:lang="ko">견본 레이아웃</title> <title xml:lang="ko">견본 레이아웃</title>
<title xml:lang="en">sample layout</title>
<author email_address="zero@zeroboard.com" link="http://www.zeroboard.com" date="2007. 2. 28"> <author email_address="zero@zeroboard.com" link="http://www.zeroboard.com" date="2007. 2. 28">
<name xml:lang="ko">제로</name> <name xml:lang="ko">제로</name>
<name xml:lang="en">zero</name>
<description xml:lang="ko"> <description xml:lang="ko">
견본 레이아웃입니다. 견본 레이아웃입니다.
가장 기본적인 기능으로 이루어져 있습니다. 가장 기본적인 기능으로 이루어져 있습니다.
</description> </description>
<description xml:lang="en">sample layout</description>
</author> </author>
<extra_vars> <extra_vars>
<var id="top_title"> <var id="top_title">
<name xml:lang="ko">상단 제목</name> <name xml:lang="ko">상단 제목</name>
<name xml:lang="en">top title</name>
<type>text</type> <type>text</type>
<description xml:lang="ko">설명</description> <description xml:lang="ko">레이아웃의 상단에 표시할 제목을 입력하세요.</description>
<description xml:lang="en">description</description>
</var> </var>
<var id="main_menu_name"> <var id="main_menu_name">
<name xml:lang="ko">메인 메뉴 명</name> <name xml:lang="ko">메인 메뉴 명</name>
<name xml:lang="en">main_menu_name</name>
<type>text</type> <type>text</type>
<description xml:lang="ko">설명</description> <description xml:lang="ko">트리메뉴의 가장 상위에 표시될 이름을 입력하세요.</description>
<description xml:lang="en">description</description>
</var> </var>
<var id="colorset"> <var id="colorset">
<name xml:lang="ko">컬러셋</name> <name xml:lang="ko">컬러셋</name>
<name xml:lang="en">colorset</name>
<type>select</type> <type>select</type>
<description xml:lang="ko">설명</description> <description xml:lang="ko">원하시는 컬러셋을 선택해주세요.</description>
<description xml:lang="en">description</description>
<options> <options>
<name xml:lang="ko">적색</name> <name xml:lang="ko">적색</name>
<name xml:lang="en">red</name>
<value>red</value> <value>red</value>
</options> </options>
<options> <options>
<name xml:lang="ko">청색</name> <name xml:lang="ko">청색</name>
<name xml:lang="en">blue</name>
<value>blue</value> <value>blue</value>
</options> </options>
</var> </var>
</extra_vars> </extra_vars>
<menus> <menus>
<menu id="main_menu"> <menu id="main_menu">
<name xml:lang="ko">주메뉴</name> <name xml:lang="ko">주 메뉴</name>
<name xml:lang="en">main menu</name>
<maxdepth>2</maxdepth> <maxdepth>2</maxdepth>
</menu> </menu>
<menu id="bottom_menu"> <menu id="bottom_menu">
<name xml:lang="ko">하단 메뉴 </name> <name xml:lang="ko">하단 메뉴 </name>
<name xml:lang="en">bottom menu</name>
<maxdepth>1</maxdepth> <maxdepth>1</maxdepth>
</menu> </menu>
</menus> </menus>

View file

@ -1,104 +1,97 @@
<script type="text/javascript"> <script type="text/javascript">
loadTreeMenu("{$main_menu->xml_file}", "main_menu", "menu", "{$layout_info->main_menu_name}"); loadTreeMenu("{$main_menu->xml_file}", "main_menu", "menu", "{$layout_info->main_menu_name}");
</script> </script>
<div style="height:50px;border:1px solid;margin-bottom:10px;"> <div style="height:50px;border:1px solid;margin-bottom:10px;">
{$layout_info->top_title} {$layout_info->top_title}
<div style="float:right"> <div style="float:right">
<div> <div>
<!-- 1차 메뉴 --> <!-- 1차 메뉴 -->
<!--@foreach($main_menu->list as $key => $val)--><!--@if($val['text'])--> <!--@foreach($main_menu->list as $key => $val)--><!--@if($val['text'])-->
<!--@if($val['selected'])-->
{@ $selected_style = 'style="font-weight:bold;"'}
{@ $second_menu_list = $val['list']; }
<!--@else-->
{@ $selected_style = ''; }
<!--@end-->
<!--@if($val['selected'])--> <span {$selected_style}>
{@ $selected_style = 'style="font-weight:bold;"'} <a href="#" onclick="return move_url('{$val['href']}','{$val['open_window']}');">{$val['text']}</a>
{@ $second_menu_list = $val['list']; } </span>
<!--@else-->
{@ $selected_style = ''; } <!--@end--><!--@end-->
<!--@end--> </div>
<span {$selected_style}>
<a href="#" onclick="return move_url('{$val['href']}','{$val['open_window']}');">{$val['text']}</a> <div>
</span> <!-- 2차 메뉴 -->
<!--@foreach($second_menu_list as $key => $val)--><!--@if($val['text'])-->
<!--@if($val['selected'])-->
{@ $selected_style = 'style="font-weight:bold;"'}
{@ $third_menu_list = $val['list']; }
<!--@else-->
{@ $selected_style = ''; }
<!--@end-->
<span {$selected_style}>
<a href="#" onclick="return move_url('{$val['href']}','{$val['open_window']}');">{$val['text']}</a>
</span>
<!--@end--><!--@end-->
</div>
<!--@end--><!--@end-->
</div> </div>
<div>
<!-- 2차 메뉴 -->
<!--@foreach($second_menu_list as $key => $val)--><!--@if($val['text'])-->
<!--@if($val['selected'])-->
{@ $selected_style = 'style="font-weight:bold;"'}
{@ $third_menu_list = $val['list']; }
<!--@else-->
{@ $selected_style = ''; }
<!--@end-->
<span {$selected_style}>
<a href="#" onclick="return move_url('{$val['href']}','{$val['open_window']}');">{$val['text']}</a>
</span>
<!--@end--><!--@end-->
</div>
</div>
</div> </div>
<div> <div>
<table border="0" width="100%" style="table-layout:fixed"> <table border="0" width="100%" style="table-layout:fixed">
<col width="220" /> <col width="220" />
<col width="*" /> <col width="*" />
<tr valign="top"> <tr valign="top">
<td> <td>
<div> <div>
<img src="./common/tpl/images/blank.gif" class="zbxe_plugin_output" plugin="login_info" skin="default" colorset="normal" style="width:100px;height:100px;"/> <img src="./common/tpl/images/blank.gif" class="zbxe_plugin_output" plugin="login_info" skin="default" colorset="normal" style="width:100px;height:100px;"/>
</div> </div>
<div id="menu"></div> <div id="menu"></div>
<!--@if($third_menu_list)-->
<!--@if($third_menu_list)--> <div>
<div> <!-- 3차 메뉴 -->
<!-- 3차 메뉴 --> <!--@foreach($third_menu_list as $key => $val)--><!--@if($val['text'])-->
<!--@foreach($third_menu_list as $key => $val)--><!--@if($val['text'])--> <!--@if($val['selected'])-->
{@ $selected_style = 'style="font-weight:bold;"'}
<!--@if($val['selected'])--> <!--@else-->
{@ $selected_style = 'style="font-weight:bold;"'} {@ $selected_style = ''; }
<!--@else--> <!--@end-->
{@ $selected_style = ''; } <div {$selected_style}>
<!--@end--> <a href="#" onclick="return move_url('{$val['href']}','{$val['open_window']}');">{$val['text']}</a>
<div {$selected_style}> </div>
<a href="#" onclick="return move_url('{$val['href']}','{$val['open_window']}');">{$val['text']}</a> <!--@end--><!--@end-->
</div> </div>
<!--@end-->
<!--@end--><!--@end--> <td>
</div> <div id="content">{$content}</div>
<!--@end--> </td>
</tr>
<td> <tr>
<div id="content"> <td colspan="2" align="center">
{$content} <div style="margin-top:20px;">
</div> <!--@foreach($bottom_menu->list as $key => $val)-->
</td> <!--@if($val['selected'])-->
</tr> {@ $selected_style = 'style="font-weight:bold;"'}
<tr> <!--@else-->
<td colspan="2" align="center"> {@ $selected_style = ''; }
<div style="margin-top:20px;"> <!--@end-->
<!--@foreach($bottom_menu->list as $key => $val)--> <span {$selected_style}>
<a href="#" onclick="return move_url('{$val['href']}','{$val['open_window']}');">{$val['text']}</a>
<!--@if($val['selected'])--> </span>
{@ $selected_style = 'style="font-weight:bold;"'} <!--@end-->
<!--@else--> </div>
{@ $selected_style = ''; } </td>
<!--@end--> </tr>
<span {$selected_style}> </table>
<a href="#" onclick="return move_url('{$val['href']}','{$val['open_window']}');">{$val['text']}</a>
</span>
<!--@end-->
</div>
</td>
</tr>
</table>
</div> </div>