if (!isset($_POST['collections'])) { $html->button("import.php?step=2", "back"); $form->button("select and import", "md", "step-3"); } else { if (isset($_SESSION['products']) && isset($_POST['collections'])) { $html->button(ABSDIR . "import.php", "import new"); $html->button(ABSDIR, "go home"); } } echo "</div>"; echo "</div>"; if (!isset($_POST['collections'])) { $upload->collection(); } if (isset($_SESSION['products']) && isset($_POST['collections'])) { $_SESSION['bco'] = isset($_POST['bco']) ? 1 : 0; $upload->import($_POST['collections']); $upload->report(); } break; } } else { $html->redirection('import.php?step=1'); /* echo "<script language='javascript'>"; echo "window.location.replace('import.php?step=1');"; echo "</script>"; */ //$html->redirection("import.php?step=1"); } require_once 'footer.php';