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

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

CVS Admin
Powered by
ViewCVS 1.0-dev