|
|
|
|
File: [Development] / p2rx-programs / act_addProgramtypes.cfm
(download)
Revision: 1.1, Wed Mar 9 03:18:14 2005 UTC (4 years, 8 months ago) by neenan Branch: MAIN *** empty log message *** |
<!--- Name: act_addprogramTypes.cfm
Purpose: This functions as the action file to link the existing programtypes selected by the user for their
organization to the dorganization table. The values are passed on from the dsp_addprogramtypes.cfm form.
Each time this page is called,the records in the dorgtoprogramtype table are deleted for the particular
organization and fresh records are appended.
Date created: 02/24/2005
Dependancy: URL.URL.Orgid
Variables:
Functions:
Date changed: 02/24/2005 Prabin & Neena Created & Documentation
--->
<cfquery name="deletepg" datasource="#Programsdb#">
delete
from dOrgToProgramType
Where OrgID = #URL.ORGID#
</cfquery>
<cfset Array = #ListToArray(form.ProgramTypeID)#>
<cfloop from="1" to="#ArrayLen(Array)#" index="x">
<cfquery datasource="#Programsdb#">
Insert Into dOrgtoprogramtype (OrgID, ProgramTypeID)
Values(#URL.OrgID#, #Array[x]#)
</cfquery>
</cfloop>
| CVS Admin |
Powered by ViewCVS 1.0-dev |