mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-30 00:29:58 +09:00
added lifepod module
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3288 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
6e2a5f765a
commit
3a6abc6b97
30 changed files with 1727 additions and 0 deletions
BIN
modules/lifepod/skins/xe_official/.temp.swp
Normal file
BIN
modules/lifepod/skins/xe_official/.temp.swp
Normal file
Binary file not shown.
97
modules/lifepod/skins/xe_official/css/common.css
Normal file
97
modules/lifepod/skins/xe_official/css/common.css
Normal file
|
|
@ -0,0 +1,97 @@
|
|||
@charset "utf-8";
|
||||
|
||||
/* board Title */
|
||||
.boardHeader { border:1px solid #e1e1dd; border-bottom:none; background:#ffffff url(../images/common/bgH3.gif) repeat-x left bottom; overflow:hidden; _width:100%;}
|
||||
.boardHeader h3 { float:left; font-size:1.2em; padding:1em 2em .7em 1.2em; background:#ffffff url(../images/common/lineH3.gif) no-repeat right bottom;}
|
||||
|
||||
/* board Information */
|
||||
.boardInformation { width:100%; clear:both; margin:1em 0 .5em 0; overflow:hidden; color:#666666;}
|
||||
.articleNum { float:left; padding:0 0 0 15px; }
|
||||
|
||||
.CalendarViewDay
|
||||
{
|
||||
font-size:0.9em;
|
||||
background-color:#FFFFFF;
|
||||
border-style:solid;
|
||||
border-width:1px;
|
||||
border-color:#8888cc;
|
||||
cursor: pointer;
|
||||
margin-right: 2px;
|
||||
}
|
||||
|
||||
.CalendarView4Day
|
||||
{
|
||||
font-size:0.9em;
|
||||
background-color:#FFFFFF;
|
||||
border-style:solid;
|
||||
border-width:1px;
|
||||
border-color:#8888cc;
|
||||
cursor: pointer;
|
||||
margin-right: 2px;
|
||||
}
|
||||
|
||||
.CalendarViewWeek
|
||||
{
|
||||
font-size:0.9em;
|
||||
background-color:#FFFFFF;
|
||||
border-style:solid;
|
||||
border-width:1px;
|
||||
border-color:#8888cc;
|
||||
cursor: pointer;
|
||||
margin-right: 2px;
|
||||
}
|
||||
|
||||
.CalendarView2Week
|
||||
{
|
||||
font-size:0.9em;
|
||||
background-color:#FFFFFF;
|
||||
border-style:solid;
|
||||
border-width:1px;
|
||||
border-color:#8888cc;
|
||||
cursor: pointer;
|
||||
margin-right: 2px;
|
||||
}
|
||||
|
||||
.CalendarViewMonth
|
||||
{
|
||||
font-size:0.9em;
|
||||
background-color:#FFFFFF;
|
||||
border-style:solid;
|
||||
border-width:1px;
|
||||
border-color:#8888cc;
|
||||
cursor: pointer;
|
||||
margin-right: 2px;
|
||||
}
|
||||
|
||||
.CalendarMoveToday
|
||||
{
|
||||
font-size:0.9em;
|
||||
background-color:#FFFFFF;
|
||||
border-style:solid;
|
||||
border-width:1px;
|
||||
border-color:#cccccc;
|
||||
cursor: pointer;
|
||||
margin-right: 2px;
|
||||
}
|
||||
|
||||
.CalendarMoveNext
|
||||
{
|
||||
font-size:0.9em;
|
||||
background-color:#FFFFFF;
|
||||
border-style:solid;
|
||||
border-width:1px;
|
||||
border-color:#cccccc;
|
||||
cursor: pointer;
|
||||
margin-right: 2px;
|
||||
}
|
||||
|
||||
.CalendarMovePrev
|
||||
{
|
||||
font-size:0.9em;
|
||||
background-color:#FFFFFF;
|
||||
border-style:solid;
|
||||
border-width:1px;
|
||||
border-color:#cccccc;
|
||||
cursor: pointer;
|
||||
margin-right: 2px;
|
||||
}
|
||||
55
modules/lifepod/skins/xe_official/js/lifepod.js
Normal file
55
modules/lifepod/skins/xe_official/js/lifepod.js
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
var _calendar;
|
||||
var entries = new Array();
|
||||
var _year;
|
||||
var _month;
|
||||
var _day;
|
||||
|
||||
function startLifepod()
|
||||
{
|
||||
//초기화
|
||||
//Calendar.Language = 'en'; //영어버전
|
||||
//객체를 생성, 인자는 캘린더로 변할 DIV의 ID
|
||||
_calendar=new Calendar('div_calendar');
|
||||
//콘트롤 추가(보기 방식, 기간 이동)
|
||||
_calendar.addControl(new Calendar.Control.View);
|
||||
_calendar.addControl(new Calendar.Control.Move);
|
||||
//이벤트 추가
|
||||
_calendar.attachEvent('drawFinish', entryDraw); //캘린더가 그려지면 호출할 함수, 주로 엔트리 추가시 사용된다
|
||||
_calendar.attachEvent('entryMove', entryMove); // 엔트리를 이동할 때 호출할 함수
|
||||
//그리기
|
||||
_calendar.draw();
|
||||
}
|
||||
|
||||
function calAdd(id, start, end, title, description, type, category, color)
|
||||
{
|
||||
entries.push(new Calendar.Entry(id, category, Calendar.str2date(start), Calendar.str2date(end), type, title, description, color));
|
||||
}
|
||||
|
||||
function setDate(year, month, day)
|
||||
{
|
||||
_year = year;
|
||||
_month = month;
|
||||
_day = day;
|
||||
}
|
||||
|
||||
function entryDraw() {
|
||||
//생성한 엔트리를 추가
|
||||
for(entry in entries)
|
||||
{
|
||||
_calendar.addEntry(entries[entry]);
|
||||
}
|
||||
|
||||
if(_year != undefined)
|
||||
{
|
||||
_calendar.date.setFullYear(_year);
|
||||
_calendar.date.setMonth(_month-1);
|
||||
_calendar.date.setDate(_day);
|
||||
_year = undefined;
|
||||
_calendar.draw();
|
||||
}
|
||||
}
|
||||
|
||||
function entryMove() {
|
||||
//true를 리턴하면 엔트리가 이동이 됨, false를 리턴하면 엔트리 이동이 취소됨
|
||||
return true;
|
||||
}
|
||||
23
modules/lifepod/skins/xe_official/js/xe_interface.js
Normal file
23
modules/lifepod/skins/xe_official/js/xe_interface.js
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
Calendar.ControlAction=function(C){
|
||||
var curYear = _CalendarInstances[arguments[1].parentNode.objID].date.getYear();
|
||||
{switch(C)
|
||||
{case"view":_CalendarInstances[arguments[1].parentNode.objID].changeView(arguments[2]);
|
||||
break;
|
||||
case"move":switch(arguments[2]){case"prev":_CalendarInstances[arguments[1].parentNode.objID].movePrev();
|
||||
break;
|
||||
case"next":_CalendarInstances[arguments[1].parentNode.objID].moveNext();
|
||||
break;
|
||||
case"today":_CalendarInstances[arguments[1].parentNode.objID].moveToday();
|
||||
break}break;
|
||||
case"plugin":
|
||||
if(_CalendarInstances[arguments[1].parentNode.objID].plugin[arguments[2]]&&_CalendarInstances[arguments[1].parentNode.objID].plugin[arguments[2]].controlAction)
|
||||
{
|
||||
var A=[];
|
||||
for(var B=3; B<arguments.length; B++)
|
||||
{A.push(arguments[B])}_CalendarInstances[arguments[1].parentNode.objID].plugin[arguments[2]].controlAction(A);}break};
|
||||
var newYear = _CalendarInstances[arguments[1].parentNode.objID].date.getYear();
|
||||
if(curYear != newYear) {
|
||||
var url = request_uri.setQuery('mid', current_mid).setQuery('year',_CalendarInstances[arguments[1].parentNode.objID].date.getFullYear()).setQuery('month',_CalendarInstances[arguments[1].parentNode.objID].date.getMonth()+1).setQuery('day',_CalendarInstances[arguments[1].parentNode.objID].date.getDate());
|
||||
location.href = url;
|
||||
}
|
||||
}};
|
||||
34
modules/lifepod/skins/xe_official/list.html
Normal file
34
modules/lifepod/skins/xe_official/list.html
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
<!-- JS 파일 로드 -->
|
||||
<script type="text/javascript" src="http://www.lifepod.co.kr/api/calendar.js"></script>
|
||||
<!--%import("js/lifepod.js")-->
|
||||
<script type="text/javascript" src="./modules/lifepod/skins/xe_official/js/xe_interface.js"></script>
|
||||
<!--{count($page->data)}-->
|
||||
<script type="text/javascript">//<![CDATA[
|
||||
xAddEventListener(window, 'load', startLifepod);
|
||||
<!--@foreach($page->data as $key => $val)-->
|
||||
calAdd({$val->childNodes["identifier"]->body},'{$val->childNodes["date-start"]->body}', '{$val->childNodes["date-end"]->body}', '{$val->childNodes["title"]->body}', '{$val->childNodes["description"]->body}', '{$val->childNodes["type"]->body}', '{$page->title}', 'green');
|
||||
<!--@end-->
|
||||
<!--@if($day)-->
|
||||
setDate({$year},{$month},{$day});
|
||||
<!--@end-->
|
||||
//]]></script>
|
||||
|
||||
|
||||
<!--%import("css/common.css")-->
|
||||
|
||||
<!-- 상단 텍스트 출력 -->
|
||||
{$module_info->header_text}
|
||||
|
||||
<!-- 스킨의 제목/간단한 설명 출력 -->
|
||||
<!--@if($module_info->title)-->
|
||||
<div class="boardHeader">
|
||||
<h3>{$module_info->title}</h3>
|
||||
</div>
|
||||
<!--@end-->
|
||||
<div id="div_calendar" style="width:750;height:600px">
|
||||
<!-- 캘린더가 그려질 부분 -->
|
||||
</div>
|
||||
|
||||
|
||||
<!-- 하단 텍스트 출력 -->
|
||||
{$module_info->footer_text}
|
||||
7
modules/lifepod/skins/xe_official/message.html
Normal file
7
modules/lifepod/skins/xe_official/message.html
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
<div>
|
||||
{$message}
|
||||
</div>
|
||||
|
||||
<!--@if(!$is_logged)-->
|
||||
<a href="{getUrl('act','dispMemberLoginForm')}">{$lang->cmd_login}</a>
|
||||
<!--@end-->
|
||||
19
modules/lifepod/skins/xe_official/skin.xml
Normal file
19
modules/lifepod/skins/xe_official/skin.xml
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<skin>
|
||||
<title xml:lang="ko">라이프팟 연동 기본 스킨</title>
|
||||
<title xml:lang="en">Lifepod Module Basic Skin</title>
|
||||
<maker email_address="haneul0318@gmail.com" link="http://haneul.zetyx.net" date="2007.11.30">
|
||||
<name xml:lang="ko">haneul</name>
|
||||
<name xml:lang="en">haneul</name>
|
||||
<description xml:lang="ko">라이프팟 노트 연동 모듈의 기본 스킨</description>
|
||||
<description xml:lang="en">Default Skin of Lifepod Module</description>
|
||||
</maker>
|
||||
<extra_vars>
|
||||
<var name="title" type="text">
|
||||
<title xml:lang="ko">게시판 제목</title>
|
||||
<title xml:lang="en">Title of Board</title>
|
||||
<description xml:lang="ko">게시판의 제목을 적어주세요.</description>
|
||||
<description xml:lang="en">Please input the title of board.</description>
|
||||
</var>
|
||||
</extra_vars>
|
||||
</skin>
|
||||
Loading…
Add table
Add a link
Reference in a new issue