<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Admin\Concern; use ModStart\Admin\Layout\AdminPage; use ModStart\Core\Input\Request; use ModStart\Core\Util\CRUDUtil; use ModStart\Grid\Grid; trait HasAdminGrid { public $registerGridClass = null; private function computeTitleGrid($txUYE, $YdB39) { $XWWOD = $txUYE ? $txUYE . ' ' . L($YdB39) : L($YdB39); return $this->pageTitle ? $this->pageTitle : $XWWOD; } public function index(AdminPage $gt42Q) { goto cz1Rd; xL1Xs: return $gt42Q->pageTitle($this->computeTitleGrid($QnI0I->title(), 'List'))->body($QnI0I); goto PfV4n; fRuh9: if (Request::isPost()) { return $QnI0I->request(); } goto xL1Xs; cz1Rd: $QnI0I = $this->grid(); goto pg0Xl; pg0Xl: CRUDUtil::registerGridResource($QnI0I, $this->registerGridClass ? $this->registerGridClass : '\\' . __CLASS__); goto fRuh9; PfV4n: } }