From edcc2f1bd2de5602390fc7a5d313428255afd0b6 Mon Sep 17 00:00:00 2001 From: jhunkeler Date: Sun, 3 Jan 2010 22:22:00 +0000 Subject: - view.roster.php replaced view.current.php - Roster generation code completed by OC (yay!). - Class RUDI_Information added to grab unit information. - Views have been added from Unit/Platoon information, however, OC decided not to use the right table so everything needs to be moved around (not so yay!) git-svn-id: http://svn.3rd-infantry-division.org/testing/branches/Bayonet CMS v2@442 c5b2fb0a-d05d-0410-98c8-828840a80ff6 --- modules/rudi/views/view.current.php | 134 ------------------------------------ 1 file changed, 134 deletions(-) delete mode 100644 modules/rudi/views/view.current.php (limited to 'modules/rudi/views/view.current.php') diff --git a/modules/rudi/views/view.current.php b/modules/rudi/views/view.current.php deleted file mode 100644 index b0e1316..0000000 --- a/modules/rudi/views/view.current.php +++ /dev/null @@ -1,134 +0,0 @@ - - - - - Roster Current - - - - - - - "; - - echo " - Rank - Name - Weapon - Status - "; - - $p = 1; - $s = 1; - $u = 1; - $members = $this->data; - while($u != count($members)) - { - while($p != $stats['platoon']) - { - echo " - a platoon - "; - - while($s != $stats['squad']) - { - if($members[$u]->squad_id) - echo " - {$members[$u]->rank_short} - {$members[$u]->name} - {$members[$u]->weapon_name} - {$members[$u]->status} - "; - - echo " - a squad - "; - - ++$s; - } - - ++$p; - } - - ++$u; - } - echo ""; - */ - ?> - - - - - - getMembersOfPlatoon($platoon_count) > 0): ?> - - - - - - - - - - - - - - - data as $member): ?> - platoon_id == $platoon_count && $member->status_id < 2): ?> - - - - - - - - - - - - - - - - - - -
RankNameRoleWeaponStatus
images_path}/ranks/small/{$member->rank_short}.png"; ?>" alt="rank_short; ?>" />last_name . ', ' . $member->first_name; ?> - Roles) . ' roles attached to: ' . $member->last_name); - for($role = 0; $role < count($member->Roles); ++$role) - { - if($member->Roles[$role]->role_name) - { - decho($role . " = (" . $member->Roles[$role]->role_name . ")"); - echo $member->Roles[$role]->role_name; - echo ' '; - } - else - { - echo "Soldier"; - } - } - ?> - weapon_manufacturer . ' ' . $member->weapon_model; ?>status; ?>
- - -- cgit