forked from lalin/training_project
-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.php
44 lines (38 loc) · 1.42 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?php require_once("includes/functions.php"); ?>
<?php require_once("includes/connection.php"); ?>
<?php find_selected_page();?>
<?php include("includes/header.php"); ?>
<table id="structure">
<tr>
<td id="navigation">
<?php echo public_navigation($sel_subject, $sel_page_content); ?>
<!--
<br />
<a href="new_subject.php">+ Add a new subject</a><br/>
<a href="new_page.php">+ Add a new page</a>
-->
</td>
<td id="page">
<?php
if (isset($sel_subject["menu_name"])/*)
{
echo "<h2>".$sel_subject["menu_name"]."</h2>";
} elseif (*/ || isset($sel_page_content["menu_name"]))
{
echo "<h2>".$sel_page_content["menu_name"]."</h2>";
echo "<div class=\"page-content\">";
echo $sel_page_content["content"];
echo "</div>";
}
else
{
echo "<h2>Welcome to Apparatus Corp. :P</h2>";
echo "<p>Formerly Widget Corp!</p>";
echo "<p>NOW TRACKED BY .Git in Netbeans!</p>";
}
?>
<br/>
</td>
</tr>
</table>
<?php require("includes/footer.php"); ?>