알림목록 기본 안읽은것만 표시 + 전체표시 탭기능

This commit is contained in:
Lastorder 2024-06-23 19:33:03 +09:00 committed by GitHub
parent 504cf632b3
commit e0f83ed995
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 9 additions and 1 deletions

View file

@ -20,7 +20,7 @@ class NcenterliteView extends Ncenterlite
}
$oNcenterliteModel = ncenterliteModel::getInstance();
$output = $oNcenterliteModel->getMyNotifyList($this->user->member_srl, 1, null, true);
$output = $oNcenterliteModel->getMyNotifyList($this->user->member_srl, 1, (Context::get('readed') != 'Y' ? 'N' : 'Y'), true);
Context::set('total_count', $output->page_navigation->total_count);
Context::set('total_page', $output->page_navigation->total_page);

View file

@ -1,4 +1,12 @@
<include target="../../../member/skins/default/common_header.html" />
<ul class="nav nav-tabs">
<li class="active"|cond="!$readed || $readed == 'N'">
<a href="{getUrl('readed', '')}">안읽은 알림</a>
</li>
<li class="active"|cond="$readed == 'Y'">
<a href="{getUrl('readed', 'Y')}">전체 알림</a>
</li>
</ul>
<table class="table table-striped table-hover" style="margin-top:20px;">
<thead class="bg_f_f9">
<tr>