This repository has been archived by the owner on Jan 8, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinfopopup.php
executable file
·153 lines (139 loc) · 5.75 KB
/
infopopup.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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
<?php
ini_set("include_path","./:/homepages/25/d358692369/htdocs/tsv-sulzfeld/modules/content/classes:/homepages/25/d358692369/htdocs/tsv-sulzfeld/modules/image/classes:/homepages/25/d358692369/htdocs/tsv-sulzfeld/modules/common/classes:/homepages/25/d358692369/htdocs/tsv-sulzfeld/modules/auth/classes:/homepages/25/d358692369/htdocs/tsv-sulzfeld/modules/leaguemanager/classes:/homepages/25/d358692369/htdocs/tsv-sulzfeld/modules/date/classes:/homepages/25/d358692369/htdocs/tsv-sulzfeld/modules/news/classes");
include("classError.php");
include("classDBmysql.php");
include("classDate.php");
include("classMatchInfo.php");
include("classMatchReport.php");
include("classMatchPostpone.php");
include("classXMLShow.php");
$error = new Error();
$db = new DBmysql($error);
if(isset($matchInfoID))
{
$matchinfo = new MatchInfo($db);
$matchinfo->loadFromID($matchInfoID);
$head = $matchinfo->getHead();
$text = $matchinfo->getText();
}
else if(isset($dateID))
{
$date = new Date($db);
$date->load($dateID);
$head = $date->getHead();
$text = $date->getText();
}
else if(isset($matchReportID))
{
$matchreport = new MatchReport($db);
$matchreport->loadFromID($matchReportID);
$head = $matchreport->getHead();
$text = $matchreport->getText();
}
else if(isset($matchPostponeID))
{
$matchpostpone = new MatchPostpone($db);
$matchpostpone->loadFromID($matchPostponeID);
$head = "";
$text = "";
if($matchpostpone->getReason() != "")
$text .= $matchpostpone->getReason()."</p><p>";
if($matchpostpone->getNewdate() != "") {
if($matchpostpone->getNewisodate()." ".$matchpostpone->getNewtime() > date("Y-m-d H:i"))
$text .= "Neuer Termin: ".$matchpostpone->getNewdate()." ".$matchpostpone->getNewtime();
else
$text .= "Nachholspiel vom ".$matchpostpone->getOlddate()." ".$matchpostpone->getOldtime();
}
if($text == "")
$text = "keine weitere Informationen";
}
else if(isset($matchPostponeID2))
{
$matchpostpone = new MatchPostpone($db);
$matchpostpone->loadFromID($matchPostponeID2);
$head = "";
$text = "";
if($matchpostpone->getOlddate() != "")
$text .= "Nachholspiel vom ".$matchpostpone->getOlddate()." ".$matchpostpone->getOldtime();
}
if(isset($othermatchInfoID))
{
$query = "select * from moduleOthermatchInfo where ID=$othermatchInfoID";
$db->executeQuery($query);
if($db->nextRow())
{
$head = $db->getValue("head");
$text = $db->getValue("text");;
}
}
if(isset($othermatchReportID))
{
$query = "select * from moduleOthermatchReport where ID=$othermatchReportID";
$db->executeQuery($query);
if($db->nextRow())
{
$head = $db->getValue("head");
$text = $db->getValue("text");;
}
}
else if(isset($matchCanceled))
{
$matchpostpone = new MatchPostpone($db);
$matchpostpone->loadFromID($matchCanceled);
$head = "";
$text = "";
if($matchpostpone->getReason() != "")
$text .= $matchpostpone->getReason()."</p><p>";
if($matchpostpone->getNewdate() != "") {
if($matchpostpone->getNewisodate()." ".$matchpostpone->getNewtime() > date("Y-m-d H:i"))
$text .= "Neuer Termin: ".$matchpostpone->getNewdate()." ".$matchpostpone->getNewtime();
}
if($text == "")
$text = "keine weitere Informationen";
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
<html>
<head>
<title>Info</title>
<link rel="STYLESHEET" type="text/css" href="/css/pub.css"></link>
</head>
<body bgcolor="#D0E0E0" text="#000080" link="#000080" vlink="#000080" alink="#000080">
<table border="0" cellspacing="0" cellpadding="0" width="100%" bgcolor="#000080">
<tr>
<td>
<table border="0" cellspacing="2" cellpadding="0" width="100%">
<tr>
<td>
<table border="0" cellspacing="0" cellpadding="5" width="100%" bgcolor="#D0E0E0">
<tr>
<td>
<?php if(!empty($head)) { ?><h1 align="center"><?php echo $head ?></h1><?php } ?>
<p align="justify">
<?php
if(substr($text, 0, 5) == "<?xml") {
$xml = new XMLShow($error, $db);
$xml->parse($text);
}
else {
echo nl2br($text);
}
?>
</p>
</td>
</tr>
<tr>
<td align="center"> </td>
</tr>
<tr>
<td align="center"><form><input type="button" value="schließen" onclick="self.close()"></input></form></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>