forked from rpitv/rpits
-
Notifications
You must be signed in to change notification settings - Fork 1
/
im_ui.php
76 lines (67 loc) · 2.44 KB
/
im_ui.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
<link rel="stylesheet" type="text/css" href="im_ui.css" media="screen" />
<script src="js/jquery-1.8.3.js" type="text/javascript"></script>
<script src="js/jquery-ui-1.9.2.custom.js" type="text/javascript"></script>
<script src="js/jquery.scrollintoview.js" type="text/javascript"></script>
<script src="im.js" type="text/javascript"></script>
<script src="im_ui.js" type="text/javascript"></script>
<?php
include("include.php");
$eventId = $_GET["eventId"];
if (!$eventId){
?>
<div id="eventSelector">
<h2>Select an event</h2>
<ul>
<?
$result = dbquery("SELECT * FROM events");
while($row = mysql_fetch_array($result))
{
echo('<li><a href="im_ui.php?eventId=' . $row["id"] . '">'.$row["name"].' (' . $row["team1"] . ' vs. ' . $row["team2"] . ')</a></li>');
}
echo('<li><a href="#" id="editEvents">Edit / Add /Remove Events</a></li>');
?>
</ul>
<div id="eventEditor"></div>
</div>
<?
}
else
{
if ($eventId > 0)
{
$result = dbquery("SELECT * FROM events WHERE events.id = $eventId");
$row = mysql_fetch_array($result);
$eventName = $row["name"];
$team1 = $row["team1"];
$team2 = $row["team2"];
}
else
{
$eventName = "Football"; // EDIT THIS LINE
$team1 = "rpif";
$team2 = "hobartf";
}
?>
<div id="program"><div class="label">Program</div><div class="image"></div></div>
<div id="preview"><div class="label">Preview</div><div class="image"></div></div>
<div id="edit"></div>
<div id="pane">
<ul class="titles active" request="im_title_list.php?event=<?= $eventId ?>"><div id="add-title"></div></ul>
<ul class="titles" request="im_title_list.php?team=<?= $team1 ?>"></ul>
<ul class="titles" request="im_title_list.php?team=<?= $team2 ?>"></ul>
<!--<ul class="titles" request="im_title_list.php?thing=billboards"></ul>-->
</div>
<div id="tabstrip">
<!--<div class="tab active" request="im_title_list.php">All Titles</div>-->
<div class="tab active" request="im_title_list.php?event=<?= $eventId ?>" tid="0"><?= $eventName ?> Titles</div>
<div class="tab" request="im_title_list.php?team=<?= $team1 ?>" tid="1"><?= $team1 ?> Players</div>
<div class="tab" request="im_title_list.php?team=<?= $team2 ?>" tid="2"><?= $team2 ?> Players</div>
<!--<div class="tab" request="im_title_list.php?thing=billboards" tid="3">Billboards</div>-->
</div>
<div id="input"><input type="text" /></div>
<div id="actions"></div>
<div id="log"></div>
<div id="loadtarget"></div>
<?php
}
?>