-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex_spielplatzapp.php
93 lines (77 loc) · 2.9 KB
/
index_spielplatzapp.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<?php
//include("config.php");
function startinstall() {
echo "<form name='eingabe' method='post' action='installation/install.php'>";
echo "<table>";
echo "<tr><td><h2>Installation</h2></td></tr>";
echo "<tr>";
echo "<td>Select language: </td>";
echo "<td>";
echo "<select size='1' name='sprache'>";
echo "<option style='background-color:#c0c0c0;' Value='english' selected>english</option>";
echo "<option style='background-color:#c0c0c0;' Value='german' selected>german</option>";
echo "</select>";
echo "</td>";
echo "</tr>";
echo "</table>";
echo "<input type='submit' name='button' value=' OK '>";
echo "</form>";
}
function startmenu() {
include("config.php");
// include("dbtools.php");
// db_connect();
echo "<legend>Spielplatzapp</legend>";
echo "<table>";
echo "<tr><td valign='top'>";
echo "<ul class='nav nav-pills nav-stacked'>";
echo " <li><a href='classes/welcome.php' target='Fensterlein'>Home</a></li>";
echo " <li><a href='classes/showtab.php?menu=playground' target='Fensterlein'>Spielplätze</a></li>";
if ($gdbtyp=="mysql") {
echo " <li><a href='classes/showtab.php?menu=spielgeraet' target='Fensterlein'>Spielgeräte</a></li>";
}
echo " <li><a href='classes/spielplatzmap.php' target='Fensterlein'>Spielplatzmap</a></li>";
if ($gdbtyp=="mysql") {
echo " <li><a href='classes/getposition.php' target='Fensterlein'>Hole Position</a></li>";
}
echo "</ul>";
echo "</td>";
echo "<td>";
echo "<iframe src='classes/welcome.php' name='Fensterlein' width='".$winwidth."' height='".$winheight."' marginheight='0' marginwidth='0' frameborder='0' align='right'>";
echo " <p>Ihr Browser kann leider keine eingebetteten Frames anzeigen</p>";
echo "</iframe>";
echo "</td></tr>";
echo "</table>";
// echo "<a class='btn btn-default' href='classes/showtab.php?menu=playground' target='Fensterlein'>Spielplätze</a><br>";
// echo "<a class='btn btn-default' href='classes/showtab.php?menu=spielgeraet' target='Fensterlein'>Spielgeräte</a><br>";
// echo "<a class='btn btn-default' href='classes/spielplatzmap.php' target='Fensterlein'>Spielplatzmap </a>";
}
function showhead() {
echo " <!DOCTYPE html>";
echo " <html>";
echo " <head>";
echo " <title>Spielplatzapp</title>";
echo " <!-- Bootstrap -->";
echo " <link href='includes/bootstrap/css/bootstrap.min.css' rel='stylesheet' media='screen'>";
echo " </head>";
echo " <body>";
echo " <script src='includes/bootstrap/js/jquery-latest.js'></script>";
echo " <script src='includes/bootstrap/js/bootstrap.min.js'></script>";
}
function showfoot() {
echo " </body>";
echo " </html>";
}
function startseite() {
// include("config.php");
$dbFile="config.php";
if (filesize($dbFile) == 0 ) {
startinstall();
} else {
showhead();
startmenu();
showfoot();
}
}
startseite();
?>