This repository has been archived by the owner on Nov 9, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathawardscandidates.php
275 lines (254 loc) · 7.91 KB
/
awardscandidates.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
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
<?
require("include/top.php");
require("include/awardscategories.inc.php");
print("<br />");
//if ($SESSION_LEVEL=='administrator'):
// || $SESSION_LEVEL=='moderator' || $SESSION_LEVEL=='gloperator' || $SESSION_LEVEL=='user' || $SESSION_LEVEL=='pr0nstahr'):
//die("all done for now, see you next year!");
$year = $sceneorgyear;
if (!$year)
die("all done for now, see you next year!");
if ($_SESSION["SCENEID_ID"])
{
if ($action=='alter')
{
$query = "SELECT * FROM awardscand_".$year." WHERE user='".$_SESSION["SCENEID_ID"]."'";
$result = mysql_query($query);
$uservote=mysql_fetch_assoc($result);
if (!$uservote)
{
$query = "insert into awardscand_".$year." set user='".$_SESSION["SCENEID_ID"]."'";
mysql_query($query);
}
$sqlc = array();
$prod = (int)$prod;
if ($_POST["cat"]) {
foreach ($_POST["cat"] as $v)
$sqlc[(int)$v] = (int)$prod;
}
foreach($awardscat[$year] as $x=>$name) {
if (isset($_POST["cat".$x]))
$sqlc[$x] = (int)$_POST["cat".$x];
}
foreach ($sqlc as $k=>$v) {
$v = (int)$v;
if ($v >= 0)
{
$r = mysql_fetch_object(mysql_query(sprintf("select date from prods where id=%d",$v)));
if (substr($r->date,0,4)!=$year) continue;
$query = "update awardscand_".$year." set cat".$k."='".(int)$v."' where user='".$_SESSION["SCENEID_ID"]."'";
mysql_query($query);
}
}
}
$query = "SELECT * FROM awardscand_".$year." WHERE user='".$_SESSION["SCENEID_ID"]."'";
$result = mysql_query($query);
$uservote=mysql_fetch_assoc($result);
foreach($awardscat[$year] as $x=>$name) {
if ($uservote["cat".$x]) {
$query = "SELECT name FROM prods WHERE id='".$uservote["cat".$x]."'";
$result = mysql_query($query);
if ($result)
$uservote["name".$x]=mysql_result($result,0);
}
}
/*if ($prod): ?>
<form action="">
linked prod id:<input type="text" name="which" value="<?=$prod?>" /><br />
</form><br />
<? endif; */
?>
<form action="awardscandidates.php" name="awardscandidates" method="post">
<input type="hidden" name="action" value="alter">
<table bgcolor="#000000" cellspacing="1" cellpadding="0"><tr><td>
<table bgcolor="#000000" cellspacing="1" cellpadding="2">
<tr>
<th colspan="3" bgcolor="#224488">scene.org awards candidate selection</th>
<?
foreach($awardscat[$year] as $x=>$name) {
?>
<tr>
<td bgcolor="#557799" ><?=$name?></td>
<td bgcolor="#557799"><? print("<a href=\"prod.php?which=".$uservote["cat".$x]."\">".$uservote["name".$x]."</a>"); ?></td>
<td bgcolor="#557799"><input type="text" name="cat<?=$x?>" value="<? print($uservote["cat".$x]); ?>">(<a href="javascript:popupProdLastYearSelector('awardscandidates','cat<?=$x?>');">select</a>)</td>
</tr>
<?
}
?>
<tr>
<td bgcolor="#6688AA" align="right" colspan="3">
<input type="image" src="gfx/submit.gif">
</td>
</tr>
</table>
</td></tr></table>
</form>
<br />
<table bgcolor="#000000" cellspacing="1" cellpadding="0" width='600'><tr><td>
<table bgcolor="#000000" cellspacing="1" cellpadding="2">
<tr>
<th bgcolor="#224488" align="center" colspan="2">
<big>
remember: the purpose of this selection to help the jury not to overlook prods;<br/>
don't pick demos/intros that are obvious choices, pick something you think they might to forget!
</big>
<!--div style='background:#800;color:white;margin:10px;padding:10px'>suggestions will close on wednesday, january the 5th! vote now!</div-->
</td>
</tr>
<tr>
<th colspan="2" bgcolor="#224488">category descriptions</th>
<tr>
<td bgcolor="#557799" >best demo</td>
<td bgcolor="#557799">
most outstanding realtime demo from <?=$year?>. a work that is solid on all fronts.
</td>
</tr>
<tr>
<td bgcolor="#557799" >best 64k</td>
<td bgcolor="#557799">
most outstanding 64k intro from <?=$year?>.
</td>
</tr>
<tr>
<td bgcolor="#557799" >best 4k</td>
<td bgcolor="#557799">
most outstanding 4k intro from <?=$year?>.
</td>
</tr>
<!--
<tr>
<td bgcolor="#557799" >best animation</td>
<td bgcolor="#557799">
the most outstanding animated (non-realtime) work or wild demo from <?=$year?>.
</td>
</tr>
-->
<tr>
<td bgcolor="#557799" >best oldschool</td>
<td bgcolor="#557799">
most outstanding demo on an oldschool platform from <?=$year?>. the platform
of the demo is limited to non-modern computers and alternative platforms
that can be considered "low-end".
</td>
</tr>
<tr>
<td bgcolor="#557799" >best effects</td>
<td bgcolor="#557799">
the most innovative use of new effect or effects, pushing the
boundaries of existing effects or making something amazing within the
context of realtime graphics. best effects don't have to technically
advanced, even if they often are, but the central theme is an
effective or novel visual expression.
</td>
</tr>
<tr>
<td bgcolor="#557799" >best graphics</td>
<td bgcolor="#557799">
the most innovative use of graphics in a demo. this can be amazing 3d
modelling, texturing, 2d / painted graphics, you name it.
</td>
</tr>
<tr>
<td bgcolor="#557799" >best soundtrack</td>
<td bgcolor="#557799">
the most outstanding soundtrack in a demo. a solid work both when it
comes to craftsmanship (mixing, quality of sound) and originality.
</td>
</tr>
<tr>
<td bgcolor="#557799" >best direction</td>
<td bgcolor="#557799">
the most outstanding direction in a demo. innovative, fresh or simply
impressive execution in combining the different parts into a single
functional piece. this can be a well told story or an effect demo with
excellent flow - there's different ways of doing superior direction.
</td>
</tr>
<tr>
<td bgcolor="#557799" >most original</td>
<td bgcolor="#557799">
most original work (in the context of demoscene). new ideas,
innovative use of technology or new approach in direction or overall
style. can include experimental works or doing the unexpected.
</td>
</tr>
<tr>
<td bgcolor="#557799" >breakthrough</td>
<td bgcolor="#557799">
a group (or artist) that raised their personal bar significantly
during <?=$year?>. promising talents that might be tomorrows best demo makers.
this doesn't need to be necessarily a newcomer group, rather than
someone receiving deserved attention after rising above mediocrity.
</td>
</tr>
<tr>
<td bgcolor="#557799" >best technical achievement</td>
<td bgcolor="#557799">
most technically impressive work. this could be cramming lots of stuff
into a really small space, doing crazy things on crazy platforms, or
having complex and impressive rendering techniques in a demo.
</td>
</tr>
<tr>
<td bgcolor="#6688AA" align="center" colspan="2">
Your nominations on these productions will not aggregate with other users nominations.<br />
This list will only be used as a shortlist for the chosen scene.org awards jury members to consider as final nominees.<br/>
</td>
</tr>
</table>
</td></tr></table>
<br />
<?
}
else
{
?>
<style type="text/css">
.view {
background: black;
border-collapse: separate;
border-spacing: 1px;
border: 1px solid black;
margin: 10px;
width: 500px;
}
.view td {
margin: 0px;
padding: 2px;
text-align: center;
}
.view img {
vertical-align: text-top;
margin-right: 2px;
}
.view th {
font-size: 120%;
padding: 5px;
text-align: center;
}
#container {
width: 750px;
margin: 0px auto;
}
</style>
<div id='container'>
<table class='view'>
<tr>
<th>you need to be logged in for this</th>
</tr>
<tr>
<td class='bg1'>
<form action="login.php" method="post">
<input type="text" name="login" value="SceneID" size="15" maxlength="16" onfocus="this.value=''"><br />
<input type="password" name="password" value="password" size="15" onfocus="javascript:if(this.value=='password') this.value='';"><br />
<input type="checkbox" name="permanent">login for 1 year<br />
<a href="account.php">register here</a><br />
<input type="image" src="gfx/submit.gif">
</form>
</td>
</tr>
</table>
</div>
<?
}
require("include/bottom.php"); ?>