<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\Member\Util; use ModStart\Core\Assets\AssetsUtil; use ModStart\Core\Dao\ModelUtil; use ModStart\Field\AutoRenderedFieldValue; class MemberCmsUtil { public static function showFromId($d4RRw, $UdGHQ = null) { goto rWkma; nXy24: return self::show($J09PA, $UdGHQ); goto ta3vL; rWkma: if (!$d4RRw) { return AutoRenderedFieldValue::make('<span class="ub-text-muted">-</span>'); } goto E3ogY; E3ogY: $J09PA = ModelUtil::getWithCache('member_user', array('id' => $d4RRw)); goto nXy24; ta3vL: } public static function show($J09PA, $UdGHQ = null) { if (!empty($J09PA)) { goto TcBS1; pk9A3: return AutoRenderedFieldValue::make('<a href="javascript:;" class="ub-icon-text" data-dialog-request="' . action('\\Module\\Member\\Admin\\Controller\\MemberController@show', array('_id' => $J09PA['id'])) . '">
            <img class="icon" src="' . AssetsUtil::fixOrDefault($J09PA['avatar'], 'asset/image/avatar.svg') . '" />
            <span class="text">' . htmlspecialchars($Q1mbG) . '</span></a>'); goto FGxKh; TcBS1: if (null === $UdGHQ) { $UdGHQ = array('username'); } goto SwFdh; p07Hw: if ($J09PA['isDeleted']) { $Q1mbG = '<已删除用户>'; } else { $Q1mbG = '<未知用户>'; foreach ($UdGHQ as $ooyHY) { if (!empty($J09PA[$ooyHY])) { $Q1mbG = $J09PA[$ooyHY]; break; } } } goto pk9A3; SwFdh: if (!is_array($UdGHQ)) { $UdGHQ = array($UdGHQ); } goto p07Hw; FGxKh: } return AutoRenderedFieldValue::make(''); } }