summaryrefslogtreecommitdiff
path: root/reports/addresslabels.xml
blob: 011cae6677fd6f089c2f281e54e6f85e777d051a (plain)
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
<?xml version="1.0" encoding="UTF-8"?>
<PGVReport access="PRIV_USER" icon="place">
<!-- $Id$ -->
	<PGVRDescription>Prints address labels</PGVRDescription>
	<PGVRTitle><PGVRvar var="pgv_lang[address_labels]" /></PGVRTitle>
	<PGVRInput name="address" type="text"><PGVRvar var="pgv_lang[filter_address]" /> </PGVRInput>
	<PGVRInput name="sortby" type="select" options="NAME,ID"><PGVRvar var="pgv_lang[sort_by]" /></PGVRInput>
	<PGVRInput name="email_in" type="select" options="all,noemail,onlyemail"><PGVRvar var="pgv_lang[include]"/> </PGVRInput>
	<PGVRInput name="pageSize" type="select" default="A4" options="letter,A3,A4,legal"><PGVRvar var="pgv_lang[page_size]" /></PGVRInput>
	<PGVRInput name="fonts" type="select" default="dejavusans" options="arialunicid0,dejavusans,helvetica"><PGVRvar var="pgv_lang[font]"/></PGVRInput>
	<!--
	<PGVRInput name="showid" type="checkbox" default="1"><PGVRvar var="pgv_lang[show_ids]" /></PGVRInput>
	-->
	<PGVRStyle name="header" font="$fonts" size="16" style="b" />
	<PGVRStyle name="pagenum" font="$fonts" size="8" style="" />
	<PGVRStyle name="text" font="$fonts" size="8" style="" />
	<PGVRStyle name="label" font="$fonts" size="8" style="b" />
	<PGVRStyle name="idstyle" font="$fonts" size="6" style="" />

	<PGVRDoc pageSize="$pageSize" leftmargin="1" rightmargin="1" showGeneratedBy="0">
		<PGVRHeader>
		</PGVRHeader>
		<PGVRBody>
			<PGVRSetVar name="email" value="" />
			<PGVRSetVar name="addrfilter" value="ADDR CONTAINS " />
			<PGVRSetVar name="addrfilter2" value="" />
			<PGVRif condition="$address != ''">
				<PGVRSetVar name="addrfilter2" value="ADDR SUBCONTAINS $address" />
			</PGVRif>
			<PGVRif condition="$email_in=='noemail'">
				<PGVRSetVar name="email" value="EMAIL EQUALS ''" />
			</PGVRif>
			<PGVRif condition="$email_in=='onlyemail'">
				<PGVRSetVar name="email" value="EMAIL CONTAINS ." />
				<PGVRif condition="$address==''">
					<PGVRSetVar name="addrfilter" value="EMAIL CONTAINS ." />
					<PGVRSetVar name="email" value="" />
				</PGVRif>
			</PGVRif>
			<PGVRSetVar name="newline" value="0" />
			<PGVRSetVar name="count" value="1" />
			<PGVRSetVar name="Xstart" value="1" />
			<PGVRSetVar name="Ystart" value="30" />
			<PGVRSetVar name="width" value="200" />
			<PGVRSetVar name="height" value="74" />
			<PGVRSetVar name="Xspace" value="3" />
			<PGVRSetVar name="Yspace" value="1" />
			<PGVRif condition="$pageSize=='letter'">
				<PGVRSetVar name="Xstart" value="5" />
				<PGVRSetVar name="Ystart" value="25" />
				<PGVRSetVar name="width" value="194" />
				<PGVRSetVar name="height" value="76" />
				<PGVRSetVar name="Xspace" value="15" />
				<PGVRSetVar name="Yspace" value="1" />
			</PGVRif>
			<PGVRSetVar name="X" value="$Xstart" />
			<PGVRSetVar name="Y" value="$Ystart" />
			<PGVRList list="individual" filter1="$addrfilter" filter2="$addrfilter2" filter3="$email" sortby="$sortby">
				<PGVRTextBox top="$Y" left="$X" width="$width" height="$height" newline="$newline" pagecheck="false">
					<PGVRText style="label"><PGVRGetPersonName id="" /></PGVRText>
					<PGVRText style="text"><br /><PGVRGedcomValue tag="ADDR" /><PGVRGedcomValue tag="RESI:ADDR" /></PGVRText>
					<PGVRif condition="@ADDR:ADR1 != ''">
						<PGVRText style="text"><br /><PGVRGedcomValue tag="ADDR:ADR1" /></PGVRText>
					</PGVRif>
					<PGVRif condition="@ADDR:CITY != ''">
					<PGVRif condition="$POSTAL_CODE==false">
							<PGVRif condition="@ADDR:STAE != ''">
								<PGVRText style="text"><br /><PGVRGedcomValue tag="ADDR:POST" /> <PGVRGedcomValue tag="ADDR:CITY" />, <PGVRGedcomValue tag="ADDR:STAE" /> </PGVRText>
							</PGVRif>
							<PGVRif condition="@ADDR:STAE == ''">
								<PGVRText style="text"><br /><PGVRGedcomValue tag="ADDR:POST" /> <PGVRGedcomValue tag="ADDR:CITY" /></PGVRText>
							</PGVRif>
						</PGVRif>
						<PGVRif condition="$POSTAL_CODE==true">
							<PGVRif condition="@ADDR:STAE != ''">
								<PGVRText style="text"><br /><PGVRGedcomValue tag="ADDR:CITY" />, <PGVRGedcomValue tag="ADDR:STAE" /> <PGVRGedcomValue tag="ADDR:POST" /></PGVRText>
					    	</PGVRif>
							<PGVRif condition="@ADDR:STAE == ''">
								<PGVRText style="text"><br /><PGVRGedcomValue tag="ADDR:CITY" /> <PGVRGedcomValue tag="ADDR:POST" /></PGVRText>
					    	</PGVRif>
					    </PGVRif>
					</PGVRif>
					<PGVRif condition="@ADDR:CTRY != ''">
						<PGVRText style="text"><br /><PGVRGedcomValue tag="ADDR:CTRY" /></PGVRText>
					</PGVRif>
					<PGVRif condition="$showid==1">
						<PGVRText style="idstyle"><br />                                                                       <PGVRGedcomValue tag="@id" /></PGVRText>
					</PGVRif>
				</PGVRTextBox>
				<PGVRSetVar name="count" value="$count+1" />
				<PGVRSetVar name="X" value="$X+$Xspace" />
				<PGVRSetVar name="X" value="$X+$width" />
				<PGVRif condition="$count==4">
					<PGVRSetVar name="Y" value="$Y+$Yspace" />
					<PGVRSetVar name="Y" value="$Y+$height" />
				</PGVRif>
				<PGVRif condition="$Y>$pageHeight">
					<PGVRSetVar name="Y" value="$Ystart" />
					<PGVRSetVar name="X" value="$Xstart" />
					<PGVRNewPage />
				</PGVRif>
				<PGVRif condition="$count>3">
					<PGVRSetVar name="count" value="1" />
					<PGVRSetVar name="X" value="$Xstart" />
				</PGVRif>
			</PGVRList>
		</PGVRBody>
		<PGVRFooter>
		</PGVRFooter>
	</PGVRDoc>
</PGVReport>