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 neenan 1.2 03/22/2005 Neena Commented out the Span tags
|
19 neenan 1.1 --->
20
21 <cfif #Url.fuseaction# IS "Edit">
22
23 <cfquery name="getoutsidecontact" datasource="#programsdb#">
24 select *
25 from outsideusers
26 where visitor_Id= #URL.vid#
27 </cfquery>
28 </cfif>
29
30 <P>
31
|
32 neenan 1.2 Agencies and Programs
|
33 neenan 1.1 </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 neenan 1.2 <!--- <span class="subheading"> --->Add Program<!--- </span> ---><br>
|
42 neenan 1.1 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 <cfelse>
|
44 neenan 1.2 <!--- <span class="subheading"> --->Edit Program<!--- </span> ---><br>
|
45 neenan 1.1 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 neenan 1.2 INFORMATION REQUEST FORM<br>
|
55 neenan 1.1 <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 <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> </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> </td>
73 </tr>
74 <tr>
75 <td><div class="formtext">Work Phone Number</div></td>
76 neenan 1.1 <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> </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 </td>
86 </tr>
87 <tr>
88 <td colspan="3">
89 <div align="center">
90 <INPUT type="Submit" Value="ADD" name="fuseaction">
91 <INPUT type="reset" value="RESET"></div>
92 </td>
93 </tr>
94 </table>
95 </cfform>
96
97 neenan 1.1
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 <td> </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> </td>
113 </tr>
114 <tr>
115 <td><div class="formtext">Work Phone Number</div></td>
116
117 <cfset phone = #getoutsidecontact.phone_number# >
118 neenan 1.1 <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> </td>
122 </tr>
123 <tr>
124 <td><div class="formtext">Email <font style="color: red">*</font></div></td>
125 <td>
126
127 <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>
135 <INPUT type="reset" value="RESET"></div>
136 </td>
137 </tr>
138 </table>
139 neenan 1.1 </cfform>
140 </cfif>
141
142 </td>
143 </tr>
144 </table>
|
145 neenan 1.2
|
146 neenan 1.1
|