|
1 <?php |
|
2 /***************************************************************************** |
|
3 * Copyright (C) 2014-2018 |
|
4 * |
|
5 * Michiel Broek <mbroek at mbse dot eu> |
|
6 * |
|
7 * This file is part of Brewery Management System |
|
8 * |
|
9 * This is free software; you can redistribute it and/or modify it |
|
10 * under the terms of the GNU General Public License as published by the |
|
11 * Free Software Foundation; either version 2, or (at your option) any |
|
12 * later version. |
|
13 * |
|
14 * BrewCloud is distributed in the hope that it will be useful, but |
|
15 * WITHOUT ANY WARRANTY; without even the implied warranty of |
|
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|
17 * General Public License for more details. |
|
18 * |
|
19 * You should have received a copy of the GNU General Public License |
|
20 * along with ThermFerm; see the file COPYING. If not, write to the Free |
|
21 * Software Foundation, 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. |
|
22 *****************************************************************************/ |
|
23 |
|
24 /* |
|
25 * Look for the style names in the jqwidgets/styles directory. |
|
26 * |
|
27 * energyblue of ui-redmond |
|
28 */ |
|
29 #$my_style = 'mbse-dark'; |
|
30 $my_style = 'ui-redmond'; |
|
31 $my_style = 'android'; |
|
32 |
|
33 require_once($_SERVER['DOCUMENT_ROOT'].'/config.php'); |
|
34 require_once($_SERVER['DOCUMENT_ROOT'].'/version.php'); |
|
35 |
|
36 |
|
37 function page_header($title, $loadjs) { |
|
38 global $my_style; |
|
39 |
|
40 $outstr = '<!DOCTYPE html>'.PHP_EOL; |
|
41 $outstr .= '<html lang=nl-NL>'.PHP_EOL; |
|
42 $outstr .= ' <head>'.PHP_EOL; |
|
43 $outstr .= ' <meta http-equiv="content-type" content="text/html; charset=utf-8" />'.PHP_EOL; |
|
44 $outstr .= ' <title>BMS v'.$my_version.' - ' . $title . '</title>'.PHP_EOL; |
|
45 $outstr .= ' <link type="text/css" href="css/style.css" rel="stylesheet" media="all" />'.PHP_EOL; |
|
46 $outstr .= ' <link type="text/css" href="jqwidgets/styles/jqx.base.css" rel="stylesheet" />'.PHP_EOL; |
|
47 $outstr .= ' <link type="text/css" href="jqwidgets/styles/jqx.'.$my_style.'.css" rel="stylesheet" />'.PHP_EOL; |
|
48 $outstr .= ' <meta name="viewport" content="width=device-width, initial-scale=1 maximum-scale=1 minimum-scale=1" />'.PHP_EOL; |
|
49 $outstr .= ' <script>'.PHP_EOL; |
|
50 $outstr .= ' var theme = "'.$my_style.'";'.PHP_EOL; |
|
51 $outstr .= ' </script>'.PHP_EOL; |
|
52 $outstr .= ' <script src="js/jquery-1.11.1.min.js"></script>'.PHP_EOL; |
|
53 $outstr .= ' <script src="jqwidgets/jqxcore.js"></script>'.PHP_EOL; |
|
54 $outstr .= ' <script src="jqwidgets/jqxwindow.js"></script>'.PHP_EOL; |
|
55 $outstr .= ' <script src="jqwidgets/jqxmenu.js"></script>'.PHP_EOL; |
|
56 $outstr .= ' <script src="jqwidgets/jqxwindow.js"></script>'.PHP_EOL; |
|
57 $outstr .= ' <script src="jqwidgets/jqxdata.js"></script>'.PHP_EOL; |
|
58 $outstr .= ' <script src="jqwidgets/jqxbuttons.js"></script>'.PHP_EOL; |
|
59 $outstr .= ' <script src="jqwidgets/jqxscrollbar.js"></script>'.PHP_EOL; |
|
60 $outstr .= ' <script src="jqwidgets/jqxgrid.js"></script>'.PHP_EOL; |
|
61 $outstr .= ' <script src="jqwidgets/jqxgrid.pager.js"></script>'.PHP_EOL; |
|
62 $outstr .= ' <script src="jqwidgets/jqxgrid.filter.js"></script>'.PHP_EOL; |
|
63 $outstr .= ' <script src="jqwidgets/jqxgrid.selection.js"></script>'.PHP_EOL; |
|
64 $outstr .= ' <script src="jqwidgets/jqxnumberinput.js"></script>'.PHP_EOL; |
|
65 $outstr .= ' <script src="jqwidgets/jqxlistbox.js"></script>'.PHP_EOL; |
|
66 $outstr .= ' <script src="jqwidgets/jqxdropdownlist.js"></script>'.PHP_EOL; |
|
67 $outstr .= ' <script src="jqwidgets/jqxdropdownbutton.js"></script>'.PHP_EOL; |
|
68 $outstr .= ' <script src="jqwidgets/jqxinput.js"></script>'.PHP_EOL; |
|
69 $outstr .= ' <script src="jqwidgets/jqxeditor.js"></script>'.PHP_EOL; |
|
70 $outstr .= ' <script src="jqwidgets/jqxtooltip.js"></script>'.PHP_EOL; |
|
71 $outstr .= ' <script src="jqwidgets/jqxcheckbox.js"></script>'.PHP_EOL; |
|
72 $outstr .= ' <script src="jqwidgets/jqxdatetimeinput.js"></script>'.PHP_EOL; |
|
73 $outstr .= ' <script src="jqwidgets/jqxcalendar.js"></script>'.PHP_EOL; |
|
74 $outstr .= ' <script src="jqwidgets/globalization/globalize.js"></script>'.PHP_EOL; |
|
75 $outstr .= ' <script src="js/global.js"></script>'.PHP_EOL; |
|
76 if (strlen($loadjs)) |
|
77 $outstr .= ' <script src="js/'.$loadjs.'.js"></script>'.PHP_EOL; |
|
78 $outstr .= ' </head>'.PHP_EOL; |
|
79 $outstr .= ' <body class="default">'.PHP_EOL; |
|
80 $outstr .= ' <div id="jqxWidget">'.PHP_EOL; |
|
81 |
|
82 /* |
|
83 * Menu |
|
84 */ |
|
85 $outstr .= ' <div id="jqxMenu">'.PHP_EOL; |
|
86 $outstr .= ' <ul>'.PHP_EOL; |
|
87 $outstr .= ' <li><a href="#Home">Home</a></li>'.PHP_EOL; |
|
88 $outstr .= ' <li>Monitoren'.PHP_EOL; |
|
89 $outstr .= ' <ul>'.PHP_EOL; |
|
90 $outstr .= ' <li><a href="monitor.php">Probeersel</a></li>'.PHP_EOL; |
|
91 $outstr .= ' </ul>'.PHP_EOL; |
|
92 $outstr .= ' </li>'.PHP_EOL; // Monitoren |
|
93 $outstr .= ' <li>Inventaris'.PHP_EOL; |
|
94 $outstr .= ' <ul>'.PHP_EOL; |
|
95 $outstr .= ' <li><a href="inv_suppliers.php">Leveranciers</a></li>'.PHP_EOL; |
|
96 $outstr .= ' <li><a href="inv_fermentables.php">Vergistbare producten</a></li>'.PHP_EOL; |
|
97 $outstr .= ' <li><a href="inv_hops.php">Hoppen</a></li>'.PHP_EOL; |
|
98 $outstr .= ' <li><a href="inv_yeasts.php">Gist</a></li>'.PHP_EOL; |
|
99 $outstr .= ' <li><a href="inv_waters.php">Water profielen</a></li>'.PHP_EOL; |
|
100 $outstr .= ' <li><a href="inv_miscs.php">Diverse ingredienetn</a></li>'.PHP_EOL; |
|
101 $outstr .= ' <li><a href="inv_mashs.php">Maisch profielen</a></li>'.PHP_EOL; |
|
102 $outstr .= ' <li><a href="inv_equipments.php">Brouw apparatuur</a></li>'.PHP_EOL; |
|
103 $outstr .= ' <li><a href="inv_styles.php">Bier stijlen</a></li>'.PHP_EOL; |
|
104 $outstr .= ' </ul>'.PHP_EOL; |
|
105 $outstr .= ' </li>'.PHP_EOL; // Inventaris |
|
106 $outstr .= ' <li>About'.PHP_EOL; |
|
107 $outstr .= ' <ul>'.PHP_EOL; |
|
108 $outstr .= ' <li><a href="#aboutWindow">Informatie</a></li>'.PHP_EOL; |
|
109 $outstr .= ' </ul>'.PHP_EOL; |
|
110 $outstr .= ' </li>'.PHP_EOL; |
|
111 $outstr .= ' </ul>'.PHP_EOL; |
|
112 $outstr .= ' </div>'.PHP_EOL; |
|
113 |
|
114 $outstr .= ' <div id="aboutWindow">'.PHP_EOL; |
|
115 $outstr .= ' <div>'.PHP_EOL; |
|
116 $outstr .= ' About BrewCloud'.PHP_EOL; |
|
117 $outstr .= ' </div>'.PHP_EOL; |
|
118 $outstr .= ' <div>'.PHP_EOL; |
|
119 $outstr .= ' The about text comes here'.PHP_EOL; |
|
120 $outstr .= ' </div>'.PHP_EOL; |
|
121 $outstr .= ' </div>'.PHP_EOL; |
|
122 |
|
123 return $outstr; |
|
124 } |
|
125 |
|
126 |
|
127 function page_footer() { |
|
128 |
|
129 $outstr = ' </div> <!-- jqxWidget -->'.PHP_EOL; |
|
130 $outstr .= ' </body>'.PHP_EOL; |
|
131 $outstr .= '</html>'.PHP_EOL; |
|
132 |
|
133 return $outstr; |
|
134 } |
|
135 |
|
136 |