Name
|
Rank
|
Position
|
Species
|
Gender
|
Status
|
");
$client=new xmlrpc_client("/xmlrpc/zion.php", "www.usszion.com", 80);
$v = dispatch($client, 'zion.getdepts', array(new xmlrpcval($ship_num,"int")));
$count=0;
while(list($b) = each($v)) {
$deptcolor = $v[$count]['color'];
$deptno = $v[$count]['reference'];
$dept = $v[$count]['department'];
$client=new xmlrpc_client("/xmlrpc/zion.php", "www.usszion.com", 80);
$resp = dispatch($client, 'zion.getcrewlist', array(new xmlrpcval($deptno,"int"), new xmlrpcval($ship_num,"int")));
if ($resp) {
print("$dept | ");
$count2=0;
while(list($c) = each($resp)) {
$pips=0;
$service_type = $resp[$count2]['servicetype'];
$rank = $resp[$count2]['rank'];
$name = $resp[$count2]['name'];
$position = $resp[$count2]['position'];
$species = $resp[$count2]['species'];
$gender = $resp[$count2]['gender'];
$status = $resp[$count2]['status'];
$branch = $resp[$count2]['branch'];
$idx = $resp[$count2]['id'];
$lrank = $resp[$count2]['lrank'];
$color = $deptcolor;
if ($service_type == 'C') {$pips = "pips/$color/$rank.jpg";} else {$pips = "pips/$color/enlisted/$rank.jpg"; }
if ($branch == "W") { $pips = "pips/$color/warrant/$rank.jpg"; }
if ($deptno == 29) { $pips = "pips/purple.jpg"; }
if ($deptno == 41) { $pips = "pips/black.jpg"; }
if ($deptno == 42) { $pips = "pips/orange.jpg"; }
print("");
if ($name == "Apply Now") {
print("$name"); }
else { print("$name"); }
print("
| ");
if ($branch == "Civilian") { print("Civilian | ");} else {
print("
| "); }
print("
$position
|
$species
|
$gender
|
$status
|
");
$count2++;
}
}
$count++;
}
print("
|