File: //home/awaldron/_domains/_pjtourny.alanwaldron.com/application/views/tourney.php
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Welcome to CodeIgniter</title>
<style type="text/css">
::selection{ background-color: #E13300; color: white; }
::moz-selection{ background-color: #E13300; color: white; }
::webkit-selection{ background-color: #E13300; color: white; }
body {
background-color: #fff;
margin: 40px;
font: 13px/20px normal Helvetica, Arial, sans-serif;
color: #4F5155;
}
a {
color: #003399;
background-color: transparent;
font-weight: normal;
}
h1 {
color: #444;
background-color: transparent;
border-bottom: 1px solid #D0D0D0;
font-size: 19px;
font-weight: normal;
margin: 0 0 14px 0;
padding: 14px 15px 10px 15px;
}
#body{
margin: 0 15px 0 15px;
}
.column {
float:left;
width:250px;
overflow: auto;
}
.rd1 {
padding-top:1em;
border-bottom: solid 1px #888888;
width:249px;
cursor: pointer;
height: 39px;
}
.rd1:hover {
background-color: #fcf8e1
}
.rd1:nth-child(even) {
border-right: solid 1px #888888;
margin-bottom: 1em;
}
.rd2 {
padding-top:1em;
border-bottom: solid 1px #888888;
width:249px;
cursor: pointer;
}
.rd2:hover {
background-color: #fcf8e1
}
.rd2:nth-child(even) {
border-right: solid 1px #888888;
margin-bottom: 1em;
}
</style>
</head>
<body>
<div id="container">
<?php //pp($bracket); ?>
<?php
$bracket_id = 1;
$ctr = 0;
$next = array();
echo "<h1>Bracket ".$bracket_id." / 16</h1>";
echo '<div class="column">'."\n";
foreach ($bracket as $mid => $match) {
$ctr++;
if ( isset($match['bracket']) && $match['bracket'] == $bracket_id ) {
echo '<div class="rd1" id="'.$mid.'-1">['.$match['t1']['seed'].'] <b>'.$match['t1']['title'].'</b><br/>'.$match['t1']['type'].' : '.($match['t1']['type']=='Cover' ? $match['t1']['artist'] : $match['t1']['album']).'</div>'."\n";
echo '<div class="rd1" id="'.$mid.'-2">['.$match['t2']['seed'].'] <b>'.$match['t2']['title'].'</b><br/>'.$match['t2']['type'].' : '.($match['t2']['type']=='Cover' ? $match['t2']['artist'] : $match['t2']['album']).'</div>'."\n";
if ($ctr%2 == 0) $next[] = $match['nextMatch'];
}
}
echo '</div><div class="column">'."\n";
foreach( $next as $mid ) {
echo '<div class="rd2" id="'.$mid.'-1"></div>'."\n";
echo '<div class="rd2" id="'.$mid.'-2"></div>'."\n";
}
echo '</div>'."\n";
?>
</div>
</body>
</html>