forked from Negley97/ezleague
/
get_challenge.php
95 lines (44 loc) · 1.63 KB
/
get_challenge.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
<?php session_start();
include('lib/db.class.php');
include('lib/ezleague.class.php');
$ez = new ezLeaguePub();
if(isset($_POST['id'])) {
$id = $_POST['id'];
$challenge = $ez->getChallenge($id);
?>
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">X</button>
<h4 class="modal-title">Viewing Challenge #<?php print $id; ?></h4>
</div>
<div class="modal-body">
<div class="row">
<div class="col-lg-12">
<div id="challengeResponse">
<div class="col-lg-6">
<h3>Challenge Status</h3>
<?php print $challenge['match_status']; ?>
<h3>Challenge Matchup</h3>
<span class="text-primary bolder"><?php print $challenge['challenger'] . "</span> <em>vs</em> <span class=\"text-info bolder\">" . $challenge['challengee']; ?></span>
<h3>Challenge Made</h3>
<?php print $challenge['match_created']; ?>
</div>
<div class="col-lg-6">
<h3>Challenge Match Date</h3>
<?php print $challenge['match_date']; ?>
<h3>Challenge Match Time</h3>
<?php print $challenge['match_time']; ?>
</div>
</div>
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
<?php
}
?>