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

  1 neenan 1.1 <!--- 	Name:  dsp_USersForm.cfm
  2                	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.
  3            				  in the dummy program database. It also transfers all the form variables to act_addUser.cfm where the actual action of 
  4            				  inserting into table(dOutsideUsers) takes place.
  5            		Date created: 02/23/2005
  6                   	Dependancy: Only in Edit mode - dependant on the VisitorID - vid to make updates to the correct user while editing. 
  7            					In add mode - checks for URL.Fuseaction value
  8            		Variables: 	FirstName - First Name of the initial user entering organization information
  9            					LastName - Last Name of the initial user entering organization information
 10            					Phone_Area - Area code for the work phone number 
 11            					Phone_Prefix - Prefix for the work phone number
 12            					Phone_Num - Work phone number 
 13            					EmailName - Email of the initial user entering organization information
 14            					
 15            		Functions: 
 16            		Date changed: 
 17            					02/23/2005			Prabin and Neena 	Created, Documentation
 18            ---> 
 19            
 20            <cfif #Url.fuseaction# IS "Edit">
 21            
 22 neenan 1.1 <cfquery name="getoutsidecontact" datasource="#programsdb#">
 23            select * 
 24            from outsideusers
 25            where visitor_Id= #URL.vid#
 26             </cfquery> 
 27            </cfif>
 28            
 29            <P>
 30            <a href="../directories/programs.cfm" class="sublink2">
 31            Agencies and Programs <img src="../images/siteimage/dart.gif" border="0"></a>
 32            
 33            </p>
 34            
 35                  <table width="100%" border="0" cellspacing="0" cellpadding="10" name="text">
 36                    <tr> 
 37                      <td> 
 38                        <p>
 39            			
 40            			<cfif #URL.fuseaction# IS "ADD">
 41            			<span class="subheading">Add Program</span><br>
 42            			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. 
 43 neenan 1.1 			<cfelse>
 44            			<span class="subheading">Edit Program</span><br>
 45            			If you would like to edit your organization that is in our <strong>Pollution Prevention Directory</strong>, 
 46            			please provide the following information and click on the Edit button.
 47            			</cfif>
 48            			<br><br>
 49            			This information is required so we can contact you with any questions. 
 50            			You will then be asked for more details about your organzation.
 51            			
 52            			<br><br>
 53            
 54            		<span class="subheading">INFORMATION REQUEST FORM</span><br>
 55            		<font style="color: red">*Required Fields</font>
 56            		<!--  #Begin table  -->
 57            
 58            
 59            <cfif #URL.fuseaction# IS "ADD">
 60            <cfform name="OutsideUserForm" method="post" action="addeditprograms.cfm?fuseaction=addOrganization">
 61            <table width="95%" border="0" cellspacing="0" cellpadding="5" bgcolor="#F4FFE9">
 62                <tr> 
 63                  	<td valign="top"><div class="formtext">First Name <font style="color: red">*</font></div></td>
 64 neenan 1.1        	<td><cfinput type="text" name="fname" size="15" required="yes" message="Please enter firstname">
 65            			<!--- <cfinput type="hidden" name="fname_required" value="Please enter first name."> ---></td>
 66            		<td>&nbsp;</td>
 67            	</tr>
 68            	<tr>
 69            		<td valign="top"><div class="formtext">Last Name <font style="color: red">*</font></div> </td>
 70                	<td><cfinput type="text" name="lname" size="15" required="yes" message="Please enter lastname">
 71            			<!--- <cfinput type="hidden" name="lname_required" value="Please enter Last name."> ---></td>	
 72                  	<td>&nbsp;</td>
 73            	</tr>
 74            	<tr>
 75               		<td><div class="formtext">Work Phone Number</div></td>
 76                    <td><cfinput type="Text" size="3" maxlength="3" name="Phone_Area">-
 77            			<cfinput type="Text" size="3" maxlength="3" name="Phone_Prefix">-
 78            			<cfinput type="Text" size="4" maxlength="4" name="Phone_Num"></td>
 79                  <td>&nbsp;</td>
 80                </tr>
 81                <tr> 
 82                  	<td><div class="formtext">Email <font style="color: red">*</font></div></td>
 83                  	<td><cfinput type="text" name="email" size="30" onvalidate="testbox"> 
 84            		<!--- <input type="hidden" name="OrgId" value="#URL.OrgID#"> --->
 85 neenan 1.1 		</td>
 86                	</tr>
 87                <tr> 
 88                  <td colspan="3">
 89            	  <div align="center">
 90            	  	<INPUT type="Submit" Value="ADD" name="fuseaction">&nbsp;&nbsp;
 91            	  <INPUT type="reset" value="RESET"></div>
 92            	  </td>
 93                </tr>
 94              </table>
 95            </cfform> 
 96            
 97            
 98            <cfelseif #URL.fuseaction# IS "EDIT">
 99            
100            <cfform name="OutsideUserForm" method="post" action="addeditprograms.cfm?fuseaction=GetOrganizations&OrgID=#URL.OrgID#&vid=#URL.Vid#">	
101            <table width="95%" border="0" cellspacing="0" cellpadding="5" bgcolor="#F4FFE9">
102                <tr> 
103                  	<td valign="top"><div class="formtext">First Name <font style="color: red">*</font></div></td>
104                   	<td><cfinput type="text" value="#getoutsidecontact.fname#" name="fname" size="15" required="yes" message="Please enter firstname">
105            			<!--- <cfinput type="hidden" name="fname_required" value="Please enter first name."> ---></td>
106 neenan 1.1 		<td>&nbsp;</td>
107            	</tr>
108            	<tr>
109            		<td valign="top"><div class="formtext">Last Name <font style="color: red">*</font></div> </td>
110                	<td><cfinput type="text" name="lname" value="#getoutsidecontact.lname#" size="15" required="yes" message="Please enter lastname">
111            			<!--- <cfinput type="hidden" name="lname_required" value="Please enter Last name."> ---></td>	
112                  	<td>&nbsp;</td>
113            	</tr>
114            	<tr>
115               		<td><div class="formtext">Work Phone Number</div></td>
116            		
117            		<cfset phone = #getoutsidecontact.phone_number# >
118                    <td><cfinput type="Text" size="3" maxlength="3" name="Phone_Area" value="#gettoken(phone,1,"-")#">-
119            			<cfinput type="Text" size="3" maxlength="3" name="Phone_Prefix" value="#gettoken(phone,2,"-")#">-
120            			<cfinput type="Text" size="4" maxlength="4" name="Phone_Num" value="#gettoken(phone,3,"-")#"></td>
121                  <td>&nbsp;</td>
122                </tr>
123                <tr> 
124                  	<td><div class="formtext">Email <font style="color: red">*</font></div></td>
125                  	<td>
126            		
127 neenan 1.1 		<cfinput type="text" value="#getoutsidecontact.email#" name="email" size="30" onvalidate="testbox"> 
128            		</td>
129                	</tr>
130                <tr> 
131                  <td colspan="3">
132            	  <div align="center">
133            	  <input type="hidden" name="vid" value="#url.vid#">
134            	  	<INPUT type="Submit" Value="EDIT" name="fuseaction"></a>&nbsp;&nbsp;
135            	  <INPUT type="reset" value="RESET"></div>
136            	  </td>
137                </tr>
138              </table>
139            </cfform> 
140            </cfif>		
141            
142            </td>
143            </tr>
144            </table>
145            <!--- <cfinclude template="../cfi/global_footer.cfm"> --->
146            

CVS Admin
Powered by
ViewCVS 1.0-dev