xref: /webtrees/resources/xml/reports/change_report.xml (revision 9b152ff9230017d2c03aa1bf603a98b18250446d)
1<?xml version="1.0" encoding="UTF-8" ?>
2<Report>
3	<Title><var var="I18N::translate('Changes')" /></Title>
4	<Description><var var="I18N::translate('A report of recent and pending changes.')" /></Description>
5	<Input name="changeRangeStart" lookup="DATE" type="text" default="NOW-30"><var var="I18N::translate('Starting range of change dates')" /></Input>
6	<Input name="changeRangeEnd" lookup="DATE" type="text" default="NOW"><var var="I18N::translate('Ending range of change dates')" /></Input>
7	<Input name="sortby" type="select" default="CHAN" options="CHAN=>I18N::translate('sort by date')|NAME=>I18N::translate('sort by name')|BIRT:DATE=>I18N::translate('sort by date of birth')"><var var="I18N::translate('Sort order')" /></Input>
8	<Input name="pending" type="select" options="yes=>I18N::translate('yes')|no=>I18N::translate('no')"><var var="I18N::translate('Show pending changes')" /></Input>
9	<Input name="pageSize" type="select" options="A4=>I18N::translateContext('paper size','A4')|A3=>I18N::translateContext('paper size', 'A3')|US-Letter=>I18N::translateContext('paper size','Letter')|US-Tabloid=>I18N::translateContext('paper size','Tabloid')"><var var="I18N::translate('Page size')" /></Input>
10	<Input name="pageorient" type="select" default="landscape" options="landscape=>I18N::translate('Landscape')|portrait=>I18N::translate('Portrait')"><var var="I18N::translate('Orientation')" /></Input>
11	<!--
12	<Input name="fonts" type="select" default="dejavusans" options="arialunicid0=>I18N::translateContext('font name', 'Arial')|dejavusans=>I18N::translateContext('font name', 'DejaVu')|helvetica=>I18N::translateContext('font name', 'Helvetica')"><var var="I18N::translate('Font')"/></Input>
13	-->
14	<SetVar name="fonts" value="dejavusans" />
15
16	<!-- Header -->
17	<Style name="header" font="$fonts" size="16" style="b" />
18	<!-- Page numbers text -->
19	<Style name="pagenum" font="$fonts" size="8"/>
20	<!-- Standard text -->
21	<Style name="text" font="$fonts" size="9"/>
22	<!-- Column labels -->
23	<Style name="label" font="$fonts" size="10" style="b"/>
24	<!-- Generated by style - required style name by the generator -->
25	<Style name="genby" font="$fonts" size="8" />
26	<!-- Date text -->
27	<Style name="date" font="$fonts" size="8"/>
28	<Style name="header2" font="$fonts" size="12" style="b" />
29
30	<if condition="$pageorient=='landscape'">
31		<!-- landscape orientation -->
32		<SetVar name="namewidth" value="270"/>
33		<SetVar name="datewidth" value="300"/>
34	</if>
35
36	<if condition="$pageorient=='portrait'">
37		<!-- portrait orientation -->
38		<SetVar name="namewidth" value="210"/>
39		<SetVar name="datewidth" value="190"/>
40	</if>
41
42	<Doc pageSize="$pageSize" orientation="$pageorient" >
43		<Header>
44			<Cell align="center" height="20" newline="1" style="header"><var var="I18N::translate('Changes')" /></Cell>
45			<Cell align="rightrtl" newline="1" style="pagenum"><var var="I18N::translate('Page')" /> <PageNum /> <var var="I18N::translate('of')" /> <TotalPages /></Cell>
46		</Header>
47
48		<Body>
49
50			<!-- Pending changes section Header -->
51			<if condition="$pending=='yes'">
52				<Cell align="center" height="20" newline="1" style="header2"><var var="I18N::translate('Pending changes')" /></Cell>
53				<SetVar name="fill" value="" />
54				<if condition="$sortby=='NAME'"><SetVar name="fill" value="#AAAAAA" /></if>
55				<TextBox bgcolor="$fill" border="1" height="12" width="$namewidth">
56					<Text style="label"><var var="I18N::translate('Name')" /></Text>
57				</TextBox>
58
59				<TextBox border="1" height="12" width="$datewidth">
60					<Text style="label"><var var="I18N::translate('Differences')" /></Text>
61				</TextBox>
62
63				<SetVar name="fill" value="" />
64				<if condition="$sortby=='CHAN'"><SetVar name="fill" value="#AAAAAA" /></if>
65				<TextBox bgcolor="$fill" border="1" height="12" newline="1">
66					<Text style="label"><var var="I18N::translate('Last change')" /></Text>
67				</TextBox>
68
69				<!-- Pending Changes Section Data -->
70				<List list="pending" sortby="$sortby">
71					<TextBox height="12" width="$namewidth">
72						<Text style="text"><GetPersonName id="" /></Text>
73					</TextBox>
74					<TextBox height="12" width="$datewidth">
75						<Facts ignore="CHAN" families="0" diff="true">
76							<Text style="text">
77								<var var="@fact" /> <GedcomValue tag="@fact:DATE" /><br />
78							</Text>
79						</Facts>
80					</TextBox>
81					<TextBox height="12" newline="1">
82						<Text style="text"><GedcomValue tag="CHAN:DATE" /> <GedcomValue tag="CHAN:DATE:TIME" /> - <GedcomValue tag="CHAN:_WT_USER" /></Text>
83					</TextBox>
84
85				</List>
86				<Cell align="rightrtl" height="25" newline="1" style="label">
87					<var var="I18N::translate('Total pending changes: ')" /><ListTotal /><br />
88				</Cell>
89			</if>
90
91			<!-- Recent Changes Section Header -->
92			<Cell align="center" height="20" newline="1" style="header2"><var var="I18N::translate('Recent changes')" /> <var var="changeRangeStart" date="1" /> - <var var="changeRangeEnd" date="1" /></Cell>
93			<SetVar name="fill" value="" />
94			<if condition="$sortby=='NAME'"><SetVar name="fill" value="#AAAAAA" /></if>
95			<TextBox bgcolor="$fill" border="1" height="12" width="$namewidth">
96				<Text style="label"><var var="I18N::translate('Name')" /></Text>
97			</TextBox>
98
99			<SetVar name="fill" value="" />
100			<if condition="$sortby=='BIRT:DATE'"><SetVar name="fill" value="#AAAAAA" /></if>
101			<TextBox bgcolor="$fill" border="1" height="12" width="$datewidth">
102				<Text style="label"><var var="I18N::translate('Birth')" /> - <var var="I18N::translate('Death')" /></Text>
103			</TextBox>
104
105			<SetVar name="fill" value="" />
106			<if condition="$sortby=='CHAN'"><SetVar name="fill" value="#AAAAAA" /></if>
107			<TextBox bgcolor="$fill" border="1" height="12" newline="1">
108				<Text style="label"><var var="I18N::translate('Last change')" /></Text>
109			</TextBox>
110
111			<!-- Recent Changes Section Data -->
112			<List list="individual" filter1="CHAN:DATE LTE $changeRangeEnd" filter2="CHAN:DATE GTE $changeRangeStart" sortby="$sortby">
113				<TextBox height="12" width="$namewidth">
114					<Text style="text"><GetPersonName id="" /></Text>
115				</TextBox>
116
117				<TextBox height="12" width="$datewidth">
118					<Text style="text"><var var="I18N::translate('Birth')" />: <GedcomValue tag="BIRT:DATE" /><br /><var var="I18N::translate('Death')" />: <GedcomValue tag="DEAT:DATE" /></Text>
119				</TextBox>
120
121				<TextBox height="12" newline="1">
122					<Text style="text"><GedcomValue tag="CHAN:DATE" /> <GedcomValue tag="CHAN:DATE:TIME" /> - <GedcomValue tag="CHAN:_WT_USER" /></Text>
123				</TextBox>
124			</List>
125
126			<Cell align="rightrtl" height="25" newline="1" style="label">
127				<var var="I18N::translate('Total accepted changes: ')" /><ListTotal />
128			</Cell>
129		</Body>
130		<Footer>
131			<Cell align="rightrtl" newline="1" style="date"><Now /></Cell>
132		</Footer>
133	</Doc>
134</Report>
135