' . e(py_t('不关联栏目')) . ''; foreach ($categories as $cat) { $html .= ''; } return $html; }; $typeOptions = function (string $selected = 'head') use ($types): string { $html = ''; foreach ($types as $type) { $html .= ''; } return $html; }; $formBody = function (array $row = [], string $defaultType = '') use ($catOptions, $typeOptions): void { $selectedType = (string) ($row['type'] ?? $defaultType); ?>