mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 17:21:39 +09:00
삭제
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@2327 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
commit
8326004cb2
2773 changed files with 91485 additions and 0 deletions
30
widgets/counter_status/conf/info.xml
Normal file
30
widgets/counter_status/conf/info.xml
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<widget version="0.1">
|
||||
<title xml:lang="ko">기본 카운터 위젯</title>
|
||||
<title xml:lang="jp">接続カウンター</title>
|
||||
<title xml:lang="en">Basic Counter Widget</title>
|
||||
<title xml:lang="zh-CN">计数器</title>
|
||||
<author email_address="zero@zeroboard.com" link="http://www.zeroboard.com" date="2007. 2. 28">
|
||||
<name xml:lang="ko">제로</name>
|
||||
<name xml:lang="jp">Zero</name>
|
||||
<name xml:lang="en">zero</name>
|
||||
<name xml:lang="zh-CN">zero</name>
|
||||
<description xml:lang="ko">
|
||||
기본 카운터 모듈을 이용하여 전체, 어제, 오늘의 접속현황을 표시합니다.
|
||||
counter모듈이 설치되어 있어야 하고 counter 애드온이 켜져 있어야 합니다.
|
||||
</description>
|
||||
<description xml:lang="jp">
|
||||
デフォルトの接続カウンターモジュールを利用して、トータル、昨日、今日の接続状況を表示します。カウンター(counter)モジュールがインストールされていて、接続カウンター(counter)アドオンが「使用」に設定されていなければなりません。
|
||||
</description>
|
||||
<description xml:lang="en">
|
||||
This widget displays the number of people who have visited yesterday and today by using the basic counter module.
|
||||
It will also display the total count.
|
||||
To get this, the counter module should be installed and the counter add-on should be turned on.
|
||||
</description>
|
||||
<description xml:lang="zh-CN">
|
||||
利用访问统计模块显示总访问量以及昨天,今日的访问统计流量。
|
||||
要想使用此组件必须先安装访问统计模块且得激活访问统计插件。
|
||||
</description>
|
||||
</author>
|
||||
<extra_vars />
|
||||
</widget>
|
||||
39
widgets/counter_status/counter_status.class.php
Normal file
39
widgets/counter_status/counter_status.class.php
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
<?php
|
||||
/**
|
||||
* @class counter_status
|
||||
* @author zero (zero@nzeo.com)
|
||||
* @version 0.1
|
||||
* @brief counter 모듈의 데이터를 이용하여 counter 현황을 출력
|
||||
**/
|
||||
|
||||
class counter_status extends WidgetHandler {
|
||||
|
||||
/**
|
||||
* @brief 위젯의 실행 부분
|
||||
* ./widgets/위젯/conf/info.xml에 선언한 extra_vars를 args로 받는다
|
||||
* 결과를 만든후 print가 아니라 return 해주어야 한다
|
||||
**/
|
||||
function proc($args) {
|
||||
// 전체, 어제, 오늘 접속 현황을 가져옴
|
||||
$oCounterModel = &getModel('counter');
|
||||
|
||||
$output = $oCounterModel->getStatus(array('00000000', date('Ymd', time()-60*60*24), date('Ymd')));
|
||||
foreach($output as $key => $val) {
|
||||
if(!$key) Context::set('total_counter', $val);
|
||||
elseif($key == date("Ymd")) Context::set('today_counter', $val);
|
||||
else Context::set('yesterday_counter', $val);
|
||||
}
|
||||
|
||||
// 템플릿의 스킨 경로를 지정 (skin, colorset에 따른 값을 설정)
|
||||
$tpl_path = sprintf('%sskins/%s', $this->widget_path, $args->skin);
|
||||
Context::set('colorset', $args->colorset);
|
||||
|
||||
// 템플릿 파일을 지정
|
||||
$tpl_file = 'counter_status';
|
||||
|
||||
// 템플릿 컴파일
|
||||
$oTemplate = &TemplateHandler::getInstance();
|
||||
return $oTemplate->compile($tpl_path, $tpl_file);
|
||||
}
|
||||
}
|
||||
?>
|
||||
21
widgets/counter_status/skins/default/counter_status.html
Normal file
21
widgets/counter_status/skins/default/counter_status.html
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
<!--@if($colorset == "normal")-->
|
||||
<!--%import("normal/style.css")-->
|
||||
<!--@end-->
|
||||
|
||||
<div class="counter_widget">
|
||||
|
||||
<ul>
|
||||
<!--@if($total_counter)-->
|
||||
<li><strong>Total</strong> : {$total_counter->unique_visitor}</li>
|
||||
<!--@end-->
|
||||
|
||||
<!--@if($today_counter)-->
|
||||
<li><strong>Today</strong> : {$today_counter->unique_visitor}</li>
|
||||
<!--@end-->
|
||||
|
||||
<!--@if($yesterday_counter)-->
|
||||
<li><strong>Yesterday</strong> : {$yesterday_counter->unique_visitor}</li>
|
||||
<!--@end-->
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
10
widgets/counter_status/skins/default/normal/style.css
Normal file
10
widgets/counter_status/skins/default/normal/style.css
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
.counter_widget {
|
||||
border:3px solid #DDDDDD;
|
||||
padding:6px;
|
||||
margin-bottom:10px;
|
||||
color:#999999;
|
||||
font-family:tahoma;
|
||||
font-size:8pt;
|
||||
}
|
||||
|
||||
.counter_widget ul { list-style:none; }
|
||||
25
widgets/counter_status/skins/default/skin.xml
Normal file
25
widgets/counter_status/skins/default/skin.xml
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<skin>
|
||||
<title xml:lang="ko">접속자 현황 출력 기본 스킨 </title>
|
||||
<title xml:lang="jp">接続統計表示のデフォルトスキン</title>
|
||||
<title xml:lang="zh-CN">计数器默认皮肤</title>
|
||||
<title xml:lang="en">Default Counter Skin </title>
|
||||
<maker email_address="zero@zeroboard.com" link="http://www.zeroboard.com" date="2007. 2. 28">
|
||||
<name xml:lang="ko">제로</name>
|
||||
<name xml:lang="jp">Zero</name>
|
||||
<name xml:lang="zh-CN">zero</name>
|
||||
<name xml:lang="en">zero</name>
|
||||
<description xml:lang="ko">counter_status 의 기본 스킨</description>
|
||||
<description xml:lang="jp">接続統計(counter_status)のデフォルトスキン</description>
|
||||
<description xml:lang="zh-CN">计数器默认皮肤。</description>
|
||||
<description xml:lang="en">Default skin of counter_status</description>
|
||||
</maker>
|
||||
<colorset>
|
||||
<color name="normal">
|
||||
<title xml:lang="ko">기본</title>
|
||||
<title xml:lang="jp">デフォルト</title>
|
||||
<title xml:lang="en">default</title>
|
||||
<title xml:lang="zh-CN">默认</title>
|
||||
</color>
|
||||
</colorset>
|
||||
</skin>
|
||||
BIN
widgets/counter_status/skins/styx_flash/counter.swf
Normal file
BIN
widgets/counter_status/skins/styx_flash/counter.swf
Normal file
Binary file not shown.
|
|
@ -0,0 +1,3 @@
|
|||
<script type="text/javascript">
|
||||
displayMultimedia("{$tpl_path}counter.swf?n={$today_counter->unique_visitor},{$yesterday_counter->unique_visitor},{$total_counter->unique_visitor}", 180, 60);
|
||||
</script>
|
||||
24
widgets/counter_status/skins/styx_flash/skin.xml
Normal file
24
widgets/counter_status/skins/styx_flash/skin.xml
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<skin>
|
||||
<title xml:lang="ko">스틱스 플래시 카운터</title>
|
||||
<title xml:lang="jp">スティクスフラッシュカウンター</title>
|
||||
<title xml:lang="zh-CN">styx flash 计数器皮肤</title>
|
||||
<title xml:lang="en">Styx Flash Counter</title>
|
||||
<maker email_address="zero@zeroboard.com" link="http://www.zeroboard.com" date="2007. 2. 28">
|
||||
<name xml:lang="ko">styx</name>
|
||||
<name xml:lang="zh-CN">styx</name>
|
||||
<name xml:lang="en">styx</name>
|
||||
<description xml:lang="ko">플래시로 오늘,어제,전체 카운터 현황을 출력해주시는 위젯입니다.</description>
|
||||
<description xml:lang="jp">フラッシュで、今日、昨日、トータルの接続数を表示させるウィジェットです。</description>
|
||||
<description xml:lang="zh-CN">用flash显示今天,昨天,全部访问统计的控件。</description>
|
||||
<description xml:lang="en">This is a widget that displays today, yesterday, all counter status with flash.</description>
|
||||
</maker>
|
||||
<colorset>
|
||||
<color name="normal">
|
||||
<title xml:lang="ko">기본</title>
|
||||
<title xml:lang="jp">デフォルト</title>
|
||||
<title xml:lang="zh-CN">默认</title>
|
||||
<title xml:lang="en">default</title>
|
||||
</color>
|
||||
</colorset>
|
||||
</skin>
|
||||
Loading…
Add table
Add a link
Reference in a new issue