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

File: [Development] / p2rx-programs / addeditprograms.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: 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
						
---->

<cfparam name="URL.confirm" default="no">
<cfparam name="URL.editcontact" default="no">

<html>
<head>
<title>Pollution Prevention Agencies and Programs in EPA Region 7</title>
<cfinclude template="../cfi/metacontent.cfm">
<cfinclude template="../cfi/script/nav_variables.htm">
<link rel="stylesheet" href="../css/newstyle.css" type="text/css">
<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>

<cfinclude template="../cfi/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>


<cfinclude template="../cfi/global_footer.cfm">


CVS Admin
Powered by
ViewCVS 1.0-dev