/[gedafe]/trunk/doc/gedafe-templates.txt
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Contents of /trunk/doc/gedafe-templates.txt

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1 - (show annotations)
Mon Feb 14 18:52:26 2005 UTC (14 years, 8 months ago) by dpavlin
File MIME type: text/plain
File size: 2797 byte(s)
import of Gedafe 1.2.2

1 Templates description
2 ---------------------
3
4 ---------------- LEGEND ----------------
5 - VAR (for each page)
6 * PAGE
7 - VAR (for the whole page)
8 > ELEMENT (template is printed)
9 - VAR (for this element)
10 ! loop / condition
11 ---------------- /LEGEND ---------------
12
13 For every element:
14
15 - PAGE page name
16 - TITLE title of the page
17 - ELEMENT element name
18 - USER user name (if available)
19 - THEME value set with 'theme=xxx' in the URL (if available)
20
21 * login
22 > header
23 > login
24 > footer
25
26 * auth_error
27 > header
28 > header2
29 > auth_error
30 > footer
31
32 stdheader =
33 > header
34 ! for each table:
35 > header_table
36 - TABLE
37 - TABLE_DESC
38 - TABLE_URL
39
40 > header2
41
42 stdfooter =
43 > footer
44
45 * edit_error (database produced an error after an update or insert)
46 - ERROR
47 - REEDIT_ACTION
48
49 = stdheader
50 > edit_error
51 = stdfooter
52
53 * db_error (other database errors, not after an edit)
54 > db_error
55 - ERROR
56 - NEXT_URL
57
58 * doubleform (duplicate form)
59 - NEXT_URL
60
61 = stdheader
62 > doubleform
63 = stdfooter
64
65 * entry
66 =stdheader
67
68 > tables_list_header
69
70 ! for each editable table:
71 > entrytable
72 - TABLE_DESC
73 - TABLE_URL
74
75 > reports_list_header
76
77 ! for each report:
78 > entrytable
79 - TABLE_DESC
80 - TABLE_URL
81 - REPORT (defined)
82
83 =stdfooter
84
85
86 * list
87 - TABLE
88 - URL
89 - ORDERBY
90
91 > filterfirst
92 - FILTERFIRST_FIELD
93 - FILTERFIRST_FIELD_DESC
94 - FILTERFIRST_COMBO
95 - FILTERFIRST_HIDDEN
96 - FILTERFIRST_ACTION
97
98 > search
99 - SEARCH_COMBO
100 - SEARCH_VALUE
101 - SEARCH_HIDDEN
102 - SEARCH_ACTION
103
104 > table
105 > tr
106 ! for each field:
107 > th
108 - DATA
109 - SORT_URL
110 > th_edit (only if user can edit)
111 > th_delete) (only if user can delete)
112 > xtr
113
114 ! for each record:
115 - ID
116 - EVENROW or ODDROW defined
117 > tr
118 ! for every field of the record:
119 > td
120 - DATA
121 > td_edit (if can edit)
122 - EDIT_URL
123 > td_delete (if can delete)
124 - DELETE_URL
125 > xtr
126
127 > xtable
128
129 > buttons
130 - PREV_URL
131 - NEXT_URL
132 - ADD_URL
133
134 =stdfooter
135
136 * listrep
137 - TABLE
138 - URL
139 - ORDERBY
140
141 > filterfirst
142 - FILTERFIRST_FIELD
143 - FILTERFIRST_FIELD_DESC
144 - FILTERFIRST_COMBO
145 - FILTERFIRST_HIDDEN
146 - FILTERFIRST_ACTION
147
148 > search
149 - SEARCH_COMBO
150 - SEARCH_VALUE
151 - SEARCH_HIDDEN
152 - SEARCH_ACTION
153
154 > table
155 > tr
156 ! for each field:
157 > th
158 - DATA
159 - SORT_URL
160 > xtr
161
162 ! for each record:
163 - ID
164 - EVENROW or ODDROW defined
165 > tr
166 ! for every field of the record:
167 > td
168 - DATA
169 > xtr
170
171 > xtable
172
173 > buttons
174 - PREV_URL
175 - NEXT_URL
176
177 =stdfooter
178
179 * edit
180 - TABLE
181 - ID
182 - ACTION (= add | edit)
183 - REEDIT (defined if reediting after an error)
184 =stdheader
185 > editform_header
186 ! for each field:
187 - FIELD
188 > editfield
189 - LABEL
190 - INPUT
191 - TWOCOL (alternating 0 and 1 for each field)
192 > editform_footer
193 =stdfooter
194
195 * delete
196 - TABLE
197 - ID
198 - NEXT_URL
199 =stdheader
200 > deleteok
201 =stdfooter

  ViewVC Help
Powered by ViewVC 1.1.26