BX('sitemap_progress').innerHTML = data; }); }; BX.finishSitemap = function() { window.tbl_sitemap.GetAdminList('/bitrix/admin/seo_sitemap_pro.php?lang=<?php echo LANGUAGE_ID; ?> '); }; </script> <div id="sitemap_run" style="display: none;"> <div id="sitemap_progress"><?php echo SitemapRuntime::showProgress(Loc::getMessage('SEO_SITEMAP_RUN_INIT'), Loc::getMessage('SEO_SITEMAP_RUN_TITLE'), 0); ?> </div> </div> <? if(isset($_REQUEST['run']) && check_bitrix_sessid()) { $ID = intval($_REQUEST['run']); if($ID > 0) { ?> <script>BX.ready(BX.defer(function(){ generateSitemap(<?php echo $ID; ?> );
foreach ($arSitemapLinks as $rule) { if ($rule[1] != $sitemapUrl) { $arExistedSitemaps[] = $rule[1]; } } } } $v = $arValueSteps['index']; } } } if ($v == $arValueSteps['index']) { $msg = Loc::getMessage('SITEMAP_RUN_FINISH'); SitemapTable::update($ID, array('DATE_RUN' => new Bitrix\Main\Type\DateTime())); } echo SitemapRuntime::showProgress($msg, Loc::getMessage('SEO_SITEMAP_RUN_TITLE'), $v); if ($v < $arValueSteps['index']) { ?> <script> top.BX.runSitemap(<?php echo $ID; ?> , <?php echo $v; ?> , '<?php echo $PID; ?> ', <?php echo CUtil::PhpToJsObject($NS); ?>