summaryrefslogtreecommitdiff
path: root/reports/birthlist.xml
blob: 7679363eddc8f80edadeb8ae1e38558445b632c1 (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
<?xml version="1.0" encoding="UTF-8"?>
<PGVReport access="PRIV_PUBLIC" icon="place">
	<!-- $Id$ -->
	<PGVRTitle><PGVRvar var="pgv_lang[birth_report]" /></PGVRTitle>
	<PGVRDescription>Prints a list of individuals matching specific name and/or birth criteria</PGVRDescription>
	<PGVRInput name="name" lookup="NAME" type="text"><PGVRvar var="pgv_lang[name]" /></PGVRInput>
	<PGVRInput name="birthplace" lookup="PLAC" type="text"><PGVRvar var="pgv_lang[birthplace]" /></PGVRInput>
	<PGVRInput name="birthdate1" lookup="DATE" type="text"><PGVRvar var="pgv_lang[birthdate1]" /></PGVRInput>
	<PGVRInput name="birthdate2" lookup="DATE" type="text"><PGVRvar var="pgv_lang[birthdate2]" /></PGVRInput>
	<PGVRInput name="sortby" type="select" default="NAME" options="none,ID,NAME,BIRT:DATE"><PGVRvar var="pgv_lang[sort_by]" /></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"/>
	<!-- Generated by style - required style name by the generator -->
	<PGVRStyle name="genby" font="$fonts" size="8"/>
	<!-- Column labels -->
	<PGVRStyle name="label" font="$fonts" size="10" style="b"/>
	<!-- Standard text -->
	<PGVRStyle name="text" font="$fonts" size="9"/>
	<!-- Date text -->
	<PGVRStyle name="date" font="$fonts" size="8"/>

	<PGVRDoc pageSize="$pageSize" orientation="landscape" >
		<PGVRHeader>
			<PGVRCell align="center" height="20" newline="1" style="header"><PGVRvar var="pgv_lang[birth_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>
			<PGVRCell bgcolor="$fill" border="1" width="200" style="label"><PGVRvar var="pgv_lang[name]" /></PGVRCell>

			<PGVRSetVar name="fill" value="" />
			<PGVRif condition="$sortby=='BIRT:DATE'"><PGVRSetVar name="fill" value="#AAAAAA" /></PGVRif>
			<PGVRCell bgcolor="$fill" border="1" width="100" style="label"><PGVRvar var="factarray[DATE]" /></PGVRCell>

			<PGVRCell border="1" width="225" style="label"><PGVRvar var="factarray[PLAC]" /></PGVRCell>
			<PGVRCell border="1" newline="1" style="label"><PGVRvar var="factarray[SOUR]" /></PGVRCell>
		</PGVRHeader>

		<PGVRBody>
			<PGVRList list="individual" filter1="BIRT:PLAC CONTAINS $birthplace" filter2="BIRT:DATE GTE $birthdate1" filter3="BIRT:DATE LTE $birthdate2" filter4="NAME CONTAINS $name" sortby="$sortby">
				<PGVRCell width="200" style="text"><PGVRGetPersonName id="" /> - (<PGVRGedcomValue tag="@id" />)</PGVRCell>
				<PGVRCell width="100" style="text"><PGVRGedcomValue tag="BIRT:DATE" newline="1" /></PGVRCell>
				<PGVRCell width="225" style="text"><PGVRGedcomValue tag="BIRT:PLAC" /></PGVRCell>
				<PGVRCell newline="1" style="text">
					<!-- Only with multiple sources use line feed (br) -->
					<PGVRSetVar name="usebr" value="0"/>
					<PGVRRepeatTag tag="BIRT:SOUR">
						<PGVRif condition="$usebr==1"><br /></PGVRif>
						<PGVRGedcom id="@SOUR">
							<PGVRGedcomValue tag="TITL" />
						</PGVRGedcom>
						<PGVRSetVar name="usebr" value="1"/>
					</PGVRRepeatTag>
				</PGVRCell>
			</PGVRList>
			<PGVRCell align="rightrtl" height="24" 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>