|
|
|
|
File: [Development] / p2rx-programs / addeditprograms.cfm
(download)
Revision: 1.2, Tue Mar 22 19:17:05 2005 UTC (4 years, 8 months ago) by neenan Branch: MAIN CVS Tags: HEAD Changes since 1.1: +6 -8 lines commented out some of the cfinclude statements and html tags |
<!--- Name: addeditprograms.cfm
Purpose: The purpose of the file is to provide the user with an interface for adding new programs or updating current programs and
their related contact & services information.
Date created: 03/1/2005
Dependancy: This file has "includes" for the following templates.
dsp_UsersForm.cfm act_AddUser.cfm
dsp_AddOrganization.cfm act_addorganization.cfm
dsp_addcontact.cfm act_addcontact.cfm
dsp_addcontactconfirm.cfm act_addprogramtypes.cfm
dsp_addnewcontact.cfm act_addservices.cfm
dsp_addprogramstypes.cfm act_displayOrgInfo.cfm
dsp_addservices.cfm act_finalprocess.cfm
dsp_editOrganization.cfm act_GetPrograms.cfm
dsp_editcontact act_getOrganizationInfo
dsp_editcontactconfirm.cfm act_updateorganization.cfm
dsp_editprogramstypes.cfm act_updatecontact.cfm
dsp_editservices.cfm act_displayOrgInfo.cfm
dsp_newContact.cfm
Variables:
Date changed: 03/08/2005 Prabin, Neena Coding and Documentation
03/22/2005 Neena Added some comments inline for the cfinclude statements
---->
<cfparam name="URL.confirm" default="no">
<cfparam name="URL.editcontact" default="no">
<html>
<head>
<title>Include your Site title here </title>
<script language=javascript type="text/javascript">
<!--hide
function newWindow(question){
faqWindow = window.open(question, 'faqWin', 'width=300,height=400,scrollbars=yes,toolbar=yes,resizable=yes')
faqWindow.focus()
}
//end hide-->
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
<!--
function testbox(form, ctrl, value) {
if (value == "" || value.indexOf ('@', 1) == -1 ||
value.indexOf ('.', 3) == -1)
{
return (false);
}
else
{
return (true);
}
}
//-->
<!--
function testbox(form, ctrl, value) {
if (value == "" || value.indexOf ('@', 1) == -1 ||
value.indexOf ('.', 3) == -1)
{
return (false);
}
else
{
return (true);
}
}
//-->
function Validate(objForm)
{
var objCheckGroup=objForm.ProgramTypeID; //pointer to group of checkboxes
var counter=0; //how many checkboxes checked?
//iterate through the checkboxes in the group, count how many are checked:
for (var i=0; i<objCheckGroup.length; i++)
counter += (objCheckGroup[i].checked)?1:0;
//verify at least one was checked:
if (counter == 0)
{
//not good!!
alert("Please check at least one Program");
return false;
}
return true;
}
function Validate1(objForm)
{
var objCheckGroup=objForm.ServiceID; //pointer to group of checkboxes
var counter=0;
//iterate through the checkboxes in the group, count how many are checked:
for (var i=0; i<objCheckGroup.length; i++)
counter += (objCheckGroup[i].checked)?1:0;
//verify at least one was checked:
if (counter == 0)
{
alert("Please check at least one Service");
return false;
}
return true;
}
//***
function namevalidate(myform) {
var objfname=myform.FirstName;
var objlname=myform.LastName;
if (objfname.value == "" || objlname.value == "")
{
alert("Please type in the First and Last name for the contact");
return (false);
}
else
{
return (true);
}
}
</script>
</head>
<!--- Each Center site might want to include their header code here <cfinclude template="global_header.cfm"> --->
<cfif fuseaction is "Add">
<cfinclude template="dsp_UsersForm.cfm">
<cfelseif fuseaction is "Addorganization">
<cfinclude template="act_AddUser.cfm">
<cfinclude template="dsp_AddOrganization.cfm">
<cfelseif fuseaction is "AddContacts">
<cfif #URL.Confirm# is "no">
<cfinclude template="act_addorganization.cfm">
</cfif>
<cfinclude template="dsp_addcontact.cfm">
<cfelseif fuseaction is "AddMoreContacts">
<cfinclude template="act_addcontact.cfm">
<cfinclude template="dsp_addcontactconfirm.cfm">
<cfelseif fuseaction is "AddNewContacts">
<cfinclude template="dsp_addnewcontact.cfm">
<cfelseif fuseaction is "AssociateProgramTypes">
<cfinclude template="dsp_addprogramstypes.cfm">
<cfelseif fuseaction is "AssociateServices">
<cfinclude template="act_addprogramtypes.cfm">
<cfinclude template="dsp_addservices.cfm">
<cfelseif fuseaction is "FinalProcess">
<cfinclude template="act_addservices.cfm">
<cfinclude template="act_displayOrgInfo.cfm">
<cfinclude template="act_finalprocess.cfm">
<cfelseif fuseaction is "Edit">
<cfinclude template="dsp_UsersForm.cfm">
<cfelseif fuseaction is "GetOrganizations">
<cfinclude template="act_AddUser.cfm">
<cfinclude template="act_GetPrograms.cfm">
<cfelseif fuseaction is "Editorganization">
<cfinclude template="dsp_editOrganization.cfm">
<cfelseif fuseaction is "EditContacts">
<cfif #URL.editContact# is "no">
<cfinclude template="act_updateorganization.cfm">
</cfif>
<cfinclude template="dsp_editcontact.cfm">
<cfelseif fuseaction is "EditMoreContacts">
<cfinclude template="act_updatecontact.cfm">
<cfinclude template="dsp_editcontactconfirm.cfm">
<cfelseif fuseaction is "EditProgramTypes">
<cfinclude template="dsp_editprogramstypes.cfm">
<cfelseif fuseaction is "EditServices">
<cfinclude template="act_addprogramtypes.cfm">
<cfinclude template="dsp_editservices.cfm">
<cfelseif fuseaction is "EditFinalProcess">
<cfinclude template="act_addservices.cfm">
<cfinclude template="act_displayOrgInfo.cfm">
<cfinclude template="act_finalprocess.cfm">
<cfelseif fuseaction is "GetOrg">
<cfinclude template="act_InsertPrograms.cfm">
<cfelseif fuseaction is "EditOrg">
<cfinclude template="dsp_editOrganization.cfm">
<cfelseif fuseaction is "NewContact">
<cfinclude template="dsp_Newcontact.cfm">
<cfelseif fuseaction is "AddMoreContacts1">
<cfinclude template="act_addcontact.cfm">
<cfinclude template="dsp_addcontactconfirm.cfm">
<cfelseif fuseaction is "AddNewContacts1">
<cfinclude template="dsp_addnewcontact.cfm">
<cfelseif fuseaction is "EditMoreContacts1">
<cfinclude template="act_updatecontact.cfm">
<cfinclude template="dsp_editcontactconfirm.cfm">
<cfelseif fuseaction is "EditContacts1">
<cfif #URL.editContact# is "no">
<cfinclude template="act_updateorganization.cfm">
</cfif>
<cfinclude template="dsp_editcontact.cfm">
<cfelseif fuseaction is "EditProgramTypes1">
<cfinclude template="dsp_editprogramstypes.cfm">
<cfelseif fuseaction is "EditServices1">
<cfinclude template="act_addprogramtypes.cfm">
<cfinclude template="dsp_editservices.cfm">
<cfelseif fuseaction is "EditFinalProcess1">
<cfinclude template="act_addservices.cfm">
<cfinclude template="act_displayOrgInfo.cfm">
<cfinclude template="act_finalprocess.cfm">
</CFIF>
<!--- Each Center site might want to include their footer code here
<cfinclude template="global_footer.cfm"> --->
| CVS Admin |
Powered by ViewCVS 1.0-dev |