} else { $alerts->display("danger", "error", "Please enter new collections name."); echo "<div id='page-title' class='row'>"; echo "<div class='col-xs-12 col-sm-6'>"; $html->title("collections", null, "left"); echo "</div>"; echo "<div class='col-xs-12 col-sm-6'>"; $collections->create(); echo "</div>"; echo "</div>"; $collections->listing(); } break; default: $collections->set_data(); $collections->submit_data(); $html->redirection("collections.php"); break; } } else { if (isset($_GET['c'])) { $form = new Forms(); $collections->get_data($_GET['c']); echo "<div id='page-title' class='row'>"; echo "<div class='col-xs-12 col-sm-6'>"; $html->title("collection", "- {$collections->name}", "left"); echo "</div>"; echo "<div class='col-xs-12 col-md-6 text-right'>"; $html->button("collections.php", "back", "default"); $html->button("collections.php?clone=" . $_GET['c'], "clone", "danger"); $html->button("collections.php?c=" . $_GET['c'], "reset", "warning");