 			<input type="submit" value="download CSV">
 		</form>
 	</p>
+	<p>
+		<form name="ms" method="post" action="Loan.cfm">
+			<input type="hidden" name="sql" value="#sql#">
+			<input type="hidden" name="action" value="mapShipment">
+			<input type="submit" value="Map Shipments">
+		</form>
+	</p>
 	</cfoutput>
 	<table>
 	<cfset i=1>

    	addNewLine = "no">
	<cflocation url="/download.cfm?file=LoanResultsDownload.csv" addtoken="false">
</cfif>
<cfinclude template="includes/_footer.cfm">
	<cfset np_clist=d.columnlist>
	<cfset np_clist=listdeleteat(np_clist,listfindnocase(np_clist,'PROJECT_NAME'))>
	<cfset np_clist=listdeleteat(np_clist,listfindnocase(np_clist,'PID'))>
	<cfquery name="dnp" dbtype="query">
		select #np_clist# from d group by #np_clist#
	</cfquery>
	<cfset queryAddColumn(dnp,'PROJECT_NAME','VarChar',ArrayNew(1))>
	<cfloop query="dnp">
		<cfquery name="p" dbtype="query">
			select PROJECT_NAME from d where transaction_id=#transaction_id#
		</cfquery>
		<cfset querySetCell(dnp, "PROJECT_NAME", valuelist(p.PROJECT_NAME,";"), dnp.currentRow) />
	</cfloop>
	<cfset  util = CreateObject("component","component.utilities")>
	<cfset csv = util.QueryToCSV2(Query=dnp,Fields=dnp.columnlist)>
	<cffile action = "write"
