<?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($g3uu_, $qOrzw = array()) { goto kVAgr; gpzcn: $jIWZA['sizeLimit'] = $lpVAI['sizeLimit']; goto EaMK2; aeXe2: $yZTO2->item($jIWZA)->fillFields(); goto zX80Z; mXamN: return $yZTO2->render(); goto yUXvA; kVAgr: $lpVAI = MemberDataStatistic::getCreateMemberUser($g3uu_['id']); goto zw95F; RcoMo: $jIWZA = array(); goto JzasG; zw95F: $yZTO2 = Form::make(''); goto RXoc1; EaMK2: $jIWZA['sizeUsed'] = FileUtil::formatByte($lpVAI['sizeUsed']); goto aeXe2; Ywn0J: $yZTO2->display('sizeUsed', '已使用大小')->addable(true); goto Snmk7; Snmk7: $yZTO2->hidden('memberUserId', '用户ID')->addable(true); goto RcoMo; RXoc1: $yZTO2->number('sizeLimit', '大小限制')->help('单位MB'); goto Ywn0J; JzasG: $jIWZA['memberUserId'] = $g3uu_['id']; goto gpzcn; zX80Z: $yZTO2->showReset(false); goto EmJaL; EmJaL: $yZTO2->formUrl(modstart_admin_url('member/config/data_statistic')); goto mXamN; yUXvA: } }