-
Notifications
You must be signed in to change notification settings - Fork 0
/
formSessionB.cfm
285 lines (285 loc) · 9.49 KB
/
formSessionB.cfm
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
<cfoutput>
<cfset pageTitle = "Add an Instructional Session: Contact Time Data for #Activity.Title#">
<cfinclude template="incBegin.cfm">
<cfinclude template="incJSShowCalendar.cfm">
<script language="JavaScript" type="text/javascript">
<!--
function validateForm(form)
{
if (form.QuarterID.options[ form.QuarterID.selectedIndex ].value == 0)
{
alert("Please select session quarter");
return false;
}
if (form.Hour.options[ form.Hour.selectedIndex ].value == "")
{
alert("Please select session start time");
return false;
}
if (form.Marker.options[ form.Marker.selectedIndex ].value == "")
{
alert("Please select AM or PM for the session start time");
return false;
}
if (form.SessionDate.value == "")
{
alert("Please include session date");
return false;
}
if (form.Duration.value == "")
{
alert("Please include session duration");
return false;
}
/*if (form.SessionCount.value == "")
{
alert("Please include session count");
return false;
}
if (form.DevTime.value == "")
{
alert("Please include session development time");
return false;
}*/
if (form.PrepTime.value == "")
{
alert("Please include session preparation time");
return false;
}
return true;
}
-->
</script>
<form action="addSession.cfm"
method="post"
name="Session"
id="Session"
onsubmit="JavaScript:return validateForm(this);">
<span class="formSectionTitle">#pageTitle#</span>
<cfif isDefined("up2snuff") and not up2snuff>
<div class="formSectionTitleErr" style="width:50%;">#em#<br></div>
</cfif>
<div class="form">
<input type="hidden" name="version" value="" />
<table border="0" cellpadding="0" cellspacing="0">
<tr valign="top">
<td>
<em class="required">*</em>Quarter<br>
<cfset Lookup = "Quarter">
<cfset Header = "-select-">
<cfinclude template="uspGetLookup.cfm">
<select name="QuarterID">
<cfloop query="Quarter">
<option value="#Quarter.QuarterID#"
<cfif isDefined("FORM.QuarterID") and FORM.QuarterID eq Quarter.QuarterID>
selected
<cfelseif isDefined("Sess.QuarterID") and Sess.QuarterID eq Quarter.QuarterID>
selected
<cfelse>
</cfif>
>#Quarter.Quarter#</option>
</cfloop>
</select>
</td>
<td>
<em class="required">*</em>
<cfset elementName = "SessionDate">
<cfset elementLabel = "Session date<br>(mm/dd/yyyy)">
<cfinclude template="incHiLiteMissingElement.cfm"><br>
<input
type="text"
name="SessionDate"
size="12"
maxlength="10"
<cfif isDefined("FORM.SessionDate")>
value="#FORM.SessionDate#"
<cfelseif isDefined("FORM.sDT")>
value="#FORM.sDT#"
<cfelse>
value=""
</cfif>
><br>
<a href="javascript:ShowCalendar('Session','SessionDate')">Select Date</a><!--EZ-D8 Select</a><sup>®</sup-->
</td>
<td nowrap>
<em class="required">*</em>Session start time<br>
<select name="Hour">
<option value="">--</option>
<cfloop index="Hr" from="1" to="12" step="1">
<option value="#Hr#"
<cfif isDefined("FORM.Hour") and FORM.Hour eq Hr>
selected
</cfif>
>#Hr#</option>
</cfloop>
</select>
<span style="font-size:150%;">:</span>
<select name="Minute">
<cfloop index="Minute" from="0" to="55" step="5">
<option value="#TimeFormat(CreateTime(00, Minute, 00), "mm")#"
<cfif isDefined("FORM.Minute") and TimeFormat(CreateTime(00, Minute, 00), "mm") eq FORM.Minute>
selected
<cfelse>
</cfif>
>#TimeFormat(CreateTime(00, Minute, 00), "mm")#</option>
</cfloop>
</select>
<select name="Marker">
<option value="">--</option>
<cfif isDefined("FORM.Marker")>
<option value="AM" <cfif FORM.Marker eq "AM">selected</cfif>>A.M.</option>
<option value="PM" <cfif FORM.Marker eq "PM">selected</cfif>>P.M.</option>
<cfelse>
<option value="AM">A.M.</option>
<option value="PM">P.M.</option>
</cfif>
</select>
</td>
</tr>
<tr><td colspan="3" style="font-size: small;">For whole courses taught, enter date of first session.</td></tr>
<tr><td colspan="3"><hr size="1"></td></tr>
</table>
<table border="0" cellpadding="0" cellspacing="0">
<tr valign="top">
<td>
<em class="required">*</em>
<cfset elementName = "Duration">
<cfset elementLabel = "Duration">
<cfinclude template="incHiLiteMissingElement.cfm"><br>
<input
name="Duration"
type="text"
style="text-align:right;" size="5" maxlength="6"
<cfif isDefined("FORM.Duration")>
value="#FORM.Duration#"
<cfelseif isDefined("Sess.Duration")>
value="#Sess.Duration#"
<cfelse>
value=""
</cfif>
> min.<br>
<p style="font-size: small;">
For whole courses taught, enter duration of one session
<b>and</b><br>enter the number of sessions in the whole course:
<input
name="SessionCount"
type="text"
style="text-align:right;" size="5" maxlength="6"
<cfif isDefined("FORM.SessionCount")>
value="#FORM.SessionCount#"
<cfelseif isDefined("Activity.SessionCount")>
value="#Activity.SessionCount#"
<cfelse>
value=""
</cfif>
>
</p>
</td>
</tr>
<tr valign="top">
<td>
<em class="required">*</em>
<cfset elementName = "PrepTime">
<cfset elementLabel = "Development & Preparation time">
<cfinclude template="incHiLiteMissingElement.cfm"><br>
<input
name="PrepTime"
type="text"
style="text-align:right;"
size="5"
maxlength="6"
<cfif isDefined("FORM.PrepTime")>
value="#FORM.PrepTime#"
<cfelseif isDefined("Sess.PrepTime")>
value="#Sess.PrepTime#"
<cfelse>
value=""
</cfif>
> min.
</td>
</tr>
<tr valign="top">
<td>
Development & Preparation time comments<br>
<textarea name="PrepComment" cols="48" rows="4"><cfif isDefined("FORM.PrepComment")>#FORM.PrepComment#<cfelseif isDefined("Sess.PrepComment")>#Sess.PrepComment#<cfelse></cfif></textarea>
</td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
<input name="caller" type="hidden" value="formB">
<input name="ActID" type="hidden" value="#SESSION.ActID#">
<input name="SessID" type="hidden" value="#SESSION.SessID#">
<input name="Submit" type="submit" class="mainControl" style="width:100px;" value="OK" onclick="JavaScript:setVersion(Session, 'main');">
</td>
<td>
<input name="Submit" type="submit" class="mainControl" value="Cancel" onclick="JavaScript:setVersion(Session, 'alt');">
</td>
</tr>
</table>
</div>
</form>
</cfoutput>
<!---td>
<em class="required">*</em>
<cfset elementName = "SessionCount">
<cfset elementLabel = "Number of Sessions">
<cfinclude template="incHiLiteMissingElement.cfm"><br>
<input
name="SessionCount"
type="text"
style="text-align:right;" size="5" maxlength="6"
<cfif isDefined("FORM.SessionCount")>
value="#FORM.SessionCount#"
<cfelseif isDefined("Activity.SessionCount")>
value="#Activity.SessionCount#"
<cfelse>
value=""
</cfif>
>
</td--->
<!--tr valign="top">
<td colspan="3">
Activity Comments<br>
<textarea name="Comments" cols="48" rows="4"><cfif isDefined("FORM.Comments")>#FORM.Comments#<cfelseif isDefined("Sess.Comments")>#Sess.Comments#<cfelse></cfif></textarea>
</td>
</tr-->
<!--input name="reqElements" type="hidden" value="QuarterID,a quarter;SessionDate,a sesssion date;Hour,a session time;Marker,AM or PM for the session time"--> <!--;GroupName, a group name"-->
<!---cfelseif isDefined("Sess.SessionDateTime")>
value="#DateFormat(Sess.SessionDateTime, "mm/dd/yyyy")#"--->
<!---cfelseif isDefined("Sess.SessionDateTime") and TimeFormat(Sess.SessionDateTime, "h") eq Hr>
selected--->
<!---cfelseif isDefined("Sess.SessionDateTime") and TimeFormat(CreateTime(00, Minute, 00), "mm") eq Minute(Sess.SessionDateTime)>
selected--->
<!---cfelseif isDefined("Sess.SessionDateTime")>
<option value="AM" <cfif Hour(Sess.SessionDateTime) lt 12>selected</cfif>>A.M.</option>
<option value="PM" <cfif Hour(Sess.SessionDateTime) gt 11>selected</cfif>>P.M.</option--->
<!---tr valign="top">
<td>
<em class="required">*</em>
<cfset elementName = "DevTime">
<cfset elementLabel = "Development time">
<cfinclude template="incHiLiteMissingElement.cfm"><br>
<input
name="DevTime"
type="text"
style="text-align:right;"
size="5"
maxlength="6"
<cfif isDefined("FORM.DevTime")>
value="#FORM.DevTime#"
<cfelseif isDefined("Activity.DevTime")>
value="#Activity.DevTime#"
<cfelse>
value=""
</cfif>
> min.
</td>
</tr>
<tr valign="top">
<td>
Development time comments<br>
<textarea name="DevComment" cols="48" rows="4" ><cfif isDefined("FORM.DevComment")>#FORM.DevComment#<cfelseif isDefined("Activity.DevComment")>#Activity.DevComment#<cfelse></cfif></textarea>
</td>
</tr--->