예제 #1
0
 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'>";
     echo "<hr />";
     $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>";
 } else {
     if (isset($_GET['clone'])) {
         $id = $db->clone_collection($_GET['clone']);
         $html->redirection("collections.php?c={$id}");
     } else {
         echo "<div id='page-title' class='row'>";