Пример #1
0
	CAdminMessage::ShowMessage(join("\n", $errors));
}
?>
<form method="POST" action="<?php 
echo POST_FORM_ACTION_URI;
?>
" name="robots_form" onsubmit="window.seoParser.compile();">
	<input type="hidden" name="site_id" value="<?php 
echo $siteId;
?>
">
<?
$fileContent = '';
if($robotsFile->isExists())
{
	$fileContent = $robotsFile->getContents();
}
else
{
	$msg = new CAdminMessage(array(
		'TYPE' => 'ERROR',
		'MESSAGE' => Loc::getMessage('SEO_ROBOTS_ERROR_NO_ROBOTS', array('#PATH#' => $robotsFile->getPath())),
		'DETAILS' => Loc::getMessage('SEO_ROBOTS_ERROR_NO_ROBOTS_MESSAGE'),
	));
	echo $msg->Show();
}
?>
<script>
window.seoParser = new BX.seoParser('<?php 
echo CUtil::JSEscape($fileContent);
?>