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

File: [Development] / p2rx-programs / dsp_UsersForm.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:  dsp_USersForm.cfm
    	Purpose: It helps to add a initial contact who is responsible for using the form to add the organization and contact info for their program.
				  in the dummy program database. It also transfers all the form variables to act_addUser.cfm where the actual action of 
				  inserting into table(dOutsideUsers) takes place.
		Date created: 02/23/2005
       	Dependancy: Only in Edit mode - dependant on the VisitorID - vid to make updates to the correct user while editing. 
					In add mode - checks for URL.Fuseaction value
		Variables: 	FirstName - First Name of the initial user entering organization information
					LastName - Last Name of the initial user entering organization information
					Phone_Area - Area code for the work phone number 
					Phone_Prefix - Prefix for the work phone number
					Phone_Num - Work phone number 
					EmailName - Email of the initial user entering organization information
					
		Functions: 
		Date changed: 
					02/23/2005			Prabin and Neena 	Created, Documentation
---> 

<cfif #Url.fuseaction# IS "Edit">

<cfquery name="getoutsidecontact" datasource="#programsdb#">
select * 
from outsideusers
where visitor_Id= #URL.vid#
 </cfquery> 
</cfif>

<P>
<a href="../directories/programs.cfm" class="sublink2">
Agencies and Programs <img src="../images/siteimage/dart.gif" border="0"></a>

</p>

      <table width="100%" border="0" cellspacing="0" cellpadding="10" name="text">
        <tr> 
          <td> 
            <p>
			
			<cfif #URL.fuseaction# IS "ADD">
			<span class="subheading">Add Program</span><br>
			If you would like to add your organization to the <strong>Pollution Prevention Directory</strong>, please provide the following information and click on the Add button. 
			<cfelse>
			<span class="subheading">Edit Program</span><br>
			If you would like to edit your organization that is in our <strong>Pollution Prevention Directory</strong>, 
			please provide the following information and click on the Edit button.
			</cfif>
			<br><br>
			This information is required so we can contact you with any questions. 
			You will then be asked for more details about your organzation.
			
			<br><br>

		<span class="subheading">INFORMATION REQUEST FORM</span><br>
		<font style="color: red">*Required Fields</font>
		<!--  #Begin table  -->


<cfif #URL.fuseaction# IS "ADD">
<cfform name="OutsideUserForm" method="post" action="addeditprograms.cfm?fuseaction=addOrganization">
<table width="95%" border="0" cellspacing="0" cellpadding="5" bgcolor="#F4FFE9">
    <tr> 
      	<td valign="top"><div class="formtext">First Name <font style="color: red">*</font></div></td>
       	<td><cfinput type="text" name="fname" size="15" required="yes" message="Please enter firstname">
			<!--- <cfinput type="hidden" name="fname_required" value="Please enter first name."> ---></td>
		<td>&nbsp;</td>
	</tr>
	<tr>
		<td valign="top"><div class="formtext">Last Name <font style="color: red">*</font></div> </td>
    	<td><cfinput type="text" name="lname" size="15" required="yes" message="Please enter lastname">
			<!--- <cfinput type="hidden" name="lname_required" value="Please enter Last name."> ---></td>	
      	<td>&nbsp;</td>
	</tr>
	<tr>
   		<td><div class="formtext">Work Phone Number</div></td>
        <td><cfinput type="Text" size="3" maxlength="3" name="Phone_Area">-
			<cfinput type="Text" size="3" maxlength="3" name="Phone_Prefix">-
			<cfinput type="Text" size="4" maxlength="4" name="Phone_Num"></td>
      <td>&nbsp;</td>
    </tr>
    <tr> 
      	<td><div class="formtext">Email <font style="color: red">*</font></div></td>
      	<td><cfinput type="text" name="email" size="30" onvalidate="testbox"> 
		<!--- <input type="hidden" name="OrgId" value="#URL.OrgID#"> --->
		</td>
    	</tr>
    <tr> 
      <td colspan="3">
	  <div align="center">
	  	<INPUT type="Submit" Value="ADD" name="fuseaction">&nbsp;&nbsp;
	  <INPUT type="reset" value="RESET"></div>
	  </td>
    </tr>
  </table>
</cfform> 


<cfelseif #URL.fuseaction# IS "EDIT">

<cfform name="OutsideUserForm" method="post" action="addeditprograms.cfm?fuseaction=GetOrganizations&OrgID=#URL.OrgID#&vid=#URL.Vid#">	
<table width="95%" border="0" cellspacing="0" cellpadding="5" bgcolor="#F4FFE9">
    <tr> 
      	<td valign="top"><div class="formtext">First Name <font style="color: red">*</font></div></td>
       	<td><cfinput type="text" value="#getoutsidecontact.fname#" name="fname" size="15" required="yes" message="Please enter firstname">
			<!--- <cfinput type="hidden" name="fname_required" value="Please enter first name."> ---></td>
		<td>&nbsp;</td>
	</tr>
	<tr>
		<td valign="top"><div class="formtext">Last Name <font style="color: red">*</font></div> </td>
    	<td><cfinput type="text" name="lname" value="#getoutsidecontact.lname#" size="15" required="yes" message="Please enter lastname">
			<!--- <cfinput type="hidden" name="lname_required" value="Please enter Last name."> ---></td>	
      	<td>&nbsp;</td>
	</tr>
	<tr>
   		<td><div class="formtext">Work Phone Number</div></td>
		
		<cfset phone = #getoutsidecontact.phone_number# >
        <td><cfinput type="Text" size="3" maxlength="3" name="Phone_Area" value="#gettoken(phone,1,"-")#">-
			<cfinput type="Text" size="3" maxlength="3" name="Phone_Prefix" value="#gettoken(phone,2,"-")#">-
			<cfinput type="Text" size="4" maxlength="4" name="Phone_Num" value="#gettoken(phone,3,"-")#"></td>
      <td>&nbsp;</td>
    </tr>
    <tr> 
      	<td><div class="formtext">Email <font style="color: red">*</font></div></td>
      	<td>
		
		<cfinput type="text" value="#getoutsidecontact.email#" name="email" size="30" onvalidate="testbox"> 
		</td>
    	</tr>
    <tr> 
      <td colspan="3">
	  <div align="center">
	  <input type="hidden" name="vid" value="#url.vid#">
	  	<INPUT type="Submit" Value="EDIT" name="fuseaction"></a>&nbsp;&nbsp;
	  <INPUT type="reset" value="RESET"></div>
	  </td>
    </tr>
  </table>
</cfform> 
</cfif>		

</td>
</tr>
</table>
<!--- <cfinclude template="../cfi/global_footer.cfm"> --->


CVS Admin
Powered by
ViewCVS 1.0-dev