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

  1 neenan 1.1 <!--- 	Name:  dsp_editorganization.cfm
  2                	Purpose: It helps to edit a currently added organization in your dummy program database. It also transfers
  3            				all the form variables to act_updateorganization.cfm where the actual action of updating the data
  4            				into the table(dorganization) takes place.
  5            		Date created: 02/23/2005
  6                   	Dependancy: None
  7            		Variables: 	OrganizationName - Name of the organization (Required)
  8            					Division - Division of the organization if applicable
  9            					Address1 - Address of the organization (Required)
 10            					Address2 - Remaining part of the organization's address if applicable
 11            					City - City name of Organization's location (Required)
 12            					StateorProvince - Dropdown List values to select the appropriate State(Required)
 13            					PostalCode - Zipcode of the organization address (Required)
 14            					Phone_Area - Phone Area Number of the organization (Required)
 15            					Phone_Prefix - Phone Number Prefix of the organization (Required)
 16            					Phone_Num - Phone Number of the organization (Required)
 17            					Extension - Extension if applicable
 18            					FaxNumber_Area - Fax Area Number of the organization (Required)
 19            					FaxNumber_Prefix - Fax Number Prefix of the organization (Required)
 20            					FaxNumber_Num - Fax Number of the organization (Required)
 21            					TimeZone - TimeZone of the organization (Required)
 22 neenan 1.1 					EmailName - Email of the organization
 23            					HotLine_Area - HotLine Area Number of the organization 
 24            					HotLine_Prefix - Hotline Number Prefix of the organization
 25            					Hotline_Num - Phone Number of the organization 
 26            					GeoServiceID - Scope of the organization (Required)
 27            									Option - Local(5), Regional(3), State(2), National(1)
 28            					Visitor_ID - ID of the Initial user responsible for adding the organization information.
 29            		Functions: 
 30            		Date changed: 
 31            					02/23/2005			Prabin and Neena 	Created, Documentation
 32            ---> 
 33            
 34            
 35            
 36            <cfquery name="editOrg" datasource="#programsdb#">
 37            	Select 	*
 38            	From 	dOrganization
 39            	Where	OrgID = #URL.OrgID#
 40            </cfquery>
 41            
 42            
 43 neenan 1.1 <cfquery name="getGeoServices" datasource="#programsdb#">
 44            	Select 	GeoServiceID, GeoService
 45            	From	GeoServices
 46            	Where	GeoServiceID = #editorg.GeoServiceID#
 47            </cfquery>
 48            
 49            
 50            
 51            <cfif 	#EditOrg.Phone# EQ "" OR #EditOrg.Phone# EQ "N/A">
 52            	<cfset Phone_Area = ""> 
 53            	<cfset Phone_Prefix = ""> 	
 54            	<cfset Phone_Num = ""> 
 55            
 56            <cfelse>
 57            	<cfset Phone_Area = Left(EditOrg.Phone, 3)> 
 58            	<cfset Phone_Prefix = Mid(EditOrg.Phone, 5, 3)> 	
 59            	<cfset Phone_Num = right(EditOrg.Phone, 4)> 
 60            </cfif>
 61 pKanel 1.3  
 62 neenan 1.1 
 63            <cfif 	#EditOrg.FaxNumber# EQ "" OR #EditOrg.FaxNumber# EQ "N/A">
 64            		<cfset FaxNumber_Area = ""> 
 65            		<cfset FaxNumber_Prefix = ""> 
 66            		<cfset FaxNumber_Num = ""> 
 67            
 68            <cfelse>
 69            	<cfset FaxNumber_Area = Left(EditOrg.FaxNumber, 3)> 
 70            	<cfset FaxNumber_Prefix = Mid(EditOrg.FaxNumber, 5, 3)> 
 71            	<cfset FaxNumber_Num = right(EditOrg.FaxNumber, 4)> 
 72            </cfif>
 73            
 74            
 75            <cfif 	#EditOrg.Hotline# EQ "" OR #EditOrg.Hotline# EQ "N/A">
 76            	<cfset Hotline_Area = ""> 
 77            	<cfset Hotline_Prefix = ""> 
 78            	<cfset Hotline_Num = ""> 
 79            <cfelse>
 80            	<cfset Hotline_Area = Left(EditOrg.Hotline, 3)> 
 81            	<cfset Hotline_Prefix = Mid(EditOrg.Hotline, 5, 3)> 
 82            	<cfset Hotline_Num = right(EditOrg.Hotline, 4)> 
 83 neenan 1.1 </cfif>
 84            
 85            
 86 pKanel 1.3 <!-- #BeginEditable "Content" -->
 87 neenan 1.1 <table width="100%" border="0" cellspacing="0" cellpadding="10" name="text">
 88                    <tr> 
 89                      <td> 
 90 pKanel 1.3             <p>	
 91            			<span class="subheading">
 92 pKanel 1.4 					EDIT A PROGRAM <!--- <img src="../images/siteimage/dart.gif" border="0"> --->
 93            				ORGANIZATION INFO <!--- <img src="../images/siteimage/dart.gif" border="0"> ---></span>
 94            				<span class="sublink2">Step 1<!---  <img src="../images/siteimage/dart.gif" border="0"> ---></span><br><br>
 95 pKanel 1.3 			<span class="redtext">* Required Fields</span>
 96 neenan 1.1 
 97            		<cfif #URL.fuseaction# IS "EditOrg"> 
 98            		<form name="addorg" action="addeditprograms.cfm?fuseaction=EditContacts1&OrgID=<cfoutput>#URL.orgID#</cfoutput>" method="post">
 99            		<cfelseif #URL.fuseaction# IS "Editorganization"> 
100            		<form name="addorg" action="addeditprograms.cfm?fuseaction=EditContacts&OrgID=<cfoutput>#URL.orgID#</cfoutput>" method="post">
101            		</cfif>
102            
103            			<cfoutput query="EditORG">
104            			<table width="95%" border="0" cellspacing="0" cellpadding="5" bgcolor="##F4FFE9">
105            				<tr>
106            					<td><div class="formtext">Organization <font style="color: red">*</font></td>
107 pKanel 1.3 					<td><input type="hidden" size="3" name="statename" value="#EditORG.StateOrProvince#">
108            						<input type="text" size="50" name="OrganizationName" value="#OrganizationName#" onfocus="return getStateOption3('addorg')"></div>
109 neenan 1.1 						<input type="hidden" name="OrganizationName_required" value="Please enter the organization's name, or enter 'n/a'.">
110 pKanel 1.3 											
111 neenan 1.1 					</td>
112            				</tr>
113            				<tr>
114            					<td><div class="formtext">Division</td>
115            					<td><input type="text" size="40" name="Division" value="#Division#"></div></td>
116 pKanel 1.3 					
117 neenan 1.1 				</tr>
118            				<tr>
119            					<td nowrap><div class="formtext">Address 1 <font style="color: red">*</font></td>
120            					<td><input type="text" size="40" name="Address1" value="#Address1#"></div>
121            						<input type="hidden" name="Address1_required" value="Please enter the organization's address, or enter 'n/a'.">
122            					</td>
123            				</tr>
124            				<tr>
125            					<td nowrap><div class="formtext">Address 2</td>
126            					<td><input type="text" size="40" name="Address2" value="#Address2#" ></div></td>
127            				</tr>
128            				<tr>
129            					<td><div class="formtext">City <font style="color: red">*</font></td>
130            					<td align="justified" nowrap>
131            						<input type="text" size="25" name="City" value="#City#"></div>
132            						<input type="hidden" name="City_required" value="Please enter the organization's city location, or enter 'n/a'.">
133            					</td>
134            				</tr>
135 pKanel 1.3 				</cfoutput>
136 neenan 1.1 				<tr>	
137 pKanel 1.3 					<td><div class="formtext"><font style="color: red">*</font>State</td>
138            					<td>
139            					<select name="State">
140            							<cfoutput query="getState">
141            							<option value="#Abbr#" <cfif #Abbr# EQ #editOrg.stateOrProvince#> selected </cfif>>#State#</option>
142            							</cfoutput>
143 neenan 1.1 					</select></div>
144            					</td>
145            				</tr>
146 pKanel 1.3 				<cfoutput query="EditORG">
147 neenan 1.1 				<tr>
148            					<td><div class="formtext">Zip <font style="color: red">*</font></td>
149            					<td align="justified" nowrap>
150            						<input type="text" size="10" name="PostalCode" value="#PostalCode#"></div>
151            						<input type="hidden" name="PostalCode_required" value="Please enter the organization's zip code, or enter 'n/a'.">
152            					</td>
153            				</tr>
154            				<tr>
155            					<td><div class="formtext">Country<font style="color: red">*</font>&nbsp;</td>
156            					<td><input type="text" size="18" name="Country" value="United States"></div>
157            						<input type="hidden" name="Country_required" value="Please enter the organization's country location, or enter 'n/a'.">
158            					</td>
159            				</tr>			
160            				
161            				
162            				<tr>
163            					<td><div class="formtext">Organization Phone <font style="color: red">*</font></td>
164            					<td><input type="Text" size="3" maxlength="3" name="Phone_Area" value="#Phone_Area#">-
165            						<input type="Text" size="3" maxlength="3" name="Phone_Prefix" value="#Phone_Prefix#">-
166            						<input type="Text" size="4" maxlength="4" name="Phone_Num" value="#Phone_Num#">
167            						<input type="hidden" name="Phone_Area_required" value="Please enter the area code of phone number, or enter 'n/a'.">
168 neenan 1.1 						<input type="hidden" name="Phone_Prefix_required" value="Please enter the prefix of phone number, or enter 'n/a'.">
169            						<input type="hidden" name="Phone_Num_required" value="Please enter the numer of phone number, or enter 'n/a'.">		
170            					    <font class="formtext">Ext.</font>
171            						<input type="text" size="5" name="Extension">
172            					</td>
173            				</tr>
174            				<tr>
175            					<td><div class="formtext">Organization Fax</td>
176            					<td><input type="Text" name="FaxNumber_Area" size="3" maxlength="3" value="#FaxNumber_Area#">-
177            						<input type="Text" name="FaxNumber_Prefix" size="3" maxlength="3"  value="#FaxNumber_Prefix#">-
178            						<input type="Text" name="FaxNumber_Num" size="4" maxlength="4" value="#FaxNumber_Num#"></div>
179            					</td>
180            				</tr>
181            				<tr>
182            					<td><div class="formtext">Hotline</td>
183            					<td><input type="Text" name="Hotline_Area" size="3" maxlength="3" value="#Hotline_Area#">-
184            						<input type="Text" name="Hotline_Prefix" size="3" maxlength="3" value="#Hotline_Prefix#">-
185            						<input type="Text" name="Hotline_Num" size="4" maxlength="4" value="#Hotline_Num#"></div>
186            					</td>
187            				</tr>
188            
189 neenan 1.1 				<tr>
190            					<td nowrap><div class="formtext">Time Zone <font style="color: red">*</font></td>
191            					<td><select name="TimeZone">
192            							<option value="#TimeZone#" selected> #TimeZone# </option>
193            							<option value="Pacific"> Pacific</option>
194            							<option value="Mountain"> Mountain</option>
195            							<option value="Central"> Central</option>
196            							<option value="Eastern"> Eastern</option>
197            							<option value="Atlantic"> Atlantic</option>
198            							<option value="Other"> Other</option>
199            						</select></div>
200            					</td>
201            				</tr>
202            				<tr>
203            					<td><div class="formtext">Email</td>
204            					<td><input type="text" size="40" name="EmailName" value="#EmailName#"></div></td>
205            				</tr>
206            				</cfoutput>
207            				<tr>
208            				
209            					<td nowrap><div class="formtext">Service Scope <font style="color: red">*</font></td>
210 neenan 1.1 					<td><select name="GeoServiceID">
211            							<cfoutput query="getgeoservices">
212            								<option value="#GeoServiceID#" selected>#GeoService#</option>
213            								</cfoutput>								
214            								<option value="5" > Local</option>
215            								<option value="3"> Regional</option>
216            								<option value="2"> State</option>
217            								<option value="1"> National</option>
218            						</select> </div>
219            					</td>
220            	
221            				</tr>
222            				<tr>
223            				<tr>
224            				<cfoutput query="EditORG">
225            					<td><div class="formtext">URL <font style="color: red">*</font></td>
226            					<td><input type="text" size="40" name="URL" value="#URL#"></div>
227            						<input type="hidden" name="URL_required" value="Please enter a URL for the organization.">
228            					</td>
229            				</tr>
230            				<tr>	
231 neenan 1.1 					<td><div class="formtext">Graphic URL</td>
232            					<td><input type="text" size="40" name="GraphicURL" value="#GraphicURL#"></div></td>
233            				</tr>
234            				<tr>
235            					<td valign="top"><div class="formtext">Profile<font style="color: red">*</font></td>
236            					<td><textarea cols="35" rows="10" align="top" name="Profile">#Profile#</textarea></div>
237            						<input type="hidden" name="Profile_required" value="Please enter a profile for the organization.">
238            					</td>
239            				</tr>	
240            				<tr>
241            					<td>&nbsp;</td>
242            				</tr>
243            				<tr> 
244            					<td>&nbsp;</td>
245                  				<td><div class="formtext"><INPUT type="submit" value="Edit Organization">
246            	  				<INPUT type="reset" value="Reset"></div></td>
247                			</tr>
248            			</cfoutput>	
249            		</table>
250            	</form>
251            </td>
252 neenan 1.1 </tr>
253            </table>
254            </p>

CVS Admin
Powered by
ViewCVS 1.0-dev