9 * @author Christian Weiske <cweiske@cweiske.de>
10 * @copyright 2014 Christian Weiske
11 * @license http://www.gnu.org/licenses/agpl.html GNU AGPL v3
12 * @link http://cweiske.de/bdrem.htm
17 * HTML page renderer. Renders a full HTML page.
21 * @author Christian Weiske <cweiske@cweiske.de>
22 * @copyright 2014 Christian Weiske
23 * @license http://www.gnu.org/licenses/agpl.html GNU AGPL v3
24 * @version Release: @package_version@
25 * @link http://cweiske.de/bdrem.htm
27 class Renderer_Html extends Renderer
33 protected $httpContentType = 'application/xhtml+xml; charset=utf-8';
36 * Send out HTTP headers when nothing shall be outputted.
40 public function handleStopOnEmpty()
42 header('HTTP/1.0 204 No Content');
46 * Generate a HTML page with the given events.
48 * @param array $arEvents Events to display on the HTML page
50 * @return string HTML code
52 * @see Renderer_HtmlTable
54 public function render($arEvents)
56 $tr = new Renderer_HtmlTable();
57 $table = $tr->render($arEvents);
59 <?xml version="1.0" encoding="utf-8"?>
60 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
61 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
62 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
65 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
66 <style type="text/css">
68 border: 1px solid black;
69 border-collapse: collapse;
74 border: 1px solid grey;
81 background-color: #C4DDF4;
84 background-color: #FEDCBA;
87 background-color: #DEFABC;
90 background-color: white;
98 background-color: white;
105 background-color: #FEDCBA;
111 tr.d-3 td.icon:before {
112 content: "\342\227\224"
114 tr.d-2 td.icon:before {
115 content: "\342\227\221"
117 tr.d-1 td.icon:before {
118 content: "\342\227\225"
120 tr.d0 td.icon:before {
121 content: "\342\230\205"
123 tr.d1 td.icon:before {
124 content: "\342\227\225"
126 tr.d2 td.icon:before {
127 content: "\342\227\221"
129 tr.d3 td.icon:before {
130 content: "\342\227\224"