| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- <?php
- namespace ThurData\Servers\KerioEmail\App\UI\Client\Setting\Sections;
- use ThurData\Servers\KerioEmail\App\Traits\FormExtendedTrait;
- use ThurData\Servers\KerioEmail\App\UI\Admin\Custom\Sections\FreeFieldsSection;
- use ThurData\Servers\KerioEmail\Core\UI\Widget\Forms\Fields\Select;
- use ThurData\Servers\KerioEmail\Core\UI\Widget\Forms\Fields\Text;
- use ThurData\Servers\KerioEmail\Core\UI\Widget\Forms\Sections\InputGroup;
- use ThurData\Servers\KerioEmail\Core\UI\Widget\Forms\Fields\InputGroupElements;
- use ThurData\Servers\KerioEmail\Core\UI\Widget\Forms\Fields\Hidden;
- /**
- *
- * Created by PhpStorm.
- * User: ThurData
- * Date: 12.11.19
- * Time: 13:39
- * Class GeneralSection
- */
- class GeneralSection extends FreeFieldsSection
- {
- protected $id = 'generalSection';
- protected $name = 'generalSection';
- use FormExtendedTrait;
- public function initContent()
- {
- $row = new InputGroup('MX');
- $row->addInputComponent((new InputGroupElements\Text('mxthurdata'))->addHtmlAttribute('readonly','true'));
- $row->addInputAddon('', false, '⇔');
- $row->addInputComponent((new InputGroupElements\Text('mxactive'))->addHtmlAttribute('readonly','true'));
- $this->addSection($row);
- $row = new InputGroup('SPF');
- $row->addInputComponent((new InputGroupElements\Text('spfthurdata'))->addHtmlAttribute('readonly','true'));
- $row->addInputAddon('', false, '⇔');
- $row->addInputComponent((new InputGroupElements\Text('spf'))->addHtmlAttribute('readonly','true'));
- $this->addSection($row);
- $row = new InputGroup('DMARC');
- $row->addInputComponent((new InputGroupElements\Text('dmarcthurdata'))->addHtmlAttribute('readonly','true'));
- $row->addInputAddon('', false, '⇔');
- $row->addInputComponent((new InputGroupElements\Text('dmarc'))->addHtmlAttribute('readonly','true'));
- $this->addSection($row);
- $row = new InputGroup('DKIM');
- $row->addInputComponent((new InputGroupElements\Text('dkimthurdata'))->addHtmlAttribute('readonly','true'));
- $row->addInputAddon('', false, '⇔');
- $row->addInputComponent((new InputGroupElements\Text('dkim'))->addHtmlAttribute('readonly','true'));
- $this->addSection($row);
- $this->generateDoubleSection([new Hidden('infomaildomain'), new Hidden('id')]);
- $this->generateDoubleSection([new Hidden('selfdns'), new Hidden('dnsok')]);
- }
- }
|