if (($arID = $lAdmin->GroupAction()) && $isAdmin) { if ($_REQUEST['action_target'] == 'selected') { $arID = array(); $rsData = CWizardUtil::GetWizardList(false, true); while ($arRes = $rsData->Fetch()) { $arID[] = $arRes['ID']; } } foreach ($arID as $ID) { if (strlen($ID) <= 0) { continue; } switch ($_REQUEST['action']) { case "delete": @set_time_limit(0); if (!CWizardUtil::DeleteWizard($ID)) { $lAdmin->AddGroupError(GetMessage("MAIN_WIZARD_DELETE_ERROR"), $ID); } break; case "export": ?> <script type="text/javascript"> exportWizard('<?php echo $ID; ?> '); </script> <?php break; /*case "copy": CWizardUtil::CopyWizard($ID, $ID."_copy");