mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-21 12:19:56 +09:00
코어에서 지원하는 알림 종류 및 알림 수신 방법이 늘어남에 따라, 관리자가 설정한 범위 내에서 회원들이 알림 수신 방법을 선택할 수 있도록 합니다. 기존에는 수신 여부만 선택할 수 있었으나 이제 더 세부적인 설정이 가능합니다. 예를 들어 웹 알림과 푸시알림은 받고, 메일 알림과 문자 알림은 끌 수 있습니다. 이 기능을 지원하기 위해 ncenterlite_user_set 테이블 스키마를 대폭 조정합니다. 기존 설정은 가능하면 그대로 유지하려고 노력하였습니다.
58 lines
3.6 KiB
HTML
58 lines
3.6 KiB
HTML
<load target="../../../member/skins/default/css/member.css" />
|
|
<include target="../../../member/skins/default/common_header.html" />
|
|
<div class="xm">
|
|
|
|
<div cond="$XE_VALIDATOR_MESSAGE && $XE_VALIDATOR_ID == 'modules/ncenterlite/skins/default/userconfig/1'" class="message {$XE_VALIDATOR_MESSAGE_TYPE}">
|
|
<p>{$XE_VALIDATOR_MESSAGE}</p>
|
|
</div>
|
|
|
|
|
|
<form ruleset="insertConfig" action="./" method="post" class="form-horizontal" id="fo_ncenterlite">
|
|
<input type="hidden" name="module" value="ncenterlite" />
|
|
<input type="hidden" name="act" value="procNcenterliteUserConfig" />
|
|
<input type="hidden" name="xe_validator_id" value="modules/ncenterlite/skins/default/userconfig/1" />
|
|
<input type="hidden" name="member_srl" value="{$member_srl}">
|
|
<section class="section">
|
|
<h1><block cond="$member_info">{@$user_str = $member_info->nick_name}</block>
|
|
<block cond="!$member_info">{@$user_str = $logged_info->nick_name}</block>
|
|
{@$title_str = Context::getLang('ncenterlite_userconfig_title')}
|
|
{sprintf($title_str, $user_str)}
|
|
</h1>
|
|
|
|
<p>{$lang->ncenterlite_userconfig_about} <strong style="color:#ff0000" cond="$member_srl && $member_srl != $logged_info->member_srl">({$lang->ncenterlite_userconfig_about_warning})</strong></p>
|
|
{@ $uc = get_object_vars($user_config)}
|
|
<!--@foreach($notify_types as $notify_type => $notify_srl)-->
|
|
<!--@if($notify_type !== 'admin_content' && $notify_type !== 'custom')-->
|
|
<div class="control-group">
|
|
<label class="x_control-label">{$lang->get('ncenterlite_type_' . $notify_type)}</label>
|
|
<div class="x_controls">
|
|
{@ $available = isset($module_config->use[$notify_type]['web']) && $module_config->use[$notify_type]['web'] !== 'N'}
|
|
{@ $selected = in_array('web', $uc[$notify_type])}
|
|
<label class="x_inline"><input type="checkbox" name="use[{$notify_type}][web]" value="1" disabled="disabled"|cond="!$available" checked="checked"|cond="$available && $selected" /> {$lang->cmd_web_notify}</label>
|
|
{@ $available = isset($module_config->use[$notify_type]['mail']) && $module_config->use[$notify_type]['mail'] !== 'N'}
|
|
{@ $selected = in_array('mail', $uc[$notify_type])}
|
|
<label class="x_inline"><input type="checkbox" name="use[{$notify_type}][mail]" value="1" disabled="disabled"|cond="!$available" checked="checked"|cond="$available && $selected" /> {$lang->cmd_mail_notify}</label>
|
|
<!--@if($sms_available)-->
|
|
{@ $available = isset($module_config->use[$notify_type]['sms']) && $module_config->use[$notify_type]['sms'] !== 'N'}
|
|
{@ $selected = in_array('sms', $uc[$notify_type])}
|
|
<label class="x_inline"><input type="checkbox" name="use[{$notify_type}][sms]" value="1" disabled="disabled"|cond="!$available" checked="checked"|cond="$available && $selected" /> {$lang->cmd_sms_notify}</label>
|
|
<!--@endif-->
|
|
<!--@if($push_available)-->
|
|
{@ $available = isset($module_config->use[$notify_type]['push']) && $module_config->use[$notify_type]['push'] !== 'N'}
|
|
{@ $selected = in_array('push', $uc[$notify_type])}
|
|
<label class="x_inline"><input type="checkbox" name="use[{$notify_type}][push]" value="1" disabled="disabled"|cond="!$available" checked="checked"|cond="$available && $selected" /> {$lang->cmd_push_notify}</label>
|
|
<!--@endif-->
|
|
<p class="help-block">{sprintf($lang->get('ncenterlite_' . $notify_type . '_noti_about'), $logged_info->nick_name)}</p>
|
|
</div>
|
|
</div>
|
|
<!--@endif-->
|
|
<!--@endforeach-->
|
|
</section>
|
|
<div class="clearfix btnArea">
|
|
<div class="pull-right">
|
|
<button class="btn btn-primary" type="submit">{$lang->cmd_registration}</button>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
<include target="../../../member/skins/default/common_footer.html" />
|