Newer
Older
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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
<?php $this->headLink()->appendStylesheet($this->baseUrl() . '/css/courses/view.css'); ?>
<?php $this->headScript()->appendFile($this->baseUrl() . '/javascript/courses/view.js'); ?>
<div id="viewRequest">
<h2><?php echo $this->request->getType(); ?></h2>
<?php
$course = $this->course;
if ($this->parentCourse) {
$parentCourse = $this->parentCourse;
/****************************CHANGE COURSE*************************************/
?>
<div class="current">
<h2>Current</h2>
<div class="bulletinEntry">
<?php echo $this->bulletinEntryDiff($parentCourse, $course, $this->request); ?>
</div>
</div>
<div class="proposed">
<h2>Proposed</h2>
<div class="bulletinEntry">
<?php echo $this->bulletinEntryDiff($parentCourse, $course, $this->request); ?>
</div>
</div>
<div class="clear"></div>
<?php
} else if ($this->request->getType() == 'RemoveCourse') {
/*****************************REMOVE COURSE************************************/
?>
<div class="removed">
<?php echo $this->bulletinEntry($course, $this->request); ?>
</div>
<?php } else {
/*****************************NEW COURSE***************************************/
echo $this->bulletinEntry($course, $this->request);
}
/*****************************ACE COURSE***************************************/
if (in_array($this->request->getType(), array('NewCourseWithACE', 'AddACEToCourse', 'AddACEAndChangeCourse', 'RemoveACEFromCourse', 'RemoveACEAndChangeCourse'))) {
?>
<div>
<h2>Ace Certification</h2>
<h3>Outcomes</h3>
<?php foreach ($course->getAceOutcomes() as $aceOutcome) { ?>
<div>
<?php echo $aceOutcome['slo']; ?>:
<?php echo $aceOutcome['description']; ?>
</div>
<ol>
<li><?php echo $aceOutcome['justification']; ?></li>
<li><?php echo $aceOutcome['studentWork']; ?></li>
<li><?php echo $aceOutcome['assesmentPlan']; ?></li>
</ol>
<?php } ?>
<h3>Reinforcements</h3>
<dl>
<?php foreach ($course->getAceReinforcements() as $aceReinforcement) { ?>
<dt><?php echo $aceReinforcement['longName']; ?></dt>
<dd><?php echo $aceReinforcement['description']; ?></dd>
<?php } ?>
</dl>
</div>
<?php
}
/*****************************COMMON STUFF*************************************/
?>
<?php if (!in_array($this->request->getType(), array('AddACEToCourse', 'RemoveACEFromCourse'))) { ?>
<div id="justification">
<h2>Justification:</h2>
<?php echo $this->request->getJustification(); ?>
</div>
<?php } ?>
<?php
$syllabus = $this->request->getFile(Requests_RequestModel::FILE_TYPE_SYLLABUS);
if ($syllabus) {
?>
<div id="syllabus">
<h2>Syllabus:</h2>
<?php if ($syllabus['file']) { ?>
<a href="<?php echo $this->baseUrl(); ?>/requests/view/get-file/fileId/<?php echo $syllabus['file']; ?>">
<?php } else { ?>
<a href="<?php echo $this->baseUrl(); ?>/requests/view/get-file/fileId/session/type/<?php echo Requests_RequestModel::FILE_TYPE_SYLLABUS; ?>">
<?php } ?>
<?php echo $syllabus['title']; ?>
</a>
</div>
<?php } ?>
<?php
$crosslistMemo = $this->request->getFile(Requests_RequestModel::FILE_TYPE_CROSSLIST_MEMO);
if ($crosslistMemo) {
?>
<div id="crosslistMemo">
<h2>Crosslist Memo</h2>
<?php if ($crosslistMemo['file']) { ?>
<a href="<?php echo $this->baseUrl(); ?>/requests/view/get-file/fileId/<?php echo $crosslistMemo['file']; ?>">
<?php } else { ?>
<a href="<?php echo $this->baseUrl(); ?>/requests/view/get-file/fileId/session/type/<?php echo Requests_RequestModel::FILE_TYPE_CROSSLIST_MEMO; ?>">
<?php } ?>
<?php echo $crosslistMemo['title']; ?>
</a>
</div>
<?php } ?>
<?php
$ISNarrative = $this->request->getFile(Requests_RequestModel::FILE_TYPE_IS_NARRATIVE);
if ($ISNarrative) {
?>
<div id="isNarrative">
<h2>IS Narrative</h2>
<?php if ($ISNarrative['file']) { ?>
<a href="<?php echo $this->baseUrl(); ?>/requests/view/get-file/fileId/<?php echo $ISNarrative['file']; ?>">
<?php } else { ?>
<a href="<?php echo $this->baseUrl(); ?>/requests/view/get-file/fileId/session/type/<?php echo Requests_RequestModel::FILE_TYPE_IS_NARRATIVE; ?>">
<?php } ?>
<?php echo $ISNarrative['title']; ?>
</a>
</div>
<?php } ?>
<?php
$additionalDocumentation = $this->request->getFile(Requests_RequestModel::FILE_TYPE_OTHER);
if ($additionalDocumentation) {
?>
<div id="additionalDocumentation">
<h2>Additional Documentation</h2>
<?php if ($additionalDocumentation['file']) { ?>
<a href="<?php echo $this->baseUrl(); ?>/requests/view/get-file/fileId/<?php echo $additionalDocumentation['file']; ?>">
<?php } else { ?>
<a href="<?php echo $this->baseUrl(); ?>/requests/view/get-file/fileId/session/type/<?php echo Requests_RequestModel::FILE_TYPE_OTHER; ?>">
<?php } ?>
<?php echo $additionalDocumentation['title']; ?>
</a>
</div>
<?php } ?>
<?php if ($this->preview) { ?>
<form method="post" action="<?php echo $this->baseUrl(); ?>/courses/edit/submit.post">
<?php if ($this->initialRequest) { ?>
<fieldset>
<label>
Effective no sooner than:
<?php
echo $this->formSelect(
'effectiveSemester',
$this->course->effectiveSemester,
array('id' => 'effectiveSemester'),
$this->terms
);
?>
</label>
</fieldset>
<?php if ($this->isRequestValid) { ?>
<input id="submit_request" type="submit" name="submitType" value="Submit" />
<?php } else { ?>
<div id="requestNotReadyMessage">
This request may not be submitted yet, required information is missing.
</div>
<input id="submit_request" type="submit" name="submitType" value="Return to Edit" />
<?php } ?>
<input id="save_request" type="submit" name="submitType" value="Save for Later Submission" />
<input id="cancel_request" type="submit" name="submitType" value="Cancel Request" />
<?php } else { ?>
<?php if ($this->isRequestValid) { ?>
<input id="submit_request" type="submit" name="submitType" value="Save Changes" />
<?php } else { ?>
<div id="requestNotReadyMessage">
This request may not be saved yet, required information is missing.
</div>
<?php } ?>
<input id="submit_request" type="submit" name="submitType" value="Return to Edit" />
<input id="cancel_request" type="submit" name="submitType" value="Abandon Changes" />
<?php } ?>
</form>
<?php } else { ?>
<?php
if (!in_array($this->selectedCommentTab, array('commentsTab', 'editorCommentsTab', 'privateCommentsTab'))) {
$this->selectedCommentTab = 'commentsTab';
}
?>
<div id="comments">
<div class="tabBar">
<a href="#" id="commentsTab"<?php if ($this->selectedCommentTab == 'commentsTab') { ?> class="selected"<?php } ?>>Comments</a>
<a href="#" id="editorCommentsTab"<?php if ($this->selectedCommentTab == 'editorCommentsTab') { ?> class="selected"<?php } ?>>Editor Comments</a>
<a href="#" id="privateCommentsTab"<?php if ($this->selectedCommentTab == 'privateCommentsTab') { ?> class="selected"<?php } ?>>Private Comments</a>
</div>
<div class="tabContent<?php if ($this->selectedCommentTab == 'commentsTab') { ?> selected<?php } ?>" id="commentsContent">
<table class="comments">
<tr>
<th class="who">Who</th>
<th class="when">When</th>
<th class="what">What</th>
</tr>
<?php $row = 0; foreach ($this->comments as $key => $comment) {
if ($comment->getVisibility() == 'global') { ?>
<tr class="<?php echo ($row++ % 2) ? 'evenRow' : 'oddRow'; ?>">
<td class="who"><?php echo $comment->getUser()->getUsername(); ?></td>
<td class="when"><?php echo $comment->getTime(); ?></td>
<td class="what"><?php echo $comment->getText(); ?></td>
</tr>
<?php }} ?>
</table>
<form method="post" action="<?php echo $this->baseUrl(); ?>/requests/view/add-comment/requestId/<?php echo $this->request->getId(); ?>">
<div>
<textarea name="comment"></textarea>
</div>
<?php echo $this->formHidden('visibility', 'global'); ?>
<?php echo $this->formSubmit('submit', 'Add Comment'); ?>
</form>
</div>
<div class="tabContent<?php if ($this->selectedCommentTab == 'editorCommentsTab') { ?> selected<?php } ?>" id="editorCommentsContent">
<table class="comments">
<tr>
<th class="who">Who</th>
<th class="when">When</th>
<th class="what">What</th>
</tr>
<?php $row = 0; foreach ($this->comments as $key => $comment) {
if ($comment->getVisibility() == 'editorial') { ?>
<tr class="<?php echo ($row++ % 2) ? 'evenRow' : 'oddRow'; ?>">
<td class="who"><?php echo $comment->getUser()->getUsername(); ?></td>
<td class="when"><?php echo $comment->getTime(); ?></td>
<td class="what"><?php echo $comment->getText(); ?></td>
</tr>
<?php }} ?>
</table>
<form method="post" action="<?php echo $this->baseUrl(); ?>/requests/view/add-comment/requestId/<?php echo $this->request->getId(); ?>">
<div>
<textarea name="comment"></textarea>
</div>
<?php echo $this->formHidden('visibility', 'editorial'); ?>
<?php echo $this->formSubmit('submit', 'Add Comment'); ?>
</form>
</div>
<div class="tabContent<?php if ($this->selectedCommentTab == 'privateCommentsTab') { ?> selected<?php } ?>" id="privateCommentsContent">
<table class="comments">
<tr>
<th class="who">Who</th>
<th class="when">When</th>
<th class="what">What</th>
</tr>
<?php $row = 0; foreach ($this->comments as $key => $comment) {
if ($comment->getVisibility() == 'self' &&
$comment->getUser() == $this->user) { ?>
<tr class="<?php echo ($row++ % 2) ? 'evenRow' : 'oddRow'; ?>">
<td class="who"><?php echo $comment->getUser()->getUsername(); ?></td>
<td class="when"><?php echo $comment->getTime(); ?></td>
<td class="what"><?php echo $comment->getText(); ?></td>
</tr>
<?php }} ?>
</table>
<form method="post" action="<?php echo $this->baseUrl(); ?>/requests/view/add-comment/requestId/<?php echo $this->request->getId(); ?>">
<div>
<textarea name="comment"></textarea>
</div>
<?php echo $this->formHidden('visibility', 'self'); ?>
<?php echo $this->formSubmit('submit', 'Add Comment'); ?>
</form>
</div>
</div>
<?php if ($this->prevRequestId > 0) { ?>
<a id="prevRequestLink" href="/Request/View/<?php echo $this->prevRequestId; ?>"><--Prev</a>
<?php } ?>
<?php if ($this->nextRequestId > 0) { ?>
<a id="nextRequestLink" href="/Request/View/<?php echo $this->nextRequestId; ?>">Next--></a>
<?php } ?>
<?php } ?>
<?php if($this->canEdit) { ?>
<div id="editLink">
<a href="/Request/Load/<?php echo $this->request->getId(); ?>">-Edit-</a>
</div>
<?php } ?>
<div class="clear"></div>
</div>