2014-03-06 12:21:11 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
use Icinga\Web\StyleSheet;
|
|
|
|
|
2014-05-21 00:46:36 +02:00
|
|
|
|
|
|
|
$moduleName = $this->layout()->moduleName;
|
2015-08-19 13:39:37 +02:00
|
|
|
if ($moduleName !== 'default') {
|
2014-05-21 00:46:36 +02:00
|
|
|
$moduleClass = ' icinga-module module-' . $moduleName;
|
|
|
|
} else {
|
|
|
|
$moduleClass = '';
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2014-03-06 12:21:11 +01:00
|
|
|
?><!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<style>
|
2015-11-27 16:40:17 +01:00
|
|
|
<?= StyleSheet::forPdf() ?>
|
2014-03-06 12:21:11 +01:00
|
|
|
</style>
|
|
|
|
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<script type="text/php">
|
|
|
|
// This attempt doesn't work :(
|
2014-03-06 13:08:11 +01:00
|
|
|
if ( isset($pdf) )
|
2014-03-06 12:21:11 +01:00
|
|
|
{
|
|
|
|
$w = $pdf->get_width();
|
|
|
|
$h = $pdf->get_height();
|
|
|
|
$font = Font_Metrics::get_font("helvetica");
|
|
|
|
$pdf->page_text($w -100, $h - 40, "Page {PAGE_NUM} of {PAGE_COUNT}", $font, 10, array(0,0,0));
|
|
|
|
}
|
|
|
|
|
|
|
|
</script>
|
2016-06-07 13:00:23 +02:00
|
|
|
<?= $this->img('img/icinga-logo-big-dark.png', null, array('align' => 'right', 'width' => '75')) ?>
|
2014-03-06 12:21:11 +01:00
|
|
|
<!--<div id="page-header">
|
|
|
|
<table>
|
|
|
|
<tr>
|
|
|
|
<td><?= $this->escape($this->title) ?></td>
|
|
|
|
<td style="text-align: right;"></td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</div>-->
|
|
|
|
<h1><?= $this->escape($this->title) ?></h1>
|
2014-05-21 00:46:36 +02:00
|
|
|
<div id="col1" class="container<?= $moduleClass ?>">
|
2014-03-06 12:21:11 +01:00
|
|
|
<?= $this->render('inline.phtml') ?>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="page-footer">
|
|
|
|
<div class="page-number"></div>
|
|
|
|
</div>
|
|
|
|
</body>
|
|
|
|
</html>
|