<?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($J09PA, $EPwwc = array()) { goto mskOr; ndSkd: $Z32UA = array(); goto qACsd; X_slI: $s4jIj->showReset(false); goto i23nc; zg4bD: $Z32UA['sizeUsed'] = FileUtil::formatByte($HKoLA['sizeUsed']); goto TjOEt; eJtyc: $s4jIj->display('sizeUsed', '已使用大小')->addable(true); goto m1i1O; MolGG: $s4jIj = Form::make(''); goto DA8b1; TjOEt: $s4jIj->item($Z32UA)->fillFields(); goto X_slI; i23nc: $s4jIj->formUrl(modstart_admin_url('member/config/data_statistic')); goto PT3WU; qACsd: $Z32UA['memberUserId'] = $J09PA['id']; goto UyfxV; PT3WU: return $s4jIj->render(); goto HYslZ; m1i1O: $s4jIj->hidden('memberUserId', '用户ID')->addable(true); goto ndSkd; DA8b1: $s4jIj->number('sizeLimit', '大小限制')->help('单位MB'); goto eJtyc; UyfxV: $Z32UA['sizeLimit'] = $HKoLA['sizeLimit']; goto zg4bD; mskOr: $HKoLA = MemberDataStatistic::getCreateMemberUser($J09PA['id']); goto MolGG; HYslZ: } }