<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\Member\Core; use ModStart\Core\Util\FileUtil; use ModStart\Form\Form; use Module\Member\Provider\MemberAdminShowPanel\AbstractMemberAdminShowPanelProvider; use Module\Member\Util\MemberDataStatisticUtil; class MemberDataStatisticAdminShowPanelProvider extends AbstractMemberAdminShowPanelProvider { const NAME = 'MemberDataStatistic'; public function name() { return self::NAME; } public function title() { return '存储'; } public function render($QqUVI, $w6bW5 = array()) { goto PYD8x; n_3bV: $NX6uw->item($YaV4m)->fillFields(); goto Ky113; TTyCZ: $YaV4m['memberUserId'] = $QqUVI['id']; goto OK2ro; Cf55P: $YaV4m['sizeUsed'] = FileUtil::formatByte($lLaeU['sizeUsed']); goto n_3bV; OK2ro: $YaV4m['sizeLimit'] = $lLaeU['sizeLimit']; goto Cf55P; BUAWR: $YaV4m = array(); goto TTyCZ; Ky113: $NX6uw->showReset(false); goto dU625; PSW09: return $NX6uw->render(); goto vQwLP; N1mTH: $NX6uw = Form::make(''); goto N4iI8; dU625: $NX6uw->formUrl(modstart_admin_url('member/config/data_statistic')); goto PSW09; N4iI8: $NX6uw->number('sizeLimit', '大小限制')->help('单位MB'); goto jumj5; WVHB8: $NX6uw->hidden('memberUserId', '用户ID')->addable(true); goto BUAWR; jumj5: $NX6uw->display('sizeUsed', '已使用大小')->addable(true); goto WVHB8; PYD8x: $lLaeU = MemberDataStatisticUtil::getCreateMemberUser($QqUVI['id']); goto N1mTH; vQwLP: } }