Debian Codegraph @

src/iaru/iaru_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 iaru_html_template[] =
24 "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01//EN\" \"http://www.w3.org/TR/html4/strict.dtd\">\n\
25 <html><head><meta content=\"text/html; charset=UTF-8\" http-equiv=\"content-type\"><title>iaru</title>\n\
26 <meta content=\"w1hkj\" name=\"author\">\n\
27 <STYLE type=\"text/css\">\n\
28 p.F2 { FONT-FAMILY: \"sans-serif\"; FONT-SIZE: 8pt }\n\
29 p.F3 { FONT-FAMILY: \"sans-serif\"; FONT-SIZE: 14pt }\n\
30 p.F4 { FONT-FAMILY: \"monospace\"; FONT-SIZE: 12pt }\n\
31 p.F5 { FONT-FAMILY: \"sans-serif\"; FONT-SIZE: 16pt }\n\
32 p.F6 { FONT-FAMILY: \"sans-serif\"; FONT-SIZE: 10pt }\n\
33 </STYLE>\n\
34 </head>\n\
35 <body>\n\
36 <table style=\"text-align: left; width: 100%;\" border=0 cellpadding=0 cellspacing=0>\n\
37 <tr>\n\
38 <td VALIGN=top ALIGN=center><p class=F5><b>IARU MESSAGE</b></p></td>\n\
39 </tr>\n\
40 </tbody>\n\
41 </table>\n\
42 \n\
43 <table style=\"text-align: left; width: 100%;\" border=\"1\" cellpadding=\"2\" cellspacing=\"0\">\n\
44 <tr>\n\
45 <td style=\"vertical-align: top; text-align: center; width: 15%;\">\n\
46 <p class=F2>NUMBER</p></td>\n\
47 <td style=\"vertical-align: top; text-align: center; width: 15%;\">\n\
48 <p class=F2>PRECEDENCE</p></td>\n\
49 <td style=\"vertical-align: top; text-align: center; width: 20%;\">\n\
50 <p class=F2>STATION OF ORIGIN</p></td>\n\
51 <td style=\"vertical-align: top; text-align: center; width: 10%;\">\n\
52 <p class=F2>CHECK</p></td>\n\
53 <td style=\"vertical-align: top; text-align: center; width: 20%;\">\n\
54 <p class=F2>PLACE OF ORIGIN</p></td>\n\
55 <td style=\"vertical-align: top; text-align: center; width: 10%;\">\n\
56 <p class=F2>FILING TIME</p></td>\n\
57 <td style=\"vertical-align: top; text-align: center; width: 10%;\">\n\
58 <p class=F2>FILING DATE</p></td>\n\
59 </tr>\n\
60 <tr>\n\
61 <td style=\"vertical-align: top; text-align: center;\">\n\
62 <p class=F4>:nbr:<br></p></td>\n\
63 <td style=\"vertical-align: top; text-align: center;\">\n\
64 <p class=F4>:prec:<br></p></td>\n\
65 <td style=\"vertical-align: top; text-align: center;\">\n\
66 <p class=F4>:sta:<br></p></td>\n\
67 <td style=\"vertical-align: top; text-align: center;\">\n\
68 <p class=F4>:ck:<br></p></td>\n\
69 <td style=\"vertical-align: top; text-align: center;\">\n\
70 <p class=F4>:org:<br></p></td>\n\
71 <td style=\"vertical-align: top; text-align: center;\">\n\
72 <p class=F4>:t1:<br></p></td>\n\
73 <td style=\"vertical-align: top; text-align: center;\">\n\
74 <p class=F4>:d1:<br></p></td>\n\
75 </tr>\n\
76 </table>\n\
77 <br>\n\
78 <table width=100% border=1 cellpadding=2 cellspacing=0>\n\
79 <tr><td>\n\
80 <table width=100% border=0 cellpadding=0 cellspacing=0>\n\
81 <col width = 98%><col width = 2%>\n\
82 <tr>\n\
83 <td VALIGN=top>\n\
84 <p class=F2><B>To:</B></p><br>\n\
85 <pre><p class=F4>:to:</p></pre></td>\n\
86 <td><br><br><br></td>\n\
87 </tr>\n\
88 <tr>\n\
89 <td VALIGN=top>\n\
90 <pre><p class=F4>:msg:</p></pre></td>\n\
91 <td><br><br><br><br><br><br><br><br><br></td>\n\
92 </tr>\n\
93 <tr>\n\
94 <td VALIGN=top>\n\
95 <p class=F2><B>From:</B></p>\n\
96 <pre><p class=F4>:fm:</p></pre></td>\n\
97 <td><br><br><br></td>\n\
98 </tr>\n\
99 </table>\n\
100 </td></tr>\n\
101 </table>\n\
102 <br>\n\
103 <table style=\"text-align: left; width: 100%;\" border=\"1\" cellpadding=\"2\" cellspacing=\"0\">\n\
104 <tr>\n\
105 <td style=\"vertical-align: top; text-align: center; width: 24%;\">\n\
106 <p class=F2>RECEIVED FROM</p></td>\n\
107 <td style=\"vertical-align: top; text-align: center; width: 10%;\">\n\
108 <p class=F2>DATE</p></td>\n\
109 <td style=\"vertical-align: top; text-align: center; width: 10%;\">\n\
110 <p class=F2>TIME</p></td>\n\
111 <td style=\"vertical-align: top; text-align: center; width: 4%;\" ROWSPAN=2></td>\n\
112 <td style=\"vertical-align: top; text-align: center; width: 24%;\">\n\
113 <p class=F2>SENT TO</p></td>\n\
114 <td style=\"vertical-align: top; text-align: center; width: 10%;\">\n\
115 <p class=F2>DATE</p></td>\n\
116 <td style=\"vertical-align: top; text-align: center; width: 10%;\">\n\
117 <p class=F2>TIME</p></td>\n\
118 <tr>\n\
119 <td style=\"vertical-align: top; text-align: center;\">\n\
120 <p class=F4>:rcv:<br></p></td>\n\
121 <td style=\"vertical-align: top; text-align: center;\">\n\
122 <p class=F4>:d2:<br></p></td>\n\
123 <td style=\"vertical-align: top; text-align: center;\">\n\
124 <p class=F4>:t2:<br></p></td>\n\
125 <td style=\"vertical-align: top; text-align: center;\">\n\
126 <p class=F4>:sto:<br></p></td>\n\
127 <td style=\"vertical-align: top; text-align: center;\">\n\
128 <p class=F4>:d3:<br></p></td>\n\
129 <td style=\"vertical-align: top; text-align: center;\">\n\
130 <p class=F4>:t3:<br></p></td>\n\
131 </tr>\n\
132 </table>\n\
133 </td>\n\
134 </tr>\n\
135 </table>\n\
136 <br>\n\
137 </body></html>\n\
138 ";
139
140 const char iaru_txt_template[] =
141 ":nbr: :prec: :sta: :ck: :org: :t1: :d1:\n\
142 :to:\n\
143 BT\n\
144 :msg:\n\
145 BT\n\
146 :fm:\n\
147 AR\n\
148 ";
149