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

File: [Development] / p2rx-programs / dsp_AddOrganization.cfm (download)
Revision: 1.3, Fri Aug 26 16:08:19 2005 UTC (4 years, 2 months ago) by pKanel
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +19 -61 lines
Enhancements made to resolve programs added or udpated by Outsite users.

<!--- 	Name:  dsp_Addorganization.cfm
    	Purpose: It helps to add a organization in your dummy program database. It also transfers
				all the form variables to act_addorganization.cfm where the actual action of inserting the data
				into the table(dorganization) takes place.
		Date created: 02/23/2005
       	Dependancy: vtime - value of date being passed from dsp_Usersform.cfm that stores the unique date/time value at which the 
					visitor/initial contact saved changes to the database.this value is used to remove any conflicts between other users
					using the same form.
		Variables: 	OrganizationName - Name of the organization (Required)
					Division - Division of the organization if applicable
					Address1 - Address of the organization (Required)
					Address2 - Remaining part of the organization's address if applicable
					City - City name of Organization's location (Required)
					StateorProvince - Dropdown List values to select the appropriate State(Required)
					PostalCode - Zipcode of the organization address (Required)
					Phone_Area - Phone Area Number of the organization (Required)
					Phone_Prefix - Phone Number Prefix of the organization (Required)
					Phone_Num - Phone Number of the organization (Required)
					Extension - Extension if applicable
					FaxNumber_Area - Fax Area Number of the organization (Required)
					FaxNumber_Prefix - Fax Number Prefix of the organization (Required)
					FaxNumber_Num - Fax Number of the organization (Required)
					TimeZone - TimeZone of the organization (Required)
					EmailName - Email of the organization
					HotLine_Area - HotLine Area Number of the organization 
					HotLine_Prefix - Hotline Number Prefix of the organization
					Hotline_Num - Phone Number of the organization 
					GeoServiceID - Scope of the organization (Required)
									Option - Local(5), Regional(3), State(2), National(1)
					Visitor_ID - ID of the Initial user responsible for adding the organization information.
					
					Functions: 
		Date changed: 
					02/23/2005		Prabin and Neena 	Created, Documentation
					08/26/2005		Prabin				Added query so that states will be 
														populated from the table.	
---> 



<cfquery name="getGeoServices" datasource="#programsdb#">
	Select 	GeoServiceID, GeoService
	From	GeoServices
</cfquery>

<cfoutput>
<cfquery name="GetvisitorID" datasource="#ProgramsDB#">
	Select 		*
	From 		OutsideUsers 
	Where  vtime like '#userdate#'
</cfquery>
</cfoutput>

<!-- #BeginEditable "Content" -->
<table width="100%" border="0" cellspacing="0" cellpadding="10" name="text">
        <tr> 
          <td> 
            <p>	
			<span class="subheading">
					ADD	A PROGRAM <!--- <img src="../images/siteimage/dart.gif" border="0"> --->
				ORGANIZATION INFO <!--- <img src="../images/siteimage/dart.gif" border="0"> ---></span>
				<span class="sublink2">Step 1 <img src="../images/siteimage/dart.gif" border="0"></span><br><br>
			<span class="redtext"><font style="color: red">* Required Fields</font></span>


		<form name="addorg" action="addeditprograms.cfm?fuseaction=AddContacts" method="post">
			<table width="95%" border="0" cellspacing="0" cellpadding="5" bgcolor="#F4FFE9">
				<tr>
					<td><div class="formtext">Organization <font style="color: red">*</font></td>
					<td><input type="text" size="40" name="OrganizationName" ></div>
						<input type="hidden" name="OrganizationName_required" value="Please enter the organization's name, or enter 'n/a'.">
					</td>
				</tr>
				<tr>
					<td><div class="formtext">Division</td>
					<td><input type="text" size="40" name="Division" ></div></td>
				</tr>
				<tr>
					<td nowrap><div class="formtext">Address 1 <font style="color: red">*</font></td>
					<td><input type="text" size="40" name="Address1" ></div>
						<input type="hidden" name="Address1_required" value="Please enter the organization's address, or enter 'n/a'.">
					</td>
				</tr>
				<tr>
					<td nowrap><div class="formtext">Address 2</td>
					<td><input type="text" size="40" name="Address2" ></div></td>
				</tr>
				<tr>
					<td><div class="formtext">City <font style="color: red">*</font></td>
					<td align="justified" nowrap>
						<input type="text" size="25" name="City" ></div>
						<input type="hidden" name="City_required" value="Please enter the organization's city location, or enter 'n/a'.">
					</td>
				</tr>
				<tr>	
					<td><div class="formtext">State <font style="color: red">*</font></td>
					<td><select name="StateOrProvince">
							<cfoutput query="getState">
							<option value="#Abbr#">#State#</option>
							</cfoutput>
					</select>
					
					
					
					</div>
					</td>
				</tr>
				<tr>
					<td><div class="formtext">Zip <font style="color: red">*</font></td>
					<td align="justified" nowrap>
						<input type="text" size="10" name="PostalCode" ></div>
						<input type="hidden" name="PostalCode_required" value="Please enter the organization's zip code, or enter 'n/a'.">
					</td>
				</tr>
				<tr>
					<td><div class="formtext">Country<font style="color: red">*</font>&nbsp;</td>
					<td><input type="text" size="18" name="Country" value="United States"></div>
						<input type="hidden" name="Country_required" value="Please enter the organization's country location, or enter 'n/a'.">
					</td>
				</tr>			
				
				
				<tr>
					<td><div class="formtext">Organization Phone <font style="color: red">*</font></td>
					<td><input type="Text" size="3" maxlength="3" name="Phone_Area">-
						<input type="Text" size="3" maxlength="3" name="Phone_Prefix">-
						<input type="Text" size="4" maxlength="4" name="Phone_Num">
						<input type="hidden" name="Phone_Area_required" value="Please enter the area code of phone number, or enter 'n/a'.">
						<input type="hidden" name="Phone_Prefix_required" value="Please enter the prefix of phone number, or enter 'n/a'.">
						<input type="hidden" name="Phone_Num_required" value="Please enter the phone number, or enter 'n/a'.">		
					    <font class="formtext">Ext.</font>
						<input type="text" size="5" name="Extension">
					</td>
				</tr>
				<tr>
					<td><div class="formtext">Organization Fax</td>
					<td><input type="Text" name="FaxNumber_Area" size="3" maxlength="3">-
						<input type="Text" name="FaxNumber_Prefix" size="3" maxlength="3">-
						<input type="Text" name="FaxNumber_Num" size="4" maxlength="4"></div>
					</td>
				</tr>
				<tr>
					<td><div class="formtext">Hotline</td>
					<td><input type="Text" name="Hotline_Area" size="3" maxlength="3">-
						<input type="Text" name="Hotline_Prefix" size="3" maxlength="3">-
						<input type="Text" name="Hotline_Num" size="4" maxlength="4"></div>
					</td>
				</tr>

				<tr>
					<td nowrap><div class="formtext">Time Zone <font style="color: red">*</font></td>
					<td><select name="TimeZone">
							<option value="Pacific" selected> Pacific</option>
							<option value="Mountain"> Mountain</option>
							<option value="Central"> Central</option>
							<option value="Eastern"> Eastern</option>
							<option value="Atlantic"> Atlantic</option>
							<option value="Other"> Other</option>
						</select></div>
					</td>
				</tr>
				<tr>
					<td><div class="formtext">Email</td>
					<td><input type="text" size="40" name="EmailName"></div></td>
				</tr>
				<tr>
					<td nowrap><div class="formtext">Service Scope <font style="color: red">*</font></td>
					<td><select name="GeoServiceID">
						<cfoutput query="getgeoServices">
							<option value="#GeoServiceID#" selected>#GeoService#</option>
						</cfoutput>
						</select></div>
					</td>
				</tr>
				<tr>
				<tr>
					<td><div class="formtext">URL <font style="color: red">*</font></td>
					<td><input type="text" size="40" name="URL" value="http://"></div>
						<input type="hidden" name="URL_required" value="Please enter a URL for the organization.">
					</td>
				</tr>
				<tr>	
					<td><div class="formtext">Logo URL <a href="javascript:newWindow ('help.cfm')"><font style="color: red" size="-1">Help</font></a></td>
					<td><input type="text" size="40" name="GraphicURL" value="http://"></div></td>
				</tr>
			<tr>
					<td valign="top"><div class="formtext">Profile<font style="color: red">*</font></td>
					<td><textarea cols="35" rows="10" align="top" name="Profile"></textarea></div>
						<input type="hidden" name="Profile_required" value="Please enter a profile for the organization.">
					</td>
				</tr>	
				<tr>
					<td>&nbsp;</td>
				</tr>
				<tr> 
					<td>&nbsp;</td>
      				<td><div class="formtext"><INPUT type="submit" value="Add Organization">
	  				<INPUT type="reset" value="Reset"></div></td>
					<cfoutput><input type="hidden" name="userdate" value="#GetvisitorID.visitor_id#"></cfoutput>
    			</tr>
		</table>
	</form>

</td>
</tr>
</table>
</p>
<!--- <cfinclude template="../cfi/global_footer.cfm"> --->

CVS Admin
Powered by
ViewCVS 1.0-dev