-
Notifications
You must be signed in to change notification settings - Fork 18
/
sales.xml
executable file
·108 lines (108 loc) · 4.32 KB
/
sales.xml
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
<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
<!DOCTYPE REPORT SYSTEM "PHPReport.dtd">
<REPORT MARGINWIDTH="5" MARGINHEIGHT="5">
<TITLE>Sales Report</TITLE>
<BACKGROUND_COLOR>#FFFFFF</BACKGROUND_COLOR>
<CSS>sales.css</CSS>
<SQL>select city,name,type,item,value from sales order by city,name,type,item</SQL>
<CONNECTION>localhost</CONNECTION>
<INTERFACE>mysql</INTERFACE>
<DATABASE>phpreports</DATABASE>
<NO_DATA_MSG>No data was found, check your query</NO_DATA_MSG>
<DOCUMENT>
<FOOTER>
<ROW>
<COL COLSPAN="2" CELLCLASS="FOOTER" TEXTCLASS="BOLDRED" ALIGN="RIGHT">GRAND TOTAL</COL>
<COL CELLCLASS="FOOTER" TEXTCLASS="BOLDRED" TYPE="EXPRESSION" ALIGN="RIGHT" NUMBERFORMATEX="2">$this->getSum("value")</COL>
</ROW>
</FOOTER>
</DOCUMENT>
<PAGE BORDER="0" SIZE="30" CELLSPACING="0" CELLPADDING="3">
<HEADER>
<ROW>
<COL CELLCLASS="HEADER" COLSPAN="3">
<XHTML>
<TABLE BORDER="0" CELLPADDING="2" CELLSPACING="0" WIDTH="100%">
<TR>
<TD CLASS="HEADER">
<b>JOHN DOE ENTERPRISES</b>
</TD>
<TD ROWSPAN="2" CLASS="HEADER" style="background:#A0A0A0;color:#FFFFFF;" ALIGN="CENTER">
powered by<br/><b>phpreports</b>
</TD>
</TR>
<TR>
<TD CLASS="HEADER">
<b>SALES REPORT</b>
</TD>
</TR>
<TR>
<TD COLSPAN="3"><HR/></TD>
</TR>
</TABLE>
</XHTML>
</COL>
</ROW>
</HEADER>
<FOOTER>
<ROW>
<COL ALIGN="RIGHT" CELLCLASS="FOOTER" COLSPAN="2">page total</COL>
<COL TYPE="EXPRESSION" CELLCLASS="FOOTER" TEXTCLASS="BOLD" ALIGN="RIGHT" NUMBERFORMATEX="2">$this->getSum("value")</COL>
</ROW>
<ROW>
<COL ALIGN="RIGHT" COLSPAN="3" TYPE="EXPRESSION" CELLCLASS="FOOTER">"page number ".$this->getPageNum()</COL>
</ROW>
</FOOTER>
</PAGE>
<GROUPS>
<GROUP NAME="city" EXPRESSION="city" REPRINT_HEADER_ON_PAGEBREAK="TRUE" PAGEBREAK="TRUE">
<HEADER>
<ROW>
<COL ALIGN="RIGHT" CELLCLASS="HEADER" WIDTH="50"><LINK TYPE="STATIC" TARGET="_blank" TITLE="explain of what is a city">http://www.whatisacity.com</LINK>city:</COL>
<COL TYPE="EXPRESSION" CELLCLASS="HEADER" TEXTCLASS="BOLD" COLSPAN="2"><BOOKMARK TYPE="EXPRESSION" CELLCLASS="CITY" TEXTCLASS="BOOKMARK_TEXT">$this->getValue("city")</BOOKMARK>$this->getValue("city")</COL>
</ROW>
</HEADER>
<FOOTER>
<ROW>
<COL COLSPAN="3" CELLCLASS="FOOTER"></COL>
</ROW>
<ROW>
<COL ALIGN="RIGHT" TYPE="EXPRESSION" CELLCLASS="FOOTER" COLSPAN="2">"total of ".$this->getValue("city")</COL>
<COL TYPE="EXPRESSION" CELLCLASS="FOOTER" TEXTCLASS="BOLD" ALIGN="RIGHT" NUMBERFORMATEX="2">$this->getSum("value")</COL>
</ROW>
<ROW>
<COL COLSPAN="3" CELLCLASS="FOOTER"></COL>
</ROW>
</FOOTER>
<GROUP NAME="customer" EXPRESSION="name" RESET_SUPPRESS_ON_PAGEBREAK="TRUE" REPRINT_HEADER_ON_PAGEBREAK="TRUE">
<HEADER>
<ROW>
<COL CELLCLASS="HEADER" ALIGN="RIGHT" WIDTH="50">customer:</COL>
<COL CELLCLASS="HEADER" TEXTCLASS="BOLD" TYPE="EXPRESSION" COLSPAN="2"><LINK TYPE="EXPRESSION" TARGET="_blank" TITLE="click here to check info about the customer">"http://localhost/getcustomerinfo.php?name=".$this->getValue("name")</LINK>$this->getValue("name")</COL>
</ROW>
<ROW>
<COL CELLCLASS="HEADER" TEXTCLASS="BOLD" ALIGN="LEFT">type</COL>
<COL CELLCLASS="HEADER" TEXTCLASS="BOLD" ALIGN="LEFT">title</COL>
<COL CELLCLASS="HEADER" TEXTCLASS="BOLD" ALIGN="RIGHT">$</COL>
</ROW>
</HEADER>
<FIELDS>
<ROW>
<COL TYPE="FIELD" CELLCLASSEVEN="EVEN" CELLCLASSODD="ODD" ALIGN="LEFT" SUPPRESS="TRUE">type</COL>
<COL TYPE="FIELD" CELLCLASSEVEN="EVEN" CELLCLASSODD="ODD" ALIGN="LEFT">item</COL>
<COL TYPE="FIELD" CELLCLASSEVEN="EVEN" CELLCLASSODD="ODD" ALIGN="RIGHT">value</COL>
</ROW>
</FIELDS>
<FOOTER>
<ROW>
<COL ALIGN="RIGHT" TYPE="EXPRESSION" CELLCLASS="FOOTER" COLSPAN="2">"total of ".$this->getValue("name")</COL>
<COL TYPE="EXPRESSION" CELLCLASS="FOOTER" TEXTCLASS="BOLD" ALIGN="RIGHT" NUMBERFORMATEX="2">$this->getSum("value")</COL>
</ROW>
<ROW>
<COL COLSPAN="3" TYPE="EXPRESSION" CELLCLASS="FOOTER" TEXTCLASS="BOLD" ALIGN="RIGHT">($this->getSum("value")>200?"*** Free shipping bonus!***":"Regular shipping charging")</COL>
</ROW>
</FOOTER>
</GROUP>
</GROUP>
</GROUPS>
</REPORT>