diff options
Diffstat (limited to 'modules/rudi/views/view.profile.php')
-rw-r--r-- | modules/rudi/views/view.profile.php | 175 |
1 files changed, 175 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..6135ea4 --- /dev/null +++ b/modules/rudi/views/view.profile.php @@ -0,0 +1,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>
\ No newline at end of file |