(file) Return to dsp_addservices.cfm CVS log (file) (dir) Up to [Development] / p2rx-programs

  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            ---> 
 20            <cfquery name="expservices" datasource="#programsdb#">
 21            Select Service, ServiceID, Type
 22 neenan 1.1 From Service
 23            Where Type = 'Expertise' and Approved = 0
 24            </cfquery>
 25            
 26            <cfquery name="cliservices" datasource="#programsdb#">
 27            Select Service, ServiceID, Type
 28            From Service
 29            Where Type = 'Clients' and Approved = 0
 30            </cfquery>
 31            
 32            <cfquery name="resservices" datasource="#programsdb#">
 33            Select Service, ServiceID, Type
 34            From Service
 35            Where Type = 'Resources' and Approved = 0
 36            </cfquery>
 37            
 38            
 39            <cfquery name="getORG" datasource="#Programsdb#">
 40            	SELECT 	OrganizationName
 41            	FROM	dOrganization
 42            	WHERE	OrgID = #URL.OrgID#
 43 neenan 1.1 </cfquery>
 44            
 45            <table width="100%" border="0" cellspacing="0" cellpadding="10" name="text">
 46                    <tr> 
 47                      <td> 
 48                        <p>	
 49            			<span class="subheading">
 50            				ADD A PROGRAM <img src="../images/siteimage/dart.gif" border="0">
 51            				SERVICES<img src="../images/siteimage/dart.gif" border="0"></span> &nbsp;
 52            				<span class="sublink2">Step 4<img src="../images/siteimage/dart.gif" border="0"></span><br><br>
 53            				<cfoutput query="getORG">Organization Name: &nbsp;&nbsp;&nbsp; <strong>#OrganizationName#</strong></cfoutput><br><br>
 54            		
 55            				Please select the service(s) which describe your organization.<br>
 56            				<span class="redtext"><font style="color: red">* At least One</font></span><br><br>
 57            
 58            <form name="addservices" action="addeditprograms.cfm?fuseaction=FinalProcess&OrgID=<cfoutput>#URL.OrgID#</cfoutput>" onsubmit="return Validate1(this)" method="post">
 59            <table width="95%" border="0" cellspacing="0" cellpadding="5" bgcolor="#F4FFE9">
 60            		<tr>
 61            			<td valign="top">
 62            				<div class="formtext"><strong>Area of Expertise</strong></div><br>
 63            						<cfoutput><div class="formtext"><br>
 64 neenan 1.1 							<cfloop query="expservices">
 65            								<input type="checkbox" name="ServiceID" value="#ServiceID#">
 66            								#Service#<br>
 67            							</cfloop>
 68            							<input type="checkbox" name="OtherExpertise"> Other 
 69            						 	<input type="text" size=10 name="Other1"> </div>
 70            						</cfoutput>
 71            			</td>
 72            
 73            			<td valign="top">
 74            				<div class="formtext"><strong>Resources Offered</strong></div><br>
 75            					
 76            					<cfoutput><div class="formtext">
 77            						<cfloop query="resservices">
 78            								<input type="checkbox" name="ServiceID" value="#ServiceID#">
 79            								#Service#<br>
 80            						</cfloop>
 81            							<input type="checkbox" name="OtherResources"> Other
 82            							<input type="text" size=10 name="Other2"> </div>
 83            					</cfoutput>
 84            			<!--- </td>
 85 neenan 1.1 
 86            			<td valign="top"> ---><br>
 87            				<div class="formtext"><strong>Clients Served</strong></div><br>
 88            					<cfoutput><div class="formtext">
 89            						<cfloop query="cliservices">
 90            						  <input type="checkbox" name="ServiceID" value="#ServiceID#">
 91            						  #Service#<br>
 92            						</cfloop>
 93            						<input type="checkbox" name="OtherClients"> Other
 94            						<input type="text" size=10 name="Other3"></div>
 95            					</cfoutput>
 96            			</td>
 97            		</tr>
 98            		<tr> 
 99                  		<td>&nbsp;<cfoutput>
100            						<input type="hidden" name="OrgID" value="URL.OrgID">
101            					</cfoutput>
102            				
103            			</td>
104                	</tr>
105            		<tr> 
106 neenan 1.1       		<td colspan="2"><div class="formtext">
107            				<INPUT type="submit" value="Submit">
108            	  			<INPUT type="reset" value="Reset"></div>
109            			</td>
110                	</tr>
111            </table>
112            </form>
113            </table>

CVS Admin
Powered by
ViewCVS 1.0-dev