%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/bitrix/www/bitrix/components/bitrix/landing.domain_edit/templates/.default/
Upload File :
Create Path :
Current File : //home/bitrix/www/bitrix/components/bitrix/landing.domain_edit/templates/.default/template.php

<?php
if (!defined('B_PROLOG_INCLUDED') || B_PROLOG_INCLUDED !== true)
{
	die();
}

use \Bitrix\Main\Localization\Loc;
Loc::loadMessages(__FILE__);

\Bitrix\Landing\Manager::setPageTitle(
	Loc::getMessage('LANDING_TPL_TITLE')
);

if ($arResult['ERRORS'])
{
	\showError(implode("\n", $arResult['ERRORS']));
}

if ($arResult['FATAL'])
{
	return;
}

$row = $arResult['DOMAIN'];
?>
<form action="<?= POST_FORM_ACTION_URI?>" method="post">
	<input type="hidden" name="fields[SAVE_FORM]" value="Y" />
	<?= bitrix_sessid_post()?>
	<table>
		<tr>
			<td><?= $row['ACTIVE']['TITLE']?>:</td>
			<td>
				<input type="checkbox" name="fields[ACTIVE]" value="Y"<?if ($row['ACTIVE']['CURRENT'] == 'Y') {?> checked="checked"<?}?>>
			</td>
		</tr>
		<tr>
			<td><?= $row['PROTOCOL']['TITLE']?>:</td>
			<td>
				<select name="fields[PROTOCOL]" class="content-edit-form-field-input-select">
				<?foreach (\Bitrix\Landing\Domain::getProtocolList() as $code => $val):?>
					<option value="<?= $code?>"<?if ($val == $row['PROTOCOL']['CURRENT']){?> selected="selected"<?}?>>
						<?= $val?>
					</option>
				<?endforeach;?>
				</select>
			</td>
		</tr>
		<tr>
			<td><?= $row['DOMAIN']['TITLE']?>:</td>
			<td>
				<input type="text" name="fields[DOMAIN]" value="<?= $row['DOMAIN']['CURRENT']?>" class="content-edit-form-field-input-text">
			</td>
		</tr>
	</table>
	<input type="submit" value="<?= Loc::getMessage('LANDING_TPL_BUTTON_SAVE')?>" />
</form>

Zerion Mini Shell 1.0