<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Layout; use ModStart\Core\Util\IdUtil; use ModStart\Field\AbstractField; class LayoutTable extends AbstractField { protected $isLayoutField = true; private $layoutClosure = null; public function __construct($H7deD) { parent::__construct(IdUtil::generate('LayoutTable')); $this->layoutClosure = $H7deD; } public function postSetup() { goto q24yE; YosDa: call_user_func($this->layoutClosure, $this); goto Vqmtk; Vqmtk: $this->context->html($this->column() . '_end')->html('</table>')->plain(); goto XWguB; q24yE: $this->context->html($this->column() . '_end')->html('<table class="ub-table border ub-content-bg">')->plain(); goto YosDa; XWguB: } public function layoutRow($H7deD) { goto gQgBJ; v2ucX: $this->context->html($this->column() . '_end')->html('</tr>')->plain(); goto BbTQ2; gQgBJ: $this->context->html($this->column() . '_end')->html('<tr>')->plain(); goto Jv4wj; Jv4wj: call_user_func($H7deD, $this); goto v2ucX; BbTQ2: } public function layoutCol($H7deD) { goto l2Gr2; sBGUe: call_user_func($H7deD, $this->context); goto K083C; l2Gr2: $this->context->html($this->column() . '_end')->html('<td>')->plain(); goto sBGUe; K083C: $this->context->html($this->column() . '_end')->html('</td>')->plain(); goto xdW7l; xdW7l: } public function render() { return ''; } }