Skip to content

Commit

Permalink
. f adding admin dashboard functions
Browse files Browse the repository at this point in the history
  • Loading branch information
starstryder committed Mar 21, 2024
1 parent 93721cd commit 481f268
Showing 1 changed file with 27 additions and 23 deletions.
50 changes: 27 additions & 23 deletions csb/csb-admin/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,17 @@

loadHeader($page_title);

// Set variables to populate the template
$menus = "<h4>Menus</h4>";
$main = "<h4>Admin Settings</h4>";
$notes = "<h4>Instructions</h4>";

/* ----------------------------------------------------------------------
are they trying to save something they input?
---------------------------------------------------------------------- */
if (isset($_POST) && !empty($_POST)) {

$main .= "<p>a form was submitted</p>";
/*
// Fetch old data to compare.
$query = "SELECT * FROM options";
$result = $db->runQuery($query);
Expand Down Expand Up @@ -82,7 +88,11 @@
} else {
$saved = FALSE;
}
}
}*/

} else {
// Display Key Information
$main .= "<p>No Form Submitted</p>";

}

Expand Down Expand Up @@ -155,9 +165,9 @@
// }
// }

/* ----------------------------------------------------------------------
Setup Menus
---------------------------------------------------------------------- */
/* ----------------------------------------------------------------------
Setup Menus
---------------------------------------------------------------------- */

$menus = "<h4>Menus</h4>";
//get the names of the directories in the dashboards folder
Expand All @@ -173,15 +183,19 @@
}
}

/* ----------------------------------------------------------------------
Create the page
---------------------------------------------------------------------- */
/* ----------------------------------------------------------------------
Create the page
---------------------------------------------------------------------- */

$menus = $menus;
$main = "main";
$notes = "Put Instructions Here";
load3Col($menus, $main, $notes);
loadFooter();

// Keep the duplicated code to check for form changes made above

}

$db->closeDB();

/* // Keep the duplicated code to check for form changes made above
// Request options table
$query = "SELECT * FROM options";
$result = $db->runQuery($query);
Expand Down Expand Up @@ -225,17 +239,7 @@
<p>
This should contain important info at some point.
</p>
";

";*/

/* ----------------------------------------------------------------------
Load the view
---------------------------------------------------------------------- */

load3Col($menus, $main, $notes);
loadFooter();


}

$db->closeDB();

0 comments on commit 481f268

Please sign in to comment.