This repository was archived by the owner on Aug 29, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontactlist.php
More file actions
77 lines (72 loc) · 2.24 KB
/
contactlist.php
File metadata and controls
77 lines (72 loc) · 2.24 KB
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
<?php
include_once('globals.php');
include_once('checklogin.php');
function peopleSort($array)
{
$newArray = array();
foreach($array as $person)
$newArray[$person->getCommaName()] = $person;
ksort($newArray);
return $newArray;
}
//------Start XHTML Output--------------------------------------//
require('doctype.php');
require('appearance.php');
echo "<link rel=\"stylesheet\" href=\"skins/$skin/default.css\" type=\"text/css\" title=\"$skin\" />\n";
foreach($altskins as $altskin)
echo "<link rel=\"alternate stylesheet\" href=\"skins/$altskin/default.css\" type=\"text/css\" title=\"$altskin\" />\n";
?>
<title><?php echo $appname; ?> - Contact List</title>
<script type="text/javascript" src="ChangeLocation.js"></script>
</head>
<body>
<?php
/**** begin html head *****/
require('htmlhead.php'); //starts main container
/****end html head content ****/
?>
<table cellpadding="2">
<thead>
<tr><td colspan="5">Team Roster</td></tr>
<tr><td>Name</td><td>Email</td><td>Phone #</td><td>Alt. Phone #</td><td>AIM</td></tr>
</thead>
<?php
$members = $currentGroup->getAllGroupMembers();
$members = peopleSort($members);
foreach($members as $person)
{
$profile = $person->getProfile();
printTR();
echo "<td><a href=\"viewprofile.php?uID={$person->getID()}\">".$person->getCommaName()."</a></td>";
echo "<td>".$person->getEmail()."</td>";
echo "<td>".htmlspecialchars($profile['sPhone'])."</td>";
echo "<td>".htmlspecialchars($profile['sPhone2'])."</td>";
echo "<td>".htmlspecialchars($profile['sIM'])."</td>";
echo "</tr>\n";
}
?>
</table>
<br /><br />
<?php
$subgroups = $currentGroup->getSubGroups();
if(count($subgroups) > 0)
{
echo "<table><tr>";
foreach($subgroups as $subgroup)
{
$members = $subgroup->getSubGroupMembers();
echo "<td style=\"vertical-align: top; border: thin solid black;\"><table><tr><th align=\"left\">".htmlspecialchars($subgroup->getName())."</th></tr>\n";
foreach ($members as $member)
echo "<tr><td>{$member->getFullName()}</td></tr>\n";
echo "</table></td>";
}
echo "</tr></table>";
}
?>
<p><a href="contactinfo.php">Update your contact information</a></p>
<?php
//include rest of html layout file
require('htmlcontentfoot.php');// ends main container
?>
</body>
</html>