|
|
|
|
File: [Development] / p2rx-programs / dsp_addprogramstypes.cfm
(download)
Revision: 1.3, Fri Aug 26 16:08:19 2005 UTC (4 years, 2 months ago) by pKanel Branch: MAIN CVS Tags: HEAD Changes since 1.2: +15 -12 lines Enhancements made to resolve programs added or udpated by Outsite users. |
<!--- Name: dsp_Addprogramtypes.cfm
Purpose: It helps to add the relation between existing program types and organization in your dummy program database.
It also transfers all the programTypeID values that the user selects to act_addProgramTypes.cfm where
the actual action of inserting the association between the organization and its related program
types in table dOrgToProgramType
Date created: 02/23/2005
Dependancy: URL.Orgid
Variables: ProgramTypeID - Unique ID of each ProgramType
ProgramType - Type of the Program organization
OrganizationName - Name of the organization
Functions:
Date changed: 02/23/2005 Prabin & Neena Creation and Documentation
08/15/2005 Terry Added URL variable for skipping step (line 46)
08/15/2005 Terry Documentation
--->
<cfquery name="progtypes" datasource="#Programsdb#">
Select ProgramType, ProgramTypeID
From dProgramTypes
Where Approved = 0
</cfquery>
<cfquery name="getORG" datasource="#Programsdb#">
SELECT OrganizationName
FROM dOrganization
WHERE OrgID = #URL.OrgID#
</cfquery>
<body>
<!-- #BeginEditable "Content" -->
<table width="100%" border="0" cellspacing="0" cellpadding="10" name="text">
<tr>
<td>
<p>
<span class="subheading">
ADD A PROGRAM <img src="../images/siteimage/dart.gif" border="0">
PROGRAM TYPES<img src="../images/siteimage/dart.gif" border="0"></span>
<span class="sublink2">Step 3 <img src="../images/siteimage/dart.gif" border="0"></span><br><br>
<cfoutput query="getORG">Organization Name: <strong>#OrganizationName#</strong></cfoutput><br><br>
Please select the program type(s) which describe your organization.<br>
<span class="redtext"><font style="color: red">* Atleast One</font></span><br><br>
<form name="addProgramsTypes" action="addeditprograms.cfm?fuseaction=AssociateServices&OrgID=<cfoutput>#URL.OrgID#</cfoutput>&skip=0" onsubmit="return Validate(this)" method="post">
<table width="95%" border="0" cellspacing="0" cellpadding="5" bgcolor="#F4FFE9">
<cfloop query="progtypes">
<tr>
<cfoutput>
<td colspan="2"><div class="formtext">
<input type="checkbox" name="ProgramTypeID" value="#ProgramTypeID#">
#ProgramType#</div>
</td>
</cfoutput>
</tr>
</cfloop>
<tr>
<td colspan="2"><div class="formtext">
<INPUT type="submit" value="Submit">
<INPUT type="reset" value="Reset"></div></td>
</tr>
</table>
</form>
</td>
</tr>
</table>
</p>
<!--- <cfinclude template="../cfi/global_footer.cfm"> --->
| CVS Admin |
Powered by ViewCVS 1.0-dev |