$mixCategoryBrandURLs = $sitemapGenerator->GetMixCategoryBrandURLs(); $sitemapGenerator->GenerateAction(array('mix-category-brand' => $mixCategoryBrandURLs)); break; case 'ProductBrand': $productBrandURLs = $sitemapGenerator->GetProductBrandURLs(); $chunkArr = array_chunk($productBrandURLs, 3, true); $sitemapGenerator->GenerateAction($chunkArr[$_POST['currentCount']]); $currentCount = $_POST['currentCount'] + 1; $remainCount = count($chunkArr) - $currentCount; echo "Remaining: {$remainCount}<br/>"; break; case 'DynamicPage': $pageCateBrand = $_POST['pageCount']; $pageYMM = $_POST['pageCount2']; $filename = $_POST['dynamic_filename']; $sitemapGenerator->GenerateDynamicPagesURLs($filename, $pageCateBrand, $pageYMM, $hasmore); break; default: $sitemapGenerator->GenerateAction(array(SitemapGenerator::$sitemap_index => $sitemapGenerator->GetSitemapIndexArray()), true); break; } } ?> <form id="subForm" action="sitemap_generator.php" method="post"> <input id="actionType" type="hidden" name="actionType"/> <input type="hidden" name="currentCount" value="<?php echo $currentCount; ?> "/> <input type="hidden" name="pageCount" value="<?php echo $pageCateBrand;