묻고답하기
page_full_width" class="col-xs-12" |cond="$__Context->page_full_width">
회원정보 보기를 본인과 관리자만 볼 수 있게하려면 어떻게 해야하나요?
2018.04.12 14:00
---member_info.html
<include target="./common_header.html" /> <h1>{$lang->member_info}</h1> <div cond="$XE_VALIDATOR_MESSAGE && $XE_VALIDATOR_ID == 'modules/member/skins/default/1'" class="message {$XE_VALIDATOR_MESSAGE_TYPE}"> <p>{$XE_VALIDATOR_MESSAGE}</p> </div> <dl class="dl-horizontal"> <block loop="$displayDatas => $item"> <dt><em cond="$item->required || $item->mustRequired">*</em> {$item->title}</dt> <dd cond="$item->value">{$item->value}</dd> <dd cond="!$item->value" style="color:#ccc">…</dd> </block> <dt>{$lang->member_group}</dt> <dd>{implode(', ', $memberInfo['group_list'])}</dd> <dt>{$lang->signup_date}</dt> <dd>{zdate($memberInfo[regdate],"Y-m-d")}</dd> <block cond="$memberInfo[member_srl] == $logged_info->member_srl || $logged_info->is_admin == 'Y'"> <dt>{$lang->last_login}</dt> <dd>{zdate($memberInfo[last_login],"Y-m-d")}</dd> </block> </dl> <div class="btnArea btn-group" cond="$memberInfo['member_srl'] == $logged_info->member_srl"> <a href="{getUrl('act', 'dispMemberModifyEmailAddress')}" class="btn" cond="$member_config->identifier == 'email_address'">{$lang->cmd_modify_member_email_address}</a> <a href="{getUrl('act','dispMemberModifyInfo','member_srl','')}" class="btn">{$lang->cmd_modify_member_info}</a> <a href="{getUrl('act','dispMemberModifyPassword','member_srl','')}" class="btn">{$lang->cmd_modify_member_password}</a> <a href="{getUrl('act','dispMemberLeave','member_srl','')}" class="btn">{$lang->cmd_leave}</a> </div> <include target="./common_footer.html" />
윗부분에
<!--@if(($logged_info->member_srl=="표시될회원정보의 member_srl")||($logged_info->is_admin!="Y"))-->
처럼 조건문을 넣으면 될거같은데 빨간색 부분을 어떻게 표현할지를 모르겠습니다.
댓글 2
-
HowtoXE
2018.04.12 16:21
-
forest535
2018.04.12 16:40
$logged_info->member_srl==$member_srl
이거군요
감사합니다^^
콤마없이 $member_srl로 비교하시면 됩니다.