1 neenan 1.1 <!--- Name: dsp_addservices.cfm
2 Purpose: It helps to retreive the services offered by default for each program, it also provides the user to add a new service of type
3 resource, expertise or client. These fields are extracted each time the page is loaded from the dservices database.
4 It also transfers all the form variables to act_addservices.cfm. The name of the existing services are extracted from the preapproved services in the
5 service table and the final service choices are stored in the dservices and the dOrgtoService tables.
6
7 Date created: 02/23/2005
8 Dependancy: URL.Orgid
9 Variables: ServiceID - Primary Key for each of the services to display the checkbox on the form.
10 Service - Name of the service existing in the Service database
11 OtherExpertise - Other New Expertise, entered by the current user.
12 OtherResources - Other New Resource, entered by the current user.
13 OtherClients - Other New Client , entered by the current user.
14
15 Functions:
16 Date changed:
17 02/23/2005 Prabin & Neena Created
18 02/23/2005 Neena Documentation
|
19 pKanel 1.3 08/15/2005 Terry Added URL variable for skipping step (line 60)
20 08/15/2005 Terry Documentation
|
21 neenan 1.1 --->
22 <cfquery name="expservices" datasource="#programsdb#">
23 Select Service, ServiceID, Type
24 From Service
25 Where Type = 'Expertise' and Approved = 0
26 </cfquery>
27
28 <cfquery name="cliservices" datasource="#programsdb#">
29 Select Service, ServiceID, Type
30 From Service
31 Where Type = 'Clients' and Approved = 0
32 </cfquery>
33
34 <cfquery name="resservices" datasource="#programsdb#">
35 Select Service, ServiceID, Type
36 From Service
37 Where Type = 'Resources' and Approved = 0
38 </cfquery>
39
40
41 <cfquery name="getORG" datasource="#Programsdb#">
42 neenan 1.1 SELECT OrganizationName
43 FROM dOrganization
44 WHERE OrgID = #URL.OrgID#
45 </cfquery>
46
47 <table width="100%" border="0" cellspacing="0" cellpadding="10" name="text">
48 <tr>
49 <td>
50 <p>
|
51 pKanel 1.3 <span class="subheading">
52 ADD A PROGRAM <img src="../images/siteimage/dart.gif" border="0">
53 SERVICES<img src="../images/siteimage/dart.gif" border="0"></span>
54 <span class="sublink2">Step 4<img src="../images/siteimage/dart.gif" border="0"></span><br><br>
|
55 neenan 1.1 <cfoutput query="getORG">Organization Name: <strong>#OrganizationName#</strong></cfoutput><br><br>
56
57 Please select the service(s) which describe your organization.<br>
|
58 pKanel 1.3 <span class="redtext"><font style="color: red">* At least One</font></span><br><br>
|
59 neenan 1.1
|
60 pKanel 1.3 <form name="addservices" action="addeditprograms.cfm?fuseaction=FinalProcess&OrgID=<cfoutput>#URL.OrgID#</cfoutput>&skip=0" onsubmit="return Validate1(this)" method="post">
|
61 neenan 1.1 <table width="95%" border="0" cellspacing="0" cellpadding="5" bgcolor="#F4FFE9">
62 <tr>
63 <td valign="top">
64 <div class="formtext"><strong>Area of Expertise</strong></div><br>
65 <cfoutput><div class="formtext"><br>
66 <cfloop query="expservices">
67 <input type="checkbox" name="ServiceID" value="#ServiceID#">
68 #Service#<br>
69 </cfloop>
70 <input type="checkbox" name="OtherExpertise"> Other
71 <input type="text" size=10 name="Other1"> </div>
72 </cfoutput>
73 </td>
74
75 <td valign="top">
76 <div class="formtext"><strong>Resources Offered</strong></div><br>
77
78 <cfoutput><div class="formtext">
79 <cfloop query="resservices">
80 <input type="checkbox" name="ServiceID" value="#ServiceID#">
81 #Service#<br>
82 neenan 1.1 </cfloop>
83 <input type="checkbox" name="OtherResources"> Other
84 <input type="text" size=10 name="Other2"> </div>
85 </cfoutput>
86 <!--- </td>
87
88 <td valign="top"> ---><br>
89 <div class="formtext"><strong>Clients Served</strong></div><br>
90 <cfoutput><div class="formtext">
91 <cfloop query="cliservices">
92 <input type="checkbox" name="ServiceID" value="#ServiceID#">
93 #Service#<br>
94 </cfloop>
95 <input type="checkbox" name="OtherClients"> Other
96 <input type="text" size=10 name="Other3"></div>
97 </cfoutput>
98 </td>
99 </tr>
100 <tr>
101 <td> <cfoutput>
102 <input type="hidden" name="OrgID" value="URL.OrgID">
103 neenan 1.1 </cfoutput>
104
105 </td>
106 </tr>
107 <tr>
108 <td colspan="2"><div class="formtext">
109 <INPUT type="submit" value="Submit">
110 <INPUT type="reset" value="Reset"></div>
111 </td>
112 </tr>
113 </table>
114 </form>
115 </table>
|