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 pathfoot.php
109 lines (103 loc) · 8.56 KB
/
foot.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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
<hr>
<footer>
<!-- Link to trigger modal -->
<p class="pull-right"><a href="#modalHelp" data-toggle="modal"><i class="icon-question-sign"></i> Need Help</a>? Williams College, <?php echo date('Y'); ?>
</p>
<div id="modalHelp" class="modal hide" data-backdrop="static" tabindex="-1" role="dialog" aria-labelledby="modalHelpLabel" aria-hidden="true">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">x</button>
<?php
if(basename($_SERVER['PHP_SELF']) == 'index.php') {
if($IS_AUTHENTICATED){
echo '<h3 id="modalHelpLabel">Home Page FAQ</h3></div><div class="modal-body">';
echo '<ol>';
echo '<li><p>Your home page shows the list of groups that you have access to.</p></li>';
echo '<li><p>You can find your account information by clicking on your username in the top right-hand corner.</p></li>';
echo '<li><p>Click on a group name for more information.</p></li>';
if($USER->flag_is_system_admin){
echo '<li><p>Add a group by clicking on the Add a new equipment group button.</p></li>';
echo '<li><p>Example Reference Link: <ul><li>Valid: http://www.google.com. </li><li>Invalid: www.google.com</li></ul></p></li>';
}
echo '<li><p>If you are a manager, indicated by "(manager)," you will be able to edit certain aspects of that group.</p></li></ol>';
}else{
echo '<h3 id="modalHelpLabel">Help FAQ</h3></div><div class="modal-body">';
echo '<ol>';
echo '<li><p>To sign in, please use your Williams username and password.</p></li>';
echo '<li><p>Users must initially log in to the Equipment Reservation system one time, in order for this system to be "aware" of them and send them notifications, etc.</p></li></ol>';
}
}else if(basename($_SERVER['PHP_SELF']) == "equipment_group.php"){
echo '<h3 id="modalHelpLabel">Equipment Group FAQ</h3></div><div class="modal-body">';
echo '<ol>';
echo '<li><p>The Equipment Group Page contains general information about the group, including items and reservations.</p></li>';
//only displays if the user is the group manager
if($is_group_manager){
echo '<li><p>As a manager of this group, you can edit the equipment group by clicking edit equipment group.</p></li>';
echo '<li><p>Manager function include editing group information, adding a reference link, changing reservation rules, deleting, editing, or inputting subgroups and items, and deleting existing reservations</p></li>';
echo '<li><p>Example Reference Link: <ul><li>Valid: http://www.google.com. </li><li>Invalid: www.google.com</li></ul></p></li>';
echo '<li><p>For reservation restrictions, either choose from the default times or input your own in the box. All restrictions must be in minute form.</p></li>';
}
echo '<li><p>Reference links provide more information about a group, subgroup, or item.</p></li>';
echo '<li><p>Reservation restrictions tell a user the minimum and maximum time that an item can be reserved for, on what minutes of the hour the reservation can start on, and the intervals for which it can be reserved.</p></li>';
echo '<li><p>To reserve an item, click "Reserve Equipment." Choose at least one item to reserve, specify your date, time, duration, and any repeats, and then press submit.</p></li>';
echo '<li><p>Schedule conflicts or failure to follow the reservation restrictions will result in a reservation error.</p></li>';
echo '<li><p>Example Reservation: <ul><li>Restrictions: Can be reserved for 30 minutes min, 1 hour max, starting on the 0,20,40 hour for 5 minutes intervals.</li><li>Acceptable: Starts at 10:20 AM for a duration of 45 minutes.</li><li>Unacceptable: Starts at 10:15 AM for a duration of 45 minutes</li></ul></p></li>';
echo '<li><p>Existing reservations for the items can be seen in a list, monthly, and daily view.</p></li>';
echo '<li><p>For more information about your reservation, click on the date of your reservation while in list view.</p></li>';
echo '<li><p>Rest mouse over a reserved cell in the daily calendar view to view which user reserved the equipment.</p></li>';
echo '<li><p>To see the reservations in a daily view, click on a day in the calendar.</p></li>';
echo '<li><p>If your reservation does not show up immediately, please refresh the page.</p></li>';
echo '</ol>';
}else if(basename($_SERVER['PHP_SELF']) == 'schedule.php') {
echo '<h3 id="modalHelpLabel">Schedule of Reservations FAQ</h3></div><div class="modal-body">';
echo '<ol>';
echo '<li><p>The Schedule of Reservations Page gives a detailed look at your individual item reservation</p></li>';
echo '<li><p>If you are a manager of the equipment group you have reserved under, you can change the reservation to be a regular or a management schedule. This will show up on the Equipment Group Page as "MANAGEMENT."</p></li>';
echo '<li><p>Click edit to delete a part or all of your reservation.</p></li></ol>';
}else if($USER->flag_is_system_admin && basename($_SERVER['PHP_SELF']) == 'admin_manage_users.php') {
echo '<h3 id="modalHelpLabel">Manage Users FAQ</h3></div><div class="modal-body">';
echo '<ol>';
echo '<li><p>This page is only available to administrators.</p></li>';
echo '<li><p>The Manage Users Page contains a list of all users in the system.</p></li>';
echo '<li><p>You can edit user information by clicking on a username.</p></li></ol>';
}else if($USER->flag_is_system_admin && basename($_SERVER['PHP_SELF']) == 'admin_manage_groups_courses.php') {
echo '<h3 id="modalHelpLabel">Manage Groups/Courses FAQ</h3></div><div class="modal-body">';
echo '<ol>';
echo '<li><p>This page is only available to administrators.</p></li>';
echo '<li><p>The Manage Groups/Courses Page contains a list of all groups/courses in the system, as well as all the members of each group.</p></li>';
echo '<li><p>Click on a group/course to see which equipment groups it has access to.</p></li></ol>';
}else if(basename($_SERVER['PHP_SELF']) == 'inst_group.php'){
echo '<h3 id="modalHelpLabel">Institutional Group FAQ</h3></div><div class="modal-body">';
echo '<ol>';
echo '<li><p>The Institutional Group Page shows the equipment groups that you have access to as a member of this group.</p></li>';
echo '<li><p>Click on an equipment group for more information.</p></li></ol>';
}else if(basename($_SERVER['PHP_SELF']) == 'account_management.php'){
echo '<h3 id="modalHelpLabel">Account Management FAQ</h3></div><div class="modal-body">';
echo '<ol>';
echo '<li><p>This page holds a detailed look at your account.</p></li>';
echo '<li><p>You can find groups/courses that you are a member of as well as all reservations that you have made.</p></li>';
echo '<li><p>Click on an equipment group for more information.</p></li>';
echo '<li><p>Turn on reminders for equipment groups that you have access to by checking the appropriate box.</p></li>';
echo '<li><p>If you are a manager of an equipment group, you can also turn on/off alerts for any reservations regarding that group.</p></li></ol>';
}
?>
<p> </p>
<p><i class="icon-question-sign"></i> More questions?</p>
<?php
if (isset($managersList)) {
# show list of managers for this group
echo "<p>Please contact: " . $managersList . "</p>";
}
else {
# show default support address
echo "<p>Please contact: <a href=\"mailto:itech@" . INSTITUTION_DOMAIN . "?subject=EqReserve_Help_Request\"><i class=\"icon-envelope\"></i> [email protected]</a></p>";
}
?>
</div>
<div class="modal-footer">
<button class="btn" data-dismiss="modal" aria-hidden="true">Close</button>
</div>
</div>
</footer>
</div> <!-- /container -->
</body>
</html>