$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"); $form->button("save", "md", "collection_form"); echo "</div>"; echo "</div>"; echo "<hr />"; $collections->form($_GET['c']); echo "<div class='row'>"; echo "<div class='col-xs-12 text-right'>";