| 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 mars_daily_html_template[] = |
| 24 |
"<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01//EN\" \"http://www.w3.org/TR/html4/strict.dtd\">\ |
| 25 |
<html>\ |
| 26 |
<head><meta content=\"text/html; charset=UTF-8\" http-equiv=\"content-type\">\ |
| 27 |
<title>:TITLE:</title>\ |
| 28 |
</head><body>\ |
| 29 |
<table WIDTH=1000px BORDER=1 CELLPADDING=0 CELLSPACING=0>\ |
| 30 |
<tbody>\ |
| 31 |
<tr ALIGN=center>\ |
| 32 |
<td COLSPAN=3 VALIGN=top BGCOLOR=#E9E9E9><big>MARS DAILY REPORT</big><br></td>\ |
| 33 |
</tr>\ |
| 34 |
</table><br>\ |
| 35 |
<FONT face=monospace size=5><b><pre>\ |
| 36 |
DE :md_de_: NR :md_nbr:\n\ |
| 37 |
:md_pre: :md_dtg:\n\ |
| 38 |
FM :md_fnm: :md_fcl: :md_fst:\n\ |
| 39 |
TO :md_tps:/:md_tcl: :md_tst:\n\ |
| 40 |
INFO :md_ps1:/:md_cl1: :md_st1:\n\ |
| 41 |
INFO :md_ps2:/:md_cl2: :md_st2:\n\ |
| 42 |
INFO :md_ps3:/:md_cl3: :md_st3:\n\ |
| 43 |
BT\n\ |
| 44 |
:md_inc:\n\ |
| 45 |
SUBJECT: SITREP / :md_sid: / :md_slo:\n\ |
| 46 |
1. :md_22h:\n\ |
| 47 |
2. :md_ncl: / :md_e_x:\n\ |
| 48 |
3. :md_dta:/:md_dtd: :md_nst:\n\ |
| 49 |
A. :md_det:\n\ |
| 50 |
B. :md_acs:\n\ |
| 51 |
4. :md_agy:\n\ |
| 52 |
5. :md_rem:\n\ |
| 53 |
:md_inc:\n\ |
| 54 |
BT\n\ |
| 55 |
/EX\n\ |
| 56 |
NNNN\n\ |
| 57 |
</pre></b></FONT>\ |
| 58 |
</body>\ |
| 59 |
</html>"; |
| 60 |
|
| 61 |
const char mars_daily_text_template[] = |
| 62 |
"DE :md_de_: NR :md_nbr:\n\ |
| 63 |
:md_pre: :md_dtg:\n\ |
| 64 |
FM :md_fnm: :md_fcl: :md_fst:\n\ |
| 65 |
TO :md_tps:/:md_tcl: :md_tst:\n\ |
| 66 |
INFO :md_ps1:/:md_cl1: :md_st1:\n\ |
| 67 |
INFO :md_ps2:/:md_cl2: :md_st2:\n\ |
| 68 |
INFO :mars_state_sd:/:call_sign_st:\n\ |
| 69 |
BT\n\ |
| 70 |
:md_inc:\n\ |
| 71 |
SUBJECT: SITREP / :md_sid: / :md_slo:\n\ |
| 72 |
1. :md_22h:\n\ |
| 73 |
2. :md_ncl: / :md_e_x:\n\ |
| 74 |
3. :md_dta:/:md_dtd: :md_nst:\n\ |
| 75 |
A. :md_det:\n\ |
| 76 |
B. :md_acs:\n\ |
| 77 |
4. :md_agy:\n\ |
| 78 |
5. :md_rem:\n\ |
| 79 |
:md_inc:\n\ |
| 80 |
BT\n\ |
| 81 |
/EX\n\ |
| 82 |
NNNN\n"; |
| 83 |
|
| 84 |
//====================================================================== |
| 85 |
// Net report templates |
| 86 |
//====================================================================== |
| 87 |
|
| 88 |
const char mars_net_html_template[] = "\ |
| 89 |
<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01//EN\" \"http://www.w3.org/TR/html4/strict.dtd\">\ |
| 90 |
<html>\ |
| 91 |
<head><meta content=\"text/html; charset=UTF-8\" http-equiv=\"content-type\">\ |
| 92 |
<title>:TITLE:</title>\ |
| 93 |
</head><body>\ |
| 94 |
<table WIDTH=1000px BORDER=1 CELLPADDING=0 CELLSPACING=0>\ |
| 95 |
<tbody>\ |
| 96 |
<tr ALIGN=center>\ |
| 97 |
<td COLSPAN=3 VALIGN=top BGCOLOR=#E9E9E9><big>MARS NET REPORT</big><br></td>\ |
| 98 |
</tr>\ |
| 99 |
</table><br>\ |
| 100 |
<FONT face=monospace size=5><b><pre>\ |
| 101 |
DE :de: :nbr:\n\ |
| 102 |
:prec: :dtg:\n\ |
| 103 |
FM :fmname: :fmcall: :fmstate:\n\ |
| 104 |
TO :topos:/:tocall: :tostate:\n\ |
| 105 |
INFO :info1pos:/:info1call: :info1state:\n\ |
| 106 |
BT\n\ |
| 107 |
:incident:\n\ |
| 108 |
SUBJECT: NET REPORT :dnd:\n\ |
| 109 |
1. :netcall:\n\ |
| 110 |
2. :dtgstart: :dtgend:\n\ |
| 111 |
3. :netsb:\n\ |
| 112 |
4. :ncscall:\n\ |
| 113 |
5. :nbrstas:, :calls:\n\ |
| 114 |
6. NA\n\ |
| 115 |
7. A. :nbrmsgs:\n\ |
| 116 |
B. :comments:\n\ |
| 117 |
:incident:\n\ |
| 118 |
BT\n\ |
| 119 |
/EX\n\ |
| 120 |
NNNN\n\ |
| 121 |
</pre></b></FONT>\ |
| 122 |
</body>\ |
| 123 |
</html>"; |
| 124 |
|
| 125 |
const char mars_net_text_template[] = "\ |
| 126 |
DE :de: :nbr:\n\ |
| 127 |
:prec: :dtg:\n\ |
| 128 |
FM :fmname: :fmcall: :fmstate:\n\ |
| 129 |
TO :topos:/:tocall: :tostate:\n\ |
| 130 |
INFO :info1pos:/:info1call: :info1state:\n\ |
| 131 |
BT\n\ |
| 132 |
:incident:\n\ |
| 133 |
SUBJECT: NET REPORT :dnd:\n\ |
| 134 |
1. :netcall:\n\ |
| 135 |
2. :dtgstart: :dtgend:\n\ |
| 136 |
3. :netsb:\n\ |
| 137 |
4. :ncscall:\n\ |
| 138 |
5. :nbrstas:, :calls:\n\ |
| 139 |
6. NA\n\ |
| 140 |
7. A. :nbrmsgs:\n\ |
| 141 |
B. :comments:\n\ |
| 142 |
:incident:\n\ |
| 143 |
BT\n\ |
| 144 |
/EX\n\ |
| 145 |
NNNN\n\ |
| 146 |
"; |
| 147 |
|
| 148 |
//====================================================================== |
| 149 |
// IN/IEE report templates |
| 150 |
//====================================================================== |
| 151 |
|
| 152 |
const char mars_ineei_html_template[] = "\ |
| 153 |
<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01//EN\" \"http://www.w3.org/TR/html4/strict.dtd\">\ |
| 154 |
<html>\ |
| 155 |
<head><meta content=\"text/html; charset=UTF-8\" http-equiv=\"content-type\">\ |
| 156 |
<title>:TITLE:</title>\ |
| 157 |
</head><body>\ |
| 158 |
<table WIDTH=1000px BORDER=1 CELLPADDING=0 CELLSPACING=0>\ |
| 159 |
<tbody>\ |
| 160 |
<tr ALIGN=center>\ |
| 161 |
<td COLSPAN=3 VALIGN=top BGCOLOR=#E9E9E9><big>MARS IN/EEI REPORT</big><br></td>\ |
| 162 |
</tr>\ |
| 163 |
</table><br>\ |
| 164 |
<FONT face=monospace size=5><b><pre>\ |
| 165 |
DE :de: :nbr:\n\ |
| 166 |
:prec: :dtg:\n\ |
| 167 |
FM :fm:\n\ |
| 168 |
TO: :to::info:\n\ |
| 169 |
BT\n\ |
| 170 |
:incident:\n\ |
| 171 |
SUBJECT: IN/EEI REPORT\n\ |
| 172 |
1. REF EVENT IDENTIFIER: :1ref:\n\ |
| 173 |
A. INCIDENT LOCATION TIME: :1a:\n\ |
| 174 |
B. EMERGENCY MEDICAL: :1b_medfacsts:\n\ |
| 175 |
C. LOCAL TRANSPORTATION: :1c_trnpsts:\n\ |
| 176 |
D. GENERAL DAMAGE DESCRIPTION: :1d_damage:\n\ |
| 177 |
E. UTILITY STATUS: :1e_utilsts:\n\ |
| 178 |
F. COMMUNICATIONS STATUS: :1f_commsts:\n\ |
| 179 |
G. SOURCE OF INFO: :1g:\n\ |
| 180 |
H. REMARKS: :1h_remarks:\n\ |
| 181 |
:incident:\n\ |
| 182 |
BT\n\ |
| 183 |
/EX\n\ |
| 184 |
NNNN\n\ |
| 185 |
</pre></b></FONT>\ |
| 186 |
</body>\ |
| 187 |
</html>"; |
| 188 |
|
| 189 |
const char mars_ineei_text_template[] = "\ |
| 190 |
DE :de: :nbr:\n\ |
| 191 |
:prec: :dtg:\n\ |
| 192 |
FM :fm:\n\ |
| 193 |
TO: :to::info:\n\ |
| 194 |
BT\n\ |
| 195 |
:incident:\n\ |
| 196 |
SUBJECT: IN/EEI REPORT\n\ |
| 197 |
1. REF EVENT IDENTIFIER: :1ref:\n\ |
| 198 |
A. INCIDENT LOCATION TIME: :1a:\n\ |
| 199 |
B. EMERGENCY MEDICAL: :1b_medfacsts:\n\ |
| 200 |
C. LOCAL TRANSPORTATION: :1c_trnpsts:\n\ |
| 201 |
D. GENERAL DAMAGE DESCRIPTION: :1d_damage:\n\ |
| 202 |
E. UTILITY STATUS: :1e_utilsts:\n\ |
| 203 |
F. COMMUNICATIONS STATUS: :1f_commsts:\n\ |
| 204 |
G. SOURCE OF INFO: :1g:\n\ |
| 205 |
H. REMARKS: :1h_remarks:\n\ |
| 206 |
:incident:\n\ |
| 207 |
BT\n\ |
| 208 |
/EX\n\ |
| 209 |
NNNN\n\ |
| 210 |
"; |
| 211 |
|
| 212 |
//====================================================================== |
| 213 |
// ARMY message templates |
| 214 |
//====================================================================== |
| 215 |
|
| 216 |
const char mars_army_html_template[] = "\ |
| 217 |
<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01//EN\" \"http://www.w3.org/TR/html4/strict.dtd\">\ |
| 218 |
<html>\ |
| 219 |
<head><meta content=\"text/html; charset=UTF-8\" http-equiv=\"content-type\">\ |
| 220 |
<title>:TITLE:</title>\ |
| 221 |
</head><body>\ |
| 222 |
<table WIDTH=1000px BORDER=1 CELLPADDING=0 CELLSPACING=0>\ |
| 223 |
<tbody>\ |
| 224 |
<tr ALIGN=center>\ |
| 225 |
<td COLSPAN=3 VALIGN=top BGCOLOR=#E9E9E9><big>ARMY MARS STD MSG</big><br></td>\ |
| 226 |
</tr>\ |
| 227 |
</table><br>\ |
| 228 |
<FONT face=monospace size=5><b><pre>\ |
| 229 |
DE :de: NR :nbr:\n\ |
| 230 |
:pre: :dtg:\n\ |
| 231 |
FM :fm:\n\ |
| 232 |
TO :to:\n\ |
| 233 |
INFO :info:\n\ |
| 234 |
BT\n\ |
| 235 |
:text:\n\ |
| 236 |
BT\n\ |
| 237 |
NNNN\n\ |
| 238 |
</pre></b></FONT>\ |
| 239 |
</body>\ |
| 240 |
</html>"; |
| 241 |
|
| 242 |
const char mars_army_text_template[] = "\ |
| 243 |
DE :de: NR :nbr:\n\ |
| 244 |
:pre: :dtg:\n\ |
| 245 |
FM :fm:\n\ |
| 246 |
TO :to:\n\ |
| 247 |
INFO :info:\n\ |
| 248 |
BT\n\ |
| 249 |
:text:\n\ |
| 250 |
BT\n\ |
| 251 |
NNNN\n\ |
| 252 |
"; |
| 253 |
|
| 254 |
//====================================================================== |
| 255 |
// NAVY message templates |
| 256 |
//====================================================================== |
| 257 |
|
| 258 |
const char mars_navy_html_template[] = "\ |
| 259 |
<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01//EN\" \"http://www.w3.org/TR/html4/strict.dtd\">\ |
| 260 |
<html>\ |
| 261 |
<head><meta content=\"text/html; charset=UTF-8\" http-equiv=\"content-type\">\ |
| 262 |
<title>:TITLE:</title>\ |
| 263 |
</head><body>\ |
| 264 |
<table WIDTH=1000px BORDER=1 CELLPADDING=0 CELLSPACING=0>\ |
| 265 |
<tbody>\ |
| 266 |
<tr ALIGN=center>\ |
| 267 |
<td COLSPAN=3 VALIGN=top BGCOLOR=#E9E9E9><big>NAVY MARS STD MSG</big><br></td>\ |
| 268 |
</tr>\ |
| 269 |
</table><br>\ |
| 270 |
<FONT face=monospace size=5><b><pre>\ |
| 271 |
:pre: :dtg:\n\ |
| 272 |
FM :fm:\n\ |
| 273 |
TO :to:\n\ |
| 274 |
BT\n\ |
| 275 |
UNCLAS\n\ |
| 276 |
:text:\n\ |
| 277 |
BT\n\ |
| 278 |
NNNN\n\ |
| 279 |
</pre></b></FONT>\ |
| 280 |
</body>\ |
| 281 |
</html>"; |
| 282 |
|
| 283 |
const char mars_navy_text_template[] = "\ |
| 284 |
:pre: :dtg:\n\ |
| 285 |
FM :fm:\n\ |
| 286 |
TO :to:\n\ |
| 287 |
BT\n\ |
| 288 |
UNCLAS\n\ |
| 289 |
:text:\n\ |
| 290 |
BT\n\ |
| 291 |
NNNN\n\ |
| 292 |
"; |
| 293 |
|
| 294 |
|
| 295 |
//====================================================================== |
| 296 |
// GENERIC message templates |
| 297 |
//====================================================================== |
| 298 |
|
| 299 |
const char mars_msg_html_template[] = "\ |
| 300 |
<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01//EN\" \"http://www.w3.org/TR/html4/strict.dtd\">\ |
| 301 |
<html>\ |
| 302 |
<head><meta content=\"text/html; charset=UTF-8\" http-equiv=\"content-type\">\ |
| 303 |
<title>:TITLE:</title>\ |
| 304 |
</head><body>\ |
| 305 |
<table WIDTH=1000px BORDER=1 CELLPADDING=0 CELLSPACING=0>\ |
| 306 |
<tbody>\ |
| 307 |
<tr ALIGN=center>\ |
| 308 |
<td COLSPAN=3 VALIGN=top BGCOLOR=#E9E9E9><big>GENERIC MARS STD MSG</big><br></td>\ |
| 309 |
</tr>\ |
| 310 |
</table><br>\ |
| 311 |
<FONT face=monospace size=5><b><pre>\ |
| 312 |
:pre: :dtg:\n\ |
| 313 |
FM :fm:\n\ |
| 314 |
TO :to:\n\ |
| 315 |
BT\n\ |
| 316 |
UNCLAS\n\ |
| 317 |
:text:\n\ |
| 318 |
BT\n\ |
| 319 |
NNNN\n\ |
| 320 |
</pre></b></FONT>\ |
| 321 |
</body>\ |
| 322 |
</html>"; |
| 323 |
|
| 324 |
const char mars_msg_text_template[] = "\ |
| 325 |
:pre: :dtg:\n\ |
| 326 |
FM :fm:\n\ |
| 327 |
TO :to:\n\ |
| 328 |
BT\n\ |
| 329 |
UNCLAS\n\ |
| 330 |
:text:\n\ |
| 331 |
BT\n\ |
| 332 |
NNNN\n\ |
| 333 |
"; |
| 334 |
|