<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\Vendor\Admin\Widget; use ModStart\Admin\Auth\AdminPermission; use ModStart\Admin\Layout\AdminPage; use ModStart\Layout\Row; use ModStart\Widget\Box; use Module\Vendor\Provider\ContentVerify\ContentVerifyBiz; class AdminWidgetDashboard { private static $icon = array(); private static $foot = array(); public static function registerTodo($OukAb) { } public static function callTodo(Row $prd0q) { } public static function registerIcon($OukAb) { self::$icon[] = $OukAb; } public static function callIcon(Row $prd0q) { foreach (self::$icon as $vPOhn) { call_user_func_array($vPOhn, array($prd0q)); } } public static function registerFoot($OukAb) { self::$foot[] = $OukAb; } public static function call(AdminPage $evgNV) { goto SfM8F; gyZiP: foreach (ContentVerifyBiz::listAll() as $sefXk) { if (AdminPermission::permit($sefXk->verifyRule())) { $ZNdZc = $sefXk->verifyCount(); if ($ZNdZc > 0) { goto MfI1o; BDDSt: $H6kbf[] = "<a class='tw-mr-2 tw-mb-2 tw-inline-block tw-bg-yellow-100 tw-text-yellow-600 tw-py-1 tw-px-2 tw-rounded-2xl'\n                                     href='{$zHIxi}' data-tab-open data-tab-title='{$MNqDV}'>{$MNqDV} <span class='ub-text-danger tw-font-bold'>{$ZNdZc}</span> 条</a>"; goto GzmTj; j3svq: $MNqDV = $sefXk->title(); goto BDDSt; MfI1o: $zHIxi = $sefXk->verifyUrl(); goto j3svq; GzmTj: } } } goto fiwcH; fiwcH: if (!empty($H6kbf)) { $evgNV->row(Box::make(join('', $H6kbf), '<i class="iconfont icon-details"></i> 待审核')); } goto Usy43; SfM8F: $H6kbf = array(); goto gyZiP; Usy43: foreach (self::$foot as $vPOhn) { if ($vPOhn instanceof \Closure) { call_user_func_array($vPOhn, array($evgNV)); } } goto BfbOq; BfbOq: } }