-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhome.html.php
223 lines (215 loc) · 10.9 KB
/
home.html.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
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
<?php session_start(); ?>
<!DOCTYPE html>
<html>
<head>
<title>TheatreBase</title>
<?php include $_SERVER['DOCUMENT_ROOT'].'/includes/head.inc.html.php'; ?>
</head>
<body>
<div id="container">
<?php include $_SERVER['DOCUMENT_ROOT'].'/includes/header.inc.html.php'; ?>
<div id="content">
<div id="results">
<div class="
<?php if(isset($_SESSION['successclass'])) { echo $_SESSION['successclass']; unset($_SESSION['successclass']); } ?>">
<?php if(isset($_SESSION['message'])) { echo $_SESSION['message']; unset($_SESSION['message']); } ?>
</div>
<h1>Home</h1>
<?php if(!empty($all_prds)) { ?>
<div id="all_prds"><table class="credits">
<tr><th colspan="3">Productions</th></tr>
<?php $rowclass=0;
foreach($all_prds as $prd): ?>
<tr class="newcredit row<?php echo $rowclass; ?>">
<td class="prdcol1"><?php echo $prd['prd_nm']; ?></td>
<td class="prdcol2"><?php echo $prd['thtr']; ?></td>
<td class="prdcol4"><?php echo $prd['prd_dts']; ?></td>
</tr>
<?php if(!empty($prd['wri_rls'])) {include $_SERVER['DOCUMENT_ROOT'].'/includes/includes_display/prd_wri_dsply.inc.html.php';}
if(!empty($prd['sg_prds'])) { ?>
<tr class="row<?php echo $rowclass; ?>"><td class="prdcol5" colspan="3">Comprises:</td></tr>
<?php foreach($prd['sg_prds'] as $prd): ?>
<tr class="newsubcredit row<?php echo $rowclass; ?>">
<td class="prdcol1"><?php echo $prd['prd_nm']; ?></td>
<td class="prdcol2"><?php echo $prd['thtr']; ?></td>
<td class="prdcol4"><?php echo $prd['prd_dts']; ?></td>
</tr>
<?php if(!empty($prd['wri_rls'])) {include $_SERVER['DOCUMENT_ROOT'].'/includes/includes_display/prd_wri_dsply.inc.html.php';}
endforeach;}
$rowclass=1-$rowclass;
endforeach; ?>
</table></div>
<?php }
if(!empty($prvnxtwk_prds))
{ ?>
<div id="prvnxtwk_prds"><table class="credits">
<tr><th colspan="3">Productions previewing in next week</th></tr>
<?php $rowclass=0;
foreach($prvnxtwk_prds as $prd): ?>
<tr class="newcredit row<?php echo $rowclass; ?>">
<td class="prdcol1"><?php echo $prd['prd_nm']; ?></td>
<td class="prdcol2"><?php echo $prd['thtr']; ?></td>
<td class="prdcol4"><?php echo $prd['prd_dts']; ?></td>
</tr>
<?php if(!empty($prd['wri_rls'])) {include $_SERVER['DOCUMENT_ROOT'].'/includes/includes_display/prd_wri_dsply.inc.html.php';}
if(!empty($prd['sg_prds'])) { ?>
<tr class="row<?php echo $rowclass; ?>"><td class="prdcol5" colspan="3">
<?php if($prd['sg_cnt']>count($prd['sg_prds'])) {echo 'Includes (previewing in the next week):';} else {echo 'Comprises:';} ?></td></tr>
<?php foreach($prd['sg_prds'] as $prd): ?>
<tr class="newsubcredit row<?php echo $rowclass; ?>">
<td class="prdcol1"><?php echo $prd['prd_nm']; ?></td>
<td class="prdcol2"><?php echo $prd['thtr']; ?></td>
<td class="prdcol4"><?php echo $prd['prd_dts']; ?></td>
</tr>
<?php if(!empty($prd['wri_rls'])) {include $_SERVER['DOCUMENT_ROOT'].'/includes/includes_display/prd_wri_dsply.inc.html.php';}
endforeach;}
$rowclass=1-$rowclass;
endforeach; ?>
</table></div>
<?php }
if(!empty($crrntprv_prds))
{ ?>
<div id="crrntprv_prds"><table class="credits">
<tr><th colspan="3">Productions currently previewing</th></tr>
<?php $rowclass=0;
foreach($crrntprv_prds as $prd): ?>
<tr class="newcredit row<?php echo $rowclass; ?>">
<td class="prdcol1"><?php echo $prd['prd_nm']; ?></td>
<td class="prdcol2"><?php echo $prd['thtr']; ?></td>
<td class="prdcol4"><?php echo $prd['prd_dts']; ?></td>
</tr>
<?php if(!empty($prd['wri_rls'])) {include $_SERVER['DOCUMENT_ROOT'].'/includes/includes_display/prd_wri_dsply.inc.html.php';}
if(!empty($prd['sg_prds'])) { ?>
<tr class="row<?php echo $rowclass; ?>"><td class="prdcol5" colspan="3">
<?php if($prd['sg_cnt']>count($prd['sg_prds'])) {echo 'Includes (currently previewing):';} else {echo 'Comprises:';} ?></td></tr>
<?php foreach($prd['sg_prds'] as $prd): ?>
<tr class="newsubcredit row<?php echo $rowclass; ?>">
<td class="prdcol1"><?php echo $prd['prd_nm']; ?></td>
<td class="prdcol2"><?php echo $prd['thtr']; ?></td>
<td class="prdcol4"><?php echo $prd['prd_dts']; ?></td>
</tr>
<?php if(!empty($prd['wri_rls'])) {include $_SERVER['DOCUMENT_ROOT'].'/includes/includes_display/prd_wri_dsply.inc.html.php';}
endforeach;}
$rowclass=1-$rowclass;
endforeach; ?>
</table></div>
<?php }
if(!empty($opnnxtwk_prds))
{ ?>
<div id="opnnxtwk_prds"><table class="credits">
<tr><th colspan="3">Productions opening in next week (refer to production page for opening date)</th></tr>
<?php $rowclass=0;
foreach($opnnxtwk_prds as $prd): ?>
<tr class="newcredit row<?php echo $rowclass; ?>">
<td class="prdcol1"><?php echo $prd['prd_nm']; ?></td>
<td class="prdcol2"><?php echo $prd['thtr']; ?></td>
<td class="prdcol4"><?php echo $prd['prd_dts']; ?></td>
</tr>
<?php if(!empty($prd['wri_rls'])) {include $_SERVER['DOCUMENT_ROOT'].'/includes/includes_display/prd_wri_dsply.inc.html.php';}
if(!empty($prd['sg_prds'])) { ?>
<tr class="row<?php echo $rowclass; ?>"><td class="prdcol5" colspan="3">
<?php if($prd['sg_cnt']>count($prd['sg_prds'])) {echo 'Includes (opening in next week):';} else {echo 'Comprises:';} ?></td></tr>
<?php foreach($prd['sg_prds'] as $prd): ?>
<tr class="newsubcredit row<?php echo $rowclass; ?>">
<td class="prdcol1"><?php echo $prd['prd_nm']; ?></td>
<td class="prdcol2"><?php echo $prd['thtr']; ?></td>
<td class="prdcol4"><?php echo $prd['prd_dts']; ?></td>
</tr>
<?php if(!empty($prd['wri_rls'])) {include $_SERVER['DOCUMENT_ROOT'].'/includes/includes_display/prd_wri_dsply.inc.html.php';}
endforeach; }
$rowclass=1-$rowclass;
endforeach; ?>
</table></div>
<?php }
if(!empty($crrnt_prds))
{ ?>
<div id="crrnt_prds"><table class="credits">
<tr><th colspan="3">Productions currently playing</th></tr>
<?php $rowclass=0;
foreach($crrnt_prds as $prd): ?>
<tr class="newcredit row<?php echo $rowclass; ?>">
<td class="prdcol1"><?php echo $prd['prd_nm']; ?></td>
<td class="prdcol2"><?php echo $prd['thtr']; ?></td>
<td class="prdcol4"><?php echo $prd['prd_dts']; ?></td>
</tr>
<?php if(!empty($prd['wri_rls'])) {include $_SERVER['DOCUMENT_ROOT'].'/includes/includes_display/prd_wri_dsply.inc.html.php';}
if(!empty($prd['sg_prds'])) { ?>
<tr class="row<?php echo $rowclass; ?>"><td class="prdcol5" colspan="3">
<?php if($prd['sg_cnt']>count($prd['sg_prds'])) {echo 'Includes (currently playing):';} else {echo 'Comprises:';} ?></td></tr>
<?php foreach($prd['sg_prds'] as $prd): ?>
<tr class="newsubcredit row<?php echo $rowclass; ?>">
<td class="prdcol1"><?php echo $prd['prd_nm']; ?></td>
<td class="prdcol2"><?php echo $prd['thtr']; ?></td>
<td class="prdcol4"><?php echo $prd['prd_dts']; ?></td>
</tr>
<?php if(!empty($prd['wri_rls'])) {include $_SERVER['DOCUMENT_ROOT'].'/includes/includes_display/prd_wri_dsply.inc.html.php';}
endforeach; }
$rowclass=1-$rowclass;
endforeach; ?>
</table></div>
<?php }
if(!empty($clsnxtwk_prds))
{ ?>
<div id="clsnxtwk_prds"><table class="credits">
<tr><th colspan="3">Productions closing in next week</th></tr>
<?php $rowclass=0;
foreach($clsnxtwk_prds as $prd): ?>
<tr class="newcredit row<?php echo $rowclass; ?>">
<td class="prdcol1"><?php echo $prd['prd_nm']; ?></td>
<td class="prdcol2"><?php echo $prd['thtr']; ?></td>
<td class="prdcol4"><?php echo $prd['prd_dts']; ?></td>
</tr>
<?php if(!empty($prd['wri_rls'])) {include $_SERVER['DOCUMENT_ROOT'].'/includes/includes_display/prd_wri_dsply.inc.html.php';}
if(!empty($prd['sg_prds'])) { ?>
<tr class="row<?php echo $rowclass; ?>"><td class="prdcol5" colspan="3">
<?php if($prd['sg_cnt']>count($prd['sg_prds'])) {echo 'Includes (closing in next week):';} else {echo 'Comprises:';} ?></td></tr>
<?php foreach($prd['sg_prds'] as $prd): ?>
<tr class="newsubcredit row<?php echo $rowclass; ?>">
<td class="prdcol1"><?php echo $prd['prd_nm']; ?></td>
<td class="prdcol2"><?php echo $prd['thtr']; ?></td>
<td class="prdcol4"><?php echo $prd['prd_dts']; ?></td>
</tr>
<?php if(!empty($prd['wri_rls'])) {include $_SERVER['DOCUMENT_ROOT'].'/includes/includes_display/prd_wri_dsply.inc.html.php';}
endforeach; }
$rowclass=1-$rowclass;
endforeach; ?>
</table></div>
<?php }
if(!empty($pts))
{ ?>
<div id="pts"><table class="credits">
<tr><th colspan="3">Playtexts</th></tr>
<?php $rowclass=0;
foreach($pts as $pt): ?>
<tr class="newcredit row<?php echo $rowclass; ?>">
<td class="ptcol1"><?php echo $pt['pt_nm']; ?></td>
<td class="ptcol2"><?php echo $pt['txt_vrsn_nm']; ?></td>
<td class="ptcol3"><?php echo $pt['pt_yr']; ?></td>
</tr>
<?php if(!empty($pt['wri_rls'])) {include $_SERVER['DOCUMENT_ROOT'].'/includes/includes_display/pt_wri_dsply.inc.html.php';}
if(!empty($pt['cntr_rls'])) {include $_SERVER['DOCUMENT_ROOT'].'/includes/includes_display/pt_cntr_dsply.inc.html.php';}
if(!empty($pt['sg_pts'])) { ?>
<tr class="row<?php echo $rowclass; ?>"><td class="ptcol4" colspan="3">Comprises:</td></tr>
<?php foreach($pt['sg_pts'] as $pt): ?>
<tr class="newsubcredit row<?php echo $rowclass; ?>">
<td class="ptcol1"><?php echo $pt['pt_nm']; ?></td>
<td class="ptcol2"><?php echo $pt['txt_vrsn_nm']; ?></td>
<td class="ptcol3"><?php echo $pt['pt_yr']; ?></td>
</tr>
<?php if(!empty($pt['wri_rls'])) {include $_SERVER['DOCUMENT_ROOT'].'/includes/includes_display/pt_wri_dsply.inc.html.php';}
endforeach;}
if(!empty($pt['wrks_sg_pts'])) { ?>
<tr class="row<?php echo $rowclass; ?>">
<td class="ptcol4" colspan="3"><?php echo 'Comprises: '.implode(' / ', $pt['wrks_sg_pts']); ?></td>
</tr>
<?php }
$rowclass=1-$rowclass;
endforeach; ?>
</table></div>
<?php } ?>
</div>
</div>
<?php include $_SERVER['DOCUMENT_ROOT'].'/includes/footer.inc.html.php'; ?>
</div>
</body>
</html>