<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\Member\Core; use ModStart\Core\Util\FileUtil; use ModStart\Form\Form; use Module\Member\Model\MemberDataStatistic; use Module\Member\Provider\MemberAdminShowPanel\AbstractMemberAdminShowPanelProvider; class MemberDataStatisticAdminShowPanelProvider extends AbstractMemberAdminShowPanelProvider { const NAME = 'MemberDataStatistic'; public function name() { return self::NAME; } public function title() { return '存储'; } public function render($KAIwS, $uxJUJ = array()) { goto MPqW9; z77oQ: $hUMbi->formUrl(modstart_admin_url('member/config/data_statistic')); goto al5xO; Vt2f6: $FSL7c['memberUserId'] = $KAIwS['id']; goto lWUaq; al5xO: return $hUMbi->render(); goto Q17ZJ; ieOj1: $hUMbi->display('sizeUsed', '已使用大小')->addable(true); goto yDHT1; MPqW9: $rpy90 = MemberDataStatistic::getCreateMemberUser($KAIwS['id']); goto rlx2J; lWUaq: $FSL7c['sizeLimit'] = $rpy90['sizeLimit']; goto C8BEU; C8BEU: $FSL7c['sizeUsed'] = FileUtil::formatByte($rpy90['sizeUsed']); goto LTMP1; L60_B: $hUMbi->number('sizeLimit', '大小限制')->help('单位MB'); goto ieOj1; S1Zok: $hUMbi->showReset(false); goto z77oQ; yDHT1: $hUMbi->hidden('memberUserId', '用户ID')->addable(true); goto JW9kY; JW9kY: $FSL7c = array(); goto Vt2f6; LTMP1: $hUMbi->item($FSL7c)->fillFields(); goto S1Zok; rlx2J: $hUMbi = Form::make(''); goto L60_B; Q17ZJ: } }