Debian Codegraph @

reports/allfam10c.ll

raw
1 /*
2 * @progname allfam10c.ll
3 * @version 1.1
4 * @author Cliff Manis, Jim Eggert
5 * @category
6 * @output Text
7 * @description
8 *
9 * Display all families in the DB, 1 per page.
10 *
11 * allfam10c
12 * by: Cliff Manis <[email protected]>, modified by Jim Eggert
13 * Family Report for LifeLines
14 */
15
16 proc main()
17 {
18 forfam(fam,fnum) {
19 call fam10c(fam)
20 " " /* this is the form-feed character, octal 014 hex 0C*/
21 /* You may have to change it for your needs */
22 }
23 }
24
25 proc fam10c (fam)
26 {
27 /* getfam(fam) */
28 dayformat(0)
29 monthformat(4)
30 dateformat(0)
31 set(tday, gettoday())
32 set (nl,nl())
33 set(h,husband(fam))
34 set(w,wife(fam))
35 col(55) "Date: " stddate(tday) nl
36 col(0) "Family Report (fam10)"
37 nl nl
38 col(0) "HUSBAND: " fullname(h,1,1,50)
39 col(63) "(RN=" key(h) ")"
40 nl nl
41 set(evt, birth(h))
42 col(0) "Born: " stddate(evt) col(25) "Place: " place(evt)
43 set(evt, marriage(fam))
44 col(0) "Marr: " stddate(evt) col (25) "Place: " place(evt)
45 set(evt, death(h))
46 col(0) "Died: " stddate(evt) col(25) "Place: " place(evt)
47 nl nl
48 col(0) "HUSBAND'S FATHER: " name(father(h))
49 col(63) "(RN=" key(father(h)) ")"
50 nl
51 col(0) "HUSBAND'S MOTHER: " name(mother(h))
52 col(63) "(RN=" key(mother(h)) ")"
53 nl nl
54 col(0) "WIFE: " fullname(w,1,1,50)
55 col(63) "(RN=" key(w) ")"
56 nl nl
57 set(evt, birth(w))
58 col(0) "Born: " stddate(evt) col(25) "Place: " place(evt)
59 set(evt, death(w))
60 col(0) "Died: " stddate(evt) col(25) "Place: " place(evt)
61 nl nl
62 col(0) " WIFE'S FATHER: " name(father(w))
63 col(63) "(RN=" key(father(w)) ")"
64 col(0) " WIFE'S MOTHER: " name(mother(w))
65 col(63) "(RN=" key(mother(w)) ")"
66 nl nl
67 col(0) "========================================================================"
68 nl
69 col(0) "# M/F" col(12) "Childrens Names" col(63) "RECORD NUM"
70 nl
71 col(0) "========================================================================"
72 nl
73 children(fam, child, num) {
74 col(0) d(num)
75 col(4) sex(child)
76 col(12) name(child) col(63) "(RN=" key(child) ")"
77 col(4) "Born:" col(13) stddate(birth(child))
78 col(26) place(birth(child))
79 nl
80
81 col(4) "Died:" col(13) stddate(death(child))
82 col(26) place(death(child))
83 nl
84
85 families(child, fvar, svar, num) {
86 if (eq(num,1)) {
87 col(4) "Marr:" col(13) stddate(marriage(fvar))
88 col(26) if (svar) { name(svar)
89 col(63) "(RN=" key(svar) ")" }
90 else { " " }
91 nl
92 }
93 }
94 if (eq(nfamilies(child),0)) { " " nl }
95 col(4) "---------------------------------------------------------"
96 }
97 }
98
99 /* End of Report */