<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Admin\Widget; use ModStart\Widget\AbstractWidget; class DashboardItemA extends AbstractWidget { private $type = 1; private $link; private $title; private $desc; private $icon; private $color; private $number; public static function makeIconTitleDesc($f2o75, $XWWOD, $BUWqO, $WgUuG = 'javascript:;', $hLB40 = '#999') { goto xMtW7; EhJQ9: $Nrp0b->color = $hLB40; goto KJOjw; KJOjw: $Nrp0b->type = 1; goto ojOdQ; IvitY: $Nrp0b->icon = $f2o75; goto KDUjM; xMtW7: $Nrp0b = new DashboardItemA(); goto IvitY; KDUjM: $Nrp0b->title = $XWWOD; goto ktLqs; ktLqs: $Nrp0b->desc = $BUWqO; goto cLqDy; ojOdQ: return $Nrp0b; goto tHQcO; cLqDy: $Nrp0b->link = $WgUuG; goto EhJQ9; tHQcO: } public static function makeIconNumberTitle($f2o75, $QS1Aq, $XWWOD, $WgUuG = 'javascript:;', $hLB40 = 'inherit') { goto Bihlr; wb38w: $Nrp0b->type = 2; goto nAhwI; VEYL8: $Nrp0b->number = $QS1Aq; goto Nllw8; Bihlr: $Nrp0b = new DashboardItemA(); goto wJgo4; Nllw8: $Nrp0b->title = $XWWOD; goto m2bnf; nAhwI: return $Nrp0b; goto dplbP; m2bnf: $Nrp0b->link = $WgUuG; goto nJDCI; wJgo4: $Nrp0b->icon = $f2o75; goto VEYL8; nJDCI: $Nrp0b->color = $hLB40; goto wb38w; dplbP: } public static function makeTitleLink($XWWOD, $WgUuG) { goto SZjer; SZjer: $Nrp0b = new DashboardItemA(); goto H2yyV; On_uP: $Nrp0b->link = $WgUuG; goto iiiZc; ELYUH: return $Nrp0b; goto QDN2H; H2yyV: $Nrp0b->title = $XWWOD; goto On_uP; iiiZc: $Nrp0b->type = 3; goto ELYUH; QDN2H: } public function render() { switch ($this->type) { case 1: return "<a href=\"{$this->link}\" class=\"ub-dashboard-item-a\" {$this->formatAttributes()}>\n    <div class=\"icon\" style=\"color:{$this->color}\">\n        <i class=\"font {$this->icon}\"></i>\n    </div>\n    <div class=\"title\" style=\"color:{$this->color}\">{$this->title}</div>\n    <div class=\"desc\">{$this->desc}</div>\n</a>"; case 2: $QS1Aq = number_format($this->number); return "<a href=\"{$this->link}\" class=\"ub-dashboard-item-a\" {$this->formatAttributes()}>\n    <div class=\"icon\" style=\"color:{$this->color}\">\n        <i class=\"font {$this->icon}\"></i>\n    </div>\n    <div class=\"number-value\">{$QS1Aq}</div>\n    <div class=\"number-title\">{$this->title}</div>\n</a>"; case 3: return "<a href=\"{$this->link}\" target=\"_blank\" class=\"btn btn-block ub-text-left margin-bottom\" style=\"color:{$this->color}\">\n    {$this->title}\n</a>"; } } }