-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.php
40 lines (32 loc) · 1.03 KB
/
setup.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
<?php
require_once "include/html.php";
require_once "include/db.php";
print_head(array("css/main.css", "css/editForm.css"), "IAESTE CRM - Setup");
?>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<h1>Setup</h1>
<br>
During the setup all database tables will be created and populated with default data (if desired).
Additionally, a default user is created.
<form class="editForm" action="setup.php">
<input type="hidden" name="Confirmed" value="true">
<ul>
<li>
<label class="align-left">
Insert data for status and EP status
<input style="margin-left: 10px;" type="checkbox" checked name="insertData" value="true">
</label>
</li>
<li>
<input class="field-style align-left" type="submit" value="Go!">
</li>
</ul>
</form>
<ul style="list-style-type: none" id="list">
</ul>
<?php
if(isset($_GET['Confirmed'])) {
setupDatabase(isset($_GET['insertData']));
}
print_tail();
?>