19cad7645SGreg Roach<?xml version="1.0" encoding="UTF-8" ?> 29cad7645SGreg Roach<Report> 39cad7645SGreg Roach <Title><var var="I18N::translate('Occupations')" /></Title> 49cad7645SGreg Roach <Description><var var="I18N::translate('A report of individuals who had a given occupation.')" /></Description> 59cad7645SGreg Roach <Input name="occupation" lookup="OCCU" type="text"><var var="I18N::translate('Occupation')" /> </Input> 69cad7645SGreg Roach <Input name="sortby" type="select" default="NAME" options="NAME=>I18N::translate('sort by name')|BIRT:DATE=>I18N::translate('sort by date of birth')"><var var="I18N::translate('Sort order')" /></Input> 7*4d314e6bSGreg Roach <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> 89cad7645SGreg Roach <!-- 99cad7645SGreg Roach <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> 109cad7645SGreg Roach --> 119cad7645SGreg Roach <SetVar name="fonts" value="dejavusans" /> 129cad7645SGreg Roach 139cad7645SGreg Roach <!-- Header --> 149cad7645SGreg Roach <Style name="header" font="$fonts" size="16" style="b" /> 159cad7645SGreg Roach <!-- Page numbers text --> 169cad7645SGreg Roach <Style name="pagenum" font="$fonts" size="8"/> 179cad7645SGreg Roach <!-- Standard text --> 189cad7645SGreg Roach <Style name="text" font="$fonts" size="8"/> 199cad7645SGreg Roach <!-- Column labels --> 209cad7645SGreg Roach <Style name="label" font="$fonts" size="10" style="b" /> 219cad7645SGreg Roach <!-- Generated by style - required style name by the generator --> 229cad7645SGreg Roach <Style name="genby" font="$fonts" size="8" /> 239cad7645SGreg Roach <!-- Date text --> 249cad7645SGreg Roach <Style name="date" font="$fonts" size="8"/> 259cad7645SGreg Roach 269cad7645SGreg Roach <!-- landscape orientation --> 279cad7645SGreg Roach <SetVar name="namewidth" value="180"/> 289cad7645SGreg Roach <SetVar name="datewidth" value="95"/> 299cad7645SGreg Roach <SetVar name="occuwidth" value="130"/> 309cad7645SGreg Roach <SetVar name="occudatewidth" value="95"/> 319cad7645SGreg Roach <SetVar name="placewidth" value="100"/> 329cad7645SGreg Roach <SetVar name="printedoccupation" value="0" /> 339cad7645SGreg Roach <SetVar name="morespaceindi" value="$namewidth + $datewidth" /> 349cad7645SGreg Roach 359cad7645SGreg Roach <Doc pageSize="$pageSize" orientation="landscape"> 369cad7645SGreg Roach <Header> 379cad7645SGreg Roach <Cell align="center" height="20" newline="1" style="header"><var var="I18N::translate('Occupations')" /></Cell> 389cad7645SGreg Roach <Cell align="rightrtl" newline="1" style="pagenum"><var var="I18N::translate('Page')" /> <PageNum /> <var var="I18N::translate('of')" /> <TotalPages /></Cell> 399cad7645SGreg Roach 409cad7645SGreg Roach <SetVar name="fill" value="" /> 419cad7645SGreg Roach <if condition="$sortby=='NAME'"><SetVar name="fill" value="#AAAAAA" /></if> 429cad7645SGreg Roach <TextBox bgcolor="$fill" border="1" width="$namewidth"> 439cad7645SGreg Roach <Text style="label"><var var="I18N::translate('Name')" /></Text> 449cad7645SGreg Roach </TextBox> 459cad7645SGreg Roach 469cad7645SGreg Roach <SetVar name="fill" value="" /> 479cad7645SGreg Roach <if condition="$sortby=='BIRT:DATE'"><SetVar name="fill" value="#AAAAAA" /></if> 489cad7645SGreg Roach <TextBox bgcolor="$fill" border="1" width="$datewidth"> 499cad7645SGreg Roach <Text style="label"><var var="I18N::translate('Date of birth')" /></Text> 509cad7645SGreg Roach </TextBox> 519cad7645SGreg Roach <!-- should print and sort by birth date --> 529cad7645SGreg Roach 539cad7645SGreg Roach <TextBox border="1" width="$occuwidth"> 549cad7645SGreg Roach <Text style="label"><var var="I18N::translate('Occupation')" /></Text> 559cad7645SGreg Roach </TextBox> 569cad7645SGreg Roach <TextBox border="1" width="$occudatewidth"> 579cad7645SGreg Roach <Text style="label"><var var="I18N::translate('Date')" /></Text> 589cad7645SGreg Roach </TextBox> 599cad7645SGreg Roach <TextBox border="1" width="$placewidth"> 609cad7645SGreg Roach <Text style="label"><var var="I18N::translate('Place')" /></Text> 619cad7645SGreg Roach </TextBox> 629cad7645SGreg Roach 639cad7645SGreg Roach <TextBox border="1" newline="1"> 649cad7645SGreg Roach <Text style="label"><var var="I18N::translate('Note')" /></Text> 659cad7645SGreg Roach </TextBox> 669cad7645SGreg Roach </Header> 679cad7645SGreg Roach <Body> 686e5c0963SGreg Roach <List list="individual" filter1="OCCU CONTAINS $occupation" sortby="$sortby"> 699cad7645SGreg Roach <SetVar name="moreoccupation" value="0" /> 709cad7645SGreg Roach <!-- Printed List counter --> 719cad7645SGreg Roach <SetVar name="printedoccupation" value="$printedoccupation + 1" /> 729cad7645SGreg Roach <Cell style="text" width="$namewidth"><GetPersonName id="" /> 739cad7645SGreg Roach </Cell> 749cad7645SGreg Roach <Cell style="text" width="$datewidth"><GedcomValue tag="BIRT:DATE" newline="1" /></Cell> 759cad7645SGreg Roach <RepeatTag tag="OCCU"> 769cad7645SGreg Roach <!-- Intend the fact line if more then one occupation --> 779cad7645SGreg Roach <if condition="$moreoccupation==1"> 789cad7645SGreg Roach <Cell style="text" width="$morespaceindi"> </Cell> 799cad7645SGreg Roach </if> 809cad7645SGreg Roach <Cell style="text" width="$occuwidth"><GedcomValue tag="OCCU"/></Cell> 819cad7645SGreg Roach <!-- Date of the fact --> 829cad7645SGreg Roach <Cell style="text" width="$occudatewidth"><GedcomValue tag="OCCU:DATE"/></Cell> 839cad7645SGreg Roach <!-- Place of the fact --> 849cad7645SGreg Roach <Cell style="text" width="$placewidth"><GedcomValue tag="OCCU:PLAC"/></Cell> 859cad7645SGreg Roach <!-- Note text --> 869cad7645SGreg Roach <Cell style="text" newline="1"> 879cad7645SGreg Roach <RepeatTag tag="OCCU"> 889cad7645SGreg Roach <GedcomValue tag="OCCU:NOTE"/> 899cad7645SGreg Roach </RepeatTag> 909cad7645SGreg Roach </Cell> 919cad7645SGreg Roach <SetVar name="moreoccupation" value="1" /> 929cad7645SGreg Roach </RepeatTag> 939cad7645SGreg Roach </List> 949cad7645SGreg Roach <Cell align="rightrtl" newline="1" style="label"><br /><var var="I18N::translate('Total individuals')" />: <ListTotal /></Cell> 959cad7645SGreg Roach </Body> 969cad7645SGreg Roach <Footer> 979cad7645SGreg Roach <Cell align="rightrtl" newline="1" style="date"><Now /></Cell> 989cad7645SGreg Roach </Footer> 999cad7645SGreg Roach </Doc> 1009cad7645SGreg Roach</Report> 101