| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- <?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()
- {
- di('lang')->absoluteT('dnsinfomessage') ? $message = di('lang')->absoluteT('dnsinfomessage') :
- $message = 'DNS Informations for <b id="infoalertmaildomain" class="lu-alert--lg"></b>
- <div id="addalertheader" class="lu-alert--lg"></div>
- <div id="addmxmessage"></div>
- <div id="addspfmessage"></div>
- <div id="adddmarcmessage"></div>
- <div id="adddkimmessage"></div><br><br>
- <div id="addalertfooter"></div>
- <div class="lu-form-group">
- <label class="lu-form-label">DNS Record Type</label>
- <div class="lu-input-group" style="background:#eeeeee">
- <input type="text" value="ThurData Recommended" readonly="readonly" class="lu-form-control" style="">
- <div class="lu-input-group__addon">⇔</div>
- <input type="text" value="Current Value" readonly="readonly" class="lu-form-control" style="">
- </div>
- </div>';
- $this->addInternalAlert($message, null, 100);
- $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')]);
- }
- }
|