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

  1 neenan 1.1 <!--- 	Name: addeditprograms.cfm 
  2                   	Purpose: The purpose of the file is to provide the user with an interface for adding new programs or updating current programs and 
  3            		their related contact & services information. 
  4            				   
  5            	   	Date created: 03/1/2005
  6                   	Dependancy:  This file has "includes" for the following templates.
  7                   					dsp_UsersForm.cfm 			act_AddUser.cfm	
  8            						dsp_AddOrganization.cfm  	act_addorganization.cfm
  9            						dsp_addcontact.cfm 			act_addcontact.cfm
 10            						dsp_addcontactconfirm.cfm   act_addprogramtypes.cfm
 11            						dsp_addnewcontact.cfm		act_addservices.cfm
 12            						dsp_addprogramstypes.cfm  	act_displayOrgInfo.cfm
 13            						dsp_addservices.cfm 	    act_finalprocess.cfm
 14            						dsp_editOrganization.cfm	act_GetPrograms.cfm
 15            						dsp_editcontact				act_getOrganizationInfo
 16            						dsp_editcontactconfirm.cfm	act_updateorganization.cfm
 17            						dsp_editprogramstypes.cfm	act_updatecontact.cfm
 18            						dsp_editservices.cfm        act_displayOrgInfo.cfm
 19            						dsp_newContact.cfm
 20            	   	Variables: 	
 21            	   	Date changed:   03/08/2005    				Prabin, Neena 		Coding and Documentation
 22 neenan 1.2 						03/22/2005					Neena				Added some comments inline for the cfinclude statements
 23 neenan 1.1 ---->
 24            
 25            <cfparam name="URL.confirm" default="no">
 26            <cfparam name="URL.editcontact" default="no">
 27            
 28            <html>
 29            <head>
 30 neenan 1.2 <title>Include your Site title here </title>
 31            
 32 neenan 1.1 <script language=javascript type="text/javascript">
 33            <!--hide
 34            
 35            function newWindow(question){
 36             	faqWindow = window.open(question, 'faqWin',  'width=300,height=400,scrollbars=yes,toolbar=yes,resizable=yes')
 37            	faqWindow.focus()
 38            }
 39              //end hide-->
 40              
 41            <!-- This script and many more are available free online at -->
 42            <!-- The JavaScript Source!! http://javascript.internet.com -->
 43            
 44            <!--
 45            function testbox(form, ctrl, value) {
 46              if (value == "" || value.indexOf ('@', 1) == -1 || 
 47            value.indexOf ('.', 3) == -1) 
 48              {
 49                return (false);
 50              } 
 51              else
 52              {
 53 neenan 1.1     return (true);
 54              } 
 55            }
 56            //-->
 57            
 58            <!--
 59            function testbox(form, ctrl, value) {
 60              if (value == "" || value.indexOf ('@', 1) == -1 || 
 61            value.indexOf ('.', 3) == -1) 
 62              {
 63                return (false);
 64              } 
 65              else
 66              {
 67                return (true);
 68              } 
 69            }
 70            //-->
 71            
 72            function Validate(objForm)
 73            {
 74 neenan 1.1 var objCheckGroup=objForm.ProgramTypeID; //pointer to group of checkboxes
 75            var counter=0; //how many checkboxes checked?
 76            
 77            //iterate through the checkboxes in the group, count how many are checked:
 78            for (var i=0; i<objCheckGroup.length; i++)
 79            counter += (objCheckGroup[i].checked)?1:0;
 80            
 81            //verify at least one was checked:
 82            if (counter == 0)
 83            {
 84            //not good!!
 85            alert("Please check at least one Program");
 86            return false; 
 87            }
 88            return true;
 89            } 
 90            
 91            function Validate1(objForm)
 92            {
 93            var objCheckGroup=objForm.ServiceID; //pointer to group of checkboxes
 94            var counter=0; 
 95 neenan 1.1 //iterate through the checkboxes in the group, count how many are checked:
 96            for (var i=0; i<objCheckGroup.length; i++)
 97            counter += (objCheckGroup[i].checked)?1:0;
 98            
 99            //verify at least one was checked:
100            if (counter == 0)
101            {
102            alert("Please check at least one Service");
103            return false; 
104            }
105            return true;
106            } 
107            //***
108            function namevalidate(myform) {
109            
110            var objfname=myform.FirstName;
111            var objlname=myform.LastName;
112              if (objfname.value == "" || objlname.value == "")
113              {
114              	alert("Please type in the First and Last name for the contact");
115                return (false);
116 neenan 1.1   } 
117              else
118              {
119                return (true);
120              } 
121            }
122            
123            
124            </script>
125            
126            </head>
127            
128 neenan 1.2 <!--- Each Center site might want to include their header code here <cfinclude template="global_header.cfm"> --->
129 neenan 1.1 
130            <cfif fuseaction is "Add">
131            	<cfinclude template="dsp_UsersForm.cfm">
132            
133            	<cfelseif fuseaction is "Addorganization">
134            		<cfinclude template="act_AddUser.cfm">
135            		<cfinclude template="dsp_AddOrganization.cfm">	
136            
137            	<cfelseif fuseaction is "AddContacts">
138            		<cfif #URL.Confirm# is "no">
139            			<cfinclude template="act_addorganization.cfm">
140            		</cfif>
141            		<cfinclude template="dsp_addcontact.cfm">	
142            
143            	<cfelseif fuseaction is "AddMoreContacts">
144            		<cfinclude template="act_addcontact.cfm">
145            		<cfinclude template="dsp_addcontactconfirm.cfm">
146            		
147            	<cfelseif fuseaction is "AddNewContacts">
148            		<cfinclude template="dsp_addnewcontact.cfm">
149            
150 neenan 1.1 	<cfelseif fuseaction is "AssociateProgramTypes">
151            		<cfinclude template="dsp_addprogramstypes.cfm">	
152            	
153            	<cfelseif fuseaction is "AssociateServices">
154            		<cfinclude template="act_addprogramtypes.cfm">
155            		<cfinclude template="dsp_addservices.cfm">	
156            	
157            	<cfelseif fuseaction is "FinalProcess">
158            		<cfinclude template="act_addservices.cfm">
159             		<cfinclude template="act_displayOrgInfo.cfm">		
160            		<cfinclude template="act_finalprocess.cfm">
161            	
162            <cfelseif fuseaction is "Edit">
163            	<cfinclude template="dsp_UsersForm.cfm">
164            	
165            	<cfelseif fuseaction is "GetOrganizations">
166            		<cfinclude template="act_AddUser.cfm">
167            		<cfinclude template="act_GetPrograms.cfm">		
168            	
169            	<cfelseif fuseaction is "Editorganization">
170            		<cfinclude template="dsp_editOrganization.cfm">	
171 neenan 1.1 
172            	<cfelseif fuseaction is "EditContacts">
173            	<cfif #URL.editContact# is "no">
174            		<cfinclude template="act_updateorganization.cfm">
175            	</cfif>	
176            		<cfinclude template="dsp_editcontact.cfm">		
177            	
178            	<cfelseif fuseaction is "EditMoreContacts">
179            		<cfinclude template="act_updatecontact.cfm">
180            		<cfinclude template="dsp_editcontactconfirm.cfm">
181            	
182            	<cfelseif fuseaction is "EditProgramTypes">
183            		<cfinclude template="dsp_editprogramstypes.cfm">	
184            	
185            	<cfelseif fuseaction is "EditServices">
186            		<cfinclude template="act_addprogramtypes.cfm">
187            		<cfinclude template="dsp_editservices.cfm">	
188            	
189            	<cfelseif fuseaction is "EditFinalProcess">
190             		<cfinclude template="act_addservices.cfm">
191              		<cfinclude template="act_displayOrgInfo.cfm">		
192 neenan 1.1 		<cfinclude template="act_finalprocess.cfm">
193            		
194            	<cfelseif fuseaction is "GetOrg">
195            		<cfinclude template="act_InsertPrograms.cfm">	
196            
197            	<cfelseif fuseaction is "EditOrg">
198            		<cfinclude template="dsp_editOrganization.cfm">	
199            		
200            	<cfelseif fuseaction is "NewContact">
201            		<cfinclude template="dsp_Newcontact.cfm">	
202            
203            	<cfelseif fuseaction is "AddMoreContacts1">
204            		<cfinclude template="act_addcontact.cfm">
205            		<cfinclude template="dsp_addcontactconfirm.cfm">
206            		
207            	<cfelseif fuseaction is "AddNewContacts1">
208            		<cfinclude template="dsp_addnewcontact.cfm">
209            	
210            	<cfelseif fuseaction is "EditMoreContacts1">
211            		<cfinclude template="act_updatecontact.cfm">
212            		<cfinclude template="dsp_editcontactconfirm.cfm">
213 neenan 1.1 		
214            	<cfelseif fuseaction is "EditContacts1">
215            		<cfif #URL.editContact# is "no">
216            			<cfinclude template="act_updateorganization.cfm">
217            		</cfif>	
218            		<cfinclude template="dsp_editcontact.cfm">	
219            						
220            	<cfelseif fuseaction is "EditProgramTypes1">
221            		<cfinclude template="dsp_editprogramstypes.cfm">	
222            		
223            		<cfelseif fuseaction is "EditServices1">
224            		<cfinclude template="act_addprogramtypes.cfm">
225            		<cfinclude template="dsp_editservices.cfm">	
226            		
227            	<cfelseif fuseaction is "EditFinalProcess1">
228             		<cfinclude template="act_addservices.cfm">
229              		<cfinclude template="act_displayOrgInfo.cfm">
230            		<cfinclude template="act_finalprocess.cfm">
231            		
232            </CFIF>
233            
234 neenan 1.2 <!--- Each Center site might want to include their footer code here 
235            <cfinclude template="global_footer.cfm"> --->
236 neenan 1.1 

CVS Admin
Powered by
ViewCVS 1.0-dev