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
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
|
<?php
//define('BLOCK_RIGHT_DISABLE','block_right_disable');
$member =& $this->data[$_GET['profile']];
$uniform_image = $member->first_name[0].str_replace(array("'", "\""), "", $member->last_name).".png";
decho($member);
define('BLOCK_RIGHT_DISABLE', true);
?>
<style type="text/css">
</style>
<table class="rudi" width="100%" border="1" align="center" cellpadding="1" cellspacing="0">
<tr>
<th class="header">Viewing Profile of: <?php echo $member->rank_long . " " . $member->first_name . " " . $member->last_name; ?></th>
</tr>
<tr>
<td><center><img src="modules/rudi/images/uniform/<?php echo $uniform_image; ?>" /> </center></td>
</tr>
<tr>
<td><table width="100%" border="0" cellpadding="1">
<tr>
<td width="20%">
<table width="100%" border="0" cellpadding="5" align="center" style="border: 0px;">
<tr>
<td><center><?php echo $member->primary_mos; ?></center></td>
</tr>
<tr>
<td><center><img src="modules/rudi/images/ranks/large/<?php echo $member->rank_image; ?>" /> </center></td>
</tr>
<tr>
<td><center><img src="modules/rudi/images/flags/<?php echo $member->country_image; ?>" /> </center></td>
</tr>
</table>
</td>
<td width="100%">
<table width="100%" border="0" cellpadding="5">
<tr>
<th class="header" scope="row">Location</th>
<td class="info"><?php echo $this->evalData($member->location); ?> </td>
<th class="header">Superior</th>
<td class="info"><?php
if(!is_null($member->superior_next->leader_id))
echo "<a href=\"?load=rudi&profile={$member->superior_next->leader_id}\">";
echo $this->evalData($member->superior_next->name);
echo "</a> ";
?>
</td>
</tr>
<tr>
<th class="header" scope="row">Status</th>
<td class="info"><?php echo $this->evalData($member->status); ?> </td>
<th class="header">Position</th>
<td class="info"><?php echo $this->evalData($member->position); ?> </td>
</tr>
<tr>
<th class="header" scope="row">Unit</th>
<td class="info"><?php echo $this->evalData($member->unit_name); ?> </td>
<th class="header">Weapon</th>
<td class="info"><?php echo $this->evalData($member->weapon_name); ?> </td>
</tr>
<tr>
<th class="header" scope="row">Platoon</th>
<td class="info"><?php echo $this->evalData($member->platoon_name); ?> </td>
<th class="header" scope="row">Enlisted</th>
<td class="info"><?php echo $this->evalData($member->enlist_date); ?> </td>
</tr>
<tr>
<th class="header" scope="row">Squad</th>
<td class="info"><?php echo $this->evalData($member->squad_name); ?> </td>
<th class="header">Time In Service</th>
<?php if($member->discharge_date): ?>
<td class="info"><?php echo $this->getDiffTime($member->enlist_date_st, $member->discharge_date); ?> </td>
<?php else: ?>
<td class="info"><?php echo $this->getDiffTime($member->enlist_date_st); ?></td>
<?php endif; ?>
</tr>
<tr>
<th class="header">Team</th>
<td class="info"><?php echo $this->evalData($member->team_name); ?> </td>
<th class="header">Time In Grade</th>
<?php if($member->discharge_date): ?>
<td class="info"><?php echo $this->getDiffTime($member->promo_date_st, $member->discharge_date); ?> </td>
<?php else: ?>
<td class="info"><?php echo $this->getDiffTime($member->promo_date_st); ?></td>
<?php endif; ?>
</tr>
<tr>
<?php if($member->discharge_date): ?>
<td class="info" colspan="2"></td>
<th class="header" scope="row">Separated</th>
<td class="info"><?php echo $this->evalData($member->discharge_date); ?> </td>
<?php endif; ?>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td><table width="100%" border="0" cellpadding="1" id="thin">
<tr>
<th class="header" scope="col">Biography</th>
</tr>
<tr >
<td style="text-align:left;"><?php echo $member->bio; ?> </td>
</tr>
</table>
<table width="100%" border="0" cellpadding="1" id="thin">
<tr>
<th class="header" scope="col" colspan="3">Service Record</th>
</tr>
<tr>
<?php if($this->evalData($member->service_record)):?>
<td>No service record available </td>
<?php else:?>
<?php foreach($member->service_record as $record): ?>
<tr>
<th class="header" width="25%"><?php echo date('M j, Y', strtotime($record->date_added)); ?> </th>
<td><?php echo $record->record_note; ?> </td>
</tr>
<?php endforeach; ?>
<?php endif; ?>
</tr>
</table>
<table width="100%" border="0" cellpadding="1" id="thin">
<tr>
<th class="header" scope="col" colspan="4">Award Record</th>
</tr>
<tr>
<?php if($this->evalData($member->award_record)):?>
<td>No award record available </td>
<?php else:?>
<?php foreach($member->award_record as $record): ?>
<tr>
<th class="header" width="25%"><?php echo date('M j, Y', strtotime($record->date_added)); ?> </th>
<td ><?php echo $this->evalData($record->award_name); ?> </td>
<td style="vertical-align:middle;"><center><img src="modules/rudi/images/medals/<?php echo $record->image; ?>"/></center></td>
<td width="40%"><?php echo $record->record_note; ?> </td>
</tr>
<?php endforeach; ?>
<?php endif; ?>
</tr>
</table>
<table width="100%" border="0" cellpadding="1" id="thin">
<tr>
<th class="header" scope="col" colspan="3">Combat Record</th>
</tr>
<tr>
<?php if($this->evalData($member->combat_record)):?>
<td>No combat record available </td>
<?php else:?>
<?php foreach($member->combat_record as $record): ?>
<tr>
<th class="header" width="25%"><?php echo date('M j, Y', strtotime($record->date_added)); ?> </th>
<td><a href="<?php echo $record->website; ?>"><?php echo $record->name; ?></a> </td>
<td><?php echo $record->status; ?> </td>
</tr>
<?php endforeach; ?>
<?php endif; ?>
</tr>
</table></td>
</tr>
</table>
|