Debian Codegraph @

src/ics/ics309_templates.cxx

raw
1 // ----------------------------------------------------------------------------
2 // Copyright (C) 2014
3 // David Freese, W1HKJ
4 //
5 // This file is part of flmsg
6 //
7 // flrig is free software; you can redistribute it and/or modify
8 // it under the terms of the GNU General Public License as published by
9 // the Free Software Foundation; either version 3 of the License, or
10 // (at your option) any later version.
11 //
12 // flrig is distributed in the hope that it will be useful,
13 // but WITHOUT ANY WARRANTY; without even the implied warranty of
14 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 // GNU General Public License for more details.
16 //
17 // You should have received a copy of the GNU General Public License
18 // along with this program. If not, see <http://www.gnu.org/licenses/>.
19 // ----------------------------------------------------------------------------
20
21 #include "templates.h"
22
23 const char ics309_html_template[] =
24 "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01//EN\" \"http://www.w3.org/TR/html4/strict.dtd\">\n\
25 <html>\n\
26 <head>\n\
27 <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\n\
28 <title>:TITLE:</title>\n\
29 </head>\n\
30 <body>\n\
31 <table width=950px border=1 cellpadding=1 cellspacing=0>\n\
32 <tbody>\n\
33 <tr>\
34 <td colspan=4 ALIGN=CENTER VALIGN=top><b>COMM Log</b><br>ICS309<br>ARES/RACES</td>\
35 <td colspan=8 ALIGN=left VALIGN=top>1. Incident name<br>:inc:</td>\
36 <td colspan=8 ALIGN=left VALIGN=top>2. Operational Period<br>From: :dfm: :tfm:<br>To: :dto: :tto: </td>\
37 </tr>\
38 <tr>\
39 <td colspan=10 ALIGN=left VALIGN=top>3. Radio Net Name or Position/Tactical Call<br> :net:</td>\
40 <td colspan=20 ALIGN=left VALIGN=top>4. Radio Operator (Name, Call Sign)<br>:opr:</td>\
41 </tr>\
42 <tr BGCOLOR=#EEFFFF>\
43 <td WIDTH=5% HEIGHT= 0></td><td WIDTH=5% HEIGHT= 0></td>\
44 <td WIDTH=5% HEIGHT= 0></td><td WIDTH=5% HEIGHT= 0></td>\
45 <td WIDTH=5% HEIGHT= 0></td><td WIDTH=5% HEIGHT= 0></td>\
46 <td WIDTH=5% HEIGHT= 0></td><td WIDTH=5% HEIGHT= 0></td>\
47 <td WIDTH=5% HEIGHT= 0></td><td WIDTH=5% HEIGHT= 0></td>\
48 <td WIDTH=5% HEIGHT= 0></td><td WIDTH=5% HEIGHT= 0></td>\
49 <td WIDTH=5% HEIGHT= 0></td><td WIDTH=5% HEIGHT= 0></td>\
50 <td WIDTH=5% HEIGHT= 0></td><td WIDTH=5% HEIGHT= 0></td>\
51 <td WIDTH=5% HEIGHT= 0></td><td WIDTH=5% HEIGHT= 0></td>\
52 <td WIDTH=5% HEIGHT= 0></td><td WIDTH=5% HEIGHT= 0></td>\
53 </tr>\
54 <tr>\
55 <td colspan=2 ALIGN=left VALIGN=top>5.\
56 <td colspan=19 ALIGN=center VALIGN=top>\
57 <b>COMMUNICATIONS LOG</b>\
58 </td>\
59 </tr>\
60 <tr>\
61 <td colspan=2 ALIGN=center VALIGN=top>Time<br>(24:00)</td>\
62 <td colspan=4 ALIGN=center VALIGN=top>FROM<br>Call Sign/ID Msg #</td>\
63 <td colspan=4 ALIGN=center VALIGN=top>TO<br>Call Sign/ID Msg #</td>\
64 <td colspan=10 ALIGN=left VALIGN=center>Message</td>\
65 </tr>\
66 <tr>\
67 <td colspan=2 VALIGN=top>:tm[0]:</td>\
68 <td colspan=4 VALIGN=top>:fm[0]:</td>\
69 <td colspan=4 VALIGN=top>:to[0]:</td>\
70 <td colspan=10 VALIGN=top>:msg[0]:</td>\
71 </tr>\
72 <tr>\
73 <td colspan=2 VALIGN=top>:tm[1]:</td>\
74 <td colspan=4 VALIGN=top>:fm[1]:</td>\
75 <td colspan=4 VALIGN=top>:to[1]:</td>\
76 <td colspan=10 VALIGN=top>:msg[1]:</td>\
77 </tr>\
78 <tr>\
79 <td colspan=2 VALIGN=top>:tm[2]:</td>\
80 <td colspan=4 VALIGN=top>:fm[2]:</td>\
81 <td colspan=4 VALIGN=top>:to[2]:</td>\
82 <td colspan=10 VALIGN=top>:msg[2]:</td>\
83 </tr>\
84 <tr>\
85 <td colspan=2 VALIGN=top>:tm[3]:</td>\
86 <td colspan=4 VALIGN=top>:fm[3]:</td>\
87 <td colspan=4 VALIGN=top>:to[3]:</td>\
88 <td colspan=10 VALIGN=top>:msg[3]:</td>\
89 </tr>\
90 <tr>\
91 <td colspan=2 VALIGN=top>:tm[4]:</td>\
92 <td colspan=4 VALIGN=top>:fm[4]:</td>\
93 <td colspan=4 VALIGN=top>:to[4]:</td>\
94 <td colspan=10 VALIGN=top>:msg[4]:</td>\
95 </tr>\
96 <tr>\
97 <td colspan=2 VALIGN=top>:tm[5]:</td>\
98 <td colspan=4 VALIGN=top>:fm[5]:</td>\
99 <td colspan=4 VALIGN=top>:to[5]:</td>\
100 <td colspan=10 VALIGN=top>:msg[5]:</td>\
101 </tr>\
102 <tr>\
103 <td colspan=2 VALIGN=top>:tm[6]:</td>\
104 <td colspan=4 VALIGN=top>:fm[6]:</td>\
105 <td colspan=4 VALIGN=top>:to[6]:</td>\
106 <td colspan=10 VALIGN=top>:msg[6]:</td>\
107 </tr>\
108 <tr>\
109 <td colspan=2 VALIGN=top>:tm[7]:</td>\
110 <td colspan=4 VALIGN=top>:fm[7]:</td>\
111 <td colspan=4 VALIGN=top>:to[7]:</td>\
112 <td colspan=10 VALIGN=top>:msg[7]:</td>\
113 </tr>\
114 <tr>\
115 <td colspan=2 VALIGN=top>:tm[8]:</td>\
116 <td colspan=4 VALIGN=top>:fm[8]:</td>\
117 <td colspan=4 VALIGN=top>:to[8]:</td>\
118 <td colspan=10 VALIGN=top>:msg[8]:</td>\
119 </tr>\
120 <tr>\
121 <td colspan=2 VALIGN=top>:tm[9]:</td>\
122 <td colspan=4 VALIGN=top>:fm[9]:</td>\
123 <td colspan=4 VALIGN=top>:to[9]:</td>\
124 <td colspan=10 VALIGN=top>:msg[9]:</td>\
125 </tr>\
126 <tr>\
127 <td colspan=2 VALIGN=top>:tm[10]:</td>\
128 <td colspan=4 VALIGN=top>:fm[10]:</td>\
129 <td colspan=4 VALIGN=top>:to[10]:</td>\
130 <td colspan=10 VALIGN=top>:msg[10]:</td>\
131 </tr>\
132 <tr>\
133 <td colspan=2 VALIGN=top>:tm[11]:</td>\
134 <td colspan=4 VALIGN=top>:fm[11]:</td>\
135 <td colspan=4 VALIGN=top>:to[11]:</td>\
136 <td colspan=10 VALIGN=top>:msg[11]:</td>\
137 </tr>\
138 <tr>\
139 <td colspan=2 VALIGN=top>:tm[12]:</td>\
140 <td colspan=4 VALIGN=top>:fm[12]:</td>\
141 <td colspan=4 VALIGN=top>:to[12]:</td>\
142 <td colspan=10 VALIGN=top>:msg[12]:</td>\
143 </tr>\
144 <tr>\
145 <td colspan=2 VALIGN=top>:tm[13]:</td>\
146 <td colspan=4 VALIGN=top>:fm[13]:</td>\
147 <td colspan=4 VALIGN=top>:to[13]:</td>\
148 <td colspan=10 VALIGN=top>:msg[13]:</td>\
149 </tr>\
150 <tr>\
151 <td colspan=2 VALIGN=top>:tm[14]:</td>\
152 <td colspan=4 VALIGN=top>:fm[14]:</td>\
153 <td colspan=4 VALIGN=top>:to[14]:</td>\
154 <td colspan=10 VALIGN=top>:msg[14]:</td>\
155 </tr>\
156 <tr>\
157 <td colspan=2 VALIGN=top>:tm[15]:</td>\
158 <td colspan=4 VALIGN=top>:fm[15]:</td>\
159 <td colspan=4 VALIGN=top>:to[15]:</td>\
160 <td colspan=10 VALIGN=top>:msg[15]:</td>\
161 </tr>\
162 <tr>\
163 <td colspan=2 VALIGN=top>:tm[16]:</td>\
164 <td colspan=4 VALIGN=top>:fm[16]:</td>\
165 <td colspan=4 VALIGN=top>:to[16]:</td>\
166 <td colspan=10 VALIGN=top>:msg[16]:</td>\
167 </tr>\
168 <tr>\
169 <td colspan=2 VALIGN=top>:tm[17]:</td>\
170 <td colspan=4 VALIGN=top>:fm[17]:</td>\
171 <td colspan=4 VALIGN=top>:to[17]:</td>\
172 <td colspan=10 VALIGN=top>:msg[17]:</td>\
173 </tr>\
174 <tr>\
175 <td colspan=2 VALIGN=top>:tm[18]:</td>\
176 <td colspan=4 VALIGN=top>:fm[18]:</td>\
177 <td colspan=4 VALIGN=top>:to[18]:</td>\
178 <td colspan=10 VALIGN=top>:msg[18]:</td>\
179 </tr>\
180 <tr>\
181 <td colspan=2 VALIGN=top>:tm[19]:</td>\
182 <td colspan=4 VALIGN=top>:fm[19]:</td>\
183 <td colspan=4 VALIGN=top>:to[19]:</td>\
184 <td colspan=10 VALIGN=top>:msg[19]:</td>\
185 </tr>\
186 <tr>\
187 <td colspan=2 VALIGN=top>:tm[20]:</td>\
188 <td colspan=4 VALIGN=top>:fm[20]:</td>\
189 <td colspan=4 VALIGN=top>:to[20]:</td>\
190 <td colspan=10 VALIGN=top>:msg[20]:</td>\
191 </tr>\
192 <tr>\
193 <td colspan=2 VALIGN=top>:tm[21]:</td>\
194 <td colspan=4 VALIGN=top>:fm[21]:</td>\
195 <td colspan=4 VALIGN=top>:to[21]:</td>\
196 <td colspan=10 VALIGN=top>:msg[21]:</td>\
197 </tr>\
198 <tr>\
199 <td colspan=2 VALIGN=top>:tm[22]:</td>\
200 <td colspan=4 VALIGN=top>:fm[22]:</td>\
201 <td colspan=4 VALIGN=top>:to[22]:</td>\
202 <td colspan=10 VALIGN=top>:msg[22]:</td>\
203 </tr>\
204 <tr>\
205 <td colspan=2 VALIGN=top>:tm[23]:</td>\
206 <td colspan=4 VALIGN=top>:fm[23]:</td>\
207 <td colspan=4 VALIGN=top>:to[23]:</td>\
208 <td colspan=10 VALIGN=top>:msg[23]:</td>\
209 </tr>\
210 <tr>\
211 <td colspan=2 VALIGN=top>:tm[24]:</td>\
212 <td colspan=4 VALIGN=top>:fm[24]:</td>\
213 <td colspan=4 VALIGN=top>:to[24]:</td>\
214 <td colspan=10 VALIGN=top>:msg[24]:</td>\
215 </tr>\
216 <tr>\
217 <td colspan=2 VALIGN=top>:tm[25]:</td>\
218 <td colspan=4 VALIGN=top>:fm[25]:</td>\
219 <td colspan=4 VALIGN=top>:to[25]:</td>\
220 <td colspan=10 VALIGN=top>:msg[25]:</td>\
221 </tr>\
222 <tr>\
223 <td colspan=2 VALIGN=top>:tm[26]:</td>\
224 <td colspan=4 VALIGN=top>:fm[26]:</td>\
225 <td colspan=4 VALIGN=top>:to[26]:</td>\
226 <td colspan=10 VALIGN=top>:msg[26]:</td>\
227 </tr>\
228 <tr>\
229 <td colspan=2 VALIGN=top>:tm[27]:</td>\
230 <td colspan=4 VALIGN=top>:fm[27]:</td>\
231 <td colspan=4 VALIGN=top>:to[27]:</td>\
232 <td colspan=10 VALIGN=top>:msg[27]:</td>\
233 </tr>\
234 <tr>\
235 <td colspan=2 VALIGN=top>:tm[28]:</td>\
236 <td colspan=4 VALIGN=top>:fm[28]:</td>\
237 <td colspan=4 VALIGN=top>:to[28]:</td>\
238 <td colspan=10 VALIGN=top>:msg[28]:</td>\
239 </tr>\
240 <tr>\
241 <td colspan=2 VALIGN=top>:tm[29]:</td>\
242 <td colspan=4 VALIGN=top>:fm[29]:</td>\
243 <td colspan=4 VALIGN=top>:to[29]:</td>\
244 <td colspan=10 VALIGN=top>:msg[29]:</td>\
245 </tr>\
246 <tr>\
247 <td colspan=2 VALIGN=top>:tm[30]:</td>\
248 <td colspan=4 VALIGN=top>:fm[30]:</td>\
249 <td colspan=4 VALIGN=top>:to[30]:</td>\
250 <td colspan=10 VALIGN=top>:msg[30]:</td>\
251 </tr>\
252 <tr>\
253 <td colspan=2 VALIGN=top>:tm[31]:</td>\
254 <td colspan=4 VALIGN=top>:fm[31]:</td>\
255 <td colspan=4 VALIGN=top>:to[31]:</td>\
256 <td colspan=10 VALIGN=top>:msg[31]:</td>\
257 </tr>\
258 <tr>\
259 <td colspan=2 VALIGN=top>:tm[32]:</td>\
260 <td colspan=4 VALIGN=top>:fm[32]:</td>\
261 <td colspan=4 VALIGN=top>:to[32]:</td>\
262 <td colspan=10 VALIGN=top>:msg[32]:</td>\
263 </tr>\
264 <tr>\
265 <td colspan=2 VALIGN=top>:tm[33]:</td>\
266 <td colspan=4 VALIGN=top>:fm[33]:</td>\
267 <td colspan=4 VALIGN=top>:to[33]:</td>\
268 <td colspan=10 VALIGN=top>:msg[33]:</td>\
269 </tr>\
270 <tr>\
271 <td colspan=7 VALIGN=top>6. Prepared by<br>:pre:</td>\
272 <td colspan=7 VALIGN=top>7. Date & Time Prepared<br>:dtm:</td>\
273 <td colspan=6 VALIGN=top>8.<br> Page __1__of __1__</td>\
274 </tr>\
275 </tbody>\
276 </table>\
277 </body></html>\
278 ";
279
280 const char ics309_text_template[] =
281 "ICS 309 COMM LOG\n\n\
282 Incident name: :inc:\n\
283 Operational Period\n\
284 From: :dfm: :tfm:\n\
285 To: :dto: :tto:\n\
286 Radio Net Name: :net:\n\
287 Radio Operator: :opr:\n\
288 Comm Log\n\
289 line 0: :tm[0]:, :fm[0]:, :to[0]:, :msg[0]:\n\
290 line 0: :tm[1]:, :fm[1]:, :to[1]:, :msg[1]:\n\
291 line 0: :tm[2]:, :fm[2]:, :to[2]:, :msg[2]:\n\
292 line 0: :tm[3]:, :fm[3]:, :to[3]:, :msg[3]:\n\
293 line 0: :tm[4]:, :fm[4]:, :to[4]:, :msg[4]:\n\
294 line 0: :tm[5]:, :fm[5]:, :to[5]:, :msg[5]:\n\
295 line 0: :tm[6]:, :fm[6]:, :to[6]:, :msg[6]:\n\
296 line 0: :tm[7]:, :fm[7]:, :to[7]:, :msg[7]:\n\
297 line 0: :tm[8]:, :fm[8]:, :to[8]:, :msg[8]:\n\
298 line 0: :tm[9]:, :fm[9]:, :to[9]:, :msg[9]:\n\
299 line 0: :tm[10]:, :fm[10]:, :to[10]:, :msg[10]:\n\
300 line 0: :tm[11]:, :fm[11]:, :to[11]:, :msg[11]:\n\
301 line 0: :tm[12]:, :fm[12]:, :to[12]:, :msg[12]:\n\
302 line 0: :tm[13]:, :fm[13]:, :to[13]:, :msg[13]:\n\
303 line 0: :tm[14]:, :fm[14]:, :to[14]:, :msg[14]:\n\
304 line 0: :tm[15]:, :fm[15]:, :to[15]:, :msg[15]:\n\
305 line 0: :tm[16]:, :fm[16]:, :to[16]:, :msg[16]:\n\
306 line 0: :tm[17]:, :fm[17]:, :to[17]:, :msg[17]:\n\
307 line 0: :tm[18]:, :fm[18]:, :to[18]:, :msg[18]:\n\
308 line 0: :tm[19]:, :fm[19]:, :to[19]:, :msg[19]:\n\
309 line 0: :tm[20]:, :fm[10]:, :to[20]:, :msg[20]:\n\
310 line 0: :tm[21]:, :fm[21]:, :to[21]:, :msg[21]:\n\
311 line 0: :tm[22]:, :fm[22]:, :to[22]:, :msg[22]:\n\
312 line 0: :tm[23]:, :fm[23]:, :to[23]:, :msg[23]:\n\
313 line 0: :tm[24]:, :fm[24]:, :to[24]:, :msg[24]:\n\
314 line 0: :tm[25]:, :fm[25]:, :to[25]:, :msg[25]:\n\
315 line 0: :tm[26]:, :fm[26]:, :to[26]:, :msg[26]:\n\
316 line 0: :tm[27]:, :fm[27]:, :to[27]:, :msg[27]:\n\
317 line 0: :tm[28]:, :fm[28]:, :to[28]:, :msg[28]:\n\
318 line 0: :tm[29]:, :fm[29]:, :to[29]:, :msg[29]:\n\
319 line 0: :tm[30]:, :fm[30]:, :to[30]:, :msg[30]:\n\
320 line 0: :tm[31]:, :fm[31]:, :to[31]:, :msg[31]:\n\
321 line 0: :tm[32]:, :fm[32]:, :to[32]:, :msg[32]:\n\
322 Prepared by: :pre:\n\
323 Date & Time Prepared: :dtm:\n\
324 ";
325