1 neenan 1.1 <!--- Name: dsp_newcontact.cfm
2 Purpose: This file displays the form variables for adding new contacts to the existing program which yet didnt have any contacts associated
3 in the primary program database. It is called each time, the program needs to be edited but didnt have any contacts associated, thus giving the
4 user flexibility to add contacts for their program in our database.It also transfers all the form variables to act_addcontact.cfm
5 and the actual action of inserting the data into the table(dcontact) happens in act_addcontact.cfm
6 Date created: 02/23/2005
7 Dependancy: StoreDate - a date key from the previous act_addorg action page to resolve the conflict between the different users using the same Index.cfm page.
8 OrgID
9 Variables: getOrgID.OrganizationName and GetOrgID.OrgId are used to display newly added organization name and ID.
10 Primary - Primary contact or not
11 FirstName - First Name of the contact(Required)
12 Middle - Middle name of the contact if applicable.
13 LastName - Phone Number of the organization (Required)
14 NameSuffix - Suffix such as Mr, Mrs or Miss
15 Title - Title of the contact
16 Address - Postal address of the contact
17 City- Contact's city name
18 Zip - Zip code for the contact's address
19 Country - Country of official residence.
20 WorkPhone_Area - Work Phone Area Number of the contact
21 WorkPhone_Prefix - Work Phone Prefix of the contact
22 neenan 1.1 WorkPhone_Num - Work Phone Number of the contact
23 WorkExtension - Extension if applicable
24 FaxNumber_Area - Fax Area Number of the contact
25 FaxNumber_Prefix - Fax Number Prefix of the contact
26 FaxNumber_Num - Fax Number of the contact
27 MobilePhone_Area - Mobile Phone Area of the contact
28 MobilePhone_Prefix - Mobile Phone Prefix of the contact
29 MobilePhone_Num - Mobile Phone Number of the contact
30 EmailName - Email of the contact
31
32 Functions:
33 Date changed:
34 02/23/2005 Prabin & Neena creation and Documentation
|
35 neenan 1.2 03/22/2005 Neena Commented out the Span tags
|
36 neenan 1.1 --->
37
38 <cfoutput>
39 <cfquery name="GetOrgname" datasource="#ProgramsDB#">
40 Select *
41 From dOrganization
42 Where orgid = #URL.OrgId#
43 </cfquery>
44 </cfoutput>
45
46 <!-- #BeginEditable "Content" -->
47 <table width="100%" border="0" cellspacing="0" cellpadding="10" name="text">
48 <tr>
49 <td>
50 <p>
|
51 neenan 1.2 <!--- <span class="subheading"> --->
52 ADD A PROGRAM -> <!--- <img src="../images/siteimage/dart.gif" border="0"> --->
53 CONTACT PERSON INFO <!--- <img src="../images/siteimage/dart.gif" border="0"></span> --->
54 <!--- <span class="sublink2"> --->Step 2 <!--- <img src="../images/siteimage/dart.gif" border="0"></span> ---><br><br>
55 <font style="color: red">* Required Fields</font><br><br>
|
56 neenan 1.1
57 <cfoutput>Organization Name: <strong>#getorgname.OrganizationName#</strong></cfoutput><br><br>
58 <form name="addContact" action="addeditprograms.cfm?fuseaction=AddMoreContacts1&OrgID=<cfoutput>#getorgname.OrgID#</cfoutput>" onsubmit="return namevalidate(this)" method="post">
59
60 <table width="95%" border="0" cellspacing="0" cellpadding="5" bgcolor="#F4FFE9">
61 <tr>
62 <td><div class="formtext">Primary ? <font style="color: red" size="-1">* </font><a href="javascript:newWindow ('help1.cfm')"><font style="color: red" size="-1">Help</font></a></td>
63 <td><input type="checkbox" name="Primary" value="1"></div></td>
64 </tr>
65 <tr>
66 <td><div class="formtext">Prefix</td>
67 <td><input type="text" name="Prefix" size="4"></div></td>
68 </tr>
69 <tr>
70 <td><div class="formtext">First Name <font style="color: red">*</font></td>
71 <td><input type="text" size="15" name="FirstName">
72 <input type="hidden" name="FirstName_required" value="Please enter contact person's first name, or enter 'n/a'.">
73 </td>
74 </tr>
75 <tr>
76 <td><div class="formtext">Middle</td>
77 neenan 1.1 <td><input type="text" size="1" name="Middle"></div></td>
78 </tr>
79 <tr>
80 <td><div class="formtext">Last Name <font style="color: red">*</font></td>
81 <td><input type="text" size="15" name="LastName">
82 <input type="hidden" name="LastName_required" value="Please enter contact person's last name, or enter 'n/a'.">
83 </td>
84 </tr>
85 <tr>
86 <td><div class="formtext">Suffix </td>
87 <td><input type="text" size="5" name="NameSuffix"></td>
88 </tr>
89 <tr>
90 <td><div class="formtext">Title</td>
91 <td><input type="text" size="20" name="Title"></td>
92 </tr>
93
94 <tr>
95 <td><div class="formtext">Address</td>
96 <td>
97 <input type="text" size="25" name="Address">
98 neenan 1.1 </div>
99 </td>
100 </tr>
101 <tr>
102 <td><div class="formtext">City</td>
103 <td align="justified" nowrap>
104 <input type="text" size="25" name="City"></div>
105 </td>
106 </tr>
107 <tr>
108 <td><div class="formtext">State</td>
109 <td><select name="State">
110
111 <option value="AL" selected> Alabama</option>
112 <option value="AK"> Alaska</option>
113 <option value="AZ"> Arizona</option>
114 <option value="AR"> Arkansas</option>
115 <option value="CA"> California</option>
116 <option value="CO"> Colorado</option>
117 <option value="CT"> Connecticut</option>
118 <option value="DE"> Delaware</option>
119 neenan 1.1 <option value="DC"> District of Columbia</option>
120 <option value="FL"> Florida</option>
121 <option value="GA"> Georgia</option>
122 <option value="HI"> Hawaii</option>
123 <option value="ID"> Idaho</option>
124 <option value="IL"> Illinois</option>
125 <option value="IN"> Indiana</option>
126 <option value="IA"> Iowa</option>
127 <option value="KS"> Kansas</option>
128 <option value="KY"> Kentucky</option>
129 <option value="LA"> Louisiana</option>
130 <option value="ME"> Maine</option>
131 <option value="MD"> Maryland</option>
132 <option value="MA"> Massachusetts</option>
133 <option value="MI"> Michigan</option>
134 <option value="MN"> Minnesota</option>
135 <option value="MS"> Mississippi</option>
136 <option value="MO"> Missouri</option>
137 <option value="MT"> Montana</option>
138 <option value="NE"> Nebraska</option>
139 <option value="NV"> Nevada</option>
140 neenan 1.1 <option value="NH"> New Hampshire</option>
141 <option value="NJ"> New Jersey</option>
142 <option value="NM"> New Mexico</option>
143 <option value="NY"> New York</option>
144 <option value="NC"> North Carolina</option>
145 <option value="ND"> North Dakota</option>
146 <option value="OH"> Ohio</option>
147 <option value="OK"> Oklahoma</option>
148 <option value="OR"> Oregon</option>
149 <option value="PA"> Pennsylvania</option>
150 <option value="RI"> Rhode Island</option>
151 <option value="SC"> South Carolina</option>
152 <option value="SD"> South Dakota</option>
153 <option value="TN"> Tennessee</option>
154 <option value="TX"> Texas</option>
155 <option value="UT"> Utah</option>
156 <option value="VT"> Vermont</option>
157 <option value="VA"> Virginia</option>
158 <option value="WA"> Washington</option>
159 <option value="WV"> West Virginia</option>
160 <option value="WI"> Wisconsin</option>
161 neenan 1.1 <option value="WY"> Wyoming</option>
162 <option value="Other"> Other</option>
163 </select></div>
164 </td>
165 </tr>
166 <tr>
167 <td><div class="formtext">Zip</td>
168 <td align="justified" nowrap>
169 <input type="text" size="10" name="Zip"></div>
170 </td>
171 </tr>
172 <tr>
173 <td><div class="formtext">Country </td>
174 <td><input type="text" size="18" name="Country" value="United States" ></div>
175 </td>
176 </tr>
177
178
179 <tr>
180 <td><div class="formtext">Work Phone</td>
181
182 neenan 1.1 <td><input type="Text" size="3" maxlength="3" name="WorkPhone_Area">-
183 <input type="Text" size="3" maxlength="3" name="WorkPhone_Prefix">-
184 <input type="Text" size="4" maxlength="4" name="WorkPhone_Num">
185 <font class="formtext">Ext.</font>
186 <input type="text" size="5" name="WorkExtension">
187 </td>
188 </tr>
189
190 <tr>
191 <td><div class="formtext">Fax</td>
192 <td><input type="Text" size="3" maxlength="3" name="FaxNumber_Area">-
193 <input type="Text" size="3" maxlength="3" name="FaxNumber_Prefix">-
194 <input type="Text" size="4" maxlength="4" name="FaxNumber_Num"></div>
195 </td>
196 </tr>
197 <tr>
198 <td><div class="formtext">Mobile Phone</td>
199 <td><input type="Text" size="3" maxlength="3" name="MobilePhone_Area">-
200 <input type="Text" size="3" maxlength="3" name="MobilePhone_Prefix">-
201 <input type="Text" size="4" maxlength="4" name="MobilePhone_Num"></div>
202 </td>
203 neenan 1.1 </tr>
204 <tr>
205 <td><div class="formtext">Email</td>
206 <td colspan="3"><input type="text" size="40" name="EmailName"></div></td>
207 </tr>
208 <tr>
209 <td> </td>
210 </tr>
211
212 <tr>
213 <td> </td>
214 <td><div class="formtext">
215 <!--- <cfoutput><input type="hidden" name="storedate" value="#getorgid.times#"></cfoutput> --->
216 <INPUT type="submit" value="Add Contacts">
217 <INPUT type="reset" value="Reset"></div>
218 </td>
219 </tr>
220 </table>
221 </form>
222
223 </td>
224 neenan 1.1 </tr>
225 </table>
226 </p>
|