-
Notifications
You must be signed in to change notification settings - Fork 0
/
gigs.php
executable file
·200 lines (164 loc) · 4.63 KB
/
gigs.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
<style type="text/css">
<?php
include("connect.php");
if($gigid){
$sql = $stream->do_query("select * from anto_gigs where id=$gigid","array");
$r=0;
$t=0;
$p=0;
for($i=0;$i<count($sql);$i++){
$oldmonth = $newmonth;
$tmp = $sql[$i];
$id = $tmp[0];
$name = $tmp[1];
$date = date("D j",$tmp[2]);
$rday = date("j",$tmp[2]);
$rdate = date("n",$tmp[2]);
$location = $tmp[3];
$venue = $tmp[4];
$timer = date("H:i",$tmp[5]);
$price = $tmp[6];
$notes = $tmp[7];
$image = $tmp[8];
$kother = $tmp[9];
$moreinfo = $tmp[10];
$newmonth = date("F",$tmp[2]);
$today = time();
$year = date("Y",$tmp[2]);
$thismonth = date("F",time());
$yearcheck = date("Y",time());
$yeardb = date("Y",$tmp[2]);
print "
<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"2\">
<tr>
<td width=50%> $name </td>
<td width=50%> </td>
</tr>
<tr>
<td width=50% colspan=2> $date $newmonth $year </td>
</tr>
<tr>
<td colspan=2 width=50%> $venue, $location </td>
</tr>
<tr>
<td width=50%> € $price </td>
<td width=50%></td>
</tr>
<tr>
<td colspan=2>$notes<br>Starting @ $timer hrs.</td>
</tr>
</table><br><a onclick=\"loadurl('pages.php?pagename=tour','output');\"><b>Back to gig listing</b></a>
";
}
}
else {
if(!$mintage1){
$mintage1 = "11px";
}
$css = stripslashes(rawurldecode($stream->do_query("select css from anto_css where id='$mintage'","one")));
$css = eregi_replace("11px",$mintage1,$css);
print $css;
?>
</style>
<table width=565 cellpadding="0" cellspacing="0" border="0"><tr><td>
<?php
$today = time();
$sql = $stream->do_query("select * from anto_gigs where dated>$today order by dated asc","array");
$r=0;
$t=0;
$p=0;
for($i=0;$i<count($sql);$i++){
$oldmonth = $newmonth;
$tmp = $sql[$i];
$id = $tmp[0];
$name = $tmp[1];
$date = date("D j",$tmp[2]);
$rday = date("j",$tmp[2]);
$rdate = date("n",$tmp[2]);
$location = $tmp[3];
$venue = $tmp[4];
$timer = date("H:i",$tmp[5]);
$price = $tmp[6];
$notes = $tmp[7];
$image = $tmp[8];
$kother = $tmp[9];
$moreinfo = $tmp[10];
$newmonth = date("F",$tmp[2]);
$today = time();
$year = date("Y",$tmp[2]);
$thismonth = date("F",time());
$fuck = date("M",$tmp[2]);
$yearcheck = date("Y",time());
$yeardb = date("Y",$tmp[2]);
$ndate = date("d.m.y",$tmp[2]);
$ddd = date("D",$tmp[2]);
if(strlen($kother)>1){
$other = $kother;
}
else {
$other = "More info";
}
if($t%2>0){
$ttt = "";
}
else {
$ttt = "";
}
if($p==0){
print " <h5>Upcoming Gigs </h5><hr size=\"1\">\n";
$p++;
}
print "<table width=\"100%\" cellspacing=\"2\" cellpadding=\"3\">";
print "<tr>";
print "<td width='20%' valign=middle align=left>$ddd<br> $ndate</td>";
print "<td width='20%' valign=middle align=left> $name</td>";
print "<td width='20%' valign=middle align=left> $location</td>";
print "<td width='20%' valign=middle align=left> $venue </td>";
print "<td width='20%' valign=middle><center><a href=javascript:loadurl('pages.php?pagename=tour&gigid=$id','output');><b><font color=blue>$other</b></font></a></center></td>";
print "</tr></table><hr size=\"1\">";
$t++;
}
$today = time();
$sql = $stream->do_query("select * from anto_gigs where dated<$today order by dated asc","array");
$r=0;
$t=0;
$p=0;
for($i=0;$i<count($sql);$i++){
$oldmonth = $newmonth;
$tmp = $sql[$i];
$id = $tmp[0];
$name = $tmp[1];
$date = date("D j",$tmp[2]);
$rday = date("j",$tmp[2]);
$rdate = date("n",$tmp[2]);
$location = $tmp[3];
$venue = $tmp[4];
$timer = date("H:i",$tmp[5]);
$price = $tmp[6];
$notes = $tmp[7];
$image = $tmp[8];
$kother = $tmp[9];
$moreinfo = $tmp[10];
$newmonth = date("F",$tmp[2]);
$today = time();
$year = date("Y",$tmp[2]);
$thismonth = date("F",time());
$yearcheck = date("Y",time());
$yeardb = date("Y",$tmp[2]);
$ndate = date("d.m.y",$tmp[2]);
if($p==0){
print " <br><br><h5>Previous Gigs</h5> <hr size=\"1\">\n<br>";
$p++;
}
print "<table width=\"100%\" cellspacing=\"2\" cellpadding=\"3\">";
print "<tr>";
print "<td width='20%' valign=top align=left> $ndate</td>";
print "<td width='20%' valign=top align=left> $name</td>";
print "<td width='20%' valign=top align=left> $location</td>";
print "<td width='20%' valign=top align=left> $venue </td>";
print "<td width='20%' valign=top><center><a href=index.php?pagename=tour&gigid=$id><b></a></center></td>";
print "</tr></table>\n\n";
}
print "</table>";
}
?>