blob: 015be8003d3e545c3a97e7ff2a8c6cc8b1d3efe3 (
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
|
<?xml version="1.0" encoding="UTF-8"?>
<Report>
<!-- $Id$ -->
<Title><var var="WT_I18N::translate('Relatives Report')" /></Title>
<Description>Prints a list of individuals related to a specific person</Description>
<Input name="pid" lookup="INDI" type="text"><var var="WT_I18N::translate('Enter Individual ID')" /></Input>
<Input name="relatives" type="select" options="child-family=>WT_I18N::translate('Parents and siblings')|spouse-family=>WT_I18N::translate('Spouses and children')|direct-ancestors=>WT_I18N::translate('Direct line ancestors')|ancestors=>WT_I18N::translate('Direct line ancestors and their families')|descendants=>WT_I18N::translate('Descendants')|all=>WT_I18N::translate('All')"><var var="WT_I18N::translate('Choose relatives')" /></Input>
<Input name="sortby" type="select" default="BIRT:DATE" options="none=>WT_I18N::translate('None')|NAME=>WT_I18N::translate('Name')|BIRT:DATE=>WT_I18N::translate('Date of birth')|DEAT:DATE=>WT_I18N::translate('Date of death')"><var var="WT_I18N::translate('Sort by')" /></Input>
<Input name="pageSize" type="select" default="A4" options="letter=>WT_I18N::translate_c('paper size','Letter')|A3=>WT_I18N::translate_c('paper size', 'A3')|A4=>WT_I18N::translate_c('paper size','A4')|legal=>WT_I18N::translate_c('paper size','Legal')"><var var="WT_I18N::translate('Page size')" /></Input>
<Input name="pageorient" type="select" default="landscape" options="landscape=>WT_I18N::translate('Landscape')|portrait=>WT_I18N::translate('Portrait')"><var var="WT_I18N::translate('Orientation')" /></Input>
<Input name="fonts" type="select" default="dejavusans" options="arialunicid0=>WT_I18N::translate_c('font name', 'Arial')|dejavusans=>WT_I18N::translate_c('font name', 'DejaVu')|helvetica=>WT_I18N::translate_c('font name', 'Helvetica')"><var var="WT_I18N::translate('Font')"/></Input>
<Style name="header" font="$fonts" size="14" style="b" />
<Style name="pagenum" font="$fonts" size="8" />
<Style name="text" font="$fonts" size="9" />
<Style name="label" font="$fonts" size="9" style="b" />
<Style name="genby" font="$fonts" size="8" />
<!-- Date text -->
<Style name="date" font="$fonts" size="8"/>
<if condition="$pageorient=='landscape'">
<!-- landscape orientation -->
<SetVar name="namewidth" value="230"/>
<SetVar name="birthwidth" value="250"/>
</if>
<if condition="$pageorient=='portrait'">
<!-- portrait orientation -->
<SetVar name="namewidth" value="200"/>
<SetVar name="birthwidth" value="160"/>
</if>
<Doc pageSize="$pageSize" orientation="$pageorient" >
<Header>
<Cell align="center" height="20" newline="1" style="header"><var var="WT_I18N::translate('Relatives Report')" /></Cell>
<Cell align="rightrtl" newline="1" style="pagenum"><var var="WT_I18N::translate('Page')" /> <PageNum /> <var var="WT_I18N::translate('of')" /> <TotalPages /></Cell>
<SetVar name="fill" value="" />
<if condition="$sortby=='NAME'">
<SetVar name="fill" value="#AAAAAA" />
</if>
<Cell bgcolor="$fill" border="1" style="label" width="$namewidth"> <var var="WT_I18N::translate('Name')" /></Cell>
<SetVar name="fill" value="" />
<if condition="$sortby=='BIRT:DATE'">
<SetVar name="fill" value="#AAAAAA" />
</if>
<Cell bgcolor="$fill" border="1" style="label" width="$birthwidth"> <var var="WT_I18N::translate('Birth')" /></Cell>
<SetVar name="fill" value="" />
<if condition="$sortby=='DEAT:DATE'">
<SetVar name="fill" value="#AAAAAA" />
</if>
<Cell bgcolor="$fill" border="1" newline="1" style="label"> <var var="WT_I18N::translate('Death')" /></Cell>
</Header>
<Body>
<Relatives id="$pid" group="$relatives" sortby="$sortby">
<TextBox height="1" newline="1"/>
<TextBox height="12" width="$namewidth">
<Text style="text"><GetPersonName id="" /></Text>
</TextBox>
<TextBox height="12" width="$birthwidth">
<Text style="text">
<GedcomValue tag="BIRT:DATE" />
<!-- Add space only if birth date exist -->
<if condition="@BIRT:DATE!=''"> </if>
<GedcomValue tag="BIRT:PLAC" />
</Text>
</TextBox>
<TextBox height="12" newline="1">
<Text style="text">
<GedcomValue tag="DEAT:DATE" />
<!-- Add space only if death date exist -->
<if condition="@DEAT:DATE!=''"> </if>
<GedcomValue tag="DEAT:PLAC" />
</Text>
</TextBox>
<!-- page wide line, to the margin -->
<Line />
</Relatives>
<Cell align="rightrtl" newline="1" style="label">
<br /><var var="WT_I18N::translate('Total individuals')" />: <ListTotal />
</Cell>
</Body>
<Footer>
<Cell align="rightrtl" newline="1" style="date"><Now /></Cell>
</Footer>
</Doc>
</Report>
|