diff options
Diffstat (limited to 'modules/rudi/views/view.profile.php')
-rw-r--r-- | modules/rudi/views/view.profile.php | 188 |
1 files changed, 188 insertions, 0 deletions
diff --git a/modules/rudi/views/view.profile.php b/modules/rudi/views/view.profile.php new file mode 100644 index 0000000..877fab0 --- /dev/null +++ b/modules/rudi/views/view.profile.php @@ -0,0 +1,188 @@ +<?php +define('BLOCK_RIGHT_DISABLE','block_right_disable'); +$member =& $this->data[$_GET['profile']]; +$uniform_image = strtolower($member->first_name[0] . $member->last_name . ".png"); +$uniform_image[0] = strtoupper($uniform_image[0]); +$uniform_image[1] = strtoupper($uniform_image[1]); +?> + +<html> +<head> +<title>Profile page of, <?php echo $member->last_name ?></title> +<style type="text/css"> + +p {color: white; } +body {background-color: black; } +th.header { + width:100px; + background:#333; +} + +td { + vertical-align: middle; +} + +#thin { + border:1px outset #333; +} +</style> +</head> +<body> +<table width="100%" border="1" align="center" cellpadding="1" cellspacing="0"> + <tr> + <th>Viewing Profile of: <?php echo $member->rank_long . " " . $member->first_name . " " . $member->last_name; ?></th> + </tr> + <tr> + <td><center><img src="<?php echo $this->images_path ?>/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><img src="<?php echo $this->images_path ?>/ranks/large/<?php echo $member->rank_image ?>" /> </center></td> + </tr> + <tr> + <td><center><img src="<?php echo $this->images_path ?>/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 ><?php echo $this->evalData($member->location) ?> </td> + <th class="header">Superior</th> + <td><?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><?php echo $this->evalData($member->status) ?> </td> + <th class="header">Position</th> + <td><?php echo $this->evalData($member->position) ?> </td> + </tr> + <tr> + <th class="header" scope="row">Unit</th> + <td><?php echo $this->evalData($member->unit_name) ?> </td> + <th class="header">Weapon</th> + <td><?php echo $this->evalData($member->weapon_name) ?> </td> + </tr> + <tr> + <th class="header" scope="row">Platoon</th> + <td><?php echo $this->evalData($member->platoon_name) ?> </td> + <th class="header" scope="row">Enlisted</th> + <td><?php echo $this->evalData($member->enlist_date) ?> </td> + </tr> + <tr> + <th class="header" scope="row">Squad</th> + <td><?php echo $this->evalData($member->squad_name) ?> </td> + <th class="header">Time In Service</th> + <?php if($member->discharge_date): ?> + <td><?php echo $this->getDiffTime($member->enlist_date_st, $member->discharge_date)?> </td> + <?php else: ?> + <td><?php echo $this->getDiffTime($member->enlist_date_st)?></td> + <?php endif; ?> + + </tr> + <tr> + <th class="header">Team</th> + <td><?php echo $this->evalData($member->team_name) ?> </td> + <th class="header">Time In Grade</th> + <td><?php echo $this->getDiffTime($member->promo_date_st) ?> </td> + </tr> + <tr> + <?php if($member->discharge_date): ?> + <td colspan="2"></td> + <th class="header" scope="row">Separated</th> + <td><?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(is_null($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 $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(is_null($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 $record->date_added?> </th> + <td ><?php echo $this->evalData($record->award_name); ?> </td> + <td style="vertical-align:middle;"><center><img src="<?php echo $this->images_path; ?>/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(is_null($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 $record->date ?> </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> +</body> +</html>
\ No newline at end of file |