]> git.plutz.net Git - confetti/blob - templates/frame.html.sh
basic fields for medical view
[confetti] / templates / frame.html.sh
1 #!/bin/zsh
2
3 # Copyright 2014, 2015 Paul Hänsch
4 #
5 # This file is part of Confetti.
6
7 # Confetti is free software: you can redistribute it and/or modify
8 # it under the terms of the GNU Affero 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 # Confetti 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 Affero General Public License for more details.
16
17 # You should have received a copy of the GNU Affero General Public License
18 # along with Confetti.  If not, see <http://www.gnu.org/licenses/>. 
19
20 . "${_EXEC}/templates/text_frame.sh"
21 [ -x "${_EXEC}/templates/text_${PAGE}.sh" ] && . "${_EXEC}/templates/text_${PAGE}.sh"
22
23 cat <<EOF
24 <!Doctype HTML>
25
26 <html>
27   <head>
28     <title>$(l10n p_${PAGE})</title>
29     <style type="text/css">
30     <!--
31 * {
32   font-family: sans-serif;
33   -moz-box-sizing: border-box;
34   -webkit-box-sizing: border-box;
35   box-sizing: border-box;
36   z-index: 0;
37 }
38 body {
39   background: #EEE;
40   margin: 0;
41   padding: 2.5em 0 0 0;
42 }
43 .NAVIGATION {
44   position: fixed;
45   top: 0;
46   display: inline-block;
47   border-style: none solid solid solid;
48   border-width: 0 1px 1px 1px;
49   border-radius: 0 0 4px 4px;
50   margin: 0 auto auto 3%;
51   padding: .5em 1ex .5em 1ex;
52   background: #FFF;
53   z-index: 1;
54 }
55 .NAVIGATION a {
56   color: #008;
57   border: solid 1px #BBF;
58   margin: .5em .5ex .25em .5ex;
59   padding: .2em 3ex .2em 3ex;
60   background: #EFF;
61 }
62 .NAVIGATION a:hover {
63   border-width: 2px 1px 2px 1px;
64   background: #F3FFFF;
65 }
66
67 /* dynamic page CSS starts here */
68 $(debug CSS; [ -x "${CSS}" ] && . "${CSS}")
69     -->
70     </style>
71   </head>
72   <body class="$PAGE">
73     <div class="NAVIGATION">
74       $(debug NAVIGATION = "$NAVIGATION"; for each in ${NAVIGATION}; do printf %s "<a href=\"?p=${each}\">$(l10n "p_${each}")</a>"; done)
75     </div>
76     $(debug BODY; [ -x "${BODY}" ] && . "${BODY}" || printf %s 'Error')
77   </body>
78 </html>
79 EOF
80
81 # vi:set filetype=html: