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

File: [Development] / p2rx-programs / include / dsp_orgdetail.cfm (download)
Revision: 1.4, Fri Jan 19 19:37:44 2007 UTC (2 years, 10 months ago) by nbisbee
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +24 -16 lines
Added edit link.

<!--- 	Name:  dsp_orgDetail.cfm
    	Purpose: This file will get the detail information depending upon the value of OrgID.
		Date created: 05/01/2006 
       	Dependancy: PageAction 
					URL - for CFHTTP
					region - Number of region
					Orgid - Unique identifier of each organization
		Variables: 	OrgID - Unique identifier for each organization
					OrganizationName - Name of the organization
					GraphicURL - Logo of the organization
					Division - Division associate with organization
					URL - URL of the organization
					Profile - Profile of the organization
					Address1, Address2, City, State, Zip - Complete information of the organization
					ContactID - Unique idenfier of the contact
					CONT_EMAILNAME - Email address of the contact person
					CONT_NAME - Name of the contact person
					CONT_Title - Title of the contact person
		Date changed: 
					05/01/2006		Prabin Kanel	Created file
					05/12/2006		Prabin Kanel	Documentation
					06/14/2006		Terry Huss  	Added lines 28-31 in case P2Rx server is down
					01/19/2007		nate bisbee 	Added edit link
--->


	<CFTRY>
		<cfhttp method="GET" url="http://www.p2rx.org/webservices/p2rx/details.cfm?region=#region#&orgid=#orgid#&format=#format#" resolveurl="no">
		<!---<cfoutput>#cfhttp.statuscode#</cfoutput>--->
			<cfif cfhttp.statuscode EQ "404 Not Found">
				<cfoutput>
					<cfhttp method="GET" url="http://wrrc.p2pays.org/webservices/p2rx/details.cfm?region=#region#&orgid=#orgid#&format=#format#" resolveurl="no">
				</cfoutput>			
			</cfif>
			
			<cfwddx action="WDDX2CFML" input="#cfhttp.fileContent#" output="strOutput">
			<cfset title= "Detail Information of  " & strOutput.List[1].ORGANIZATIONNAME & " Organization">
			<cfset meta_keywords = Meta_keywords & "#strOutput.List[1].DIVISION# , ">
			<cfset meta_keywords = Meta_keywords & "#strOutput.List[1].CITY# , ">
			<cfset meta_keywords = Meta_keywords & "#strOutput.List[1].STATEORPROVINCE# , ">
			<CFSET Description = "This page displays the detail information for " & "#strOutput.List[1].ORGANIZATIONNAME#" & " Profile: " &  "#strOutput.List[1].PROFILE#">
			<p><table class="regtext">
			<cfoutput>
				<CFIF PageAction NEQ "print">
					<a href="index.cfm?PageAction=Print&OrgID=#URL.ORgID#&Region=#Url.Region#&Format=#Url.Format#" class="sublink2"><img src="images/printer.bmp" border="0" height="25" hspace="2" width="27">Print Friendly Page</a>
				</CFIF>	
				
				<p>
					Click here if you would like to <a href="http://www.p2rx.org/networking/addeditprograms.cfm?fuseaction=edit&region=#url.region#&orgid=#url.orgid#&vid=#session.cfid#">Edit Your Program</a>.
					You will be redirected to the national P2Rx website.  
				</p>

				<p><tr><td colspan="2">
					<IMG SRC="#strOutput.List[1].GRAPHICURL#" alt="#strOutput.List[1].ORGANIZATIONNAME#">
				</td></tr>
				<tr valign="top">
					<td width="100" colspan="2">&nbsp;
					</td>
				</tr>
				<p><tr valign="top">
					<td width="100">
						<strong>Name: </strong>
					</td>
					<td>
					#strOutput.List[1].ORGANIZATIONNAME#<BR><BR>
					</td>
				</tr>
			 	<cfif strOutput.List[1].DIVISION NEQ "">
					<tr valign="top">
						<td width="100">&nbsp;</td>
						<td>Division - #strOutput.List[1].DIVISION#</td>
					</tr>
				</cfif>
			 	<tr valign="top">
					<td><strong>URL:</strong> </td>
					<td><a href="#strOutput.List[1].URL#"  class="subheading">#strOutput.List[1].URL#</a><BR><BR></td>
				</tr>
				<tr valign="top">
					<td><strong>Profile: </strong></td>
					<td>#strOutput.List[1].PROFILE#<BR><BR></td>
				</tr>

				<tr valign="top">
					<td><strong>Address: </strong></td>
					<td>#strOutput.List[1].ADDRESS1# <br>#strOutput.List[1].ADDRESS2#</td>
				</tr>
				<tr valign="top">
					<td>&nbsp;</td>
					<td>#strOutput.List[1].CITY# #strOutput.List[1].STATEORPROVINCE# #strOutput.List[1].POSTALCODE#</td>
				</tr>
				<tr valign="top">
					<td><strong> </strong></td>
					<td>#strOutput.List[1].PHONE# <cfif #strOutput.List[1].EXTENSION# NEQ "">(#strOutput.List[1].EXTENSION#) </cfif><BR><BR>	</td>
				</tr>
				<cfif strOutput.List[1].HOTLINE NEQ "">
					<tr valign="top">
						<td><strong>HotLine:</strong></td>
						<td>#strOutput.List[1].HOTLINE#<BR><BR></td>
					</tr>
				 </cfif>
				<cfif strOutput.List[1].FAXNUMBER NEQ "">
					<tr valign="top">
						<td><strong>Fax Number</strong></td>
						<td>#strOutput.List[1].FAXNUMBER# <BR><BR></td>
					</tr>	
				</cfif>
				<cfif strOutput.List[1].EMAILNAME NEQ "">
				<tr valign="top">
					<td><strong>Email</strong></td>
					<td><a href="mailto:#strOutput.List[1].EMAILNAME#" class="subheading">#strOutput.List[1].EMAILNAME#</a><BR><BR></td>
				</tr>
				</cfif>
		
		<!---Removed on 5.31.06 because we do not have enough contact information in database--->		
		<cfif strOutput.List[1].CONT_FNAME NEQ "">
		
				<CFSET intNumberOfTerms = ArrayLen(strOutput.List)>
				<tr valign="top">
					<td><strong>Contact Person:</strong></td>
					<td>
				<CFLOOP from="1" to="#intNumberOfTerms#" index="intCounter">	
					<cfoutput>
						<cfif strOutput.List[intCounter].CONT_EMAILNAME NEQ "">
							<a href="mailto:#strOutput.List[intCounter].CONT_EMAILNAME#"  class="subheading">
						</cfif>
							#strOutput.List[intCounter].CONT_FNAME# #strOutput.List[intCounter].CONT_LNAME#
						<cfif strOutput.List[intCounter].CONT_EMAILNAME NEQ "">
						</a></cfif>
						<cfif strOutput.List[intCounter].CONT_TITLE NEQ "">
							&nbsp;&nbsp;- #strOutput.List[intCounter].Cont_Title#
						</cfif>
					 <BR>
					 </cfoutput> 
			 	</cfloop>	
			 	<BR> 
			 	</td></tr>
				
		</cfif>	
			
			</cfoutput>
			</table>
		<cfcatch type="Any">
			<P>The detail of the organization could not displayed due to technical difficulties. The administrator has been notified.</P>
		</cfcatch>
	</CFTRY>
	
	

CVS Admin
Powered by
ViewCVS 1.0-dev