summaryrefslogtreecommitdiff
path: root/reports/cemeterylist.xml
blob: 36823b16ea6d9e659d0df67b0a73e02adb8354aa (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
<?xml version="1.0" encoding="UTF-8"?>
<PGVReport access="PRIV_PUBLIC" icon="place">
<!-- $Id$ -->
	<PGVRTitle><PGVRvar var="pgv_lang[cemetery_report]" /></PGVRTitle>
	<PGVRDescription>Prints a list of individuals burial places matching specific cemetery criteria</PGVRDescription>
	<PGVRInput name="deathplace" lookup="PLAC" type="text"><PGVRvar var="pgv_lang[burialplace]" /> </PGVRInput>
	<PGVRInput name="sortby" type="select" default="NAME" options="none,ID,NAME,DEAT:DATE"><PGVRvar var="pgv_lang[sort_by]" /></PGVRInput>
	<PGVRInput name="adlist" type="select" default="none" options="none,_MARNM,HUSB"><PGVRvar var="pgv_lang[name_list]" /></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>

	<!-- Header -->
	<PGVRStyle name="header" font="$fonts" size="16" style="b" />
	<!-- Page numbers text -->
	<PGVRStyle name="pagenum" font="$fonts" size="8"/>
	<!-- Standard text -->
	<PGVRStyle name="text" font="$fonts" size="9"/>
	<!-- Column labels -->
	<PGVRStyle name="label" font="$fonts" size="10" style="b" />
	<!-- Generated by style - required style name by the generator -->
	<PGVRStyle name="genby" font="$fonts" size="8" />
	<!-- Date text -->
	<PGVRStyle name="date" font="$fonts" size="8"/>

	<!-- landscape orientation -->
	<PGVRSetVar name="namewidth" value="185"/>
	<PGVRSetVar name="datewidth" value="95"/>
	<PGVRSetVar name="cemewidth" value="150"/>
	<PGVRSetVar name="placewidth" value="175"/>

	<PGVRDoc pageSize="$pageSize" orientation="landscape">
		<PGVRHeader>
			<PGVRCell align="center" height="20" newline="1" style="header"><PGVRvar var="pgv_lang[cemetery_report]" /></PGVRCell>
			<PGVRCell align="rightrtl" newline="1" style="pagenum"><PGVRvar var="pgv_lang[page]" /> <PGVRPageNum /> <PGVRvar var="pgv_lang[of]" /> <PGVRTotalPages /></PGVRCell>

			<PGVRSetVar name="fill" value="" />
			<PGVRif condition="($sortby=='NAME') or ($sortby=='ID')"><PGVRSetVar name="fill" value="#AAAAAA" /></PGVRif>
			<PGVRTextBox bgcolor="$fill" border="1" width="$namewidth">
				<PGVRText style="label"><PGVRvar var="pgv_lang[name]" /></PGVRText>
			</PGVRTextBox>

			<PGVRSetVar name="fill" value="" />
			<PGVRif condition="$sortby=='DEAT:DATE'"><PGVRSetVar name="fill" value="#AAAAAA" /></PGVRif>
			<PGVRTextBox bgcolor="$fill" border="1" width="$datewidth">
				<PGVRText style="label"><PGVRvar var="factarray[DEAT:DATE]" /></PGVRText>
			</PGVRTextBox>
			<!-- should print and sort by burial date -->

			<PGVRSetVar name="fill" value="" />
			<PGVRif condition="$sortby=='BURI'"><PGVRSetVar name="fill" value="#AAAAAA" /></PGVRif>
			<PGVRTextBox bgcolor="$fill" border="1" width="$cemewidth">
				<PGVRText style="label"><PGVRvar var="factarray[CEME]" /></PGVRText>
			</PGVRTextBox>

			<PGVRSetVar name="fill" value="" />
			<PGVRif condition="$sortby=='PLAC'"><PGVRSetVar name="fill" value="#AAAAAA" /></PGVRif>
			<PGVRTextBox bgcolor="$fill" border="1" width="$placewidth">
				<PGVRText style="label"><PGVRvar var="factarray[PLAC]" /></PGVRText>
			</PGVRTextBox>

			<PGVRTextBox border="1" newline="1">
				<PGVRText style="label"><PGVRvar var="factarray[NOTE]" /></PGVRText>
			</PGVRTextBox>
		</PGVRHeader>
		<PGVRBody>
			<PGVRList list="individual" filter1="BURI:PLAC CONTAINS $deathplace" sortby="$sortby">
				<PGVRCell style="text" width="$namewidth"><PGVRGetPersonName id="" /> - (<PGVRGedcomValue tag="@id" />)
					<PGVRif condition="$adlist=='_MARNM'">
						<PGVRRepeatTag tag="NAME:_MARNM">
							<br /><PGVRGedcomValue tag="_MARNM" />
						</PGVRRepeatTag>
					</PGVRif>
					<PGVRif condition="($adlist=='HUSB') and (@SEX=='F')">
						<PGVRRepeatTag tag="FAMS">
							<PGVRGedcom id="@FAMS:@HUSB">
								<br /><PGVRGetPersonName id="" />
							</PGVRGedcom>
						</PGVRRepeatTag>
					</PGVRif>
				</PGVRCell>
				<PGVRCell style="text" width="$datewidth"><PGVRGedcomValue tag="DEAT:DATE" newline="1" /></PGVRCell>
				<PGVRCell style="text" width="$cemewidth"><PGVRGedcomValue tag="BURI:CEME" /></PGVRCell>
				<PGVRCell style="text" width="$placewidth"><PGVRGedcomValue tag="BURI:PLAC" /></PGVRCell>
				<PGVRCell newline="1" style="text"><PGVRGedcomValue tag="BURI:NOTE" /></PGVRCell>
			</PGVRList>
			<PGVRCell align="rightrtl" newline="1" style="label"><br /><PGVRvar var="pgv_lang[total_indis]" />: <PGVRListTotal /></PGVRCell>
		</PGVRBody>
		<PGVRFooter>
			<PGVRCell align="rightrtl" newline="1" style="date"><PGVRNow /></PGVRCell>
		</PGVRFooter>
	</PGVRDoc>
</PGVReport>