blob: 6ecd09716daeba38f906bf18b4e70083d48ff489 (
plain) (
blame)
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
|
<?php
/**
* Bayonet Content Management System - RUDI
* Copyright (C) 2008-2011 Joseph Hunkeler & Evan O'Connell
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
?>
<?php define('BLOCK_RIGHT_DISABLE','block_right_disable'); ?>
<?php $medals_path = $this->images_path . "/medals/"; ?>
<html>
<head>
<title>Awards and Medals</title>
<style type="text/css">
/*th.header {
width:175px;
background:#333;
}
td.rudi {
text-align: center;
vertical-align: middle;
} */
</style>
</head>
<body>
<?php $classes = $this->getAwardClasses(); ?>
<table class="rudi" align="center" style="width: 100%;">
<?php
$i = 0;
$cl = 0;
while($cl != count($classes))
{
echo "<tr>";
echo "<th colspan=\"3\">{$classes[$cl]->name}s</th>";
echo "</tr>";
echo '<th scope="col">Image</th>';
echo '<th scope="col" width=\"100px\">Award</th>';
echo '<th scope="col">Description</th>';
foreach($this->awards as $award)
{
if($classes[$cl]->class_id == $award->class_id)
{
echo "
<tr>
<td><img src=\"modules/rudi/images/medals/{$award->image}\" alt=\"{$award->image}\"/></td>
<td>{$award->name} </td>
<td style=\"text-align:left;\">{$award->description} </td>
</tr>";
}
}
++$cl;
}
?>
</table>
<!-- grr wtf
<table align="center" style="width: 100%;">
<tr>
<th scope="col" class="header" style="width:1px;">Image</th>
<th scope="col" class="header" style="width:1px;">Award</th>
<th scope="col" class="header">Description</th>
</tr>
<?php //foreach($this->awards as $award): ?>
<tr>
<td align='center' class="rudi"><img src="/rudi/images/medals/<?php //echo $award->image; ?>"></img> </td>
<td align='center' class="rudi"><?php //echo $award->name; ?> </td>
<td align='left'><?php //echo wordwrap($award->description,80,"<br/>"); ?> </td>
</tr>
<?php //endforeach; ?>
</table>
-->
</body>
</html>
|