Skip to content
Snippets Groups Projects
Commit 0c9273ce authored by Kyle Powers's avatar Kyle Powers
Browse files

Updating results page, don't show winner when voting ends.

parent 03d587f1
No related branches found
No related tags found
No related merge requests found
<?php
if (time() > mktime(12, 0, 0, 10, 22, 2010)){ //don't display results until after october 22nd 2010, noon
if (file_exists(dirname(__FILE__).'/../../../config.inc.php')) {
require_once dirname(__FILE__).'/../../../config.inc.php';
} else {
......@@ -69,26 +68,21 @@ if (file_exists(dirname(__FILE__).'/../../../config.inc.php')) {
<div style="float:left; width:620px; margin-right:20px;">
<ul class="wdn_tabs" style="width:620px;margin-bottom:16px;">
<li><a href="#voting">Contest Results</a></li>
</ul>
<div class="wdn_tabs_content">
<div id="voting">
<h3 class="sec_header">Winning Entry</h3>
<p style="font-size:1.2em" class="alert">Voting is now closed.<br />Check back soon on the Physics and Astronomy homepage for results!</p>
<p>Over the past few weeks, the University of Nebraska-Lincoln Department of Physics and Astronomy invited proposals from students, faculty, staff, alumni and friends on how to add some physics-related drama to the ribbon-cutting dedication of Jorgensen Hall at 4 p.m. on Friday, Oct. 29. UNL Chancellor Harvey Perlman and special guest speaker Alan Heeger, a UNL alum and Nobel laureate, will be present for the ceremony.</p>
<p>
Interested applicants were asked to submit a proposal describing a way to ceremonially open the building by splitting apart a single ribbon, preferably using some aspect of physics, to make the celebration more interesting than is possible using only ribbon and scissors. The creator of the winning proposal will receive <a href="http://marketplace.unl.edu/computershop/electronics/ipads/16gb-ipad-wifi.html" title="iPad at the UNL Computer Shop">a 16GB iPad WiFi</a> or dollar value equivalent in merchandise from the <a href="http://marketplace.unl.edu/computershop/">UNL Computer and Phone Shop</a>.
</p>
<h3 class="sec_header">Entries</h3>
<?php
$sql=mysql_query("SELECT * FROM entries ORDER BY votes DESC LIMIT 1");
$sql=mysql_query("SELECT * FROM entries ORDER BY RAND() LIMIT 3");
while($row=mysql_fetch_array($sql)){
$id=$row['id'];
$name=$row['name'];
$proposal=$row['proposal'];
$votes=$row['votes'];
$videourl=$row['videourl'];
?>
<p class="alert">With a total of <?php echo $votes; ?> votes, the winner of the Jorgensen Hall Extreme Ribbon-Cutting Contest is <b><?php echo $name; ?></b>!</p>
<p>
Join us for the ribbon-cutting dedication of Jorgensen Hall at <b>4 p.m. on Friday, Oct. 29</b>. UNL Chancellor Harvey Perlman and special guest speaker Alan Heeger, a UNL alum and Nobel laureate, will be present for the ceremony.
</p>
<div class="entry">
<div>
<p>
......@@ -125,10 +119,9 @@ if (file_exists(dirname(__FILE__).'/../../../config.inc.php')) {
</div>
</div>
</div>
<div style="width:300px; float:right;">
<a href="index.php#submit" title="submit a proposal for the ribbon cutting"><img src="images/iPad_Jorgensen.jpg" alt="Jorgensen ribbon cutting" /></a><br />
<img src="images/iPad_Jorgensen.jpg" alt="Jorgensen ribbon cutting" /><br />
<a href="http://marketplace.unl.edu/computershop/" title="go to the Computer Shop on UNL Marketplace"><img src="images/compshop.jpg" alt="UNL Computer shop" /></a>
</div>
......@@ -163,4 +156,4 @@ if (file_exists(dirname(__FILE__).'/../../../config.inc.php')) {
</div>
</body>
</html>
<?php mysql_close($con);}
\ No newline at end of file
<?php mysql_close($con);
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment