git-svn-id: http://xe-core.googlecode.com/svn/sandbox@2344 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2007-08-12 04:37:53 +00:00
parent 98a27e524f
commit a9f0294425
3 changed files with 0 additions and 397 deletions

View file

@ -1,108 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<layout version="0.1">
<title xml:lang="ko">견본 레이아웃 (PHP 메뉴) </title>
<title xml:lang="zh-CN">样本布局 (PHP 菜单) </title>
<title xml:lang="en">Sample Layout (Menu in PHP)</title>
<title xml:lang="jp">レイアウトサンプル (PHP) </title>
<title xml:lang="es">Diseño predeterminado (menú PHP) </title>
<author email_address="zero@zeroboard.com" link="http://www.zeroboard.com" date="2007. 2. 28">
<name xml:lang="ko">제로</name>
<name xml:lang="zh-CN">zero</name>
<name xml:lang="en">zero</name>
<name xml:lang="jp">Zero</name>
<name xml:lang="es">zero</name>
<description xml:lang="ko">
가장 기본적인 기능으로 이루어진 견본 레이아웃입니다.
main_menu, bottom_menu 2개의 메뉴로 구성되어 있으며 각 메뉴의 출력은 php 코드로 하게 됩니다.
레이아웃을 만들때 js menu 보다는 복잡하지만 자유도가 높습니다.
</description>
<description xml:lang="zh-CN">
此布局是最基本的功能形成的样本布
此布局由 main_menu, bottom_menu 两个菜单构成,每个菜单的呼出方式是利用 PHP 显示。
制作布局时候复杂的同时自由度相对提高。
</description>
<description xml:lang="en">
This is a sample layout consists of the most basic features.
It has two menues each named 'main_menu' and 'bottom_menu', and they are displayed by using PHP codes.
PHP version is more complex to create layouts than with Javascript, but increases the degree of freedom though.
</description>
<description xml:lang="jp">
一番基本的な機能で作られているレイアウト見本です。main_menu, bottom_menu 2個のメニューで構成され、各メニューの出力は php コードになります。 レイアウトを作る時、js menu よりは複雑ですが自由度は高いです。
</description>
<description xml:lang="es">
Es el diseño predeterminado para funciónes basicos. Tiene 2 menús de main_menu, bottom_menu. La salida de cada menu usa las funciónes de PHP. Es dificil de manejar diseño, pero mucho de libertad.
</description>
</author>
<extra_vars>
<var name="colorset" type="select">
<title xml:lang="ko">컬러셋</title>
<title xml:lang="zh-CN">颜色</title>
<title xml:lang="en">Colorset</title>
<title xml:lang="jp">カラーセット</title>
<title xml:lang="es">collección de colores</title>
<description xml:lang="ko">원하시는 컬러셋을 선택해주세요.</description>
<description xml:lang="zh-CN">请选择颜色。</description>
<description xml:lang="en">Please select a colorset you want.</description>
<description xml:lang="jp">希望する色を選択してください。</description>
<description xml:lang="es">Seleccióne la collección de colores.</description>
<options name="red">
<title xml:lang="ko">적색</title>
<title xml:lang="zh-CN">红色</title>
<title xml:lang="en">Red</title>
<title xml:lang="jp">赤色</title>
<title xml:lang="es">Rojo</title>
<value>red</value>
</options>
<options name="blue">
<title xml:lang="ko">청색</title>
<title xml:lang="zh-CN">青色</title>
<title xml:lang="en">Blue</title>
<title xml:lang="jp">青色</title>
<title xml:lang="es">Azul</title>
<value>blue</value>
</options>
</var>
<var name="top_title" type="text">
<title xml:lang="ko">상단 제목</title>
<title xml:lang="zh-CN">顶部标题</title>
<title xml:lang="en">Title on the top</title>
<title xml:lang="jp">上端タイトル</title>
<title xml:lang="es">Título</title>
<description xml:lang="ko">레이아웃의 상단에 표시할 제목을 입력하세요.</description>
<description xml:lang="zh-CN">请输入布局顶部显示的标题。(网站名称)</description>
<description xml:lang="en">Please input a title which will be displayed on top of the layout.</description>
<description xml:lang="jp">レイアウトの上端に表示するタイトルを入力してください。</description>
<description xml:lang="es">Escribe el título para la pagína de web.</description>
</var>
<var name="index_url" type="text">
<title xml:lang="ko">홈 페이지 URL</title>
<title xml:lang="zh-CN">网站 URL</title>
<title xml:lang="en">Homepage URL</title>
<title xml:lang="jp">ホームページ URL</title>
<title xml:lang="es">URL de pagína de web</title>
<description xml:lang="ko">로고나 제목을 클릭시에 이동할 홈 페이지 URL을 입력해 주세요.</description>
<description xml:lang="zh-CN">点击网站LOGO或标题时要移动的页面URL。</description>
<description xml:lang="en">Please input a homepage URL, which will be connected when you click.</description>
<description xml:lang="jp">ロゴをクリックした時に移動するホームページのURLを入力してください。</description>
<description xml:lang="es">Escribe el URL para título.</description>
</var>
</extra_vars>
<menus>
<menu name="main_menu" default="true">
<title xml:lang="ko">주 메뉴</title>
<title xml:lang="zh-CN">主菜单</title>
<title xml:lang="en">Main menu</title>
<title xml:lang="jp">メインメニュー</title>
<title xml:lang="es">menú principal</title>
<maxdepth>2</maxdepth>
</menu>
<menu name="bottom_menu">
<title xml:lang="ko">하단 메뉴 </title>
<title xml:lang="zh-CN">底部菜单 </title>
<title xml:lang="en">Bottom menu</title>
<title xml:lang="jp">下端メニュー </title>
<title xml:lang="es">sub menú </title>
<maxdepth>1</maxdepth>
</menu>
</menus>
</layout>

View file

@ -1,188 +0,0 @@
@charset "utf-8";
body {
margin:0px;
padding:0px;
}
/**
* 레이아웃 style
**/
/**
* 상단 로고 메인 1차 메뉴
**/
.layout_top {
margin:10px 10px 0px 10px;
}
/* 상단 로고 부분 */
.layout_logo A {
font-weight:bold;
font-size:16pt;
color:#888888;
text-decoration:none;
}
/* 상단 1차 메뉴 */
.layout_first_menu {
border-bottom:2px solid #DDDDDD;
width:100%;
text-align:right;
padding:3px 0px 3px 0px;
}
/**
* 좌측 메뉴 메인 2차 메뉴, 로그인 위젯 기타
**/
.layout_left {
width:220px;
float:left;
margin-top:10px;
position:absolute;
left:10px;
}
/* 좌측 2차 메뉴 */
.layout_second_menu {
}
/* 좌측 관리자 메뉴 */
.layout_admin {
margin-top:10px;
border:3px solid #EEEEEE;
padding:5px;
text-align:center;
}
.layout_admin A {
color:#AAAAAA;
text-decoration:none;
}
/* 컨텐츠 */
.layout_content {
padding:10px 10px 0px 240px;
}
#content {
}
/**
* 하단 메뉴 영역
**/
.layout_bottom {
clear:both;
margin-top:20px;
}
/* 하단 메뉴 */
.layout_bottom_menu {
width:100%;
text-align:center;
}
/**
* 메뉴 style, main_menu:1~3차, bottom_menu로 구성
**/
/* 1차 메뉴 */
.first_menu {
background-color:#999999;
padding:3px 10px 3px 10px;
margin-left:5px;
}
.first_menu A {
font-weight:normal;
color:#FFFFFF;
text-decoration:none;
}
.first_menu_selected {
background-color:#000000;
padding:3px 10px 3px 10px;
margin-left:5px;
}
.first_menu_selected A {
color:#FFFFFF;
font-weight:bold;
text-decoration:none;
}
/* 2차 메뉴 */
.second_menu {
padding:5px 0px 5px 5px;
background-color:#AAAAAA;
display:block;
border-bottom:1px solid #999999;
}
.second_menu A {
color:#FFFFFF;
text-decoration:none;
font-weight:normal;
}
.second_menu_selected {
padding:5px 0px 5px 5px;
background-color:#666666;
display:block;
border-bottom:1px solid #444444;
}
.second_menu_selected A {
color:#FFFFFF;
font-weight:bold;
text-decoration:none;
}
/* 3차 메뉴 */
.third_menu {
padding:5px 0px 5px 20px;
border-bottom:1px solid #EEEEEE;
display:block;
}
.third_menu A {
color:#000000;
text-decoration:none;
}
.third_menu_selected {
padding:5px 0px 5px 20px;
border-bottom:1px solid #EEEEEE;
font-weight:bold;
display:block;
background-color:#EFEFEF;
}
.third_menu_selected A {
color:#000000;
font-weight:bold;
text-decoration:none;
}
/* 하단 메뉴 */
.bottom_menu {
margin-right:5px;
font-weight:normal;
}
.bottom_menu A {
color:#000000;
text-decoration:none;
}
.bottom_menu_selected {
margin-right:5px;
font-weight:bold;
}
.bottom_menu_selected A {
color:#000000;
font-weight:bold;
text-decoration:none;
}

View file

@ -1,101 +0,0 @@
<!-- 레이아웃과 연동될 css 파일 import -->
<!--%import("css/layout.css")-->
<!-- 상단 로고 및 main_menu 1차 출력 -->
<div class="layout_top">
<div class="layout_logo">
<a href="{$layout_info->index_url}"><!--@if(!$layout_info->top_title)-->top title<!--@else-->{$layout_info->top_title}<!--@end--></a>
</div>
<div class="layout_first_menu">
<!-- main_menu 1차 시작 -->
<!--@foreach($main_menu->list as $key => $val)--><!--@if($val['text'])-->
<!--@if($val['selected'])-->
{@ $class_name = 'first_menu_selected'}
{@ $second_menu_list = $val['list']}
<!--@else-->
{@ $class_name = 'first_menu'}
<!--@end-->
<span class="{$class_name}">
<a href="{$val['href']}" <!--@if($val['open_window']=='Y')-->onclick="window.open(this.href);return false;"<!--@end-->>{$val['text']}</a>
</span>
<!--@end--><!--@end-->
<!-- main_menu 1차 끝 -->
</div>
</div>
<!-- 왼쪽 2차 메뉴 및 로그인과 기타 위젯 부분 -->
<div class="layout_left">
<!-- 로그인 위젯 -->
<img src="./common/tpl/images/blank.gif" class="zbxe_widget_output" widget="login_info" skin="default" colorset="default" />
<!-- main_menu 2차 시작 -->
<div class="layout_second_menu">
<!--@foreach($second_menu_list as $key => $val)--><!--@if($val['text'])-->
<!--@if($val['selected'])-->
{@ $class_name = 'second_menu_selected'}
<!--@else-->
{@ $class_name = 'second_menu'}
<!--@end-->
<span class="{$class_name}">
<a href="{$val['href']}" <!--@if($val['open_window']=='Y')-->onclick="window.open(this.href);return false;"<!--@end-->>{$val['text']}</a>
</span>
<!--@if($val['selected'])-->
<!-- main_menu 3차 시작 -->
<!--@foreach($val['list'] as $k => $v)--><!--@if($v['text'])-->
<!--@if($v['selected'])-->
{@ $class_name = 'third_menu_selected'}
<!--@else-->
{@ $class_name = 'third_menu'}
<!--@end-->
<span class="{$class_name}">
<a href="{$v['href']}" <!--@if($v['open_window']=='Y')-->onclick="window.open(this.href);return false;"<!--@end-->>{$v['text']}</a>
</span>
<!--@end--><!--@end-->
<!--@end-->
<!--@end--><!--@end-->
<!-- main_menu 2차 끝 -->
</div>
<!--@if($grant->is_admin)-->
<!-- 관리자일 경우 레이아웃 관리 메뉴 -->
<div class="layout_admin">
<a href="{getUrl('act','dispLayoutAdminModify','layout_srl',$layout_info->layout_srl)}">{$lang->cmd_layout_management}</a> /
<a href="{getUrl('act','dispLayoutAdminEdit','layout_srl',$layout_info->layout_srl)}">{$lang->cmd_edit}</a>
</div>
<!--@end-->
</div>
<!-- 컨텐츠 출력 부분 -->
<div class="layout_content">
<div id="content">{$content}</div>
<!-- bottom_menu 메뉴 시작 -->
<div class="layout_bottom">
<!--@foreach($bottom_menu->list as $key => $val)-->
<!--@if($val['selected'])-->
{@ $class_name = 'bottom_menu_selected'}
<!--@else-->
{@ $class_name = 'bottom_menu'}
<!--@end-->
<span class="{$class_name}">
<a href="{$val['href']}" <!--@if($val['open_window']=='Y')-->onclick="window.open(this.href);return false;"<!--@end-->>{$val['text']}</a>
</span>
<!--@end-->
</div>
</div>