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 ics203_html_template[] =
24 "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01//EN\" \"http://www.w3.org/TR/html4/strict.dtd\">\
25 <html><head>\
26 <meta content=\"text/html; charset=UTF-8\" http-equiv=\"content-type\">\
27 <title>:TITLE:</title>\
28 </head><body>\
29 <table ALIGN=left WIDTH=1000px BORDER=1 CELLPADDING=2 CELLSPACING=0>\
30 <tbody>\
31 <tr>\
32 <td colspan=3 VALIGN=middle><big><b></b>ORGANIZATION ASSIGNMENT LIST</b></big></td>\
33 <td COLSPAN=2 VALIGN=top><b>1. Incident name</b><br>:inc:<br></td>\
34 <td VALIGN=top><b>2.Date Prepared</b><br>:dat:<br></td>\
35 <td VALIGN=top><b>3.Time Prepared</b><br>:tim:<br></td>\
36 </tr>\
37 <tr>\
38 <td COLSPAN=4 VALIGN=top><br><br>\
39 <hr WIDTH=100% HEIGHT=2px><b>5. Incident Command and Staff</b><br></td>\
40 <td COLSPAN=3 VALIGN=top>\
41   <b>4. Operational Period (Date/Time)</b><br>:opp:<br>\
42   <hr WIDTH=100%; HEIGHT=2px><b>9. Operations section</b><br>\
43 </td>\
44 </tr>\
45 <tr>\
46 <td VALIGN=top>Incident Commander<br></td>\
47 <td COLSPAN=3 VALIGN=top>:icc:<br></td>\
48 <td VALIGN=top>Chief<br></td>\
49 <td COLSPAN=2 VALIGN=top>:ops_chief:<br></td>\
50 </tr>\
51 <tr>\
52 <td VALIGN=top>Deputy<br></td>\
53 <td COLSPAN=3 VALIGN=top>:icd:<br></td>\
54 <td VALIGN=top>Deputy<br></td>\
55 <td COLSPAN=2 VALIGN=top>:ops_deputy:<br></td>\
56 </tr>\
57 <tr>\
58 <td VALIGN=top>Safety Officer<br></td>\
59 <td COLSPAN=3 VALIGN=top>:ics:<br></td>\
60 <td COLSPAN=3 VALIGN=top><b>a. Branch I - Division / Groups</b><br></td>\
61 </tr>\
62 <tr>\
63 <td VALIGN=top>Information Officer<br></td>\
64 <td COLSPAN=3 VALIGN=top>:ici:<br></td>\
65 <td VALIGN=top>Branch Director<br></td>\
66 <td COLSPAN=2 VALIGN=top>:b1_director:<br></td>\
67 </tr>\
68 <tr>\
69 <td VALIGN=top>Liaison Officer<br></td>\
70 <td COLSPAN=3 VALIGN=top>:icl:<br></td>\
71 <td VALIGN=top>Deputy<br></td>\
72 <td COLSPAN=2 VALIGN=top>:b1_deputy:<br></td>\
73 </tr>\
74 <tr>\
75 <td COLSPAN=4 VALIGN=top><b>6. Agency Representative</b><br></td>\
76 <td COLSPAN=3 VALIGN=top>Division / Group<br></td>\
77 </tr>\
78 <tr>\
79 <td VALIGN=top>Agency<br></td>\
80 <td COLSPAN=3 VALIGN=top>Name<br></td>\
81 <td VALIGN=top>:b1_div[0]:<br></td>\
82 <td COLSPAN=2 VALIGN=top>:b1_grp[0]:<br></td>\
83 </tr>\
84 <tr>\
85 <td VALIGN=top>:agency[0]:<br></td>\
86 <td COLSPAN=3 VALIGN=top>:agency_name[0]:<br></td>\
87 <td VALIGN=top>:b1_div[1]:<br></td>\
88 <td COLSPAN=2 VALIGN=top>:b1_grp[1]:<br></td>\
89 </tr>\
90 <tr>\
91 <td VALIGN=top>:agency[1]:<br></td>\
92 <td COLSPAN=3 VALIGN=top>:agency_name[1]:<br></td>\
93 <td VALIGN=top>:b1_div[2]:<br></td>\
94 <td COLSPAN=2 VALIGN=top>:b1_grp[2]:<br></td>\
95 </tr>\
96 <tr>\
97 <td VALIGN=top>:agency[2]:<br></td>\
98 <td COLSPAN=3 VALIGN=top>:agency_name[2]:<br></td>\
99 <td VALIGN=top>:b1_div[3]:<br></td>\
100 <td COLSPAN=2 VALIGN=top>:b1_grp[3]:<br></td>\
101 </tr>\
102 <tr>\
103 <td VALIGN=top>:agency[3]:<br></td>\
104 <td COLSPAN=3 VALIGN=top>:agency_name[3]:<br></td>\
105 <td COLSPAN=3 VALIGN=top><b>b. Branch II - Division / Groups</b><br></td>\
106 </tr>\
107 <tr>\
108 <td VALIGN=top>:agency[4]:<br></td>\
109 <td COLSPAN=3 VALIGN=top>:agency_name[4]:<br></td>\
110 <td VALIGN=top>Chief<br></td>\
111 <td COLSPAN=2 VALIGN=top>:b2_director:<br></td>\
112 </tr>\
113 <tr>\
114 <td VALIGN=top>:agency[5]:<br>\
115 </td>\
116 <td COLSPAN=3 VALIGN=top>:agency_name[5]:<br>\
117 </td>\
118 <td VALIGN=top>Deputy<br>\
119 </td>\
120 <td COLSPAN=2 VALIGN=top>:b2_deputy:<br>\
121 </td>\
122 </tr>\
123 <tr>\
124 <td VALIGN=top>:agency[6]:<br>\
125 </td>\
126 <td COLSPAN=3 VALIGN=top>:agency_name[6]:</td>\
127 <td COLSPAN=3 VALIGN=top>Division / Group<br>\
128 </td>\
129 </tr>\
130 <tr>\
131 <td COLSPAN=4 VALIGN=top><b>7. Planning Section</b><br></td>\
132 <td VALIGN=top>:b2_div[0]:<br></td>\
133 <td COLSPAN=2 VALIGN=top>:b2_grp[0]:<br></td>\
134 </tr>\
135 <tr>\
136 <td VALIGN=top>Chief<br></td>\
137 <td COLSPAN=3 VALIGN=top>:planning_chief:<br></td>\
138 <td VALIGN=top>:b2_div[1]:<br></td>\
139 <td COLSPAN=2 VALIGN=top>:b2_grp[1]:<br></td>\
140 </tr>\
141 <tr>\
142 <td VALIGN=top>Deputy<br></td>\
143 <td COLSPAN=3 VALIGN=top>:planning_deputy:<br></td>\
144 <td VALIGN=top>:b2_div[2]:<br></td>\
145 <td COLSPAN=2 VALIGN=top>:b2_grp[2]: <br></td>\
146 </tr>\
147 <tr>\
148 <td VALIGN=top>Resources Unit<br></td>\
149 <td COLSPAN=3 VALIGN=top>:resources_unit:<br></td>\
150 <td VALIGN=top>:b2_div[3]:<br></td>\
151 <td COLSPAN=2 VALIGN=top>:b2_grp[3]:<br></td>\
152 </tr>\
153 <tr>\
154 <td VALIGN=top>Situation Unit<br></td>\
155 <td COLSPAN=3 VALIGN=top>:situation_unit:<br></td>\
156 <td COLSPAN=3 VALIGN=top><b>c. Branch III - Division / Groups</b><br></td>\
157 </tr>\
158 <tr>\
159 <td VALIGN=top>Documentation Unit<br></td>\
160 <td COLSPAN=3 VALIGN=top>:documentation_unit:<br></td>\
161 <td VALIGN=top>Chief<br></td>\
162 <td COLSPAN=2 VALIGN=top>:b3_director:<br></td>\
163 </tr>\
164 <tr>\
165 <td VALIGN=top>Demobilization Unit<br></td>\
166 <td COLSPAN=3 VALIGN=top>:demobilization_unit:<br></td>\
167 <td VALIGN=top>Deputy<br></td>\
168 <td COLSPAN=2 VALIGN=top>:b3_deputy:<br></td>\
169 </tr>\
170 <tr>\
171 <td COLSPAN=4 VALIGN=top>Technical Specialists<br></td>\
172 <td COLSPAN=3 VALIGN=top>Division / Group<br></td>\
173 </tr>\
174 <tr>\
175 <td COLSPAN=2 VALIGN=top>Specialist</td>\
176 <td COLSPAN=2 VALIGN=top>:tech_spc[0]:</td>\
177 <td VALIGN=top>:b3_div[0]:<br></td>\
178 <td COLSPAN=2 VALIGN=top>:b3_grp[0]:<br></td>\
179 </tr>\
180 <tr>\
181 <td COLSPAN=2 VALIGN=top>Specialist</td>\
182 <td COLSPAN=2 VALIGN=top>:tech_spc[1]: </td>\
183 <td VALIGN=top>:b3_div[1]:<br></td>\
184 <td COLSPAN=2 VALIGN=top>:b3_grp[1]:<br></td>\
185 </tr>\
186 <tr>\
187 <td COLSPAN=2 VALIGN=top>Specialist</td>\
188 <td COLSPAN=2 VALIGN=top>:tech_spc[2]: </td>\
189 <td VALIGN=top>:b3_div[2]:<br></td>\
190 <td COLSPAN=2 VALIGN=top>:b3_grp[2]:<br></td>\
191 </tr>\
192 <tr>\
193 <td COLSPAN=4 VALIGN=top><b>8. Logistics Section</b><br></td>\
194 <td VALIGN=top>:b3_div[3]:<br></td>\
195 <td COLSPAN=2 VALIGN=top>:b3_grp[3]:<br></td>\
196 </tr>\
197 <tr>\
198 <td VALIGN=top>Chief<br></td>\
199 <td COLSPAN=3 VALIGN=top>:logistics_chief:<br></td>\
200 <td COLSPAN=3 VALIGN=top><b>d. Air Operations Branch</b><br></td>\
201 </tr>\
202 <tr>\
203 <td VALIGN=top>Deputy<br></td>\
204 <td COLSPAN=3 VALIGN=top>:logistics_deputy:<br></td>\
205 <td VALIGN=top>Air Operations Br. Dir.<br></td>\
206 <td COLSPAN=2 VALIGN=top>:air_ops_br_dir:<br></td>\
207 </tr>\
208 <tr>\
209 <td COLSPAN=4 VALIGN=top><b>a. Support Branch</b><br></td>\
210 <td VALIGN=top>Air Tactical Group Sup.<br></td>\
211 <td COLSPAN=2 VALIGN=top>:air_tactical_group_sup:<br></td>\
212 </tr>\
213 <tr>\
214 <td VALIGN=top>Director<br></td>\
215 <td COLSPAN=3 VALIGN=top>:support_director:<br></td>\
216 <td VALIGN=top>Air Support Group Sup.<br></td>\
217 <td COLSPAN=2 VALIGN=top>:air_support_group_sup:<br></td>\
218 </tr>\
219 <tr>\
220 <td VALIGN=top>Supply Unit<br></td>\
221 <td COLSPAN=3 VALIGN=top>:supply_unit:<br></td>\
222 <td VALIGN=top>Helicopter Coordinator<br></td>\
223 <td COLSPAN=2 VALIGN=top>:helicopter_coordinator:<br></td>\
224 </tr>\
225 <tr>\
226 <td VALIGN=top>Facilities Unit<br></td>\
227 <td COLSPAN=3 VALIGN=top>:facilities_unit:<br></td>\
228 <td VALIGN=top>Air Tanker / Fixed Wing Crd.<br></td>\
229 <td COLSPAN=2 VALIGN=top>:air_tanker_fixed_wing:<br>\
230 </td>\
231 </tr>\
232 <tr>\
233 <td VALIGN=top>Ground Support Unit<br></td>\
234 <td COLSPAN=3 VALIGN=top>:ground_support:<br></td>\
235 <td COLSPAN=3 VALIGN=top><br></td>\
236 </tr>\
237 <tr>\
238 <td COLSPAN=4 VALIGN=top><b>b. Service Branch</b><br></td>\
239 <td COLSPAN=3 VALIGN=top><b>10. Finance / Administration Section</b><br></td>\
240 </tr>\
241 <tr>\
242 <td VALIGN=top>Director<br>\
243 </td>\
244 <td COLSPAN=3 VALIGN=top>:service_director:<br></td>\
245 <td VALIGN=top>Chief<br></td>\
246 <td COLSPAN=2 VALIGN=top>:finance_chief:<br></td>\
247 </tr>\
248 <tr>\
249 <td VALIGN=top>Communications Unit<br></td>\
250 <td COLSPAN=3 VALIGN=top>:communications_unit:<br></td>\
251 <td VALIGN=top>Deputy<br></td>\
252 <td COLSPAN=2 VALIGN=top>:finance_deputy:<br></td>\
253 </tr>\
254 <tr>\
255 <td VALIGN=top>Medical Unit<br></td>\
256 <td COLSPAN=3 VALIGN=top>:medical_unit:<br></td>\
257 <td VALIGN=top>Time Unit<br></td>\
258 <td COLSPAN=2 VALIGN=top>:time_unit:<br></td>\
259 </tr>\
260 <tr>\
261 <td VALIGN=top>Food Unit<br></td>\
262 <td COLSPAN=3 VALIGN=top>:food_unit:<br></td>\
263 <td VALIGN=top>Procurement Unit<br></td>\
264 <td COLSPAN=2 VALIGN=top>:procurement_unit:<br></td>\
265 </tr>\
266 <tr>\
267 <td COLSPAN=4 VALIGN=top><br></td>\
268 <td VALIGN=top>Compensation/Claims Unit<br></td>\
269 <td COLSPAN=2 VALIGN=top>:claims_unit:<br></td>\
270 </tr>\
271 <tr>\
272 <td COLSPAN=4 VALIGN=top><br></td>\
273 <td VALIGN=top>Cost Unit<br></td>\
274 <td COLSPAN=2 VALIGN=top>:cost_unit:<br></td>\
275 </tr>\
276 <tr>\
277 <td COLSPAN=7 VALIGN=top><b>Prepared by (Resources Unit)</b><br>:pre:<br></td>\
278 </tr>\
279 <tr>\
280 <td WIDTH=15% VALIGN=center HEIGHT=20px>ICS-203</td>\
281 <td WIDTH=10%></td>\
282 <td WIDTH=12%></td>\
283 <td WIDTH=13%></td>\
284 <td WIDTH=20%></td>\
285 <td WIDTH=15%></td>\
286 <td WIDTH=15%></td>\
287 </tr>\
288 </tbody>\
289 </table>\
290 </body></html>";
291 
292 const char ics203_text_template[] =
293 "ICS 203 ORGANIZATION ASSIGNMENT LIST\n\n\
294 incident: :inc:\n\
295 date: :dat:\n\
296 time: :tim:\n\
297 op_period: :opp:\n\
298 incident_commander: :icc:\n\
299 incident_deputy: :icd:\n\
300 incident_safety_officer: :ics:\n\
301 incident_info_officer: :ici:\n\
302 liaison_officer: :icl:\n\
303 prepared_by: :pre:\n\
304 agency: :agency[0]:, name: :agency_name[0]:\n\
305 agency: :agency[1]:, name: :agency_name[1]:\n\
306 agency: :agency[2]:, name: :agency_name[2]:\n\
307 agency: :agency[3]:, name: :agency_name[3]:\n\
308 agency: :agency[4]:, name: :agency_name[4]:\n\
309 agency: :agency[5]:, name: :agency_name[5]:\n\
310 agency: :agency[6]:, name: :agency_name[6]:\n\
311 planning_chief: :planning_chief:\n\
312 planning_deputy: :planning_deputy:\n\
313 resources_unit: :resources_unit:\n\
314 situation_unit: :situation_unit:\n\
315 documentation_unit: :documentation_unit:\n\
316 demobilization_unit: :demobilization_unit:\n\
317 tech_spc: :tech_spc[0]:\n\
318 tech_spc: :tech_spc[1]:\n\
319 tech_spc: :tech_spc[2]:\n\
320 logistics_chief: :logistics_chief:\n\
321 logistics_deputy: :logistics_deputy:\n\
322 support_director: :support_director:\n\
323 supply_unit: :supply_unit:\n\
324 facilities_unit: :facilities_unit:\n\
325 ground_support: :ground_support:\n\
326 service_director: :service_director:\n\
327 communications_unit: :communications_unit:\n\
328 medical_unit: :medical_unit:\n\
329 food_unit: :food_unit:\n\
330 ops_chief: :ops_chief:\n\
331 ops_deputy: :ops_deputy:\n\
332 b1_director: :b1_director:\n\
333 b1_deputy: :b1_deputy:\n\
334 b1_div/grp: :b1_div[0]:, :b1_grp[0]:\n\
335 b1_div/grp: :b1_div[1]:, :b1_grp[1]:\n\
336 b1_div/grp: :b1_div[2]:, :b1_grp[2]:\n\
337 b1_div/grp: :b1_div[3]:, :b1_grp[3]:\n\
338 b1_div/grp: :b1_div[4]:, :b1_grp[4]:\n\
339 b2_director: :b2_director:\n\
340 b2_deputy: :b2_deputy:\n\
341 b2_div/grp: :b2_div[0]:, :b2_grp[0]:\n\
342 b2_div/grp: :b2_div[1]:, :b2_grp[1]:\n\
343 b2_div/grp: :b2_div[2]:, :b2_grp[2]:\n\
344 b2_div/grp: :b2_div[3]:, :b2_grp[3]:\n\
345 b2_div/grp: :b2_div[4]:, :b2_grp[4]:\n\
346 b3_director: :b3_director:\n\
347 b3_deputy: :b3_deputy:\n\
348 b3_div/grp: :b3_div[0]:, :b3_grp[0]:\n\
349 b3_div/grp: :b3_div[1]:, :b3_grp[1]:\n\
350 b3_div/grp: :b3_div[2]:, :b3_grp[2]:\n\
351 b3_div/grp: :b3_div[3]:, :b3_grp[3]:\n\
352 b3_div/grp: :b3_div[4]:, :b3_grp[4]:\n\
353 air_ops_br_dir: :air_ops_br_dir:\n\
354 air_tactical_group_sup: :air_tactical_group_sup:\n\
355 air_support_group_sup: :air_support_group_sup:\n\
356 helicopter_coordinator: :helicopter_coordinator:\n\
357 air_tanker_fixed_wing: :air_tanker_fixed_wing:\n\
358 finance_chief: :finance_chief:\n\
359 finance_deputy: :finance_deputy:\n\
360 time_unit: :time_unit:\n\
361 procurement_unit: :procurement_unit:\n\
362 claims_unit: :claims_unit:\n\
363 cost_unit: :cost_unit:\n\
364 ";
365 
366