-
Notifications
You must be signed in to change notification settings - Fork 0
/
formDeleteMaterial.cfm
45 lines (45 loc) · 1.33 KB
/
formDeleteMaterial.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
<cfif isDefined("Material.RecordCount") and Material.RecordCount eq 0>
<cfset pageTitle = "No Instructional Material Found">
<cfinclude template="incBegin.cfm">
<span class="dataSectionTitle">Error!</span>
<div class="data">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr valign="top">
<td class="first">No instructional material found</td>
</tr>
</table>
</div>
<cfelse>
<cfset pageTitle = "Deleting Instructional Material">
<cfinclude template="incBegin.cfm">
<cfoutput>
<form action="deleteMaterial.cfm"
method="post"
name="deleteMaterial"
id="deleteMaterial">
<span class="formSectionTitle">#pageTitle#</span>
<div class="form">
<table width="400" border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
<p class="error">You are about to delete the record below including all files and other records associated with it. Are you sure you want to do this?</p>
</td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
<input name="MatID" type="hidden" value="#Material.MaterialID#">
<input name="Submit" type="submit" class="mainControl" style="width:100px;" value="OK">
</form>
</td>
<td>
<form action="materials.cfm?LibID=#SESSION.LibID#" method="post">
<input type="submit" class="mainControl" value="Cancel">
</form>
</td>
</tr>
</table>
</cfoutput>
</div>
</cfif>