-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrosters_v2.php
More file actions
155 lines (131 loc) · 5.4 KB
/
rosters_v2.php
File metadata and controls
155 lines (131 loc) · 5.4 KB
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
<?php
define('DIR', $_SERVER['DOCUMENT_ROOT'] . DIRECTORY_SEPARATOR);
define('DB_CLS', DIR . 'admin/class/db.cls.php');
define('COMMON', DIR . 'bhlcommon.php');
require DB_CLS;
require COMMON;
$db = new DB_Connect(MYSQL_INTRANET, 1);
if (!$db) die("Can't connect to database.");
$action = NULL;
extract($_REQUEST);
$d = array();
#$sql = "SELECT `id`,team_name,mini_logo from bhleague.teams ";
$sql = "select a.id, b.team_name, b.mini_logo
from
(
select team_id as id from bhleague.players where team_id <> 0 and 1 = '{$gameday}' group by team_id union
select team_id2 as id from bhleague.players where team_id2 <> 0 and 5 = '{$gameday}' group by team_id2 union
select team_id3 as id from bhleague.players where team_id3 <> 0 and 6 = '{$gameday}' group by team_id3
) a
inner join bhleague.teams b
on a.id = b.id;";
$result = $db->query($sql);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>BHLeague</title>
<link href='http://fonts.googleapis.com/css?family=Arvo:700,400italic,700italic,400' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="css_v2/bebas/stylesheet.css" type="text/css" charset="utf-8" />
<link rel="stylesheet" href="css_v2/roboto/stylesheet.css" type="text/css" charset="utf-8" />
<link rel="stylesheet" href="css_v2/reset.css" type="text/css" media="screen" title="style" charset="utf-8" />
<link rel="stylesheet" href="css_v2/style.css" type="text/css" media="screen" title="style" charset="utf-8" />
<link rel="stylesheet" type="text/css" href="extjs/resources/css/ext-all.css" />
<!--[if IE 6]>
<link rel="stylesheet" href="css_v2/ie6.css" type="text/css" media="screen" title="style" charset="utf-8" />
<![endif]-->
<!--[if IE 7]>
<link rel="stylesheet" href="css_v2/ie7.css" type="text/css" media="screen" title="style" charset="utf-8" />
<![endif]-->
<!--[if IE 8]>
<link rel="stylesheet" href="css_v2/ie8.css" type="text/css" media="screen" title="style" charset="utf-8" />
<![endif]-->
<script type="text/javascript" charset="utf-8" src="js_v2/jq.js"></script>
<script type="text/javascript" charset="utf-8" src="js_v2/placeholder.js"></script>
<script type="text/javascript" charset="utf-8" src="js_v2/main.js"></script>
<!-- ** CSS ** -->
<!-- base library
-->
<!-- ExtJS library: base/adapter -->
<script type="text/javascript" src="extjs/adapter/ext/ext-base.js"></script>
<!-- ExtJS library: all widgets -->
<script type="text/javascript" src="extjs/ext-all.js"></script>
<script type="text/javascript" src="rosters.js"></script>
<script type="text/javascript" src="bhlcommon.js"></script>
</head>
<body>
<div class="container">
<div id="header">
<h1 class="logo"><a href="#"><img src="images/logo_v2.png" /></a></h1>
<div class="wrap">
<div class="menu">
<img src="images/banner-left.png" class="b_left" />
<img src="images/banner-right.png" class="b_right" />
<div id="game_league_id" style="float: left;left:20px;top:15px;position:absolute">
<input type="text" id="local-gamedays" size="20"/>
</div>
<div class="menu-link">
<a href="index.php" target="_self">HOME</a>
<a href="standings_v2.html" target="_self">STANDINGS</a>
<a href="schedule_v2.html" target="_self">SCHEDULES</a>
<a href="league_leaders_v2.html" target="_self">LEAGUE LEADERS</a>
<a href="rosters_v2.php" target="_self">ROSTERS</a>
<a href="photos.php" target="_self">PHOTOS</a>
<a href="signup.php">SIGN UP</a>
<a href="about.php">ABOUT</a>
</div>
</div>
</div>
</div>
<div id="content" class="dark-c">
<div class="padding_clear"></div>
<div class="wrap1 bg-white">
<div class="wrap">
<div class="col">
<div class="table1">
<h2 class="title2">Team Rosters</h2>
<script type="text/javascript">
var teams = new Array();
var teams_container = new Array();
</script>
<?php
while($row = $result->fetch_array()){
@$teamcontainer ="grid-rosters".@$row['id'];
?>
<script type="text/javascript" >
teams.push(<?php echo @$row['id']; ?>);
teams_container.push("<?php echo @$teamcontainer ; ?>");
</script>
<h3 style="background-color:#4D4D4D;"><font color="#FF9933"><?php echo @$row['team_name']; ?></font> <img src="<?php echo @$row['mini_logo']; ?>" align="absmiddle" /></h3>
<!-- <h4><span>2012</span> Night League</h4>-->
<div class="sub-box">
<div id="<?php echo @$teamcontainer; ?>" ></div>
</div>
<?php } ?>
</div>
</div>
</div>
</div>
</div>
<div class="padding_clear"></div>
<?php include('footer.php'); ?>
<!--<div id="footer">
<div class="f_left">
© COPYRIGHT 2012 BH LEAGUE.com
</div>
<div class="f_right">
<a href="#">HOME</a>
<a href="#">STANDINGS</a>
<a href="#">SCHEDULES</a>
<a href="#">LEAGUE LEADERS</a>
<a href="#">ROSTERS</a>
<a href="#">PAYMENTS</a>
</div>
<div class="clear"></div>
</div>-->
</div>
</div>
</body>
</html>