-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdb_export.cfm
136 lines (131 loc) · 2.98 KB
/
db_export.cfm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
<cfquery name="getProducts" datasource="#dsource#" dbtype="ODBC" username="#uname#" password="#pword#">
SELECT * FROM products P
LEFT OUTER JOIN users U
on P.fk_users = U.pk_users
WHERE P.active = 1
order by manufacturer,name
</cfquery>
<cfheader name="Content-Disposition" value="attachment; filename=""Gallart Product Details #DateFormat(createodbcdate(now()))#.xls""">
<cfcontent type="application/ms-excel" reset="Yes">
<cfoutput>
<table border="0" cellpadding="0" cellspacing="0">
<tr bgcolor="##000000">
<td style="color: ##FFFFFF;" valign="top">
<strong>Availability</strong>
</td>
<td style="color: ##FFFFFF; valign="top"">
<strong>Caption</strong>
</td>
<td style="color: ##FFFFFF; valign="top"">
<strong>Code</strong>
</td>
<td style="color: ##FFFFFF; valign="top"">
<strong>Datestamp</strong>
</td>
<td style="color: ##FFFFFF; valign="top"">
<strong>ExpressAir</strong>
</td>
<td style="color: ##FFFFFF; valign="top"">
<strong>ImageURL</strong>
</td>
<td style="color: ##FFFFFF; valign="top"">
<strong>Artist</strong>
</td>
<td style="color: ##FFFFFF; valign="top"">
<strong>ModelNo</strong>
</td>
<td style="color: ##FFFFFF; valign="top"">
<strong>Name</strong>
</td>
<td style="color: ##FFFFFF; valign="top"">
<strong>Size</strong>
</td>
<td style="color: ##FFFFFF; valign="top"">
<strong>Category</strong>
</td>
<td style="color: ##FFFFFF; valign="top"">
<strong>Retail Price</strong>
</td>
<td style="color: ##FFFFFF; valign="top"">
<strong>Sale Price</strong>
</td>
<td style="color: ##FFFFFF; valign="top"">
<strong>ShipInfo</strong>
</td>
<td style="color: ##FFFFFF; valign="top"">
<strong>ShipWeight</strong>
</td>
<td style="color: ##FFFFFF; valign="top"">
<strong>Year</strong>
</td>
<td style="color: ##FFFFFF; valign="top"">
<strong>ID</strong>
</td>
<td style="color: ##FFFFFF; valign="top"">
<strong>Vendor</strong>
</td>
</tr>
<cfloop query="getProducts">
<tr>
<td valign="top">
#Availablity#
</td>
<td valign="top">
#Caption#
</td>
<td valign="top">
#Code#
</td>
<td valign="top">
#DateFormat(Datestamp)#
</td>
<td valign="top">
#ExpressAir#
</td>
<td valign="top">
#ImageURL#
</td>
<td valign="top">
#Manufacturer#
</td>
<td valign="top">
#ModelNo#
</td>
<td valign="top">
#Name#
</td>
<td valign="top">
#Overview#
</td>
<td valign="top">
#Path#
</td>
<td valign="top">
#DollarFormat(retail_price)#
</td>
<td valign="top">
#DollarFormat(gallery_price)#
</td>
<td valign="top">
#ShipInfo#
</td>
<td valign="top">
#Ship_Weight#
</td>
<td valign="top">
#specs#
</td>
<td valign="top">
#uid#
</td>
<td valign="top">
<cfif not len(fk_users)>
GallArt
<cfelse>
#fname# #lname#
</cfif>
</td>
</tr>
</cfloop>
</table>
</cfoutput>