mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-03 17:22:20 +09:00
세션 정보에 해당 세션이 위치하는 mid값을 기입하도록 하였고 현재 접속자 출력 위젯에서 mid값을 반영할 수 있도록 변경
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@4292 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
befe944a1e
commit
d5126c2925
10 changed files with 63 additions and 20 deletions
|
|
@ -13,5 +13,18 @@
|
|||
<type>text</type>
|
||||
<description xml:lang="ko">출력될 목록의 수를 정하실 수 있습니다. (기본 5개)</description>
|
||||
</var>
|
||||
<var id="use_mid">
|
||||
<name xml:lang="ko">대상 지정</name>
|
||||
<type>select</type>
|
||||
<description xml:lang="ko">대상을 전체로 하면 홈페이지 접속자 모두가 출력되고 Mid 구분으로 하게 되면 접속한 Mid에 같이 접속한 회원만 출력이 됩니다.</description>
|
||||
<options>
|
||||
<name xml:lang="ko">전체</name>
|
||||
<value>total</value>
|
||||
</options>
|
||||
<options>
|
||||
<name xml:lang="ko">Mid 구분</name>
|
||||
<value>mid</value>
|
||||
</options>
|
||||
</var>
|
||||
</extra_vars>
|
||||
</widget>
|
||||
|
|
|
|||
|
|
@ -16,13 +16,19 @@
|
|||
**/
|
||||
function proc($args) {
|
||||
|
||||
// 위젯 자체적으로 설정한 변수들을 체크
|
||||
$list_count = (int)$args->list_count;
|
||||
if(!$list_count) $list_count = 5;
|
||||
|
||||
$use_mid = $args->use_mid;
|
||||
if($use_mid == 'mid') $mid = Context::get('mid');
|
||||
else $mid = null;
|
||||
|
||||
$obj->list_count = $list_count;
|
||||
$obj->mid = $mid;
|
||||
|
||||
// session model 객체 생성
|
||||
$oSessionModel = &getModel('session');
|
||||
$output = $oSessionModel->getLoggedMembers($list_count);
|
||||
$output = $oSessionModel->getLoggedMembers($obj);
|
||||
$widget_info->member_list = $output->data;
|
||||
Context::set('widget_info', $widget_info);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue