|
version 1.2, 2005/03/09 16:32:16 UTC
|
version 1.3, 2005/08/31 18:59:32 UTC
|
|
|
|
| Date changed: |
Date changed: |
| 02/24/2005 Prabin & Neena Created |
02/24/2005 Prabin & Neena Created |
| 02/24/2005 Neena Documentation |
02/24/2005 Neena Documentation |
| |
08/22/2005 Prabin added cfoutput to get the list of states. |
| ---> |
---> |
| |
|
| |
<!--- New code inserted for adding new org id based on maximum + 1 of existing orgid Number ---> |
| |
<cfquery name="getMaxOrgID" datasource="#programsdb#"> |
| |
Select max(orgid) as MaxOrgID from dorganization |
| |
</cfquery> |
| |
|
| |
<cfset neworgid = #getMaxOrgID.MaxOrgID# + 1> |
| |
|
| |
<!--- earlier code continues here ---> |
| |
|
| <cfif #form.Phone_Area# EQ "" OR |
<cfif #form.Phone_Area# EQ "" OR |
| #form.Phone_Area# EQ "N/A" OR |
#form.Phone_Area# EQ "N/A" OR |
| #form.Phone_Prefix# EQ "" OR |
#form.Phone_Prefix# EQ "" OR |
|
|
|
| <cfelse> |
<cfelse> |
| <cfset FinalHotline='#form.Hotline_Area#-#form.Hotline_Prefix#-#form.Hotline_Num#'> |
<cfset FinalHotline='#form.Hotline_Area#-#form.Hotline_Prefix#-#form.Hotline_Num#'> |
| </cfif> |
</cfif> |
| <cfset currdate=DateFormat(Now(),"mm/dd/yyyy hh:mm:ss")> |
|
| |
<cfset currdate= DateFormat(Now(),"mm/dd/yyyy") & " " & TimeFormat(Now(),"hh:mm:ss")> |
| <!--- in order to insert a timestamp for the new organization to come over the conflict problem ---> |
<!--- in order to insert a timestamp for the new organization to come over the conflict problem ---> |
| <cfset storedate = currdate> |
<cfset storedate = currdate> |
| |
|
| |
|
| <cfquery name="InsertOrg" datasource="#programsdb#"> |
<cfquery name="InsertOrg" datasource="#programsdb#"> |
| Insert Into dOrganization |
Insert Into dOrganization |
| (OrganizationName, Phone, Extension, Division, FaxNumber, TimeZone, Address1, EmailName, GeoServiceID, Address2, Hotline, City, StateOrProvince, URL, PostalCode, Country, GraphicURL, Profile, Times, Visitor_Id) |
(Orgid,OrganizationName, Phone, Extension, Division, FaxNumber, TimeZone, Address1, EmailName, GeoServiceID, Address2, Hotline, City, StateOrProvince, URL, PostalCode, Country, GraphicURL, Profile, Times, Visitor_Id, UpdateStatus) |
| Values ('#form.OrganizationName#', |
Values (#neworgid#, |
| |
'#form.OrganizationName#', |
| '#FinalPhoneNumber#', |
'#FinalPhoneNumber#', |
| '#form.Extension#', |
'#form.Extension#', |
| '#form.Division#', |
'#form.Division#', |
|
|
|
| '#form.GraphicURL#', |
'#form.GraphicURL#', |
| '#form.Profile#', |
'#form.Profile#', |
| '#currdate#', |
'#currdate#', |
| #vid#) |
#userdate#, |
| |
'1') |
| </cfquery> |
</cfquery> |
| |
|
| <cfoutput> <input type="hidden" name="storedate" value="#storedate#"> |
|
| |
|
| </cfoutput> |
|
| |
<cfoutput> <input type="hidden" name="storedate" value="#storedate#"> </cfoutput> |