This repository has been archived by the owner on Oct 16, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmanage_groups_users.php
94 lines (80 loc) · 2.99 KB
/
manage_groups_users.php
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
<?php
$pageTitle = 'Manage Groups and Users';
require_once('head_pre_output.php');
require_once('head_output.php');
?>
<form action="" id="" class="form-horizontal" name="" method="">
<legend>Manage Groups and Users</legend>
<div class="control-group">
<label class="control-label" for="accountName">Name</label>
<div class="controls">
<input type="text" disabled="disabled" id="accountName" value="<?php echo $USER->fname . ' ' . $USER->lname; ?>" />
</div>
</div>
<div class="control-group">
<label class="control-label" for="accountUsername">Username</label>
<div class="controls">
<input type="text" disabled="disabled" id="accountUsername" value="<?php echo $USER->username; ?>" />
</div>
</div>
<div class="control-group">
<label class="control-label" for="accountEmail">Email</label>
<div class="controls">
<input type="text" disabled="disabled" id="accountEmail" class="input-xlarge" value="<?php echo $USER->email; ?>" />
</div>
</div>
<div class="control-group">
<label class="control-label" for="accountAdvisor">Advisor</label>
<div class="controls">
<input type="text" disabled="disabled" id="accountAdvisor" value="<?php echo $USER->advisor; ?>" />
</div>
</div>
<div class="control-group">
<label class="control-label" for="accountNotesPublic">Notes (public)</label>
<div class="controls">
<input type="text" disabled="disabled" id="accountNotesPublic" class="input-xxlarge" value="
<?php echo $USER->notes; ?>" />
</div>
</div>
<div class="control-group">
<label class="control-label" for="institutionInfo">Institution Info</label>
<div class="controls">
<ul class="unstyled" id="institutionInfo">
<?php
foreach ($USER->inst_groups as $ig) {
//echo "<input type=\"text\" disabled=\"disabled\" value=\"" . $ig->name . "\" /><br/>\n";
echo "<li>" . $ig->name . "</li>\n";
}
?>
</ul>
</div>
</div>
<div class="control-group">
<label class="control-label" for="equipmentGroups">Equipment Groups</label>
<div class="controls">
<ul class="unstyled" id="equipmentGroups">
<?php
foreach ($USER->eq_groups as $eg) {
// echo "<input type=\"text\" disabled=\"disabled\" value=\"" . $eg->name . "\" /><br/>\n";
echo "<li>" . $eg->name . "</li>\n";
}
?>
</ul>
</div>
</div>
<div class="control-group">
<label class="control-label" for="reservations">Reservations</label>
<div class="controls">
</div>
</div>
<div class="control-group">
<label class="control-label" for="btnSubmitEditAccount"></label>
<div class="controls">
<button type="submit" id="btnSubmitEditAccount" class="btn btn-success">Edit Account</button>
<button type="reset" id="btnCancelEditAccount" class="btn btn-link btn-cancel">Cancel</button>
</div>
</div>
</form>
<?php
require_once('foot.php');
?>